Built motion from commit 3c2ce842.|2.6.31
[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 _0x7b02=['util','path','connect-timeout','express','Router','./dashboardItem.controller','get','/:id','show','post','create','put','isAuthenticated','update','delete','destroy','exports','multer'];(function(_0x179e11,_0xf65436){var _0x549f04=function(_0x610545){while(--_0x610545){_0x179e11['push'](_0x179e11['shift']());}};_0x549f04(++_0xf65436);}(_0x7b02,0x8f));var _0x27b0=function(_0x3cac3f,_0x276d81){_0x3cac3f=_0x3cac3f-0x0;var _0x1f8615=_0x7b02[_0x3cac3f];return _0x1f8615;};'use strict';var multer=require(_0x27b0('0x0'));var util=require(_0x27b0('0x1'));var path=require(_0x27b0('0x2'));var timeout=require(_0x27b0('0x3'));var express=require(_0x27b0('0x4'));var router=express[_0x27b0('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x27b0('0x6'));router[_0x27b0('0x7')](_0x27b0('0x8'),auth['isAuthenticated'](),controller[_0x27b0('0x9')]);router[_0x27b0('0xa')]('/',auth['isAuthenticated'](),controller[_0x27b0('0xb')]);router[_0x27b0('0xc')](_0x27b0('0x8'),auth[_0x27b0('0xd')](),controller[_0x27b0('0xe')]);router[_0x27b0('0xf')]('/:id',auth[_0x27b0('0xd')](),controller[_0x27b0('0x10')]);module[_0x27b0('0x11')]=router;