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 _0xc671=['../../components/interaction/service','../../config/environment','./chatMessage.controller','get','isAuthenticated','index','/describe','/:id','show','post','tracked','chatmessage:create','create','put','/:id/accept','delete','destroy','multer','util','connect-timeout','express','../../components/auth/service'];(function(_0x5dfc2a,_0x1a953f){var _0x3f1a71=function(_0x15916){while(--_0x15916){_0x5dfc2a['push'](_0x5dfc2a['shift']());}};_0x3f1a71(++_0x1a953f);}(_0xc671,0xd7));var _0x1c67=function(_0x32ca04,_0x2339ac){_0x32ca04=_0x32ca04-0x0;var _0x2e4800=_0xc671[_0x32ca04];return _0x2e4800;};'use strict';var multer=require(_0x1c67('0x0'));var util=require(_0x1c67('0x1'));var path=require('path');var timeout=require(_0x1c67('0x2'));var express=require(_0x1c67('0x3'));var router=express['Router']();var auth=require(_0x1c67('0x4'));var interaction=require(_0x1c67('0x5'));var config=require(_0x1c67('0x6'));var controller=require(_0x1c67('0x7'));router[_0x1c67('0x8')]('/',auth[_0x1c67('0x9')](),controller[_0x1c67('0xa')]);router[_0x1c67('0x8')](_0x1c67('0xb'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x1c67('0xc'),auth[_0x1c67('0x9')](),controller[_0x1c67('0xd')]);router[_0x1c67('0xe')]('/',auth[_0x1c67('0x9')](),interaction[_0x1c67('0xf')]('chat',_0x1c67('0x10')),controller[_0x1c67('0x11')]);router[_0x1c67('0x12')]('/:id',controller['update']);router[_0x1c67('0x12')](_0x1c67('0x13'),auth[_0x1c67('0x9')](),controller['accept']);router[_0x1c67('0x12')]('/:id/reject',auth[_0x1c67('0x9')](),controller['reject']);router[_0x1c67('0x14')](_0x1c67('0xc'),auth[_0x1c67('0x9')](),controller[_0x1c67('0x15')]);module['exports']=router;