c9cfd03fa603ff60e4c081d700af7a619b0f019e
[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 _0x1898=['delete','destroy','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./dashboardItem.controller','get','/:id','isAuthenticated','show','create','put'];(function(_0x43bd69,_0x379bb0){var _0x234e77=function(_0x4b1cf8){while(--_0x4b1cf8){_0x43bd69['push'](_0x43bd69['shift']());}};_0x234e77(++_0x379bb0);}(_0x1898,0x1b2));var _0x8189=function(_0x3d348c,_0x5076b5){_0x3d348c=_0x3d348c-0x0;var _0xcd8d92=_0x1898[_0x3d348c];return _0xcd8d92;};'use strict';var multer=require('multer');var util=require(_0x8189('0x0'));var path=require(_0x8189('0x1'));var timeout=require('connect-timeout');var express=require(_0x8189('0x2'));var router=express[_0x8189('0x3')]();var fs_extra=require(_0x8189('0x4'));var auth=require(_0x8189('0x5'));var interaction=require(_0x8189('0x6'));var config=require('../../config/environment');var controller=require(_0x8189('0x7'));router[_0x8189('0x8')](_0x8189('0x9'),auth[_0x8189('0xa')](),controller[_0x8189('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x8189('0xc')]);router[_0x8189('0xd')](_0x8189('0x9'),auth[_0x8189('0xa')](),controller['update']);router[_0x8189('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x8189('0xf')]);module['exports']=router;