here is what I have done in the past for a customer. not that a stat needs to be created for each channel.
the custom formula for email is
to change for each channel, change the line that contains
if (dn.DN === "email")
Formula to get time in state for email channel
function GetStatusTime(state) {
if (state === null || state.type !== "AgentCurrentState") return null;
var arr = [];
var res = '';
var n = state.DNs.length;
if (n > 0) {
for (var i = 0; i < n; ++i) {
var dn = state.DNs[i];
//voice = dn.DN !== "email"
if (dn.DN === "email") {
var actionsLength = dn.Actions.length
for (var j = 0; j < actionsLength; j++) {
if (dn.Actions[j].Action) {
arr[j] = dn.Actions[j].StartTime
}
}
break;
}
}
} else {
// Both Channels Logged out
arr [0] = state.StartTime
}
var max = Math.max.apply(Math, arr)
date = Math.floor(Date.now() / 1000);
res = date - max;
function SecToStr(sec) {
var hr = Math.floor(sec / 3600);
var mn = Math.floor((sec % 3600) / 60);
var sc = (sec % 3600) % 60;
return (hr < 10 ? '0' : '') + hr + ':' + (mn < 10 ? '0' : '') + mn + ':' + (sc < 10 ? '0' : '') + sc;
}
return SecToStr(res);
}
Result = GetStatusTime(Data.Current_Status.Value);
------------------------------
Sean Mahon
Telstra Corporation Ltd
------------------------------
Original Message:
Sent: 07-29-2019 10:39
From: Anandapriyan Ravichandran
Subject: Pulse Current Status with each media
Hi Team,
We are setting up pulse agent login template. And we try to choose to display format as String. It displayed only duration.
Now we need to display each media status and with the duration.
So we selected display format as status.
and for each media and duration in the agent login widget.
And we select the following options.
- Show status
- Add duration
- Add media
And we saved it.
And then we logged in to the WDE. The status and duration were displayed only for Email .
For eg: Email || Not ready for next call.(00:01:00) . But not for voice and chat media.
And similarly we have agent status editor in the options. Whether we need to use it..? To display all medias available in the Pulse application.
Looking forward for your suggestions.. Please do the needful.
Thanks,
Anandapriyan.R
#Reporting/Analytics
------------------------------
Anandapriyan Ravichandran
Pointel (formerly Touch Point)
------------------------------