1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xd399=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','/:id','show','isAuthenticated','put','update','delete','destroy','multer','util','path','connect-timeout'];(function(_0x68f044,_0x1bb7a8){var _0x5741eb=function(_0x55947a){while(--_0x55947a){_0x68f044['push'](_0x68f044['shift']());}};_0x5741eb(++_0x1bb7a8);}(_0xd399,0x1e9));var _0x9d39=function(_0x9c3521,_0x22ac04){_0x9c3521=_0x9c3521-0x0;var _0x4e0064=_0xd399[_0x9c3521];return _0x4e0064;};'use strict';var multer=require(_0x9d39('0x0'));var util=require(_0x9d39('0x1'));var path=require(_0x9d39('0x2'));var timeout=require(_0x9d39('0x3'));var express=require(_0x9d39('0x4'));var router=express[_0x9d39('0x5')]();var fs_extra=require(_0x9d39('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x9d39('0x7'));var config=require(_0x9d39('0x8'));var controller=require('./dashboardItem.controller');router[_0x9d39('0x9')](_0x9d39('0xa'),auth['isAuthenticated'](),controller[_0x9d39('0xb')]);router['post']('/',auth[_0x9d39('0xc')](),controller['create']);router[_0x9d39('0xd')](_0x9d39('0xa'),auth[_0x9d39('0xc')](),controller[_0x9d39('0xe')]);router[_0x9d39('0xf')](_0x9d39('0xa'),auth[_0x9d39('0xc')](),controller[_0x9d39('0x10')]);module['exports']=router;