d73a0b0504b0b74de1a667c006c38368f24a7a71
[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 _0x833e=['../../components/interaction/service','../../config/environment','./chatInternalMessage.controller','get','isAuthenticated','index','/describe','/users','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x4f0c2b,_0x2c9d14){var _0x526436=function(_0x2e13b6){while(--_0x2e13b6){_0x4f0c2b['push'](_0x4f0c2b['shift']());}};_0x526436(++_0x2c9d14);}(_0x833e,0xc0));var _0xe833=function(_0xd8445a,_0x139434){_0xd8445a=_0xd8445a-0x0;var _0x5a0805=_0x833e[_0xd8445a];return _0x5a0805;};'use strict';var multer=require(_0xe833('0x0'));var util=require(_0xe833('0x1'));var path=require(_0xe833('0x2'));var timeout=require(_0xe833('0x3'));var express=require(_0xe833('0x4'));var router=express[_0xe833('0x5')]();var fs_extra=require(_0xe833('0x6'));var auth=require(_0xe833('0x7'));var interaction=require(_0xe833('0x8'));var config=require(_0xe833('0x9'));var controller=require(_0xe833('0xa'));router[_0xe833('0xb')]('/',auth[_0xe833('0xc')](),controller[_0xe833('0xd')]);router[_0xe833('0xb')](_0xe833('0xe'),auth[_0xe833('0xc')](),controller['describe']);router['get'](_0xe833('0xf'),auth[_0xe833('0xc')](),controller['getUsers']);router[_0xe833('0xb')](_0xe833('0x10'),auth[_0xe833('0xc')](),controller[_0xe833('0x11')]);router[_0xe833('0x12')]('/',auth['isAuthenticated'](),controller[_0xe833('0x13')]);router[_0xe833('0x14')]('/:id',controller[_0xe833('0x15')]);router[_0xe833('0x16')](_0xe833('0x10'),auth['isAuthenticated'](),controller[_0xe833('0x17')]);module[_0xe833('0x18')]=router;