Scripter: Pseudo-Toolbar de V4 en V5

De Vocalcom.latam Wiki
Saltar a: navegación, buscar

Agregar en InterfaceDesigner\Upload\Default\Actions un archivo JS con el siguiente contenido:

function GetAgentLink() {
	var toolbar = agentlink.Telephony.GetSession();
	toolbar.CallInformation = new Object();
	
	toolbar.CallInformation.ANI = toolbar.ContactNumber;
	toolbar.CallInformation.AssociateData = toolbar.AssociateData;
	toolbar.CallInformation.Campaign = toolbar.CampaignId;
	toolbar.CallInformation.CrmOid = toolbar.CrmOid;
	toolbar.CallInformation.DNIS = toolbar.ContactNumber;
	toolbar.CallInformation.Indice = toolbar.Indice;
	toolbar.CallInformation.Memo = toolbar.Memo;
	toolbar.CallInformation.MustQualifyCall = toolbar.MustQualify();
	toolbar.CallInformation.PlanningId = toolbar.PlanningId;
	toolbar.CallInformation.QualificationCode = toolbar.QualificationCode;
	toolbar.CallInformation.QualificationDetail = toolbar.QualificationDetail;
	toolbar.CallInformation.QualificationGroup = toolbar.QualificationGroup;
	toolbar.CallInformation.ScriptAddress = toolbar.ScriptAddress;
	toolbar.CallInformation.ScriptMode = toolbar.ScriptMode;
	toolbar.CallInformation.StatID = toolbar.SessionId;
	toolbar.CallInformation.WaitDuration = toolbar.WaitDuration;
	toolbar.CallInformation.WaitDurationAnnounced = toolbar.WaitDurationAnnounced;
	
	toolbar.CallInformation.ComReason = null;
	toolbar.CallInformation.ComStatus = null;
	toolbar.CallInformation.ComType = null;
	toolbar.CallInformation.Database = null;
	toolbar.CallInformation.DataConnection = null;
	toolbar.CallInformation.ItemID = null;
	toolbar.CallInformation.Retry = null;
	toolbar.CallInformation.ScriptParams = null;
	toolbar.CallInformation.Status = null;
	
	return toolbar;
}

Recompilar los scripts que utilizen métodos de la toolbar.