Cloned from Tyntec's examples here: https://github.com/tyntec/api-samples
Some minor modifications:
- When closing a thread, do
{ thread_ts: 'no thread assigned' }
instead of emptythread_ts
- Additional error logging with time to observe residual API invocations
- Some try / catches to show null object properties caused by pollers
$ npm install
- Create a
.env
file - Copy all the variables from
.env-example
to.env
- Fill the variables with your own values
- Run the server using the command below
$ npm start