I’m trying to create a statistic in the ccpulse to visualize the vq that the agent is attending.
I have passed a few steps that could bring this information, I put the filter and the formula however it does not work
result.Text = state.type == “AgentState” ? GetQueue() : “n/a”;
function GetQueue()
{
// testing CallData.Filter method. Returns
var r = “”;
for(var e = new Enumerator(state.CallData.Filter(“Key=R_TargetVQ”)); !e.atEnd(); e.moveNext())
{ if (e.item().Key==‘R_TargetVQ’)
r += e.item().Value + " ";
}
return r;
}
I would like to know if you have any formula that can read attach that the script sends me with the names of the alias or something of the type to be able to visualize my vq.
result.Text = state.type == “AgentState” ? GetSubject() : “n/a”;
function GetSubject()
{
// testing CallData.Filter method. Returns
var out = “”;
for(var e = new Enumerator(state.CallData); !e.atEnd(); e.moveNext())
{
out = out + e.item().toString();
}