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 _0xe4dd=['put','/:id','update','destroy','exports','multer','connect-timeout','express','fs-extra','get','isAuthenticated'];(function(_0x208969,_0x5ea86c){var _0xcfea83=function(_0x43ca17){while(--_0x43ca17){_0x208969['push'](_0x208969['shift']());}};_0xcfea83(++_0x5ea86c);}(_0xe4dd,0xcb));var _0xde4d=function(_0x2cfb58,_0x3d9412){_0x2cfb58=_0x2cfb58-0x0;var _0xd99951=_0xe4dd[_0x2cfb58];return _0xd99951;};'use strict';var multer=require(_0xde4d('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xde4d('0x1'));var express=require(_0xde4d('0x2'));var router=express['Router']();var fs_extra=require(_0xde4d('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./dashboardItem.controller');router[_0xde4d('0x4')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xde4d('0x5')](),controller['create']);router[_0xde4d('0x6')](_0xde4d('0x7'),auth[_0xde4d('0x5')](),controller[_0xde4d('0x8')]);router['delete'](_0xde4d('0x7'),auth[_0xde4d('0x5')](),controller[_0xde4d('0x9')]);module[_0xde4d('0xa')]=router;