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 _0xfdc9=['util','path','connect-timeout','../../components/auth/service','../../config/environment','/:id','isAuthenticated','show','post','create','put','update','destroy','exports','multer'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xfdc9,0x1d0));var _0x9fdc=function(_0x5c4c16,_0x4f6ce5){_0x5c4c16=_0x5c4c16-0x0;var _0x55d111=_0xfdc9[_0x5c4c16];return _0x55d111;};'use strict';var multer=require(_0x9fdc('0x0'));var util=require(_0x9fdc('0x1'));var path=require(_0x9fdc('0x2'));var timeout=require(_0x9fdc('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x9fdc('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x9fdc('0x5'));var controller=require('./dashboardItem.controller');router['get'](_0x9fdc('0x6'),auth[_0x9fdc('0x7')](),controller[_0x9fdc('0x8')]);router[_0x9fdc('0x9')]('/',auth[_0x9fdc('0x7')](),controller[_0x9fdc('0xa')]);router[_0x9fdc('0xb')](_0x9fdc('0x6'),auth[_0x9fdc('0x7')](),controller[_0x9fdc('0xc')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x9fdc('0xd')]);module[_0x9fdc('0xe')]=router;