Feedback

  • Contents
 

IS_Action_RequestBreak

Definition

IS_Action_RequestBreak initiates a break request for the Agent.  Dialer will check to see if other agents are available to handle any outstanding calls. If there are enough agents, the break request is granted. The last agent logged into a campaign is granted a break after pending call(s) for the agent are completed. When a break request is granted, the IS_Event_BreakGranted event is called so that the script may redirect the browser to a break page.

Attributes

[callback]

The callback property ensures that this action executes asynchronously in Interaction Connect. Starting with 2018 R3, all Interaction Scripter actions (IS_Actions) provide a callback property for use in Connect scripts only. In the example below, statements inside the highlighted callback function block execute only after the action completes. The callback will return an error if the action fails. See Writing custom scripts for Interaction Connect or Scripter .NET.

Here's how to use the .callback property in a script for Interaction Connect:

function IS_Action_RequestBreak() {
  IS_Action_RequestBreak.callback = function(error) {
    if (error) {
      console.error("IS_Action_RequestBreak failed.");
    } else {
      console.log("IS_Action_RequestBreak succeeded.");
    }
  }
}

Example

This example creates a "Break" button that invokes the "IS_Action_RequestBreak" script function.

<head>
    <meta name="IS_Action_RequestBreak">
    <script language=javascript>
        function Break() {
            IS_Action_RequestBreak.click();
        }
    </script>
</head>
<body>     <input type=button value="Break" onclick="Break();"> </body>