📄 softagentinfo.js
字号:
var myAgentInfo=new SoftAgentInfo("","","","");
function SoftAgentInfo(workCode,agentType,groupno,bAutoBusy)
{
this.workCode=workCode;
this.agentType=agentType;
this.groupno=groupno;
this.bAutoBusy=bAutoBusy;
}
function setSoftAgentInfo(workCode,agentType,groupno,bAutoBusy,agentLevel)
{
myAgentInfo.workCode=workCode;
myAgentInfo.agentType=agentType;
myAgentInfo.groupno=groupno;
myAgentInfo.bAutoBusy=bAutoBusy;
myAgentInfo.agentLevel=agentLevel;
}
var myClientInfo=new ClientInfo("","","","","","","")
function ClientInfo(callHandler,originalID,callerID,calleeID,callType,serviceID,clientType)
{
this.callHandler=callHandler;
this.originalID=originalID;
this.callerID=callerID;
this.callerID=calleeID;
this.callType=callType;
this.serviceID=serviceID;
this.clientType=clientType;
}
function setClientInfo(callHandler,originalID,callerID,calleeID,callType,serviceID,clientType)
{
myClientInfo.callHandler=equalNull(callHandler)==true?myClientInfo.callHandler:callHandler;
myClientInfo.originalID=equalNull(originalID)==true?myClientInfo.originalID:originalID;//originalID;
myClientInfo.callerID=equalNull(callerID)==true?myClientInfo.callerID:callerID;//callerID;
myClientInfo.callerID=equalNull(calleeID)==true?myClientInfo.calleeID:calleeID;//calleeID;
myClientInfo.callType=equalNull(callType)==true?myClientInfo.callType:callType;//callType;
myClientInfo.serviceID=equalNull(serviceID)==true?myClientInfo.serviceID:serviceID;//serviceID;
myClientInfo.clientType=equalNull(clientType)==true?myClientInfo.clientType:clientType;//clientType;
//alert('clientInfo:'+callHandler+','+callerID+','+originalID+','+calleeID+','+callType+','+serviceID+','+clientType);
}
function equalNull(val)
{
if(val=='') return true;
}
function getCallType()
{
return myClientInfo.callType;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -