工作台
<h3><strong>简要描述:</strong></h3>
<ul>
<li>
<p>使用webscoket 连接服务端,接收信息</p>
<p>websocket = new WebSocket(“ws://“ +ip+ “/agent/monitor?” + access_token;</p>
<p>生成客户信息表单和提交表单,与 录音质检中:质检 是一样的</p>
</li>
</ul>
<p><strong>返回示例</strong></p>
<pre><code> {&quot;method&quot;:&quot;notice&quot;,&quot;status&quot;:0,&quot;time&quot;:&quot;00:04:17&quot;}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>method</td>
<td>string</td>
<td>notice为等待状态</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>坐席状态,0:签出,1:空闲,2:忙碌,3:事务,信息未提交状态</td>
</tr>
<tr>
<td>time</td>
<td>string</td>
<td>坐席等待时长</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {&quot;method&quot;:&quot;message&quot;,&quot;msg&quot;:&quot;公告内容&quot;}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>method</td>
<td>string</td>
<td>message 为接收到公告,由管理员发出</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>公告内容</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;method&quot;: &quot;info&quot;,
&quot;sessionId&quot;: &quot;32001b21-9f76-4fc5-9f5a-6bf10dc63e1c&quot;,
&quot;city&quot;: &quot;北京-北京&quot;,
&quot;extno&quot;: &quot;1003&quot;,
&quot;info&quot;: {
&quot;admin_id&quot;: 1,
&quot;edit_stamp&quot;: &quot;2021-08-30 14:13:08&quot;,
&quot;extno&quot;: &quot;1001&quot;,
&quot;fields&quot;: &quot;{\&quot;年龄\&quot;: \&quot;39\&quot;, \&quot;多选2\&quot;: [\&quot;张三\&quot;, \&quot;李四\&quot;], \&quot;下拉框\&quot;: \&quot;3\&quot;, \&quot;多选框\&quot;: [\&quot;11\&quot;], \&quot;长文本\&quot;: \&quot;\&quot;}&quot;,
&quot;group&quot;: &quot;default&quot;,
&quot;import_stamp&quot;: &quot;2021-08-26 18:17:52&quot;,
&quot;name&quot;: &quot;&quot;,
&quot;project_id&quot;: 1,
&quot;status&quot;: 0,
&quot;task_id&quot;: 0,
&quot;telephone&quot;: &quot;123456&quot;,
&quot;uuid&quot;: &quot;beeb8dda-87fb-4f7d-aa60-a4dee98e2e08&quot;
}
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>method</td>
<td>string</td>
<td>info 为接收坐席进电话了,开始进行通话弹屏</td>
</tr>
<tr>
<td>sessionId</td>
<td>string</td>
<td>话单编号</td>
</tr>
<tr>
<td>city</td>
<td>string</td>
<td>号码归属地</td>
</tr>
<tr>
<td>extno</td>
<td>string</td>
<td>坐席工号</td>
</tr>
<tr>
<td>info</td>
<td>string</td>
<td>客户信息</td>
</tr>
<tr>
<td>— admin_id</td>
<td>int</td>
<td>信息所属管理员的id</td>
</tr>
<tr>
<td>— edit_stamp</td>
<td>string</td>
<td>编辑日期</td>
</tr>
<tr>
<td>— fields</td>
<td>string</td>
<td>字段值,由crm字段生成,并提交的值</td>
</tr>
<tr>
<td>— group</td>
<td>string</td>
<td>标签组</td>
</tr>
<tr>
<td>— import_stamp</td>
<td>string</td>
<td>导入日期</td>
</tr>
<tr>
<td>— name</td>
<td>string</td>
<td>客户姓名</td>
</tr>
<tr>
<td>— project_id</td>
<td>string</td>
<td>项目编号</td>
</tr>
<tr>
<td>— status</td>
<td>string</td>
<td>呼叫状态</td>
</tr>
<tr>
<td>— task_id</td>
<td>string</td>
<td>任务编号</td>
</tr>
<tr>
<td>— telephone</td>
<td>string</td>
<td>号码</td>
</tr>
<tr>
<td>— uuid</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/logon</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>extno</td>
<td>是</td>
<td>string</td>
<td></td>
<td>坐席工号</td>
</tr>
</tbody>
</table>
<p><strong>返回信息:</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 签出 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/agent/logout</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>extno</td>
<td>是</td>
<td>string</td>
<td></td>
<td>坐席工号</td>
</tr>
</tbody>
</table>
<p><strong>返回信息:</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 下一个 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/agent/nextCall</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>返回信息:</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 通话保持 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/agent/hold</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>返回信息:</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 多方通话 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/agent/meeting</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>tel</td>
<td>是</td>
<td>string</td>
<td></td>
<td>坐席工号</td>
</tr>
</tbody>
</table>
<p><strong>返回信息:</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 加入黑名单 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/agent/addBlack</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>info_uuid</td>
<td>是</td>
<td>string</td>
<td></td>
<td>客户信息编号</td>
</tr>
</tbody>
</table>
<p><strong>返回信息:</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 获取短信内容 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/agent/getMsg</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>返回信息:</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: &quot;&quot; 短信内容
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 发送短信 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/sms_api/send</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>telephone</td>
<td>是</td>
<td>string</td>
<td></td>
<td>客户号码</td>
</tr>
<tr>
<td>msg</td>
<td>是</td>
<td>string</td>
<td></td>
<td>短信内容</td>
</tr>
</tbody>
</table>
<p><strong>返回信息:</strong></p>
<pre><code class="language-json">{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: 1 }</code></pre>