Cisco Cisco Computer Telephony Integration Option 8.5 Reference Guide

Page of 152
 
4-11
Cisco ICM Software CTI Driver for Siebel 7 Reference Guide Release 6.0(0)
 
Chapter 4      Broadcast Statistics
Invoking Service Methods
   Comments     = ""
   Title        = "Log In (Phone)"
   ExecuteAll   = "TRUE"
   CmdData      = ""
 [Command:InsertAgentStatBroadcast]
   Profile       = ""
   Comments      = "Add a Broadcast Message record for this agent/position"
   CmdData       = "InsertAgentStatBroadcast"
   ServiceMethod = "Cisco Broadcast Stats.AddUserToBroadcast"
   Hidden        = "TRUE"
   [CmdData:InsertAgentStatBroadcast]
      Comments              = ""
      ServiceParam.UserName = "{@UserName}"
      ServiceParam.Abstract = CTIAgentStat_{@UserName}
ClearAgentBroadcasts Function 
ClearAgentBroadcasts(strUserName, strPrefix)
This service method must be used in the Login command to remove any 
associations between the agent having the given Siebel login name and all 
broadcast messages whose abstracts begin with “strPrefix.”
Note
Use “CTISkillStat_” as the prefix for skill group messages, “CTIAgentStat_” as 
the prefix for agent messages, and “CTI*Stat_” as the prefix to match both.
This service method should be called when the agent first logs into Siebel, so that 
the agent will initially not receive any skill group statistics.
function ClearAgentBroadcasts(strUserName, strPrefix)
{
// Find the Position used to send statistics to this agent.
var strPositionId = FindPositionId(strUserName);
if (strPositionId == "")
{
ShowStatusText("Can't find or create Position for login name " + strUserName, 
true);
return;
}