Built motion from commit 67e5df37.|2.0.66
[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 _0xb12f=['/:id','show','post','isAuthenticated','put','update','delete','destroy','exports','multer','util','path','express','Router','../../config/environment'];(function(_0xd0c78c,_0x27acd1){var _0x48a1d4=function(_0x401a3c){while(--_0x401a3c){_0xd0c78c['push'](_0xd0c78c['shift']());}};_0x48a1d4(++_0x27acd1);}(_0xb12f,0x1cb));var _0xfb12=function(_0x426afa,_0x3fcac4){_0x426afa=_0x426afa-0x0;var _0x457a81=_0xb12f[_0x426afa];return _0x457a81;};'use strict';var multer=require(_0xfb12('0x0'));var util=require(_0xfb12('0x1'));var path=require(_0xfb12('0x2'));var express=require(_0xfb12('0x3'));var router=express[_0xfb12('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xfb12('0x5'));var controller=require('./dashboardItem.controller');router['get'](_0xfb12('0x6'),auth['isAuthenticated'](),controller[_0xfb12('0x7')]);router[_0xfb12('0x8')]('/',auth[_0xfb12('0x9')](),controller['create']);router[_0xfb12('0xa')](_0xfb12('0x6'),auth['isAuthenticated'](),controller[_0xfb12('0xb')]);router[_0xfb12('0xc')](_0xfb12('0x6'),auth[_0xfb12('0x9')](),controller[_0xfb12('0xd')]);module[_0xfb12('0xe')]=router;