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