a920d12bb89250e130837d2ecb2511e572793268
[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 _0x481f=['update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./dashboardItem.controller','get','/:id','isAuthenticated','post','create'];(function(_0x5a50ce,_0x346ba6){var _0x13792e=function(_0x3b3758){while(--_0x3b3758){_0x5a50ce['push'](_0x5a50ce['shift']());}};_0x13792e(++_0x346ba6);}(_0x481f,0xf2));var _0xf481=function(_0x175359,_0x7f4b6e){_0x175359=_0x175359-0x0;var _0x1582b6=_0x481f[_0x175359];return _0x1582b6;};'use strict';var multer=require(_0xf481('0x0'));var util=require(_0xf481('0x1'));var path=require('path');var timeout=require(_0xf481('0x2'));var express=require(_0xf481('0x3'));var router=express['Router']();var fs_extra=require(_0xf481('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf481('0x5'));var config=require(_0xf481('0x6'));var controller=require(_0xf481('0x7'));router[_0xf481('0x8')](_0xf481('0x9'),auth[_0xf481('0xa')](),controller['show']);router[_0xf481('0xb')]('/',auth[_0xf481('0xa')](),controller[_0xf481('0xc')]);router['put'](_0xf481('0x9'),auth[_0xf481('0xa')](),controller[_0xf481('0xd')]);router[_0xf481('0xe')](_0xf481('0x9'),auth[_0xf481('0xa')](),controller[_0xf481('0xf')]);module[_0xf481('0x10')]=router;