Built motion from commit 85328c08.|2.5.50
[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 _0x9402=['../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboardItem.controller','get','/:id','isAuthenticated','show','post','create','update','delete','destroy','exports','multer','path','express','Router'];(function(_0x4edbdb,_0x4eb680){var _0x4e880b=function(_0x495f1c){while(--_0x495f1c){_0x4edbdb['push'](_0x4edbdb['shift']());}};_0x4e880b(++_0x4eb680);}(_0x9402,0x1d0));var _0x2940=function(_0xde2040,_0x41b1a4){_0xde2040=_0xde2040-0x0;var _0x5ae21f=_0x9402[_0xde2040];return _0x5ae21f;};'use strict';var multer=require(_0x2940('0x0'));var util=require('util');var path=require(_0x2940('0x1'));var timeout=require('connect-timeout');var express=require(_0x2940('0x2'));var router=express[_0x2940('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x2940('0x4'));var interaction=require(_0x2940('0x5'));var config=require(_0x2940('0x6'));var controller=require(_0x2940('0x7'));router[_0x2940('0x8')](_0x2940('0x9'),auth[_0x2940('0xa')](),controller[_0x2940('0xb')]);router[_0x2940('0xc')]('/',auth['isAuthenticated'](),controller[_0x2940('0xd')]);router['put']('/:id',auth[_0x2940('0xa')](),controller[_0x2940('0xe')]);router[_0x2940('0xf')]('/:id',auth[_0x2940('0xa')](),controller[_0x2940('0x10')]);module[_0x2940('0x11')]=router;