d5ff5eb8936119a27e557357c05900e312853007
[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 _0xf5e9=['connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboardItem.controller','get','/:id','isAuthenticated','show','create','put','update','delete','destroy','util'];(function(_0x4fde08,_0x463a36){var _0x12e725=function(_0x2670c5){while(--_0x2670c5){_0x4fde08['push'](_0x4fde08['shift']());}};_0x12e725(++_0x463a36);}(_0xf5e9,0xcb));var _0x9f5e=function(_0xa7662e,_0x22304d){_0xa7662e=_0xa7662e-0x0;var _0x425053=_0xf5e9[_0xa7662e];return _0x425053;};'use strict';var multer=require('multer');var util=require(_0x9f5e('0x0'));var path=require('path');var timeout=require(_0x9f5e('0x1'));var express=require(_0x9f5e('0x2'));var router=express['Router']();var fs_extra=require(_0x9f5e('0x3'));var auth=require(_0x9f5e('0x4'));var interaction=require(_0x9f5e('0x5'));var config=require(_0x9f5e('0x6'));var controller=require(_0x9f5e('0x7'));router[_0x9f5e('0x8')](_0x9f5e('0x9'),auth[_0x9f5e('0xa')](),controller[_0x9f5e('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x9f5e('0xc')]);router[_0x9f5e('0xd')](_0x9f5e('0x9'),auth['isAuthenticated'](),controller[_0x9f5e('0xe')]);router[_0x9f5e('0xf')](_0x9f5e('0x9'),auth[_0x9f5e('0xa')](),controller[_0x9f5e('0x10')]);module['exports']=router;