5f68f4420498af4e36cd1dd673dad3344fe26678
[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 _0x9e51=['exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboardItem.controller','/:id','isAuthenticated','show','post','put','update','delete'];(function(_0x4fbb86,_0x374ed0){var _0xb141fe=function(_0x382195){while(--_0x382195){_0x4fbb86['push'](_0x4fbb86['shift']());}};_0xb141fe(++_0x374ed0);}(_0x9e51,0xb5));var _0x19e5=function(_0x122096,_0x60c295){_0x122096=_0x122096-0x0;var _0x3d1966=_0x9e51[_0x122096];return _0x3d1966;};'use strict';var multer=require('multer');var util=require(_0x19e5('0x0'));var path=require(_0x19e5('0x1'));var timeout=require(_0x19e5('0x2'));var express=require(_0x19e5('0x3'));var router=express[_0x19e5('0x4')]();var fs_extra=require(_0x19e5('0x5'));var auth=require(_0x19e5('0x6'));var interaction=require(_0x19e5('0x7'));var config=require(_0x19e5('0x8'));var controller=require(_0x19e5('0x9'));router['get'](_0x19e5('0xa'),auth[_0x19e5('0xb')](),controller[_0x19e5('0xc')]);router[_0x19e5('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x19e5('0xe')]('/:id',auth[_0x19e5('0xb')](),controller[_0x19e5('0xf')]);router[_0x19e5('0x10')](_0x19e5('0xa'),auth[_0x19e5('0xb')](),controller['destroy']);module[_0x19e5('0x11')]=router;