|
@@ -2,7 +2,7 @@
|
|
|
# encoding:utf-8
|
|
|
|
|
|
from flask import request, render_template_string
|
|
|
-
|
|
|
+import json
|
|
|
from src.core.callcenter.agent import AgentService, AgentOperService
|
|
|
from src.core.callcenter.api import AgentCallRequest, AgentActionRequest, HangupCallRequest
|
|
|
from src.core.callcenter.call import CallService
|
|
@@ -188,4 +188,13 @@ def member_active():
|
|
|
def num_generate():
|
|
|
"""获取 cti 流程 ID"""
|
|
|
flow_id = call_service.snowflake.next_id()
|
|
|
- return success_response(flow_id)
|
|
|
+ return success_response(flow_id)
|
|
|
+
|
|
|
+
|
|
|
+@app.route('/open/agent/sdkAnalytics', methods=['GET'])
|
|
|
+def track_event():
|
|
|
+ data = request.args.to_dict()
|
|
|
+ # 存入日志文件
|
|
|
+ app.logger.info(json.dumps(data))
|
|
|
+
|
|
|
+ return success_response('ok')
|