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 _0xca85=['delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','/describe','isAuthenticated','describe','/users','getUsers','/:id','post','create','put','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xca85,0x17d));var _0x5ca8=function(_0x589bee,_0x3e06b9){_0x589bee=_0x589bee-0x0;var _0x58f126=_0xca85[_0x589bee];return _0x58f126;};'use strict';var multer=require(_0x5ca8('0x0'));var util=require('util');var path=require(_0x5ca8('0x1'));var timeout=require(_0x5ca8('0x2'));var express=require(_0x5ca8('0x3'));var router=express[_0x5ca8('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x5ca8('0x5'));var interaction=require(_0x5ca8('0x6'));var config=require('../../config/environment');var controller=require('./chatInternalMessage.controller');router[_0x5ca8('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x5ca8('0x7')](_0x5ca8('0x8'),auth[_0x5ca8('0x9')](),controller[_0x5ca8('0xa')]);router[_0x5ca8('0x7')](_0x5ca8('0xb'),auth['isAuthenticated'](),controller[_0x5ca8('0xc')]);router['get'](_0x5ca8('0xd'),auth['isAuthenticated'](),controller['show']);router[_0x5ca8('0xe')]('/',auth['isAuthenticated'](),controller[_0x5ca8('0xf')]);router[_0x5ca8('0x10')](_0x5ca8('0xd'),controller[_0x5ca8('0x11')]);router[_0x5ca8('0x12')](_0x5ca8('0xd'),auth[_0x5ca8('0x9')](),controller[_0x5ca8('0x13')]);module[_0x5ca8('0x14')]=router;