4da79d0bf2a35ebcf55d03ca58dbd9c3abe51a85
[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 _0xa17e=['create','put','/:id','update','delete','destroy','exports','multer','util','path','express','fs-extra','../../components/interaction/service','get','isAuthenticated'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0xa17e,0x151));var _0xea17=function(_0x2d105f,_0x329278){_0x2d105f=_0x2d105f-0x0;var _0x59ec7b=_0xa17e[_0x2d105f];return _0x59ec7b;};'use strict';var multer=require(_0xea17('0x0'));var util=require(_0xea17('0x1'));var path=require(_0xea17('0x2'));var timeout=require('connect-timeout');var express=require(_0xea17('0x3'));var router=express['Router']();var fs_extra=require(_0xea17('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xea17('0x5'));var config=require('../../config/environment');var controller=require('./dashboardItem.controller');router[_0xea17('0x6')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xea17('0x7')](),controller[_0xea17('0x8')]);router[_0xea17('0x9')](_0xea17('0xa'),auth[_0xea17('0x7')](),controller[_0xea17('0xb')]);router[_0xea17('0xc')](_0xea17('0xa'),auth[_0xea17('0x7')](),controller[_0xea17('0xd')]);module[_0xea17('0xe')]=router;