fcc-core
Version:
Fusion communication center.
73 lines (72 loc) • 2.79 kB
JavaScript
import { Request as cmsRequsest } from '../util/util'
export default {
baseUrl: '',
// 根据技能队列、坐席工号、坐席状态查询VDN坐席详细信息
agentDetailInfo (params) {
return cmsRequsest(params, `${this.baseUrl}/customize/agentDetailInfo`, 'post', 'CMS')
},
// 历史座席监控指标接口基本信息
getHistoryAgentInfo (params) {
return cmsRequsest(params, `${this.baseUrl}/indicators/history/agent`, 'post', 'CMS')
},
// 实时技能队列监控指标接口基本信息
getRealtimeSkillInfo (params) {
return cmsRequsest(params, `${this.baseUrl}/indicators/realtime/skill`, 'post', 'CMS')
},
// 历史技能队列监控指标接口基本信息
getHistorySkillInfo (params) {
return cmsRequsest(params, `${this.baseUrl}/indicators/history/skill`, 'post', 'CMS')
},
// 根据VDNID,技能队列查询指定技能队列下的坐席详情
getRealtimeSkillSeateInfo (params) {
return cmsRequsest(params, `${this.baseUrl}/customize/SkillInfo`, 'post', 'CMS')
},
// 根据技能队列,vdnId,示忙原因码对坐席状态进行统计
SkillStatisticsAgentState (params) {
return cmsRequsest(
params,
`${this.baseUrl}/customize/SkillStatisticsAgentState`,
'post',
'CMS'
)
},
// 统计技能队列下坐席各种状态下的人数,去除签入多个技能队列的重复统计
SkillStatisticsTotalAgentState (params) {
return cmsRequsest(
params,
`${this.baseUrl}/customize/SkillStatisticsTotalAgentState`,
'post',
'CMS'
)
},
// 批量查询坐席的呼叫信息,包括呼叫状态(保持、静音、三方通话),呼叫类型
getAgentCalls (params) {
return cmsRequsest(params, `${this.baseUrl}/customize/agentCallInfo`, 'post', 'CMS')
},
// 批量查询坐席的呼叫信息,包括呼叫状态,媒体类型
getAgentCalls2 (params) {
return cmsRequsest(params, `${this.baseUrl}/realtime/agents/agentcalls`, 'post', 'CMS')
},
// 查询单个坐席的签入技能队列信息
getAgentRealTimeSkill (params) {
return cmsRequsest(params, `${this.baseUrl}/indicators/realtime/agent`, 'post', 'CMS')
},
// 根据技能队列排队详情查询
batchmultiskill (params) {
console.log('.userInfo.vdnId', window.xw.userInfo.vdnId)
const param = {
vdnId: window.xw.userInfo.vdnId,
skillList: params.skillList
}
return cmsRequsest(
param,
`${this.baseUrl}/realtime/skills/batchmultiskill`,
'post',
'CMS'
)
},
// 查询指定callId的呼叫的基本信息
basecallinfo (params) {
return cmsRequsest(params, `${this.baseUrl}/realtime/call/basecallinfo`, 'post', 'CMS')
}
}