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