new ArchActionPlayEstimatedWaitTime(corePlayEstimatedWaitTimeActionViewModel)
The Architect Scripting class for the Play Estimated Wait Time action.
Instances of this action should be created by calling ArchFactoryActions#addActionPlayEstimatedWaitTime
Parameters:
| Name | Type | Description |
|---|---|---|
corePlayEstimatedWaitTimeActionViewModel |
Object | ( Internal ) an Architect core play estimated wait time action view model. |
Extends
Members
-
static, readonly displayTypeName :string
-
Returns the display type name string 'ArchActionPlayEstimatedWaitTime'.
-
readonly displayTypeName :string
-
Returns the display type name string 'ArchBaseAction'.
- Overrides:
-
readonly displayTypeNameArchitect :string
-
The Architect action type label
- Inherited From:
-
readonly estimatedWaitTime :ArchValueDuration
-
The duration value that specifies the estimated wait time for the caller in the queue.
-
estimatedWaitTimeAudio :ArchAudio
-
The audio expression for the audio that informs the external participant on the call of their estimated wait time based on the action settings. You cannot set the audio in this expression directly.
-
readonly isArchActionPlayEstimatedWaitTime :boolean
-
Returns true indicating that this is an ArchActionPlayEstimatedWaitTime instance.
-
readonly isArchBaseAction :boolean
-
A property that can be checked to verify the scripting object is a type of ArchBaseAction
- Inherited From:
-
readonly isMenuChoiceAction :boolean
-
Returns whether or not this action is the action property for a
menu choice. For example, theArchMenuDisconnect#actionDisconnectproperty on anArchMenuDisconnectinstance.- Inherited From:
-
readonly isReachable :boolean
-
Returns whether or not this action is reachable at runtime.
- Inherited From:
-
readonly isSecure :boolean
-
Returns whether or not this action is secure which means either the action by its very nature is secure or it consumes secure data.
- Inherited From:
-
readonly isUnreachable :boolean
-
Returns whether or not this action is unreachable at runtime.
- Inherited From:
-
readonly logStr :string
-
A string suitable for logging that contains information about this action. This will contain the action tracking id, name and scripting type name.
- Inherited From:
-
name :string
-
The name of the action
- Inherited From:
-
readonly parentFlow :ArchBaseFlow
-
Returns the parent flow for this action.
- Inherited From:
-
readonly parentMenuChoice :ArchBaseMenuChoice
-
Returns the parent menu choice if this action is the action for a
menu choice. Otherwise, nothing is returned.- Inherited From:
-
readonly parentState :ArchState
-
Returns the parent state that contains this action if this action is in a
state. Otherwise, nothing is returned.- Inherited From:
-
readonly parentTask :ArchTask|ArchTaskLoop
-
Returns the parent task that contains this action if this action is in a
taskorlooping task. Otherwise, nothing is returned.- Inherited From:
-
playbackMode :string
-
The playback mode for the estimated wait time. The string values in
ArchEnums#PLAY_ESTIMATED_WAIT_STYLESlists valid values. -
readonly roundingInterval :ArchValueDuration
-
This option is available if the
playback modeis set to either $ArchEnums#PLAY_ESTIMATED_WAIT_STYLES.aboutorArchEnums#PLAY_ESTIMATED_WAIT_STYLES.lessThanmodes. Select the amount of time in which to calculate estimated wait time and return approximate or less than calculations. Architect rounds up the estimated wait time to the selected threshold in even minutes. This property is the same as either the "Padding" or "Round Up Interval" in the Architect UI. -
readonly specificRoundingIntervals :Array.<ArchValueDuration>
-
A snapshot of the specific rounding intervals for the play estimated wait time action. Each item contained within this array is an
ArchValueDuration. Items in this array can be modified and the changes will be reflected appropriately for the action. To add a new specific rounding interval to the play estimated wait time action, use theaddSpecificRoundingIntervalfunction.ArchActionPlayEstimatedWaitTime#getSpecificRoundingIntervalByIndexcan also be called to get a specific rounding interval which can then be modified. To remove a specific rounding interval from this array, use theArchActionPlayEstimatedWaitTime#deleteSpecificRoundingIntervalByIndexfunction. Remember, this is a snapshot of intervals returned at the time this was called and modifying the array itself will not reflect changes on the action. -
readonly specificRoundingIntervalsCount :number
-
The number of specific rounding intervals configured for the play estimated wait time action.
-
readonly supportsSpecificRoundingIntervals :boolean
-
Returns whether the play estimated wait time action supports specific rounding intervals based on the playback mode that is set.
-
readonly trackingId :number
-
The integer tracking identifier for this action. This is the numeric identifier is displayed in the Architect user interface.
- Inherited From:
Methods
-
addSpecificRoundingInterval() → {ArchValueDuration}
-
Adds a new rounding interval to the play estimated wait time action. This function will throw an error if the playback mode is set to
ArchEnums#PLAY_ESTIMATED_WAIT_STYLES.rangeorArchEnums#PLAY_ESTIMATED_WAIT_STYLES.exactsince specific rounding intervals are not supported on those playback modes. The returned value is the new specific rounding interval of typeArchValueDurationwhich can then be modified.Returns:
ArchValueDuration -
deleteSpecificRoundingIntervalByIndex(index)
-
Removes a specific rounding interval from the play estimated wait time action at the specified index.
Parameters:
Name Type Description indexnumber the zero based index of the specific rounding interval to delete. This value should be a non-negative integer. For example: for the first specific rounding interval, pass in 0.
-
getSpecificRoundingIntervalByIndex(index) → {ArchValueDuration}
-
Returns a specific rounding interval from the play estimated wait time action at the specified index.
Parameters:
Name Type Description indexnumber the zero based index of the specific rounding interval to delete. This value should be a non-negative integer. For example: for the first specific rounding interval, pass in 0.
Returns:
ArchValueDuration