cbe988a323693603992d4a68de7b5a83f44e541f
[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 _0x21e5=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/users','show','post','create','put','/:id','update','delete','destroy','exports','multer','util'];(function(_0x928b87,_0x53480a){var _0x1e7638=function(_0x1e2184){while(--_0x1e2184){_0x928b87['push'](_0x928b87['shift']());}};_0x1e7638(++_0x53480a);}(_0x21e5,0xa6));var _0x521e=function(_0x3e961c,_0x5747e7){_0x3e961c=_0x3e961c-0x0;var _0x474f9c=_0x21e5[_0x3e961c];return _0x474f9c;};'use strict';var multer=require(_0x521e('0x0'));var util=require(_0x521e('0x1'));var path=require(_0x521e('0x2'));var timeout=require(_0x521e('0x3'));var express=require(_0x521e('0x4'));var router=express[_0x521e('0x5')]();var fs_extra=require(_0x521e('0x6'));var auth=require(_0x521e('0x7'));var interaction=require(_0x521e('0x8'));var config=require('../../config/environment');var controller=require('./chatInternalMessage.controller');router[_0x521e('0x9')]('/',auth[_0x521e('0xa')](),controller[_0x521e('0xb')]);router[_0x521e('0x9')](_0x521e('0xc'),auth[_0x521e('0xa')](),controller[_0x521e('0xd')]);router[_0x521e('0x9')](_0x521e('0xe'),auth[_0x521e('0xa')](),controller['getUsers']);router[_0x521e('0x9')]('/:id',auth[_0x521e('0xa')](),controller[_0x521e('0xf')]);router[_0x521e('0x10')]('/',auth['isAuthenticated'](),controller[_0x521e('0x11')]);router[_0x521e('0x12')](_0x521e('0x13'),controller[_0x521e('0x14')]);router[_0x521e('0x15')]('/:id',auth['isAuthenticated'](),controller[_0x521e('0x16')]);module[_0x521e('0x17')]=router;