Feedback

  • Contents
 

IS_Action_EndBreak

Definition

This action provides the ability to send an end break to Dialer to make the agent available to take Dialer calls.  This action is used in conjunction with the BeginBreak function.  This action flags an agent's status so that the agent will receive campaign calls. Be careful.  IS_Action_EndBreak does not change the agent's status from a DND (Do Not Disturb) state to an "available" state.  Before calling IS_Action_EndBreak, you must set the agent's status to an available condition using IS_Action_ClientStatus.statusId.  Otherwise, ACD calls will not be routed to the agent after he or she returns from the break.  Scripter will recognize click events from any HTML element whose name has an associated action documented in this API (e.g.: "IS_Action_CallComplete").  If the script needs to associate several buttons with the same action, then define the action using a meta element and call the click event on the meta element from the button(s).

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_EndBreak() {
  IS_Action_EndBreak = function(error) {
    if (error) {
      console.error("IS_Action_EndBreak failed.");
    } else {
      console.log("IS_Action_EndBreak succeeded.");
    }
  }
}

Example 1

<body>
    <input type=button name="IS_Action_EndBreak" value="Take More Calls">
</body>

Example 2

<head>
    <meta name="IS_Action_EndBreak">
    <script language="javascript">
        function IS_EndBreak(p_availableStatus, p_page) {
            IS_Action_ClientStatus.statuskey = p_availableStatus;
            IS_Action_ClientStatus.click();
            IS_Action_EndBreak.click();
            if (p_page != null) location.href = p_page;
        }
    </script>
</head>
<body>     <input type=button value="Go Available" onclick="IS_EndBreak(‘Available');"> </body>