|
@@ -1,22 +1,20 @@
|
|
|
#!/usr/bin/env python3
|
|
|
# encoding:utf-8
|
|
|
-
|
|
|
from . import app
|
|
|
import src.core.callcenter.cache as Cache
|
|
|
+from src.core.callcenter.agent import AgentService, AgentOperService
|
|
|
from src.core.callcenter.constant import success_response, error_response
|
|
|
from src.core.callcenter.enumeration import CallType
|
|
|
+from src.core.callcenter.esl.client import InboundClient, OutboundClient
|
|
|
from flask import Flask, request, render_template_string
|
|
|
|
|
|
+from src.core.callcenter.call import CallService
|
|
|
from src.core.callcenter.api import AgentCallRequest, AgentActionRequest, HangupCallRequest, \
|
|
|
HumanServiceQueryRequest
|
|
|
-
|
|
|
from src.core.voip.bot import BotAgent
|
|
|
-from src.core.callcenter.call import CallService
|
|
|
-from src.core.callcenter.agent import AgentService, AgentOperService
|
|
|
-from src.core.callcenter.esl.client import InboundClient, OutboundClient
|
|
|
+
|
|
|
|
|
|
agent = BotAgent(app.logger)
|
|
|
-# agent, inbound_client = None, None
|
|
|
inbound_client = InboundClient(agent, app.logger)
|
|
|
outbound_client = OutboundClient(agent, app.logger)
|
|
|
call_service = CallService(inbound_client, app.logger)
|