vivocha/sample-ec

Name: sample-ec

Owner: Vivocha

Description: Sample Vivocha Embedded Console Application

Created: 2016-08-01 14:46:35.0

Updated: 2016-08-01 16:34:16.0

Pushed: 2017-02-15 17:20:45.0

Homepage: null

Size: 9

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Sample Embedded Console Application

The Sample Embedded Console Application is a simple example of how to use the Vivocha API to build an integration with a 3rd party CTI platform using the Embedded Console feature, and leaving to the CTI environment the managing of the contact queue. that controls the agents availability

To use this application you need a Vivocha account enabled to use the REST API to subscribe to the Vivocha CTI Events.

Installation
t clone [git-repo-url] sample-ec
 sample-ec
m install

And then replace [accountid] in the Vivocha script url with your Vivocha account id.

ipt src="https://www.vivocha.com/a/[accountid]/js/vivocha_ec.js"></script>
Usage:
rver -a <accountid> -u <userid> -p <password> -r <agentid> -H <host> [-P <port>]

You can reach the sample agent console app in your browser from the following url: http[s]://:/

More:

For a list of all available options run server -h:

server -h

age: server [options]

tions:

-h, --help                 output usage information
-V, --version              output the version number
-a, --account <account>    Vivocha account
-u, --user <user>          Vivocha user (must be an admin user)
-p, --password <password>  Vivocha user password
-r, --agent <agent>        Vivocha agent id to which the token is created
-H, --host <host>          Webhook host (host must be reachable from the internet)
-P, --port [port]          Webhook port (default: 80, 443 if https is enabled)
-k, --key <key>            HTTPS key file (if key and certificate are provided the server will listen in HTTPS mode)
-c, --cert <cert>          HTTPS certificate file (if key and certificate are provided the server will listen in HTTPS mode)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.