3465ae70d9326341a8d269a4a4baf81aa7b94bce
[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 _0x15f8=['../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','post','create','put','update','delete','exports','multer','util','path','express','Router','../../components/auth/service'];(function(_0x3ebbc4,_0x1e2ed7){var _0x598d1d=function(_0x1fdadc){while(--_0x1fdadc){_0x3ebbc4['push'](_0x3ebbc4['shift']());}};_0x598d1d(++_0x1e2ed7);}(_0x15f8,0x1aa));var _0x815f=function(_0x156dc8,_0x4bcf44){_0x156dc8=_0x156dc8-0x0;var _0x31a381=_0x15f8[_0x156dc8];return _0x31a381;};'use strict';var multer=require(_0x815f('0x0'));var util=require(_0x815f('0x1'));var path=require(_0x815f('0x2'));var timeout=require('connect-timeout');var express=require(_0x815f('0x3'));var router=express[_0x815f('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x815f('0x5'));var interaction=require(_0x815f('0x6'));var config=require(_0x815f('0x7'));var controller=require('./dashboardItem.controller');router[_0x815f('0x8')](_0x815f('0x9'),auth[_0x815f('0xa')](),controller[_0x815f('0xb')]);router[_0x815f('0xc')]('/',auth['isAuthenticated'](),controller[_0x815f('0xd')]);router[_0x815f('0xe')](_0x815f('0x9'),auth[_0x815f('0xa')](),controller[_0x815f('0xf')]);router[_0x815f('0x10')](_0x815f('0x9'),auth[_0x815f('0xa')](),controller['destroy']);module[_0x815f('0x11')]=router;