GithubHelp home page GithubHelp logo

isabella232 / console-agent-app-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genesyspureengage/console-agent-app-js

0.0 0.0 0.0 30 KB

A console sample using the workspace js client for Node.js

JavaScript 100.00%

console-agent-app-js's Introduction

console-agent-app-js

Running

You can run the console sample by passing in command line arguments as shown in this example:
node src/app.js --apiKey=<key> --clientId=<clientId> --baseUrl=<url> --authBaseUrl=<optional> --username=<tenant\\username> --password=<p> --debugEnabled=<true or false> --defaultAgentId=<optional> --defaultDn=<optional> --defaultDestination=<optional>

Commands

Command Aliases Arguments Description
initialize init, i initialize the API using the arguments provided at startup
destroy logout, l logout and cleanup
activate-channels ac agentId, dn activate the voice channel using the provided resources
user u print information about the user
configuration c print configuration returned by the server
dn print the current state of the dn
calls print the list of active calls
ready r set agent state to ready
not-ready nr set agent state to notready
dnd-on turn do-not-disturb on for voice
dnd-off turn do-not-disturb off for voice
voice-logout logout the voice channel (does not logout the overall session)
voice-login login the voice channel after previously using voice-logout
set-forward destination set call forwarding to the specified destination
cancel-forward cancel call forwarding
make-call mc destination make a call to the specified destination. If not provided the default destination will be used.
answer a id answer the specified call (*)
hold h id place the specified call on hold. (*)
retrieve ret id retrieve the specified call (*)
release rel id release the specified call (*)
clear-call id clear the specified call (*)
send-dtmf dtmf id, digits send the specified dtmf digits (*)
redirect id, destination redirect the call to the specified destination (*)
initiate-conference ic id, destination initiate a conference to the specified destination
complete-conference cc id, parentConnId complete a conference (**)
delete-from-conference dfc id, dnToDrop
initiate-transfer it id, destination initiate a transfer to the specified destination
complete-transfer ct id, parentConnId complete a transfer (**)
alternate alt id, heldConnId alternate calls
merge id, otherConnId merge calls
reconnect id, heldConnId reconnect call
single-step-conference id, destination perform a single-step conference to the specified destination (*)
single-step-transfer id, destination perform a single-step transfer to the specififed destination (*)
attach-user-data aud id, key, value attach the specified key/value pair to the call (*)
update-user-data uud id, key, value update the specified key/value pair (*)
delete-user-data-pair dp id, key delete the specified user-data key (*)
start-recording id start call recording (*)
pause-recording id pause call recording (*)
resume-recording id resume call recording (*)
stop-recording id stop call recording (*)
send-user-event key, value, callUuid send EventUserEvent with the provided key/value pair and optional callUuid.
target-search ts searchTerm, limit search for targets using the specified search term
clear clear the output window
console-config print the console config
exit x logout if necessary then exit
debug d toggle debug output
help ? print the list of available commands

(*) - if there is only one active call the id parameter can be omitted.
(**) - if there are only two active calls both id and parentId parameters can be omitted.

console-agent-app-js's People

Contributors

cwmunn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.