From Bright Pattern Documentation
Contents
- Introduction
- API Methods
- 1 General Information
- Dial Number
- Select Service
- Single-Step Transfer
- Single-Step Conference
- Terminate Interaction
- Set Notes
- Set Disposition
- Complete Interaction
- Complete Interaction with Disposition and Notes
- Get Call Recording Status
- Start Call Recording
- Stop Call Recording
- Mute Call Recording
- Unmute Call Recording
- Get Screen Recording Status
- Stop Screen Recording
- Pause Screen Recording
- Resume Screen Recording
- Callback
Desktop JavaScript API Specification
General Information
The API supports a number of desktop telephony functions including call initiation, voice and screen recording, interaction completion, and setting of interaction dispositions and notes.
These functions are available via a global object called window.bpspat.api, for example:
window.bpspat.api.dialNumber(“1234567”);
The object is created when the script file is included in the web page loaded into the Agent Desktop application as follows:
<script type="text/javascript" src="[agent-desktop-web-server]/app/libs/servicepatternapi-dev.js"></script>
For example:
<script type="text/javascript" src="https://barco.brightpattern.com/app/libs/servicepatternapi-dev.js"></script>