Brekeke Contact Center Suite Wiki

CIM - Get Agent Status

Step1. Set the following script at CIM > [Script].

function getAgentStatusStatistics( cim ){
  if( cim == null ){
    return '';
  }

  var a = cim.getAllAgents();
  var s = [ 0,0,0,0,0,0];
  for( var i = 0; i < a.length; i++ ){
    var agent = a[i];
    var c = agent.getStatus();
    s[ c ] ++;
  }
  var ret = '';
  for( var i = 0; i < s.length; i++ ){
    ret += cim.getAgentStatusString( i ) + " : " + s[i] + "<br>";
  }
  return ret;
}

 

Step 2. Execute the script with the following function name and parameter.

 

Related Links:

 

Yes No
Suggest Edit