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