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