Built motion from commit a61a4a20.|2.5.46
[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 _0x9b9a=['/:id','show','put','update','delete','destroy','exports','multer','util','path','express','fs-extra','../../components/interaction/service','../../config/environment','get','index','/describe','describe','/users','isAuthenticated','getUsers'];(function(_0x2b3e7e,_0x37c887){var _0x1e24b2=function(_0x5a761f){while(--_0x5a761f){_0x2b3e7e['push'](_0x2b3e7e['shift']());}};_0x1e24b2(++_0x37c887);}(_0x9b9a,0x157));var _0xa9b9=function(_0x8e99b,_0x7b9e20){_0x8e99b=_0x8e99b-0x0;var _0x8d60f4=_0x9b9a[_0x8e99b];return _0x8d60f4;};'use strict';var multer=require(_0xa9b9('0x0'));var util=require(_0xa9b9('0x1'));var path=require(_0xa9b9('0x2'));var timeout=require('connect-timeout');var express=require(_0xa9b9('0x3'));var router=express['Router']();var fs_extra=require(_0xa9b9('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa9b9('0x5'));var config=require(_0xa9b9('0x6'));var controller=require('./chatInternalMessage.controller');router[_0xa9b9('0x7')]('/',auth['isAuthenticated'](),controller[_0xa9b9('0x8')]);router['get'](_0xa9b9('0x9'),auth['isAuthenticated'](),controller[_0xa9b9('0xa')]);router['get'](_0xa9b9('0xb'),auth[_0xa9b9('0xc')](),controller[_0xa9b9('0xd')]);router[_0xa9b9('0x7')](_0xa9b9('0xe'),auth[_0xa9b9('0xc')](),controller[_0xa9b9('0xf')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xa9b9('0x10')](_0xa9b9('0xe'),controller[_0xa9b9('0x11')]);router[_0xa9b9('0x12')](_0xa9b9('0xe'),auth[_0xa9b9('0xc')](),controller[_0xa9b9('0x13')]);module[_0xa9b9('0x14')]=router;