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 _0xc599=['isAuthenticated','index','describe','/users','getUsers','/:id','put','update','destroy','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatInternalMessage.controller','get'];(function(_0x1c2802,_0xc1d15d){var _0x29f295=function(_0x525720){while(--_0x525720){_0x1c2802['push'](_0x1c2802['shift']());}};_0x29f295(++_0xc1d15d);}(_0xc599,0x1b2));var _0x9c59=function(_0x2e6d90,_0x4343a3){_0x2e6d90=_0x2e6d90-0x0;var _0x30ce93=_0xc599[_0x2e6d90];return _0x30ce93;};'use strict';var multer=require('multer');var util=require(_0x9c59('0x0'));var path=require('path');var timeout=require(_0x9c59('0x1'));var express=require(_0x9c59('0x2'));var router=express[_0x9c59('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x9c59('0x4'));var config=require(_0x9c59('0x5'));var controller=require(_0x9c59('0x6'));router[_0x9c59('0x7')]('/',auth[_0x9c59('0x8')](),controller[_0x9c59('0x9')]);router[_0x9c59('0x7')]('/describe',auth['isAuthenticated'](),controller[_0x9c59('0xa')]);router['get'](_0x9c59('0xb'),auth['isAuthenticated'](),controller[_0x9c59('0xc')]);router[_0x9c59('0x7')](_0x9c59('0xd'),auth[_0x9c59('0x8')](),controller['show']);router['post']('/',auth[_0x9c59('0x8')](),controller['create']);router[_0x9c59('0xe')]('/:id',controller[_0x9c59('0xf')]);router['delete'](_0x9c59('0xd'),auth[_0x9c59('0x8')](),controller[_0x9c59('0x10')]);module['exports']=router;