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