09340d5a40307b206ebd91bf1dc7a10d34c75d2a
[motion2.git] / server / api / chatInternalMessage / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xb538=['delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInternalMessage.controller','get','isAuthenticated','index','/describe','describe','getUsers','/:id','show','post','create','put','update'];(function(_0x152fe3,_0x12b0c8){var _0xc5bb39=function(_0x1fde42){while(--_0x1fde42){_0x152fe3['push'](_0x152fe3['shift']());}};_0xc5bb39(++_0x12b0c8);}(_0xb538,0x148));var _0x8b53=function(_0x5e456d,_0x265ac3){_0x5e456d=_0x5e456d-0x0;var _0x28954b=_0xb538[_0x5e456d];return _0x28954b;};'use strict';var multer=require(_0x8b53('0x0'));var util=require('util');var path=require(_0x8b53('0x1'));var timeout=require(_0x8b53('0x2'));var express=require(_0x8b53('0x3'));var router=express[_0x8b53('0x4')]();var fs_extra=require(_0x8b53('0x5'));var auth=require(_0x8b53('0x6'));var interaction=require(_0x8b53('0x7'));var config=require(_0x8b53('0x8'));var controller=require(_0x8b53('0x9'));router[_0x8b53('0xa')]('/',auth[_0x8b53('0xb')](),controller[_0x8b53('0xc')]);router[_0x8b53('0xa')](_0x8b53('0xd'),auth[_0x8b53('0xb')](),controller[_0x8b53('0xe')]);router['get']('/users',auth['isAuthenticated'](),controller[_0x8b53('0xf')]);router[_0x8b53('0xa')](_0x8b53('0x10'),auth[_0x8b53('0xb')](),controller[_0x8b53('0x11')]);router[_0x8b53('0x12')]('/',auth['isAuthenticated'](),controller[_0x8b53('0x13')]);router[_0x8b53('0x14')]('/:id',controller[_0x8b53('0x15')]);router[_0x8b53('0x16')](_0x8b53('0x10'),auth['isAuthenticated'](),controller[_0x8b53('0x17')]);module[_0x8b53('0x18')]=router;