|
@@ -66,7 +66,7 @@ class PushHandler:
|
|
|
new_data = {'data': json.dumps(data)}
|
|
|
self.push_to_socket_service(user_id, json.dumps(new_data))
|
|
|
|
|
|
- def push_on_call_end(self, saas_id, flow_id, user_id, scene, service_direct=None, disconnect_type=0):
|
|
|
+ def push_on_call_end(self, saas_id, flow_id, user_id, scene: AgentScene, service_direct=None, disconnect_type=0):
|
|
|
data = {
|
|
|
'eventName': DownEvent.ON_CALL_END.code,
|
|
|
'ext': {
|
|
@@ -80,7 +80,7 @@ class PushHandler:
|
|
|
new_data = {'data': json.dumps(data)}
|
|
|
self.push_to_socket_service(user_id, json.dumps(new_data))
|
|
|
|
|
|
- def push_on_ring_start(self, saas_id, flow_id, user_id, scene, call_id=None):
|
|
|
+ def push_on_ring_start(self, saas_id, flow_id, user_id, scene: AgentScene, call_id=None):
|
|
|
data = {
|
|
|
'eventName': DownEvent.ON_RING_Start.code,
|
|
|
'ext': {
|
|
@@ -93,7 +93,7 @@ class PushHandler:
|
|
|
new_data = {'data': json.dumps(data)}
|
|
|
self.push_to_socket_service(user_id, json.dumps(new_data))
|
|
|
|
|
|
- def push_on_ring_end(self, saas_id, flow_id, user_id, scene, call_id):
|
|
|
+ def push_on_ring_end(self, saas_id, flow_id, user_id, scene: AgentScene, call_id):
|
|
|
data = {
|
|
|
'eventName': DownEvent.ON_RING_END.code,
|
|
|
'ext': {
|
|
@@ -106,7 +106,7 @@ class PushHandler:
|
|
|
new_data = {'data': json.dumps(data)}
|
|
|
self.push_to_socket_service(user_id, json.dumps(new_data))
|
|
|
|
|
|
- def push_answer_call(self, saas_id,flow_id, out_id, call_id, scene, service_direct,work_status,user_id ):
|
|
|
+ def push_answer_call(self, saas_id,flow_id, out_id, call_id, scene: AgentScene, service_direct,work_status,user_id ):
|
|
|
data = {
|
|
|
'eventName': DownEvent.ANSWER_CALL.code,
|
|
|
'ext': {
|