呼叫系统API


坐席列表

<p><strong>简要描述:</strong></p> <ul> <li>坐席查询接口</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent/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> <th>说明</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>否</td> <td>int</td> <td></td> <td>项目编号,默认0</td> </tr> <tr> <td>extno</td> <td>否</td> <td>string</td> <td></td> <td>工号</td> </tr> <tr> <td>group</td> <td>否</td> <td>string</td> <td></td> <td>标签组</td> </tr> <tr> <td>page</td> <td>是</td> <td>int</td> <td>1</td> <td>起始页</td> </tr> <tr> <td>limit</td> <td>是</td> <td>int</td> <td>10</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;admin_id&amp;quot;: 1, &amp;quot;cdr_uuid&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;end_stamp&amp;quot;: &amp;quot;2021-08-28 00:02:06&amp;quot;, &amp;quot;extno&amp;quot;: &amp;quot;1001&amp;quot;, &amp;quot;group&amp;quot;: &amp;quot;default&amp;quot;, &amp;quot;hideTel&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;id&amp;quot;: 1, &amp;quot;info_uuid&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;1001&amp;quot;, &amp;quot;passwd&amp;quot;: &amp;quot;abc@123&amp;quot;, &amp;quot;play_screen&amp;quot;: false, &amp;quot;project_id&amp;quot;: 1, &amp;quot;queue&amp;quot;: false, &amp;quot;role&amp;quot;: 0, &amp;quot;status&amp;quot;: true, &amp;quot;telephone&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;time&amp;quot;: 0, &amp;quot;roleName&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;projectName&amp;quot;: &amp;quot;test&amp;quot;, &amp;quot;reg&amp;quot;: &amp;quot;Registrations:&amp;lt;br/&amp;gt;Total items returned: 0&amp;lt;br/&amp;gt;&amp;quot; }], &amp;quot;count&amp;quot;: 50 }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>int</td> <td>坐席编号</td> </tr> <tr> <td>name</td> <td>string</td> <td>坐席名称</td> </tr> <tr> <td>passwd</td> <td>string</td> <td>坐席密码</td> </tr> <tr> <td>admin_id</td> <td>int</td> <td>坐席所属用户编号</td> </tr> <tr> <td>extno</td> <td>int</td> <td>坐席号</td> </tr> <tr> <td>project_id</td> <td>int</td> <td>坐席所属项目编号</td> </tr> <tr> <td>project_name</td> <td>string</td> <td>坐席所属项目名称</td> </tr> <tr> <td>role</td> <td>int</td> <td>角色</td> </tr> <tr> <td>role_name</td> <td>string</td> <td>角色名称</td> </tr> <tr> <td>reg</td> <td>string</td> <td>是否注册,</td> </tr> <tr> <td>queue</td> <td>Boolean</td> <td>排队</td> </tr> <tr> <td>end_stamp</td> <td>date</td> <td>标记</td> </tr> <tr> <td>status</td> <td>Boolean</td> <td>用户状态</td> </tr> <tr> <td>group</td> <td>string</td> <td>标签组</td> </tr> <tr> <td>hideTel</td> <td>string</td> <td>号码脱敏</td> </tr> </tbody> </table> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 项目分配接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent/batchProject</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>ids</td> <td>是</td> <td>string</td> <td></td> <td>编号,多个使用逗号分割</td> </tr> <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;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 批量修改密码接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent/batchPass</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>ids</td> <td>是</td> <td>string</td> <td></td> <td>坐席编号,多个逗号分割</td> </tr> <tr> <td>passwd</td> <td>是</td> <td>string</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> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 修改坐席名称接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent/editName</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>id</td> <td>是</td> <td>int</td> <td></td> <td>座席编号</td> </tr> <tr> <td>name</td> <td>是</td> <td>string</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> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 修改坐席角色接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent</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>role</td> <td>是</td> <td>int</td> <td></td> <td>角色编号</td> </tr> <tr> <td>ids</td> <td>是</td> <td>string</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> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 修改坐席标签组接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent/batchGroup</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>group</td> <td>是</td> <td>String</td> <td></td> <td>标签组名称</td> </tr> <tr> <td>ids</td> <td>是</td> <td>string</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> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 获取角色接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/role/list</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> <p>POST</p> <p><strong>返回示例</strong></p> <p>{ &quot;msg&quot;: &quot;&quot;, &quot;code&quot;: 0, &quot;data&quot;: [{ &quot;id&quot;: 1, &quot;name&quot;: &quot;个人&quot;, &quot;permission&quot;: 4, &quot;allow_down&quot;: true, &quot;allow_inspection&quot;: true, &quot;hide_tel&quot;: &quot;none&quot;, &quot;menus&quot;: &quot;26,27,28,29,31,34&quot;, &quot;admin_id&quot;: 1 }] }</p> </li> </ul> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>int</td> <td>角色编号</td> </tr> <tr> <td>name</td> <td>string</td> <td>角色名称</td> </tr> <tr> <td>permission</td> <td>string</td> <td>权限类型</td> </tr> <tr> <td>allow_down</td> <td>boolean</td> <td>是否允许下载</td> </tr> <tr> <td>allow_inspection</td> <td>boolean</td> <td>是否允许质检</td> </tr> <tr> <td>hide_tel</td> <td>String</td> <td>号码脱敏</td> </tr> <tr> <td>menus</td> <td>string</td> <td>菜单id</td> </tr> <tr> <td>admin_id</td> <td>int</td> <td>用户id</td> </tr> </tbody> </table> <hr /> <h3><strong>简要描述:</strong></h3> <h1>- 获取项目接口</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/project/list</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> <p>POST</p> <p><strong>返回示例</strong></p> <p>{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: [{ &quot;id&quot;: 1, //项目编号 &quot;name&quot;: &quot;test&quot;, //项目名称 &quot;greeting_file&quot;: &quot;&quot;, &quot;greeting_digits&quot;: &quot;&quot;, &quot;outbound_type&quot;: 3, &quot;parameter&quot;: 100.0000, &quot;crm_id&quot;: 1, &quot;crm_timeout&quot;: 2, &quot;waiting_file&quot;: &quot;waiting.wav&quot;, &quot;waiting_timeout&quot;: 30, &quot;gateway_id&quot;: 1, &quot;originate_timeout&quot;: 60, &quot;enable&quot;: true, &quot;admin_id&quot;: 1, &quot;prompt_recording&quot;: false, &quot;play_extno&quot;: false, &quot;acd&quot;: &quot;&quot;, &quot;msg&quot;: -1, &quot;msg_content&quot;: &quot;&quot;, &quot;expand&quot;: null, &quot;waiting&quot;: &quot;{timeout=30000}waiting.wav&quot; }] }</p> </li> <li> <ul> <li>*</li> </ul> </li> </ul> <h3><strong>简要描述:</strong></h3> <h1>- 获取标签组</h1> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../admin/agent/getGroups</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> <p>POST</p> <p><strong>返回示例</strong></p> </li> </ul> <p>复制 <code>{ &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;key&amp;quot;: &amp;quot;default&amp;quot;, &amp;quot;value&amp;quot;: &amp;quot;default&amp;quot; }] }</code></p>

页面列表

ITEM_HTML