Built motion from commit 775e2a94.|2.6.3
[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 _0xa631=['./chatInternalMessage.controller','isAuthenticated','describe','get','/users','getUsers','/:id','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x31e29a,_0x349c9b){var _0x32d892=function(_0x41cc86){while(--_0x41cc86){_0x31e29a['push'](_0x31e29a['shift']());}};_0x32d892(++_0x349c9b);}(_0xa631,0x1b0));var _0x1a63=function(_0x54c977,_0x3639ad){_0x54c977=_0x54c977-0x0;var _0x4b2e30=_0xa631[_0x54c977];return _0x4b2e30;};'use strict';var multer=require(_0x1a63('0x0'));var util=require(_0x1a63('0x1'));var path=require(_0x1a63('0x2'));var timeout=require(_0x1a63('0x3'));var express=require(_0x1a63('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x1a63('0x5'));var interaction=require(_0x1a63('0x6'));var config=require(_0x1a63('0x7'));var controller=require(_0x1a63('0x8'));router['get']('/',auth[_0x1a63('0x9')](),controller['index']);router['get']('/describe',auth[_0x1a63('0x9')](),controller[_0x1a63('0xa')]);router[_0x1a63('0xb')](_0x1a63('0xc'),auth[_0x1a63('0x9')](),controller[_0x1a63('0xd')]);router[_0x1a63('0xb')](_0x1a63('0xe'),auth['isAuthenticated'](),controller['show']);router[_0x1a63('0xf')]('/',auth[_0x1a63('0x9')](),controller[_0x1a63('0x10')]);router[_0x1a63('0x11')](_0x1a63('0xe'),controller[_0x1a63('0x12')]);router[_0x1a63('0x13')](_0x1a63('0xe'),auth['isAuthenticated'](),controller[_0x1a63('0x14')]);module[_0x1a63('0x15')]=router;