Cisco Cisco Computer Telephony Integration OS 8.5 Reference Guide

Page of 120
   
4-11
CTI Driver for Siebel 7 Reference Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 4      Broadcast Statistics
Invoking Service Methods
      ServiceParam.Prefix   = "CTISkillStat_"
RemoveUserFromBroadcast Function 
RemoveUserFromBroadcast(strUserName, strMsgAbstract)
This service method must be used to remove any association between the employee having the given 
Siebel login name and the broadcast message used to send agent or skill group statistics based on the 
strMsgAbstract parameter that will specify the broadcast message.
This service method has to be called on the OnEventSkillGroupRemove event to remove an association 
between an agent and skill group statistics broadcast message and as a subcommand for the Logout 
command to remove an association between an agent and an agent statsitics broadcast message.
function RemoveUserFromBroadcast(strUserName, strMsgAbstract)
{
// RemoveUserFromBroadcast:
//
// Removes any association between the Employee having the given
// Siebel login name and the Broadcast Message used to send
// agent or skill group statistics.
// Find the Position used to send statistics to this user.
var strPositionId = FindPositionId(strUserName);
if (strPositionId == "")
{
ShowStatusText("Can't find or create Position for login name " + strUserName, true);
return;
}
// Find the Broadcast Message
var boBroadcastMessage = null;
var bcBroadcastMessage = null;
GetBroadcastMsg(strMsgAbstract, boBroadcastMessage, bcBroadcastMessage);
if (bcBroadcastMessage == null) {
ShowStatusText("Unable to find or create Broadcast Message " + strMsgAbstract, true);
return null;
}
var bcMVG = bcBroadcastMessage.GetMVGBusComp("Position Id");
if (bcMVG == null)
{
ShowStatusText("Unable to create MVG BusComp for Position Id", true);
 
bcBroadcastMessage = null;
 
boBroadcastMessage = null;
return;
}
// Search through the existing Position associations with
// this Broadcast Message for one whose Row Id
// matches the user's statistics Position Id.  If one
// is found, remove it.
bcMVG.SetSearchSpec("Id", strPositionId);
bcMVG.ExecuteQuery( ForwardOnly );