863d5afc003dd1527038369d0816c23063f7d436
[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 _0x12de=['delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./dashboardItem.controller','get','/:id','isAuthenticated','post','create','put','update'];(function(_0x2c1655,_0x1c2950){var _0x16c3e8=function(_0x3a7ef8){while(--_0x3a7ef8){_0x2c1655['push'](_0x2c1655['shift']());}};_0x16c3e8(++_0x1c2950);}(_0x12de,0x1a4));var _0xe12d=function(_0x3d5922,_0x564491){_0x3d5922=_0x3d5922-0x0;var _0x5244b8=_0x12de[_0x3d5922];return _0x5244b8;};'use strict';var multer=require(_0xe12d('0x0'));var util=require(_0xe12d('0x1'));var path=require(_0xe12d('0x2'));var timeout=require(_0xe12d('0x3'));var express=require(_0xe12d('0x4'));var router=express[_0xe12d('0x5')]();var fs_extra=require(_0xe12d('0x6'));var auth=require(_0xe12d('0x7'));var interaction=require(_0xe12d('0x8'));var config=require('../../config/environment');var controller=require(_0xe12d('0x9'));router[_0xe12d('0xa')](_0xe12d('0xb'),auth[_0xe12d('0xc')](),controller['show']);router[_0xe12d('0xd')]('/',auth[_0xe12d('0xc')](),controller[_0xe12d('0xe')]);router[_0xe12d('0xf')](_0xe12d('0xb'),auth[_0xe12d('0xc')](),controller[_0xe12d('0x10')]);router[_0xe12d('0x11')]('/:id',auth[_0xe12d('0xc')](),controller['destroy']);module[_0xe12d('0x12')]=router;