Built motion from commit 85328c08.|2.5.50
[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 _0xc98f=['update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/users','/:id','show','post','create','put'];(function(_0x2384a2,_0x1effc5){var _0x28e214=function(_0x5dea58){while(--_0x5dea58){_0x2384a2['push'](_0x2384a2['shift']());}};_0x28e214(++_0x1effc5);}(_0xc98f,0x1a5));var _0xfc98=function(_0x33b856,_0x2035d1){_0x33b856=_0x33b856-0x0;var _0x29481e=_0xc98f[_0x33b856];return _0x29481e;};'use strict';var multer=require(_0xfc98('0x0'));var util=require('util');var path=require(_0xfc98('0x1'));var timeout=require(_0xfc98('0x2'));var express=require(_0xfc98('0x3'));var router=express[_0xfc98('0x4')]();var fs_extra=require(_0xfc98('0x5'));var auth=require(_0xfc98('0x6'));var interaction=require(_0xfc98('0x7'));var config=require(_0xfc98('0x8'));var controller=require('./chatInternalMessage.controller');router[_0xfc98('0x9')]('/',auth[_0xfc98('0xa')](),controller[_0xfc98('0xb')]);router['get']('/describe',auth[_0xfc98('0xa')](),controller[_0xfc98('0xc')]);router[_0xfc98('0x9')](_0xfc98('0xd'),auth[_0xfc98('0xa')](),controller['getUsers']);router[_0xfc98('0x9')](_0xfc98('0xe'),auth[_0xfc98('0xa')](),controller[_0xfc98('0xf')]);router[_0xfc98('0x10')]('/',auth[_0xfc98('0xa')](),controller[_0xfc98('0x11')]);router[_0xfc98('0x12')]('/:id',controller[_0xfc98('0x13')]);router[_0xfc98('0x14')]('/:id',auth[_0xfc98('0xa')](),controller['destroy']);module[_0xfc98('0x15')]=router;