cad012bca4134c64ddb772939a0e84f79a5a23e6
[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 _0x5242=['put','update','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./dashboardItem.controller','get','/:id','isAuthenticated','show','post','create'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x5242,0x103));var _0x2524=function(_0x5dfd2b,_0x3c5bc9){_0x5dfd2b=_0x5dfd2b-0x0;var _0x503657=_0x5242[_0x5dfd2b];return _0x503657;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2524('0x0'));var timeout=require(_0x2524('0x1'));var express=require('express');var router=express[_0x2524('0x2')]();var fs_extra=require(_0x2524('0x3'));var auth=require(_0x2524('0x4'));var interaction=require(_0x2524('0x5'));var config=require('../../config/environment');var controller=require(_0x2524('0x6'));router[_0x2524('0x7')](_0x2524('0x8'),auth[_0x2524('0x9')](),controller[_0x2524('0xa')]);router[_0x2524('0xb')]('/',auth[_0x2524('0x9')](),controller[_0x2524('0xc')]);router[_0x2524('0xd')](_0x2524('0x8'),auth['isAuthenticated'](),controller[_0x2524('0xe')]);router['delete'](_0x2524('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0x2524('0xf')]=router;