DavidLiu 3 mesiacov pred
rodič
commit
9deb8d6686
1 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 7 7
      src/core/callcenter/push.py

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

@@ -31,7 +31,7 @@ class PushHandler:
                     'phone':phone
                     }
         }
-        self.logger.info("flowId:[%s] OnAgentWorkReport push:[%s].", flow_id, json.dumps(data))
+        self.logger.info("flowId:[%s] push_on_agent_work_report push:[%s].", flow_id, json.dumps(data))
         new_data = {'data': json.dumps(data)}
         self.push_to_socket_service(user_id, json.dumps(new_data))
     def push_on_agent_report(self, saas_id, out_id, scene: AgentScene, service_state: AgentServiceState):
@@ -64,7 +64,7 @@ class PushHandler:
                 'serviceTaskId': human_service_id
             }
         }
-        self.logger.info("flowId:[%s] OnAgentWorkReport push:[%s].", flow_id, json.dumps(data))
+        self.logger.info("flowId:[%s] push_on_call_ring push:[%s].", flow_id, json.dumps(data))
         new_data = {'data': json.dumps(data)}
         self.push_to_socket_service(user_id, json.dumps(new_data))
 
@@ -78,7 +78,7 @@ class PushHandler:
                 'serviceDirect': service_direct
             }
         }
-        self.logger.info("flowId:[%s] OnAgentWorkReport push:[%s].", flow_id, json.dumps(data))
+        self.logger.info("flowId:[%s] push_on_call_end push:[%s].", flow_id, json.dumps(data))
         new_data = {'data': json.dumps(data)}
         self.push_to_socket_service(user_id, json.dumps(new_data))
 
@@ -116,14 +116,14 @@ class PushHandler:
                 'scene': scene.code,
                 'callId': call_id,
                 'serviceDirect':service_direct,
-                'workStatus':work_status
+                'workStatus':work_status.code
             }
         }
-        self.logger.info("flowId:[%s] push_on_ring_end push:[%s].", flow_id, json.dumps(data))
+        self.logger.info("flowId:[%s] push_answer_call push:[%s].", flow_id, json.dumps(data))
         new_data = {'data': json.dumps(data)}
         self.push_to_socket_service(user_id, json.dumps(new_data))
 
-    def push_on_detected_tone(self, saas_id, flow_id, user_id, scene: AgentScene, call_id ):
+    def push_on_detected_tone(self, saas_id, flow_id, user_id, scene: AgentScene, call_id):
         data = {
             'eventName': DownEvent.ON_DETECTED_TONE.code,
             'ext': {
@@ -132,6 +132,6 @@ class PushHandler:
                 'callId': call_id,
             }
         }
-        self.logger.info("flowId:[%s] push_on_ring_end push:[%s].", flow_id, json.dumps(data))
+        self.logger.info("flowId:[%s] push_on_detected_tone push:[%s].", flow_id, json.dumps(data))
         new_data = {'data': json.dumps(data)}
         self.push_to_socket_service(user_id, json.dumps(new_data))