Revision as of 19:02, August 30, 2016 by Mgionet (talk | contribs)
Jump to: navigation, search

Configuration

Description

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.

Example

window._genesys.widgets.channelselector = {

	ewtRefreshInterval: 10,

	channels: [{

		enable: true, 
		clickCommand: 'CallUs.open', 
		readyEvent: 'CallUs.ready', 
		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', 
		readyEvent: 'WebChat.ready', 
		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', 
		readyEvent: 'SendMessage.ready', 
		displayName: 'Send Message', 
		i18n: 'EmailTitle', 
		icon: 'email', 
		html: '', 
		ewt: {
			display: true, 
			queue: 'email_ewt_test_eservices', 
			availabilityThresholdMin: 300, 
			availabilityThresholdMax: 480, 
			hideChannelWhenThresholdMax: false
			}
		}]
};

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 Live Assist 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

Configuration

Description

SendMessage and SendMessageService share the configuration namespace '_genesys.widgets.sendmessage'. SendMessage has UI options while SendMessageService has connection options.

Example

window._genesys.widgets.sendmessage = {

	apikey: 'n3eNkgLLgLKXREBMYjGm6lygOHHOK8VA',
	dataURL: 'http://10.0.0.121:7777/genesys/2/email',

	SendMessageButton: {

		enabled: true,
		template: '<div>Email</div>',
		effect: 'fade',
		openDelay: 1000,
		effectDuration: 300
	}
};

Options

Name Type Description Default Required
formValidation boolean Enable/Disable browser form validations. true n/a
SendMessageButton.enabled boolean Enable/Disable Send Message button on screen. false n/a
SendMessageButton.template string Custom HTML string template for Send Message button
<div class='cx-widget cx-send-message-button' data-message='SendMessageButton'><span class='cx-icon cx-email-button-img cx-img-map preset-blue px24 email'></span><span class='i18n cx-email-button-label' data-message='SendMessageButton'></span></div>
n/a
SendMessageButton.effect string Type of animation effect when revealing Send Message button ('slide' or 'fade'). fade n/a
SendMessageButton.openDelay number Number of milliseconds before displaying send message button on screen. 1000 n/a
SendMessageButton.effectDuration number Length of animation effect in milliseconds. 300 n/a
Comments or questions about this documentation? Contact us for support!