Cisco Cisco Computer Telephony Integration OS 8.5 Reference Guide

Page of 160
 
Chapter 4      Broadcast Statistics
Invoking Service Methods
4-12
CTI Driver for Siebel 7 Reference Guide for Cisco ICM/IPCC Enterprise & Hosted Editions, Release 7.0(0)
   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;
}