Built motion from commit (unavailable).|2.2.0
[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(_0x54b2e7,_0x22daf6){var _0xdf81df=function(_0x287dcb){while(--_0x287dcb){_0x54b2e7['push'](_0x54b2e7['shift']());}};_0xdf81df(++_0x22daf6);}(_0xfaf0,0x6a));var _0x0faf=function(_0x109b31,_0x2b0441){_0x109b31=_0x109b31-0x0;var _0x59b514=_0xfaf0[_0x109b31];return _0x59b514;};'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;