呼叫系统API


录音质检

<h3><strong>简要描述:</strong></h3> <h3>- 条件查询接口</h3> <p><strong>请求URL:</strong></p> <ul> <li><code>http://xx.com/admin/customer_cdr/grid</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td>项目编号</td> </tr> <tr> <td>status</td> <td>是</td> <td>int</td> <td>客户状态 ,默认-1</td> </tr> <tr> <td>start_stamp</td> <td>是</td> <td>date</td> <td>开始日期</td> </tr> <tr> <td>end_stamp</td> <td>是</td> <td>date</td> <td>结束日期</td> </tr> <tr> <td>telephone</td> <td>是</td> <td>string</td> <td>客户号码</td> </tr> <tr> <td>extno</td> <td>是</td> <td>string</td> <td>坐席工号</td> </tr> <tr> <td>gt_billsec</td> <td>是</td> <td>int</td> <td>应答时长</td> </tr> <tr> <td>task_id</td> <td>是</td> <td>int</td> <td>任务编号 ,默认0</td> </tr> <tr> <td>inspection</td> <td>是</td> <td>int</td> <td>质检,默认值-1</td> </tr> <tr> <td>page</td> <td>是</td> <td>int</td> <td>1</td> </tr> <tr> <td>limit</td> <td>是</td> <td>int</td> <td>10</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;admin_id&amp;quot;: 1, &amp;quot;answer_stamp&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;digits&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;end_stamp&amp;quot;: &amp;quot;2021-08-30 11:55:46&amp;quot;, &amp;quot;extno&amp;quot;: &amp;quot;1003&amp;quot;, &amp;quot;group&amp;quot;: &amp;quot;default&amp;quot;, &amp;quot;info_uuid&amp;quot;: &amp;quot;beeb8dda-87fb-4f7d-aa60-a4dee98e2e08&amp;quot;, &amp;quot;inspection&amp;quot;: 0, &amp;quot;project_id&amp;quot;: 1, &amp;quot;record_file&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;recovered&amp;quot;: 0, &amp;quot;satisfaction&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;status&amp;quot;: 0, &amp;quot;task_id&amp;quot;: 0, &amp;quot;uuid&amp;quot;: &amp;quot;17c3c262-7c48-40eb-b610-ef4c21bba363&amp;quot;, &amp;quot;agentName&amp;quot;: &amp;quot;1003&amp;quot;, &amp;quot;statusName&amp;quot;: &amp;quot;未接听&amp;quot;, &amp;quot;inspectionName&amp;quot;: &amp;quot;未质检&amp;quot; }], &amp;quot;count&amp;quot;: 1 }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>telephone</td> <td>int</td> <td>客户号码</td> </tr> <tr> <td>direction</td> <td>string</td> <td>呼叫类型</td> </tr> <tr> <td>start_stamp</td> <td>date</td> <td>开始时间</td> </tr> <tr> <td>duration</td> <td>int</td> <td>总时长(秒)</td> </tr> <tr> <td>billsec</td> <td>int</td> <td>应答时长(秒)</td> </tr> <tr> <td>consume</td> <td>string</td> <td>金额(元)</td> </tr> <tr> <td>hangup_cause</td> <td>string</td> <td>挂断原因</td> </tr> <tr> <td>hangup_disposition</td> <td>string</td> <td>挂断处理</td> </tr> <tr> <td>admin_id</td> <td>int</td> <td>用户编号</td> </tr> <tr> <td>answer_stamp</td> <td>string</td> <td>应答时间</td> </tr> <tr> <td>digits</td> <td>string</td> <td>按键</td> </tr> <tr> <td>end_stamp</td> <td>string</td> <td>结束时间</td> </tr> <tr> <td>extno</td> <td>string</td> <td>工号</td> </tr> <tr> <td>group</td> <td>string</td> <td>标签</td> </tr> <tr> <td>info_uuid</td> <td>string</td> <td>用户信息编号</td> </tr> <tr> <td>inspection</td> <td>int</td> <td>质检状态</td> </tr> <tr> <td>inspectionName</td> <td>string</td> <td>质检名称</td> </tr> <tr> <td>project_id</td> <td>string</td> <td>项目编号</td> </tr> <tr> <td>record_file</td> <td>string</td> <td>录音名称</td> </tr> <tr> <td>status</td> <td>int</td> <td>客户状态值</td> </tr> <tr> <td>statusName</td> <td>string</td> <td>客户状态名称</td> </tr> <tr> <td>task_id</td> <td>string</td> <td>任务编号</td> </tr> <tr> <td>uuid</td> <td>string</td> <td>话单编号</td> </tr> <tr> <td>agentName</td> <td>string</td> <td>坐席名称</td> </tr> </tbody> </table> <h3><strong>简要描述:</strong></h3> <h1>- 导出客户信息接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/cdr/download_info</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td>项目编号</td> </tr> <tr> <td>status</td> <td>是</td> <td>int</td> <td>客户状态 ,默认-1</td> </tr> <tr> <td>start_stamp</td> <td>是</td> <td>date</td> <td>开始日期</td> </tr> <tr> <td>end_stamp</td> <td>是</td> <td>date</td> <td>结束日期</td> </tr> <tr> <td>telephone</td> <td>是</td> <td>string</td> <td>客户号码</td> </tr> <tr> <td>extno</td> <td>是</td> <td>string</td> <td>坐席工号</td> </tr> <tr> <td>gt_billsec</td> <td>是</td> <td>int</td> <td>应答时长</td> </tr> <tr> <td>task_id</td> <td>是</td> <td>int</td> <td>任务编号 ,默认0</td> </tr> <tr> <td>inspection</td> <td>是</td> <td>int</td> <td>质检,默认值-1</td> </tr> </tbody> </table> <h3><strong>简要描述:</strong></h3> <h1>- 批量下载录音接口,ZIP压缩包</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/cdr/download_cdr</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td>项目编号</td> </tr> <tr> <td>status</td> <td>是</td> <td>int</td> <td>客户状态 ,默认-1</td> </tr> <tr> <td>start_stamp</td> <td>是</td> <td>date</td> <td>开始日期</td> </tr> <tr> <td>end_stamp</td> <td>是</td> <td>date</td> <td>结束日期</td> </tr> <tr> <td>telephone</td> <td>是</td> <td>string</td> <td>客户号码</td> </tr> <tr> <td>extno</td> <td>是</td> <td>string</td> <td>坐席工号</td> </tr> <tr> <td>gt_billsec</td> <td>是</td> <td>int</td> <td>应答时长</td> </tr> <tr> <td>task_id</td> <td>是</td> <td>int</td> <td>任务编号 ,默认0</td> </tr> <tr> <td>inspection</td> <td>是</td> <td>int</td> <td>质检,默认值-1</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 录音数量 }</code></pre> <hr /> <h1>质检:</h1> <h3><strong>简要描述:</strong></h3> <h2>- 质检 :获取crm字段,生成表单</h2> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/crm_field/listProjectFields</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td></td> <td>项目id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;id&amp;quot;: 1, &amp;quot;issue&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;field_name&amp;quot;: &amp;quot;客户姓名&amp;quot;, &amp;quot;field_type&amp;quot;: 1, &amp;quot;input_type&amp;quot;: 1, &amp;quot;is_display&amp;quot;: 1, &amp;quot;is_edit&amp;quot;: 1, &amp;quot;is_empty&amp;quot;: 1, &amp;quot;is_search&amp;quot;: 0, &amp;quot;jump&amp;quot;: 1, &amp;quot;field_json&amp;quot;: null, &amp;quot;status&amp;quot;: 1, &amp;quot;crm_id&amp;quot;: 1 }] }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>field_json</td> <td>string</td> <td>表单数据,单选框,多选框的值</td> </tr> <tr> <td>field_name</td> <td>int</td> <td>字段名称</td> </tr> <tr> <td>field_type</td> <td>int</td> <td>预留字段</td> </tr> <tr> <td>id</td> <td>int</td> <td>编号</td> </tr> <tr> <td>input_type</td> <td>string</td> <td>字段类型:1 文本框,2 单选下拉框,3 多选下拉框,4 富文本框</td> </tr> <tr> <td>is_display</td> <td>int</td> <td>是否显示 1 是,0 否</td> </tr> <tr> <td>is_edit</td> <td>int</td> <td>是否允许修改 1 是,0 否</td> </tr> <tr> <td>is_search</td> <td>int</td> <td>是否高级查询 1 是,0 否</td> </tr> <tr> <td>is_empty</td> <td>int</td> <td>预留字段</td> </tr> <tr> <td>issue</td> <td>string</td> <td>话术(问卷)内容</td> </tr> <tr> <td>jump</td> <td>int</td> <td>问卷跳转,跳转到相同crm字段id的问卷</td> </tr> <tr> <td>status</td> <td>int</td> <td>状态,预留字段</td> </tr> </tbody> </table> <h3><strong>简要描述:</strong></h3> <h1>- 质检 :获取crm字段生成表单的值,就是客户信息</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/customer_cdr/getInfoByUUID</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>uuid</td> <td>是</td> <td>String</td> <td></td> <td>客户信息uuid</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;project_id&amp;quot;: 1, &amp;quot;info_uuid&amp;quot;: &amp;quot;a009cf46-0267-11ec-a87b-fa163e5db268&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;telephone&amp;quot;: &amp;quot;13001322835&amp;quot;, &amp;quot;record_file&amp;quot;: &amp;quot;record/1/20210830/01cc588a-6de1-4099-9202-01a2c7f08e21.wav&amp;quot;, &amp;quot;fields&amp;quot;: &amp;quot;{}&amp;quot;, &amp;quot;status&amp;quot;: 3, &amp;quot;inspection&amp;quot;: 0 } }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>fields</td> <td>string</td> <td>用户信息,字段:值</td> </tr> <tr> <td>record_file</td> <td>string</td> <td>录音地址</td> </tr> <tr> <td>status</td> <td>int</td> <td>客户状态</td> </tr> <tr> <td>telephone</td> <td>string</td> <td>客户号码</td> </tr> <tr> <td>name</td> <td>string</td> <td>客户名称</td> </tr> <tr> <td>info_uuid</td> <td>string</td> <td>客户信息UUID</td> </tr> <tr> <td>inspection</td> <td>int</td> <td>质检状态</td> </tr> </tbody> </table> <h3><strong>简要描述:</strong></h3> <h1>- 质检 : 提交 接口, 提交客户状态是单独的接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/customer_info/save</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>uuid</td> <td>是</td> <td>uuid</td> <td></td> <td>uuid编号,客户信息uuid(info_uuid)</td> </tr> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td></td> <td>项目编号</td> </tr> <tr> <td>fields</td> <td>是</td> <td>string</td> <td>{“客户姓名”:”zs”}</td> <td>表单数据</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <h3><strong>简要描述:</strong></h3> <h1>- 质检 : 提交客户状态 接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/customer_cdr/editStatus</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>uuid</td> <td>是</td> <td>uuid</td> <td></td> <td>话单uuid(cdr_uuid)</td> </tr> <tr> <td>status</td> <td>是</td> <td>int</td> <td></td> <td>客户状态</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <h3><strong>简要描述:</strong></h3> <h1>- 质检 : 质检状态 提交</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/customer_cdr/quality</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>uuid</td> <td>是</td> <td>uuid</td> <td></td> <td>话单uuid编号</td> </tr> <tr> <td>inspection</td> <td>是</td> <td>int</td> <td></td> <td>录音质检状态</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;操作成功&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <h3><strong>简要描述:</strong></h3> <h1>- 质检 : 质检状态下拉框</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/crm/listProjectInsp</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>参数</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>是</td> <td>int</td> <td></td> <td>项目编号</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: &amp;quot;[\&amp;quot;未质检\&amp;quot;, \&amp;quot;质检合格\&amp;quot;, \&amp;quot;质检不合格\&amp;quot;]&amp;quot; ,说明:提交时,值为下标,这里返回的是名称 }</code></pre> <h3><strong>简要描述:</strong></h3> <h1>- 下载录音 ,单个</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../record/download?access_token=xxxxxxxx&amp;amp;uuid=xxxxxxxxxx</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul>

页面列表

ITEM_HTML