eb891a3181243116ccaf3e932fc04ce8223d752e
[motion2.git] / server / api / dashboardItem / 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 _0x79a9=['exports','multer','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./dashboardItem.controller','get','isAuthenticated','post','create','put','/:id','update','delete','destroy'];(function(_0x3fd3a3,_0x36c863){var _0xa3e4d5=function(_0x1fd03b){while(--_0x1fd03b){_0x3fd3a3['push'](_0x3fd3a3['shift']());}};_0xa3e4d5(++_0x36c863);}(_0x79a9,0xab));var _0x979a=function(_0x4e3b70,_0x120787){_0x4e3b70=_0x4e3b70-0x0;var _0x1355c9=_0x79a9[_0x4e3b70];return _0x1355c9;};'use strict';var multer=require(_0x979a('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x979a('0x1'));var express=require(_0x979a('0x2'));var router=express['Router']();var fs_extra=require(_0x979a('0x3'));var auth=require(_0x979a('0x4'));var interaction=require(_0x979a('0x5'));var config=require('../../config/environment');var controller=require(_0x979a('0x6'));router[_0x979a('0x7')]('/:id',auth[_0x979a('0x8')](),controller['show']);router[_0x979a('0x9')]('/',auth['isAuthenticated'](),controller[_0x979a('0xa')]);router[_0x979a('0xb')](_0x979a('0xc'),auth[_0x979a('0x8')](),controller[_0x979a('0xd')]);router[_0x979a('0xe')](_0x979a('0xc'),auth['isAuthenticated'](),controller[_0x979a('0xf')]);module[_0x979a('0x10')]=router;