26fad219b2b33f710df0ecfec3cdda77920d422c
[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 _0x0959=['destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','post','create','put','update','isAuthenticated'];(function(_0x411add,_0x1aed38){var _0x238242=function(_0x4a1cd5){while(--_0x4a1cd5){_0x411add['push'](_0x411add['shift']());}};_0x238242(++_0x1aed38);}(_0x0959,0x16b));var _0x9095=function(_0x168ec3,_0x5cf60a){_0x168ec3=_0x168ec3-0x0;var _0x14a248=_0x0959[_0x168ec3];return _0x14a248;};'use strict';var multer=require(_0x9095('0x0'));var util=require(_0x9095('0x1'));var path=require(_0x9095('0x2'));var timeout=require(_0x9095('0x3'));var express=require(_0x9095('0x4'));var router=express[_0x9095('0x5')]();var fs_extra=require(_0x9095('0x6'));var auth=require(_0x9095('0x7'));var interaction=require(_0x9095('0x8'));var config=require(_0x9095('0x9'));var controller=require('./dashboardItem.controller');router[_0x9095('0xa')](_0x9095('0xb'),auth['isAuthenticated'](),controller['show']);router[_0x9095('0xc')]('/',auth['isAuthenticated'](),controller[_0x9095('0xd')]);router[_0x9095('0xe')](_0x9095('0xb'),auth['isAuthenticated'](),controller[_0x9095('0xf')]);router['delete']('/:id',auth[_0x9095('0x10')](),controller[_0x9095('0x11')]);module[_0x9095('0x12')]=router;