Built motion from commit 092f8824.|2.5.49
[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 _0x3beb=['../../config/environment','./dashboardItem.controller','isAuthenticated','show','post','create','put','/:id','update','destroy','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3930b3,_0x3cb999){var _0x1cc569=function(_0x499582){while(--_0x499582){_0x3930b3['push'](_0x3930b3['shift']());}};_0x1cc569(++_0x3cb999);}(_0x3beb,0xd6));var _0xb3be=function(_0x9a323,_0xa8de2){_0x9a323=_0x9a323-0x0;var _0x3d8d4c=_0x3beb[_0x9a323];return _0x3d8d4c;};'use strict';var multer=require(_0xb3be('0x0'));var util=require(_0xb3be('0x1'));var path=require(_0xb3be('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb3be('0x3')]();var fs_extra=require(_0xb3be('0x4'));var auth=require(_0xb3be('0x5'));var interaction=require(_0xb3be('0x6'));var config=require(_0xb3be('0x7'));var controller=require(_0xb3be('0x8'));router['get']('/:id',auth[_0xb3be('0x9')](),controller[_0xb3be('0xa')]);router[_0xb3be('0xb')]('/',auth[_0xb3be('0x9')](),controller[_0xb3be('0xc')]);router[_0xb3be('0xd')](_0xb3be('0xe'),auth[_0xb3be('0x9')](),controller[_0xb3be('0xf')]);router['delete'](_0xb3be('0xe'),auth[_0xb3be('0x9')](),controller[_0xb3be('0x10')]);module['exports']=router;