8eec79cca5e10b10d6a6d065b587a2805c58e253
[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 _0x6034=['post','create','/:id','delete','destroy','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboardItem.controller','get','isAuthenticated'];(function(_0x42ff39,_0x2372d7){var _0x7c0a79=function(_0x168654){while(--_0x168654){_0x42ff39['push'](_0x42ff39['shift']());}};_0x7c0a79(++_0x2372d7);}(_0x6034,0x195));var _0x4603=function(_0x12ad28,_0x197d11){_0x12ad28=_0x12ad28-0x0;var _0x494dc1=_0x6034[_0x12ad28];return _0x494dc1;};'use strict';var multer=require(_0x4603('0x0'));var util=require(_0x4603('0x1'));var path=require(_0x4603('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x4603('0x3')]();var fs_extra=require(_0x4603('0x4'));var auth=require(_0x4603('0x5'));var interaction=require(_0x4603('0x6'));var config=require(_0x4603('0x7'));var controller=require(_0x4603('0x8'));router[_0x4603('0x9')]('/:id',auth[_0x4603('0xa')](),controller['show']);router[_0x4603('0xb')]('/',auth[_0x4603('0xa')](),controller[_0x4603('0xc')]);router['put'](_0x4603('0xd'),auth[_0x4603('0xa')](),controller['update']);router[_0x4603('0xe')]('/:id',auth[_0x4603('0xa')](),controller[_0x4603('0xf')]);module['exports']=router;