f3f4382762968df71fe27f4f69c013c96ad862c9
[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 _0xbe1f=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboardItem.controller','get','/:id','isAuthenticated','show','create','put','update','destroy','exports','multer'];(function(_0x331136,_0x15c2e9){var _0x1d0359=function(_0x555a86){while(--_0x555a86){_0x331136['push'](_0x331136['shift']());}};_0x1d0359(++_0x15c2e9);}(_0xbe1f,0x8b));var _0xfbe1=function(_0x1ac595,_0x5d2081){_0x1ac595=_0x1ac595-0x0;var _0x455fff=_0xbe1f[_0x1ac595];return _0x455fff;};'use strict';var multer=require(_0xfbe1('0x0'));var util=require(_0xfbe1('0x1'));var path=require(_0xfbe1('0x2'));var timeout=require(_0xfbe1('0x3'));var express=require(_0xfbe1('0x4'));var router=express[_0xfbe1('0x5')]();var fs_extra=require(_0xfbe1('0x6'));var auth=require(_0xfbe1('0x7'));var interaction=require(_0xfbe1('0x8'));var config=require(_0xfbe1('0x9'));var controller=require(_0xfbe1('0xa'));router[_0xfbe1('0xb')](_0xfbe1('0xc'),auth[_0xfbe1('0xd')](),controller[_0xfbe1('0xe')]);router['post']('/',auth[_0xfbe1('0xd')](),controller[_0xfbe1('0xf')]);router[_0xfbe1('0x10')]('/:id',auth[_0xfbe1('0xd')](),controller[_0xfbe1('0x11')]);router['delete'](_0xfbe1('0xc'),auth[_0xfbe1('0xd')](),controller[_0xfbe1('0x12')]);module[_0xfbe1('0x13')]=router;