19ec8f1796afcd6e99031f50d5dec1d98c9a23b1
[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 _0xfaf0=['connect-timeout','express','../../components/auth/service','../../components/interaction/service','get','index','/describe','isAuthenticated','/users','/:id','show','post','create','update','delete','exports','multer','util'];(function(_0x9b9250,_0x434547){var _0x4a60ae=function(_0x4fb7da){while(--_0x4fb7da){_0x9b9250['push'](_0x9b9250['shift']());}};_0x4a60ae(++_0x434547);}(_0xfaf0,0x6a));var _0x0faf=function(_0x13d625,_0x48dee7){_0x13d625=_0x13d625-0x0;var _0x1cdd80=_0xfaf0[_0x13d625];return _0x1cdd80;};'use strict';var multer=require(_0x0faf('0x0'));var util=require(_0x0faf('0x1'));var path=require('path');var timeout=require(_0x0faf('0x2'));var express=require(_0x0faf('0x3'));var router=express['Router']();var auth=require(_0x0faf('0x4'));var interaction=require(_0x0faf('0x5'));var config=require('../../config/environment');var controller=require('./chatInternalMessage.controller');router[_0x0faf('0x6')]('/',auth['isAuthenticated'](),controller[_0x0faf('0x7')]);router[_0x0faf('0x6')](_0x0faf('0x8'),auth[_0x0faf('0x9')](),controller['describe']);router[_0x0faf('0x6')](_0x0faf('0xa'),auth[_0x0faf('0x9')](),controller['getUsers']);router['get'](_0x0faf('0xb'),auth[_0x0faf('0x9')](),controller[_0x0faf('0xc')]);router[_0x0faf('0xd')]('/',auth[_0x0faf('0x9')](),controller[_0x0faf('0xe')]);router['put'](_0x0faf('0xb'),controller[_0x0faf('0xf')]);router[_0x0faf('0x10')]('/:id',auth[_0x0faf('0x9')](),controller['destroy']);module[_0x0faf('0x11')]=router;