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