Built motion from commit 25580385.|2.6.2
[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 _0x392b=['../../config/environment','./dashboardItem.controller','get','/:id','isAuthenticated','show','create','put','update','delete','destroy','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x52de0f,_0x5cd5c6){var _0x2ab1ab=function(_0x1d1341){while(--_0x1d1341){_0x52de0f['push'](_0x52de0f['shift']());}};_0x2ab1ab(++_0x5cd5c6);}(_0x392b,0x1c1));var _0xb392=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0x392b[_0x502c7d];return _0x30b7ed;};'use strict';var multer=require(_0xb392('0x0'));var util=require('util');var path=require(_0xb392('0x1'));var timeout=require('connect-timeout');var express=require(_0xb392('0x2'));var router=express[_0xb392('0x3')]();var fs_extra=require(_0xb392('0x4'));var auth=require(_0xb392('0x5'));var interaction=require(_0xb392('0x6'));var config=require(_0xb392('0x7'));var controller=require(_0xb392('0x8'));router[_0xb392('0x9')](_0xb392('0xa'),auth[_0xb392('0xb')](),controller[_0xb392('0xc')]);router['post']('/',auth[_0xb392('0xb')](),controller[_0xb392('0xd')]);router[_0xb392('0xe')](_0xb392('0xa'),auth[_0xb392('0xb')](),controller[_0xb392('0xf')]);router[_0xb392('0x10')]('/:id',auth[_0xb392('0xb')](),controller[_0xb392('0x11')]);module[_0xb392('0x12')]=router;