This page was last edited on December 8, 2020, at 20:25.
Comments or questions about this documentation? Contact us for support!
(Automated save: adding PEC_Migrated template.) |
(Update with the copy of version: draft) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
= System namespace= | = System namespace= | ||
− | {{Template:PEC_Migrated}} | + | {{Template:PEC_Migrated|Target=[https://all.docs.genesys.com/PEC-Developer/Current/SCAPI/SystemNamespace System namespace]}} |
The System namespace includes the following methods:
Signature | <static> getAllowedServices() → {Array.<string>} |
---|---|
Description | Gets the list of allowed services, as determined by the security configuration for Agent Desktop. If the domain of the web application that calls this method isn't listed in the service-client-api.accepted-web-content-origins option, then this method fails. Contact your Genesys representative for details about this configuration. |
Returns | Array.<string> |
Signature | <static> triggerActivity() |
---|---|
Description | Triggers a fake activity to prevent the inactivity timer from closing the agent session. |
Signature | <static> popupToast(parameters) → {string} | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Pops up a new custom toast. | ||||||||||||||||||||||||||||||
Parameters |
| ||||||||||||||||||||||||||||||
Returns | A unique identifier |
Signature | <static> updateToast(id, parameters) → {boolean} | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Updates the specified toast. | |||||||||||||||||||||||||||||||||
Parameters |
| |||||||||||||||||||||||||||||||||
Returns | true if the toast has been updated; false if the toast identifier has not been found. |
Signature | <static> closeToast(id) → {boolean} | ||||||
---|---|---|---|---|---|---|---|
Description | Closes the specified toast. | ||||||
Parameters |
| ||||||
Returns | true if the toast has been updated; false if the toast identifier has not been found. |