(Update with the copy of version: draft) |
(Update with the copy of version: draft) |
||
Line 6: | Line 6: | ||
window._genesys.widgets.callback = { | window._genesys.widgets.callback = { | ||
− | apikey: ' | + | apikey: 'n3eNkgXXXXXXXXOXXXXXXXXA', |
dataURL: 'http://fce-w0147.us.int.genesyslab.com:8010/genesys/1/service/callback/samples', | dataURL: 'http://fce-w0147.us.int.genesyslab.com:8010/genesys/1/service/callback/samples', | ||
userData: {}, | userData: {}, | ||
countryCodes: true, | countryCodes: true, | ||
− | |||
immediateCallback: true, | immediateCallback: true, | ||
− | + | scheduledCallback: true, | |
− | + | ewt: { | |
− | + | display: true, | |
− | + | queue: 'chat_ewt_test', | |
− | + | threshold: 2000 | |
− | |||
} | } | ||
}, | }, | ||
Line 34: | Line 32: | ||
| countryCodes | | countryCodes | ||
| boolean | | boolean | ||
− | | Enable/disable country | + | | Enable/disable display of country codes for phone number. |
| true | | true | ||
| n/a | | n/a | ||
Line 40: | Line 38: | ||
| immediateCallback | | immediateCallback | ||
| boolean | | boolean | ||
− | | Enable/disable the | + | | Enable/disable the immediate (As Soon As Possible) callback option. |
| true | | true | ||
| n/a | | n/a | ||
Line 46: | Line 44: | ||
| scheduledCallback | | scheduledCallback | ||
| boolean | | boolean | ||
− | | Enable/disable the scheduling option. | + | | Enable/disable the scheduling (Pick date & time) callback option. |
+ | | true | ||
+ | | n/a | ||
+ | |- | ||
+ | | form | ||
+ | | object | ||
+ | | A JSON object containing a custom registration form definition. The JSON definition placed here becomes the default registration form layout for Callback. See [[Documentation:GWC:WidgetsAPI:CallbackCCRF|Customizable Callback Registration Form]] | ||
+ | | A basic registration form is defined internally by default | ||
+ | | n/a | ||
+ | |- | ||
+ | | ewt.display | ||
+ | | boolean | ||
+ | | To display Estimated Waiting Time details. | ||
| true | | true | ||
| n/a | | n/a | ||
Line 54: | Line 64: | ||
| EWT service channel virtual queue. | | EWT service channel virtual queue. | ||
| none | | none | ||
− | | always required if | + | | always required if Estimated Waiting Time has to be displayed. |
|- | |- | ||
− | | ewt. | + | | ewt.threshold |
− | | | + | | number |
− | | If EWT is less than this | + | | If EWT is less than this threshold value (seconds), wait time will not be shown. |
− | + | | 30 | |
− | + | | n/a | |
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
|- | |- | ||
− | | | + | | ewt.refreshInterval |
− | | | + | | number |
− | | | + | | Wait time is updated for every time interval (seconds) defined here. |
− | | | + | | 10 |
| n/a | | n/a | ||
|- | |- |
Revision as of 22:04, May 11, 2018
Configuration
Description
Callback and CallbackService share the configuration namespace '_genesys.widgets.callback'. Callback has UI options while CallbackService has connection options.
Example
window._genesys.widgets.callback = { apikey: 'n3eNkgXXXXXXXXOXXXXXXXXA', dataURL: 'http://fce-w0147.us.int.genesyslab.com:8010/genesys/1/service/callback/samples', userData: {}, countryCodes: true, immediateCallback: true, scheduledCallback: true, ewt: { display: true, queue: 'chat_ewt_test', threshold: 2000 } }, };
Options
Name | Type | Description | Default | Required |
---|---|---|---|---|
countryCodes | boolean | Enable/disable display of country codes for phone number. | true | n/a |
immediateCallback | boolean | Enable/disable the immediate (As Soon As Possible) callback option. | true | n/a |
scheduledCallback | boolean | Enable/disable the scheduling (Pick date & time) callback option. | true | n/a |
form | object | A JSON object containing a custom registration form definition. The JSON definition placed here becomes the default registration form layout for Callback. See Customizable Callback Registration Form | A basic registration form is defined internally by default | n/a |
ewt.display | boolean | To display Estimated Waiting Time details. | true | n/a |
ewt.queue | string | EWT service channel virtual queue. | none | always required if Estimated Waiting Time has to be displayed. |
ewt.threshold | number | If EWT is less than this threshold value (seconds), wait time will not be shown. | 30 | n/a |
ewt.refreshInterval | number | Wait time is updated for every time interval (seconds) defined here. | 10 | n/a |
Comments or questions about this documentation? Contact us for support!