4476d4f25e9972c21bb9e077a6b3305a670a8611
[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 _0xdc08=['create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboardItem.controller','get','/:id','isAuthenticated','show'];(function(_0x3adb8e,_0x247ca2){var _0x3eacdb=function(_0x127ddf){while(--_0x127ddf){_0x3adb8e['push'](_0x3adb8e['shift']());}};_0x3eacdb(++_0x247ca2);}(_0xdc08,0x182));var _0x8dc0=function(_0x297fd3,_0x115406){_0x297fd3=_0x297fd3-0x0;var _0x2af381=_0xdc08[_0x297fd3];return _0x2af381;};'use strict';var multer=require(_0x8dc0('0x0'));var util=require(_0x8dc0('0x1'));var path=require(_0x8dc0('0x2'));var timeout=require(_0x8dc0('0x3'));var express=require(_0x8dc0('0x4'));var router=express[_0x8dc0('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x8dc0('0x6'));var interaction=require(_0x8dc0('0x7'));var config=require(_0x8dc0('0x8'));var controller=require(_0x8dc0('0x9'));router[_0x8dc0('0xa')](_0x8dc0('0xb'),auth[_0x8dc0('0xc')](),controller[_0x8dc0('0xd')]);router['post']('/',auth[_0x8dc0('0xc')](),controller[_0x8dc0('0xe')]);router[_0x8dc0('0xf')](_0x8dc0('0xb'),auth[_0x8dc0('0xc')](),controller[_0x8dc0('0x10')]);router[_0x8dc0('0x11')](_0x8dc0('0xb'),auth[_0x8dc0('0xc')](),controller[_0x8dc0('0x12')]);module[_0x8dc0('0x13')]=router;