f548d724cd6f477fc81b86d0abf9add3cd723b76
[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 _0x3aa4=['/:id','isAuthenticated','show','post','create','put','update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./dashboardItem.controller','get'];(function(_0x493edd,_0x19fe54){var _0x98b3f8=function(_0x204100){while(--_0x204100){_0x493edd['push'](_0x493edd['shift']());}};_0x98b3f8(++_0x19fe54);}(_0x3aa4,0x1d1));var _0x43aa=function(_0x2c81c2,_0x24d5f7){_0x2c81c2=_0x2c81c2-0x0;var _0x56d1f3=_0x3aa4[_0x2c81c2];return _0x56d1f3;};'use strict';var multer=require(_0x43aa('0x0'));var util=require('util');var path=require(_0x43aa('0x1'));var timeout=require(_0x43aa('0x2'));var express=require(_0x43aa('0x3'));var router=express[_0x43aa('0x4')]();var fs_extra=require(_0x43aa('0x5'));var auth=require(_0x43aa('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x43aa('0x7'));var controller=require(_0x43aa('0x8'));router[_0x43aa('0x9')](_0x43aa('0xa'),auth[_0x43aa('0xb')](),controller[_0x43aa('0xc')]);router[_0x43aa('0xd')]('/',auth['isAuthenticated'](),controller[_0x43aa('0xe')]);router[_0x43aa('0xf')](_0x43aa('0xa'),auth[_0x43aa('0xb')](),controller[_0x43aa('0x10')]);router[_0x43aa('0x11')](_0x43aa('0xa'),auth[_0x43aa('0xb')](),controller['destroy']);module[_0x43aa('0x12')]=router;