Built motion from commit (unavailable).|2.4.1
[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 _0xf3c3=['destroy','exports','util','express','Router','../../components/auth/service','./dashboardItem.controller','get','/:id','isAuthenticated','post','create','put','update'];(function(_0x21895e,_0x2df6e1){var _0x16109c=function(_0x235a31){while(--_0x235a31){_0x21895e['push'](_0x21895e['shift']());}};_0x16109c(++_0x2df6e1);}(_0xf3c3,0x10c));var _0x3f3c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf3c3[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0x3f3c('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x3f3c('0x1'));var router=express[_0x3f3c('0x2')]();var auth=require(_0x3f3c('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x3f3c('0x4'));router[_0x3f3c('0x5')](_0x3f3c('0x6'),auth[_0x3f3c('0x7')](),controller['show']);router[_0x3f3c('0x8')]('/',auth['isAuthenticated'](),controller[_0x3f3c('0x9')]);router[_0x3f3c('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x3f3c('0xb')]);router['delete'](_0x3f3c('0x6'),auth[_0x3f3c('0x7')](),controller[_0x3f3c('0xc')]);module[_0x3f3c('0xd')]=router;