Built motion from commit f67b3b02.|2.6.31
[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 _0xc10a=['../../config/environment','./dashboardItem.controller','get','/:id','isAuthenticated','show','post','create','put','update','destroy','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0xc10a,0x19b));var _0xac10=function(_0x292f93,_0x2c6e8e){_0x292f93=_0x292f93-0x0;var _0x5a94b1=_0xc10a[_0x292f93];return _0x5a94b1;};'use strict';var multer=require(_0xac10('0x0'));var util=require('util');var path=require(_0xac10('0x1'));var timeout=require('connect-timeout');var express=require(_0xac10('0x2'));var router=express[_0xac10('0x3')]();var fs_extra=require(_0xac10('0x4'));var auth=require(_0xac10('0x5'));var interaction=require(_0xac10('0x6'));var config=require(_0xac10('0x7'));var controller=require(_0xac10('0x8'));router[_0xac10('0x9')](_0xac10('0xa'),auth[_0xac10('0xb')](),controller[_0xac10('0xc')]);router[_0xac10('0xd')]('/',auth[_0xac10('0xb')](),controller[_0xac10('0xe')]);router[_0xac10('0xf')]('/:id',auth[_0xac10('0xb')](),controller[_0xac10('0x10')]);router['delete']('/:id',auth[_0xac10('0xb')](),controller[_0xac10('0x11')]);module[_0xac10('0x12')]=router;