1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x805f=['put','/:id','update','accept','/:id/reject','reject','delete','exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./chatMessage.controller','get','isAuthenticated','index','describe','show','post','chat','create'];(function(_0x11df66,_0x9eabf){var _0xc2dca1=function(_0x2f8c9a){while(--_0x2f8c9a){_0x11df66['push'](_0x11df66['shift']());}};_0xc2dca1(++_0x9eabf);}(_0x805f,0x80));var _0xf805=function(_0x27af45,_0x1b57aa){_0x27af45=_0x27af45-0x0;var _0x18df21=_0x805f[_0x27af45];return _0x18df21;};'use strict';var multer=require('multer');var util=require(_0xf805('0x0'));var path=require(_0xf805('0x1'));var timeout=require('connect-timeout');var express=require(_0xf805('0x2'));var router=express[_0xf805('0x3')]();var fs_extra=require(_0xf805('0x4'));var auth=require(_0xf805('0x5'));var interaction=require(_0xf805('0x6'));var config=require('../../config/environment');var controller=require(_0xf805('0x7'));router[_0xf805('0x8')]('/',auth[_0xf805('0x9')](),controller[_0xf805('0xa')]);router[_0xf805('0x8')]('/describe',auth[_0xf805('0x9')](),controller[_0xf805('0xb')]);router[_0xf805('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xf805('0xc')]);router[_0xf805('0xd')]('/',auth[_0xf805('0x9')](),interaction['tracked'](_0xf805('0xe'),'chatmessage:create'),controller[_0xf805('0xf')]);router[_0xf805('0x10')](_0xf805('0x11'),controller[_0xf805('0x12')]);router[_0xf805('0x10')]('/:id/accept',auth['isAuthenticated'](),controller[_0xf805('0x13')]);router[_0xf805('0x10')](_0xf805('0x14'),auth['isAuthenticated'](),controller[_0xf805('0x15')]);router[_0xf805('0x16')]('/:id',auth[_0xf805('0x9')](),controller['destroy']);module[_0xf805('0x17')]=router;