Built motion from commit 9d7072cc.|2.5.39
[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 _0x071d=['express','Router','fs-extra','../../components/auth/service','../../config/environment','./dashboardItem.controller','get','/:id','post','isAuthenticated','put','exports','multer','path','connect-timeout'];(function(_0x1abeb2,_0x79f462){var _0x48da20=function(_0x42a90b){while(--_0x42a90b){_0x1abeb2['push'](_0x1abeb2['shift']());}};_0x48da20(++_0x79f462);}(_0x071d,0xb1));var _0xd071=function(_0x503564,_0x55867e){_0x503564=_0x503564-0x0;var _0x4be9fd=_0x071d[_0x503564];return _0x4be9fd;};'use strict';var multer=require(_0xd071('0x0'));var util=require('util');var path=require(_0xd071('0x1'));var timeout=require(_0xd071('0x2'));var express=require(_0xd071('0x3'));var router=express[_0xd071('0x4')]();var fs_extra=require(_0xd071('0x5'));var auth=require(_0xd071('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xd071('0x7'));var controller=require(_0xd071('0x8'));router[_0xd071('0x9')](_0xd071('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xd071('0xb')]('/',auth[_0xd071('0xc')](),controller['create']);router[_0xd071('0xd')](_0xd071('0xa'),auth[_0xd071('0xc')](),controller['update']);router['delete'](_0xd071('0xa'),auth[_0xd071('0xc')](),controller['destroy']);module[_0xd071('0xe')]=router;