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 _0xafc4=['Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/describe','describe','/users','getUsers','/:id','put','delete','destroy','exports','multer','path','express'];(function(_0x25b889,_0x3de332){var _0x1afe33=function(_0x2a35bb){while(--_0x2a35bb){_0x25b889['push'](_0x25b889['shift']());}};_0x1afe33(++_0x3de332);}(_0xafc4,0x69));var _0x4afc=function(_0x405406,_0x52b116){_0x405406=_0x405406-0x0;var _0x525b71=_0xafc4[_0x405406];return _0x525b71;};'use strict';var multer=require(_0x4afc('0x0'));var util=require('util');var path=require(_0x4afc('0x1'));var timeout=require('connect-timeout');var express=require(_0x4afc('0x2'));var router=express[_0x4afc('0x3')]();var auth=require(_0x4afc('0x4'));var interaction=require(_0x4afc('0x5'));var config=require('../../config/environment');var controller=require('./chatInternalMessage.controller');router['get']('/',auth[_0x4afc('0x6')](),controller[_0x4afc('0x7')]);router[_0x4afc('0x8')](_0x4afc('0x9'),auth[_0x4afc('0x6')](),controller[_0x4afc('0xa')]);router['get'](_0x4afc('0xb'),auth[_0x4afc('0x6')](),controller[_0x4afc('0xc')]);router[_0x4afc('0x8')](_0x4afc('0xd'),auth[_0x4afc('0x6')](),controller['show']);router['post']('/',auth[_0x4afc('0x6')](),controller['create']);router[_0x4afc('0xe')](_0x4afc('0xd'),controller['update']);router[_0x4afc('0xf')](_0x4afc('0xd'),auth[_0x4afc('0x6')](),controller[_0x4afc('0x10')]);module[_0x4afc('0x11')]=router;