Jump to: navigation, search
(Update with the copy of version: draft)
(Update with the copy of version: draft)
Line 1: Line 1:
 
= Configuration =
 
= Configuration =
== Description ==
+
{{NoteFormat|Documentation for this software has moved to a new home. Please update links and bookmarks to content hosted at https://all.docs.genesys.com/WID/Current/SDK/ChannelSelector-combined#Configuration.}}
ChannelSelector shares the configuration namespace '_genesys.widgets.channelselector'. ChannelSelector has UI options to enable/disable channels, hide channels, add new channels and display Estimated Waiting Time details. All the channels are displayed based on the array of objects order defined in channels config. To hide a particular channel, simply remove corresponding array object.
 
 
 
{{NoteFormat|Estimated Wait Time can only be configured for WebChat, Callback, ClickToCall and CallUs channels. It may not be applicable for other channels. If configured for Send Message channel, it will always be shown as available regardless of any Estimated Wait Time value.}}
 
== Example ==
 
<pre>
 
window._genesys.widgets.channelselector = {
 
 
 
ewtRefreshInterval: 10,
 
 
 
channels: [{
 
 
 
enable: true,
 
clickCommand: 'CallUs.open',
 
displayName: 'Call Us',
 
i18n: 'CallusTitle',
 
icon: 'call-outgoing',
 
html: '<img src='http://placehold.it/100x100'>',
 
ewt: {
 
display: true,
 
queue: 'callus_ewt_test_eservices',
 
availabilityThresholdMin: 300,
 
availabilityThresholdMax: 480,
 
hideChannelWhenThresholdMax: false
 
}
 
},
 
 
 
{
 
enable: true,
 
clickCommand: 'WebChat.open',
 
displayName: 'Web Chat',
 
i18n: 'ChatTitle',
 
icon: 'chat',
 
html: '',
 
ewt: {
 
display: true,
 
queue: 'chat_ewt_test_eservices',
 
availabilityThresholdMin: 300,
 
availabilityThresholdMax: 480,
 
hideChannelWhenThresholdMax: false
 
}
 
},
 
 
 
{
 
enable: true,
 
clickCommand: 'SendMessage.open',
 
displayName: 'Send Message',
 
i18n: 'EmailTitle',
 
icon: 'email',
 
html: ''
 
},
 
 
 
{
 
enable: true,
 
clickCommand: 'Callback.open',
 
displayName: 'Receive a Call',
 
i18n: 'CallbackTitle',
 
icon: 'call-incoming',
 
html: '',
 
ewt: {
 
display: true,
 
queue: 'callback_ewt_test_eservices',
 
availabilityThresholdMin: 300,
 
availabilityThresholdMax: 480,
 
hideChannelWhenThresholdMax: false
 
}
 
},
 
 
 
{
 
enable: true,
 
name: 'CoBrowse',
 
clickCommand: 'CoBrowse.open',
 
displayName: 'Co-browse',
 
i18n: 'CobrowseTitle',
 
icon: 'cobrowse',
 
html: ''
 
}]
 
};
 
</pre>
 
 
 
== Options ==
 
{|
 
|-
 
! Name
 
! Type
 
! Description
 
! Default
 
! Required
 
|-
 
| ewtRefreshInterval
 
| number
 
| EWT is updated for every time interval (seconds) defined here.
 
| 10
 
| n/a
 
|-
 
| channels[].enable
 
| boolean
 
| Enable/Disable a channel.
 
| true
 
| n/a
 
|-
 
| channels[].clickCommand
 
| string
 
| The CXBus command name for opening a particular widget when clicked on this channel.
 
| none
 
| Always
 
|-
 
| channels[].readyEvent
 
| string
 
| Subscribes to this ready event published by a plugin and enables the channel when that plugin is ready.
 
| none
 
| n/a
 
|-
 
| channels[].displayName
 
| string
 
| A channel name to display on ChannelSelector widget.
 
| none
 
| Always
 
|-
 
| channels[].i18n
 
| string
 
| To support localization of channel display name, this takes a key parameter of channelselector section in language pack file. Overides above displayName.
 
| none
 
| n/a
 
|-
 
| channels[].icon
 
| string
 
| Select from one of the Genesys Widgets icons by specifying icon css class name.
 
| none
 
| Always
 
|-
 
| channels[].html
 
| string
 
| Overides and replaces the icon section of a channel with the html (image tag) defined here.
 
| none
 
| n/a
 
|-
 
| chat.ewtMax
 
| number
 
| If EWT is greater than ewtMin and less this value (seconds), Wait time is shown with red alert icon.
 
| 480
 
| n/a
 
|-
 
| channels[].ewt.display
 
| boolean
 
| To display estimated waiting time details.
 
| true
 
| n/a
 
|-
 
| channels[].ewt.queue
 
| string
 
| EWT service channel virtual queue.
 
| none
 
| Always
 
|-
 
| channels[].ewt.availabilityThresholdMin
 
| number
 
| If EWT is greater than 0 and less this minimum threshold value (seconds), estimated waiting time is shown with yellow warning icon.
 
| 300
 
| n/a
 
|-
 
| channels[].ewt.availabilityThresholdMax
 
| number
 
| If EWT is greater than minimum threshold value and less maximum threshold value (seconds), estimated waiting time is shown with red alert icon.
 
| 480
 
| n/a
 
|-
 
| channels[].ewt.hideChannelWhenThresholdMax
 
| boolean
 
| Hides this channel when estimated waiting time is greater than maximum threshold value.
 
| true
 
| n/a
 
|-
 
|}
 
 
 
 
[[Category:V:PSAAS:Public]]
 
[[Category:V:PSAAS:Public]]

Revision as of 21:52, October 17, 2019

Configuration

Important
Documentation for this software has moved to a new home. Please update links and bookmarks to content hosted at https://all.docs.genesys.com/WID/Current/SDK/ChannelSelector-combined#Configuration.
Comments or questions about this documentation? Contact us for support!