1、获取在线坐席列表
CTI.Info.getAgentList(cb)
1.1 返回数据示例
{"code":200,"message":"ok","data":[{"ag_id":"2389","pho_num":"8004","ag_name":"\u90ce\u745e\u6052",
"ag_num":"6158"},{"ag_id":"2161","pho_num":"8039","ag_name":"\u62db\u80582","ag_num":"8039"}]}
1.2 data字段说明
字段 | 说明 |
ag_id | 坐席id |
ag_num | 坐席工号 |
ag_name | 坐席名称 |
pho_num | 分机号码 |
2、获取置忙原因
CTI.Info.getBusyReason(cb)
2.1 返回数据示例
{"code":200,"message":"ok","data":[{"id":"58","vcc_id":"2","ag_stat":"1","stat_reason":"\u5c0f\u4f11"},{"id":"59","vcc_id":"2","ag_stat":"1","stat_reason":"\u5348\u4f11"},{"id":"73","vcc_id":"2","ag_stat":"1","stat_reason":"\u4f1a\u8bae"},{"id":"74","vcc_id":"2","ag_stat":"1","stat_reason":"\u5fd9\u788c\u4e2d"},{"id":"76","vcc_id":"2","ag_stat":"1","stat_reason":"\u5c31\u9910"}]}
2.2 data字段说明
字段 | 说明 |
id | 明细ID |
vcc_id | 企业ID |
ag_stat | 原因类型(1登录2置忙) |
stat_reason | 原因名称 |
3、获取坐席基础信息
CTI.Info.getAgentBaseInfo(cb)
3.1 返回数据示例
{"code":200,"message":"success","data":{"id":"200500","ag_name":"\u738b\u6210","vcc_id":"2000005","ag_num":"1001","pho_num":"","pho_id":"0","pho_type":null,"ag_password":"e10adc3949ba59abbe56e057f20f883e","que_id":"200024-1","inpop_page":"","outpop_page":"","que":[{"que_name":"\u547c\u5165\u547c\u51fa\u6280\u80fd\u7ec4","id":"200024"}],"cc_phone":{"59222702":"59222702"}}}
3.2 data字段说明
字段 | 说明 |
id | 明细ID |
vcc_id | 企业ID |
ag_stat | 原因类型(1登录2置忙) |
stat_reason | 原因名称 |
id | 坐席ID |
ag_name | 坐席名称 |
vcc_id | 企业ID |
ag_num | 坐席工号 |
pho_num | 分机号 |
pho_id | 分机ID |
pho_type | 分机类型(1: PSTN电话2: SIP网关5: SIP远程分机) |
ag_password | 坐席密码 |
que_id | 技能组ID |
inpop_page | 呼入弹屏页面地址 |
outpop_page | 呼出弹屏页面地址 |
que | 技能组信息 |
cc_phone | 中继号码信息 |
4、获取主叫号码
CTI.Info.getCallNum(cb)
4.1 返回数据示例
{"code":200,"message":"success","data":{"num":["59222702"]}}
4.2 data字段说明
5、获取所有技能组
CTI.Info.getQueue(cb)
5.1 返回数据示例
{"code":200,"message":"ok","data":[{"id":"200024","que_name":"\u547c\u5165\u547c\u51fa\u6280\u80fd\u7ec4","vcc_id":1,"vcc_code":"ztth"}]}
5.2 data字段说明
字段 | 说明 |
id | 技能组ID |
que_name | 技能组名称 |
vcc_id | 技能组所属的企业id |
vcc_code | 技能组所属的企业代码 |
6、获取正在通话中的坐席
CTI.Info.getOnlineAgent(cb)
6.1 返回数据示例
{"code":200,"message":"ok","data":[{"ag_id":"10","pho_num":"1322","ag_time":"3:59:59"}]}
6.2 data字段说明
字段 | 说明 |
ag_id | 坐席id |
pho_num | 分机号码 |
ag_time | 状态持续的时间(HH:MM:SS) |
返回给cb方法的参数
参数 | 类型 | 描述 |
code | number | 成功为200,401、402为企业代码错误,404为坐席工号不存在 |
data | object | 对应获取的数据 |
message | string | 消息的文字描述,成功通常是success |