Built motion from commit 497d3d92.|2.5.43
[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 _0x484b=['express','fs-extra','../../components/auth/service','./dashboardItem.controller','/:id','isAuthenticated','show','create','update','delete','multer','util','path','connect-timeout'];(function(_0x2fe6d6,_0x2e2e56){var _0x48c41f=function(_0x1ca6cd){while(--_0x1ca6cd){_0x2fe6d6['push'](_0x2fe6d6['shift']());}};_0x48c41f(++_0x2e2e56);}(_0x484b,0x1d8));var _0xb484=function(_0x3f4409,_0x6a35c0){_0x3f4409=_0x3f4409-0x0;var _0x1800e5=_0x484b[_0x3f4409];return _0x1800e5;};'use strict';var multer=require(_0xb484('0x0'));var util=require(_0xb484('0x1'));var path=require(_0xb484('0x2'));var timeout=require(_0xb484('0x3'));var express=require(_0xb484('0x4'));var router=express['Router']();var fs_extra=require(_0xb484('0x5'));var auth=require(_0xb484('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb484('0x7'));router['get'](_0xb484('0x8'),auth[_0xb484('0x9')](),controller[_0xb484('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb484('0xb')]);router['put'](_0xb484('0x8'),auth[_0xb484('0x9')](),controller[_0xb484('0xc')]);router[_0xb484('0xd')](_0xb484('0x8'),auth[_0xb484('0x9')](),controller['destroy']);module['exports']=router;