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 _0x452a=['put','/:id/accept','/:id/reject','delete','destroy','exports','multer','util','connect-timeout','express','get','isAuthenticated','index','/:id','show','tracked','chat','chatmessage:create','create'];(function(_0x4afac5,_0x1ab4ed){var _0x2404b3=function(_0x5c700b){while(--_0x5c700b){_0x4afac5['push'](_0x4afac5['shift']());}};_0x2404b3(++_0x1ab4ed);}(_0x452a,0x1ce));var _0xa452=function(_0x4d67b8,_0x565134){_0x4d67b8=_0x4d67b8-0x0;var _0x55af3b=_0x452a[_0x4d67b8];return _0x55af3b;};'use strict';var multer=require(_0xa452('0x0'));var util=require(_0xa452('0x1'));var path=require('path');var timeout=require(_0xa452('0x2'));var express=require(_0xa452('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./chatMessage.controller');router[_0xa452('0x4')]('/',auth[_0xa452('0x5')](),controller[_0xa452('0x6')]);router[_0xa452('0x4')]('/describe',auth[_0xa452('0x5')](),controller['describe']);router[_0xa452('0x4')](_0xa452('0x7'),auth[_0xa452('0x5')](),controller[_0xa452('0x8')]);router['post']('/',auth[_0xa452('0x5')](),interaction[_0xa452('0x9')](_0xa452('0xa'),_0xa452('0xb')),controller[_0xa452('0xc')]);router[_0xa452('0xd')](_0xa452('0x7'),controller['update']);router[_0xa452('0xd')](_0xa452('0xe'),auth[_0xa452('0x5')](),controller['accept']);router[_0xa452('0xd')](_0xa452('0xf'),auth['isAuthenticated'](),controller['reject']);router[_0xa452('0x10')](_0xa452('0x7'),auth[_0xa452('0x5')](),controller[_0xa452('0x11')]);module[_0xa452('0x12')]=router;