@cogitocorp/cogito-connect-streams
TypeScript icon, indicating that this package has built-in type declarations

1.2.90 • Public • Published

cogito-connect-streams

Publish Cogito CTI events from the amazon-connect-streams softphone. This module will subscribe to agent and contact events using the amazon-connect-streams API and send them to the Cogito CTI API over HTTPS.

Usage

import * as cogito from '@cogitocorp/cogito-connect-streams';

// First init the conect streams API
connect.core.initCCP(phone, {
    ccpUrl: instanceURL,
    loginPopup: true,
    loginPopupAutoClose: true,
    region: "us-east-1",
    softphone: {
        allowFramedSoftphone: true,
        disableRingtone: false,
        ringtoneUrl: "./ringtone.mp3"
    }
});

// Then init Cogito's API
cogito.initCogito({
    apiUrl: cogitoRestURL,
    clientId: cogitoClientId,
    clientSecret: cogitoClientSecret,
    tenant: 'cogito-dialog',
    site: 'site1'
});

Readme

Keywords

none

Package Sidebar

Install

npm i @cogitocorp/cogito-connect-streams

Weekly Downloads

80

Version

1.2.90

License

Apache-2.0

Unpacked Size

29 kB

Total Files

6

Last publish

Collaborators

  • npmcogito
  • aluciacogito
  • npm-cogito-telephony