Built motion from commit b0a9a629.|2.6.33
[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 _0x66e0=['exports','path','connect-timeout','fs-extra','../../components/auth/service','./dashboardItem.controller','get','show','post','isAuthenticated','create','put','/:id','update'];(function(_0x10447c,_0x520639){var _0x56da5e=function(_0x1a64c5){while(--_0x1a64c5){_0x10447c['push'](_0x10447c['shift']());}};_0x56da5e(++_0x520639);}(_0x66e0,0x143));var _0x066e=function(_0xd0603b,_0x1b7fff){_0xd0603b=_0xd0603b-0x0;var _0x56af8d=_0x66e0[_0xd0603b];return _0x56af8d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x066e('0x0'));var timeout=require(_0x066e('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x066e('0x2'));var auth=require(_0x066e('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x066e('0x4'));router[_0x066e('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x066e('0x6')]);router[_0x066e('0x7')]('/',auth[_0x066e('0x8')](),controller[_0x066e('0x9')]);router[_0x066e('0xa')](_0x066e('0xb'),auth['isAuthenticated'](),controller[_0x066e('0xc')]);router['delete'](_0x066e('0xb'),auth[_0x066e('0x8')](),controller['destroy']);module[_0x066e('0xd')]=router;