chat21-cloud-functions
chat21-cloud-functions copied to clipboard
Getting 400 when dashboard is looking for /proj_id/requests/support-group-id
How are request being saved if this is commented out in functions/chat-support.api I am having issues getting requests to be saved in mongo which is preventing agents from replying to mesages
//Save to mongo
// if (functions.config().support.storetobackend && functions.config().support.storetobackend.enabled && functions.config().support.storetobackend.enabled=="true") {
// console.log('support.storetobackend', 'enabled');
// return chatSupportApi.createRequest(projectid, newRequest);
// }else {
// console.log('support.storetobackend', 'disabled');
// }
Now TileDesk communicates with Chat21 via WebHook. See here : http://docs.tiledesk.com/en/latest/#install-on-your-server