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 _0x9d9b=['fs-extra','../../components/auth/service','../../components/interaction/service','./chatMessage.controller','isAuthenticated','index','/describe','describe','get','/:id','show','chatmessage:create','create','put','update','/:id/reject','reject','delete','destroy','util','path','express'];(function(_0x4cfa6c,_0x396c46){var _0x4523ae=function(_0x479359){while(--_0x479359){_0x4cfa6c['push'](_0x4cfa6c['shift']());}};_0x4523ae(++_0x396c46);}(_0x9d9b,0x1e1));var _0xb9d9=function(_0x565ea7,_0x5038c6){_0x565ea7=_0x565ea7-0x0;var _0x5940cd=_0x9d9b[_0x565ea7];return _0x5940cd;};'use strict';var multer=require('multer');var util=require(_0xb9d9('0x0'));var path=require(_0xb9d9('0x1'));var timeout=require('connect-timeout');var express=require(_0xb9d9('0x2'));var router=express['Router']();var fs_extra=require(_0xb9d9('0x3'));var auth=require(_0xb9d9('0x4'));var interaction=require(_0xb9d9('0x5'));var config=require('../../config/environment');var controller=require(_0xb9d9('0x6'));router['get']('/',auth[_0xb9d9('0x7')](),controller[_0xb9d9('0x8')]);router['get'](_0xb9d9('0x9'),auth[_0xb9d9('0x7')](),controller[_0xb9d9('0xa')]);router[_0xb9d9('0xb')](_0xb9d9('0xc'),auth[_0xb9d9('0x7')](),controller[_0xb9d9('0xd')]);router['post']('/',auth['isAuthenticated'](),interaction['tracked']('chat',_0xb9d9('0xe')),controller[_0xb9d9('0xf')]);router[_0xb9d9('0x10')]('/:id',controller[_0xb9d9('0x11')]);router[_0xb9d9('0x10')]('/:id/accept',auth[_0xb9d9('0x7')](),controller['accept']);router[_0xb9d9('0x10')](_0xb9d9('0x12'),auth[_0xb9d9('0x7')](),controller[_0xb9d9('0x13')]);router[_0xb9d9('0x14')](_0xb9d9('0xc'),auth[_0xb9d9('0x7')](),controller[_0xb9d9('0x15')]);module['exports']=router;