- Contents
Interaction Scripter Developer's Guide
Break Process JavaScript
Break request
function RequestBreak() {
// Send a break request
IS_Action_RequestBreak.click();
}
Break-granted event
function IS_Event_BreakGranted() {
// Set the agent's status to unavailable
IS_Action_ClientStatus.statuskey = 'On Break';
IS_Action_ClientStatus.click();
// Goto the designated break page
location.href = 'break.htm';
}
Remember that the break-granted event should appear on any page in which a break might be granted -- regardless where it was requested. This includes:
-
Any page that dispositions a call
-
The call waiting page
Return from break
function EndBreak() {
// Return the agent to the Dialer available agents pool
IS_Action_EndBreak.click();
// Goto the call-waiting page. This page will also set the agent status to available
location.href = 'index.htm';
}