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