f3be780a3a30597c3d570a4ec9fd32a1a3836bd0
[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 _0x800a=['post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','/:id','isAuthenticated','show'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x800a,0x65));var _0xa800=function(_0x193ade,_0x109108){_0x193ade=_0x193ade-0x0;var _0x5aa435=_0x800a[_0x193ade];return _0x5aa435;};'use strict';var multer=require(_0xa800('0x0'));var util=require(_0xa800('0x1'));var path=require(_0xa800('0x2'));var timeout=require(_0xa800('0x3'));var express=require(_0xa800('0x4'));var router=express[_0xa800('0x5')]();var fs_extra=require(_0xa800('0x6'));var auth=require(_0xa800('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xa800('0x8'));var controller=require('./dashboardItem.controller');router[_0xa800('0x9')](_0xa800('0xa'),auth[_0xa800('0xb')](),controller[_0xa800('0xc')]);router[_0xa800('0xd')]('/',auth[_0xa800('0xb')](),controller[_0xa800('0xe')]);router[_0xa800('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xa800('0x10')]);router[_0xa800('0x11')](_0xa800('0xa'),auth['isAuthenticated'](),controller[_0xa800('0x12')]);module['exports']=router;