Built motion from commit 4c579f6b.|2.5.32
[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 _0xd8bf=['post','create','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','/:id','isAuthenticated','show'];(function(_0x24310a,_0x36eb0a){var _0x3f638d=function(_0x2d7043){while(--_0x2d7043){_0x24310a['push'](_0x24310a['shift']());}};_0x3f638d(++_0x36eb0a);}(_0xd8bf,0x170));var _0xfd8b=function(_0x2e4dea,_0x24fcba){_0x2e4dea=_0x2e4dea-0x0;var _0xe31b7e=_0xd8bf[_0x2e4dea];return _0xe31b7e;};'use strict';var multer=require('multer');var util=require(_0xfd8b('0x0'));var path=require('path');var timeout=require(_0xfd8b('0x1'));var express=require(_0xfd8b('0x2'));var router=express[_0xfd8b('0x3')]();var fs_extra=require(_0xfd8b('0x4'));var auth=require(_0xfd8b('0x5'));var interaction=require(_0xfd8b('0x6'));var config=require('../../config/environment');var controller=require('./dashboardItem.controller');router['get'](_0xfd8b('0x7'),auth[_0xfd8b('0x8')](),controller[_0xfd8b('0x9')]);router[_0xfd8b('0xa')]('/',auth[_0xfd8b('0x8')](),controller[_0xfd8b('0xb')]);router['put'](_0xfd8b('0x7'),auth[_0xfd8b('0x8')](),controller['update']);router['delete'](_0xfd8b('0x7'),auth[_0xfd8b('0x8')](),controller[_0xfd8b('0xc')]);module[_0xfd8b('0xd')]=router;