774056846 5 bulan lalu
induk
melakukan
6803444d95
1 mengubah file dengan 7 tambahan dan 7 penghapusan
  1. 7 7
      src/core/callcenter/views.py

+ 7 - 7
src/core/callcenter/views.py

@@ -10,15 +10,15 @@ from flask import Flask, request, render_template_string
 from src.core.callcenter.api import AgentCallRequest, AgentActionRequest, HangupCallRequest, \
     HumanServiceQueryRequest
 
-# from src.core.voip.bot import BotAgent
-from .call import CallService
-from .agent import AgentService, AgentOperService
-from .esl.client import InboundClient, OutboundClient
+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, _outbound_client = None, None
+agent = BotAgent(app.logger)
+# agent, _outbound_client = None, None
 inbound_client = InboundClient(agent, app.logger)
-# outbound_client = OutboundClient(agent, app.logger)
+outbound_client = OutboundClient(agent, app.logger)
 call_service = CallService(inbound_client, app.logger)
 agent_service = AgentService(inbound_client, app.logger)
 agent_oper_service = AgentOperService(inbound_client, app.logger)