|
// 队列状态变化
function OnAnyChatQueueStatusChanged(dwObjectType, dwObjectId) {
AddLog('function OnAnyChatQueueStatusChanged(dwObjectType: ' + dwObjectType + ',dwObjectId: ' + dwObjectId, LOG_TYPE_API);
refreshAgentServiceInfo();
}
//刷新坐席进入服务区域后的显示信息
function refreshAgentServiceInfo() {
if (userType == 2) {
var queueCount = BRAC_ObjectGetIntValue(ANYCHAT_OBJECT_TYPE_AREA, hallbuinessNum, ANYCHAT_AREA_INFO_QUEUECOUNT);
var queuesUserCount = BRAC_ObjectGetIntValue(ANYCHAT_OBJECT_TYPE_AREA, hallbuinessNum, ANYCHAT_AREA_INFO_QUEUEUSERCOUNT);
//累计服务时长
var serviceTotalTime = BRAC_ObjectGetIntValue(ANYCHAT_OBJECT_TYPE_AGENT, currentAgentID, ANYCHAT_AGENT_INFO_SERVICETOTALTIME);
//累计服务的用户数
var serviceUserCount = BRAC_ObjectGetIntValue(ANYCHAT_OBJECT_TYPE_AGENT, currentAgentID, ANYCHAT_AGENT_INFO_SERVICETOTALNUM);
$('#userCounts').text(queuesUserCount + "个");
$('#passCounts').text(serviceUserCount + "人");
$('#lineCounts').text(queueCount + "个");
}
}
|
|