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