Built motion from commit e02f907f.|2.6.14
[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 _0x9211=['show','post','create','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./dashboardItem.controller','get','isAuthenticated'];(function(_0x45822b,_0x283658){var _0x501aa5=function(_0x4e586a){while(--_0x4e586a){_0x45822b['push'](_0x45822b['shift']());}};_0x501aa5(++_0x283658);}(_0x9211,0xaa));var _0x1921=function(_0x5f2fea,_0x9fde07){_0x5f2fea=_0x5f2fea-0x0;var _0x198a0c=_0x9211[_0x5f2fea];return _0x198a0c;};'use strict';var multer=require('multer');var util=require(_0x1921('0x0'));var path=require(_0x1921('0x1'));var timeout=require(_0x1921('0x2'));var express=require(_0x1921('0x3'));var router=express[_0x1921('0x4')]();var fs_extra=require(_0x1921('0x5'));var auth=require(_0x1921('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1921('0x7'));router[_0x1921('0x8')]('/:id',auth[_0x1921('0x9')](),controller[_0x1921('0xa')]);router[_0x1921('0xb')]('/',auth[_0x1921('0x9')](),controller[_0x1921('0xc')]);router['put'](_0x1921('0xd'),auth[_0x1921('0x9')](),controller[_0x1921('0xe')]);router[_0x1921('0xf')]('/:id',auth[_0x1921('0x9')](),controller[_0x1921('0x10')]);module[_0x1921('0x11')]=router;