Built motion from commit 43538d75.|2.5.35
[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 _0x0e3d=['./chatInternalMessage.controller','get','isAuthenticated','describe','/users','getUsers','/:id','show','post','create','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x4c12ec,_0x2e9103){var _0x3ae42c=function(_0x5a728f){while(--_0x5a728f){_0x4c12ec['push'](_0x4c12ec['shift']());}};_0x3ae42c(++_0x2e9103);}(_0x0e3d,0x141));var _0xd0e3=function(_0x594096,_0x1bc9e1){_0x594096=_0x594096-0x0;var _0x366dde=_0x0e3d[_0x594096];return _0x366dde;};'use strict';var multer=require(_0xd0e3('0x0'));var util=require(_0xd0e3('0x1'));var path=require(_0xd0e3('0x2'));var timeout=require(_0xd0e3('0x3'));var express=require(_0xd0e3('0x4'));var router=express[_0xd0e3('0x5')]();var fs_extra=require(_0xd0e3('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xd0e3('0x7'));var config=require(_0xd0e3('0x8'));var controller=require(_0xd0e3('0x9'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xd0e3('0xa')]('/describe',auth[_0xd0e3('0xb')](),controller[_0xd0e3('0xc')]);router['get'](_0xd0e3('0xd'),auth[_0xd0e3('0xb')](),controller[_0xd0e3('0xe')]);router[_0xd0e3('0xa')](_0xd0e3('0xf'),auth['isAuthenticated'](),controller[_0xd0e3('0x10')]);router[_0xd0e3('0x11')]('/',auth[_0xd0e3('0xb')](),controller[_0xd0e3('0x12')]);router['put'](_0xd0e3('0xf'),controller[_0xd0e3('0x13')]);router[_0xd0e3('0x14')](_0xd0e3('0xf'),auth[_0xd0e3('0xb')](),controller[_0xd0e3('0x15')]);module['exports']=router;