shanghui 3 місяців тому
батько
коміт
743d6858d2
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      src/core/callcenter/acd.py

+ 3 - 3
src/core/callcenter/acd.py

@@ -6,7 +6,7 @@ from datetime import datetime
 from queue import Queue
 from queue import Queue
 from typing import Dict, Any, Optional
 from typing import Dict, Any, Optional
 from src.core.callcenter.cache import Cache
 from src.core.callcenter.cache import Cache
-from src.core.callcenter.agent import AgentOperService, AgentStateService
+from src.core.callcenter.agent import AgentOperService
 from src.core.callcenter.call import CallService
 from src.core.callcenter.call import CallService
 from src.core.callcenter.api import CallInfo, AgentActionRequest, DelayAction
 from src.core.callcenter.api import CallInfo, AgentActionRequest, DelayAction
 from apscheduler.schedulers.background import BackgroundScheduler
 from apscheduler.schedulers.background import BackgroundScheduler
@@ -24,7 +24,7 @@ class AcdService:
         self.cache = Cache(app)
         self.cache = Cache(app)
         self.call_service = CallService(client, app)
         self.call_service = CallService(client, app)
         self.agent_service = AgentOperService(app)
         self.agent_service = AgentOperService(app)
-        self.agent_state_service = AgentStateService(app)
+        # self.agent_state_service = AgentStateService(app)
         self.holdsQueue: Dict[str, Queue] = {}
         self.holdsQueue: Dict[str, Queue] = {}
         self.pool = ThreadPoolExecutor(max_workers=4)
         self.pool = ThreadPoolExecutor(max_workers=4)
         self.checkIdleScheduler = BackgroundScheduler()
         self.checkIdleScheduler = BackgroundScheduler()
@@ -55,7 +55,7 @@ class AcdService:
             # print(text, flush=True)
             # print(text, flush=True)
             self.logger.info(text)
             self.logger.info(text)
             self.call_service.transfer(call_info, agent_number, service_id)
             self.call_service.transfer(call_info, agent_number, service_id)
-            self.agent_state_service.busy(call_info.saas_id, agent_number, agent_number)
+            # self.agent_state_service.busy(call_info.saas_id, agent_number, agent_number)
         self.cache.add_call_info(call_info)
         self.cache.add_call_info(call_info)
 
 
     def try_transfer_agent(self):
     def try_transfer_agent(self):