d899cd45cc076c585f1556f023a2fb9bc0ed0405
[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 _0x57f1=['./dashboardItem.controller','get','/:id','isAuthenticated','show','create','put','delete','destroy','exports','util','express','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x19c231,_0x245a53){var _0x125922=function(_0x1c28fb){while(--_0x1c28fb){_0x19c231['push'](_0x19c231['shift']());}};_0x125922(++_0x245a53);}(_0x57f1,0x82));var _0x157f=function(_0x19c3b1,_0x3c5e29){_0x19c3b1=_0x19c3b1-0x0;var _0x5b1292=_0x57f1[_0x19c3b1];return _0x5b1292;};'use strict';var multer=require('multer');var util=require(_0x157f('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x157f('0x1'));var router=express['Router']();var fs_extra=require(_0x157f('0x2'));var auth=require(_0x157f('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x157f('0x4'));var controller=require(_0x157f('0x5'));router[_0x157f('0x6')](_0x157f('0x7'),auth[_0x157f('0x8')](),controller[_0x157f('0x9')]);router['post']('/',auth[_0x157f('0x8')](),controller[_0x157f('0xa')]);router[_0x157f('0xb')](_0x157f('0x7'),auth[_0x157f('0x8')](),controller['update']);router[_0x157f('0xc')](_0x157f('0x7'),auth[_0x157f('0x8')](),controller[_0x157f('0xd')]);module[_0x157f('0xe')]=router;