- Contents
Interaction Scripter Developer's Guide
IS_Event_PreviewTimeoutStarted
Definition
The IS_Event_PreviewTimeoutStarted event is a Predictive Event that is specifically designed for use with Preview campaigns that use a preview countdown timer. When a countdown timer is enabled for a Preview campaign, Dialer will send the IS_Event_PreviewTimeoutStarted event to a custom script when the countdown timer starts.
The IS_Event_PreviewTimeoutStarted event will only function when running a script on an Outbound Dialer Server. If you are running a script on a Manual Calling Server, which by default doesn't support the preview countdown timer feature, then the IS_Event_PreviewTimeoutStarted event will not function. The IS_Event_PreviewTimeoutStarted event can be present in a script, it just won't function because on a manual calling server an agent must manually initiate a call by clicking a button.)
Attributes
The IS_Event_PreviewTimeoutStarted event has two attributes that are passed in as argument objects.
- InteractionId
-
This is a string that holds the Id of the preview call for which the timeout has started.
- Timeout
-
This is a DateObject that indicates when the timeout will expire.
Example
<head>
<script language=javascript>
function IS_Event_PreviewTimeoutStarted(args) {
var id = args.InteractionId;
var timeout = args.Timeout;
// insert other code here as needed...
}
</script>
</head>