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 _0xb171=['update','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./dashboardItem.controller','get','/:id','show','post','isAuthenticated','create','put'];(function(_0xa33079,_0x3ad4b4){var _0x175fdc=function(_0x944a71){while(--_0x944a71){_0xa33079['push'](_0xa33079['shift']());}};_0x175fdc(++_0x3ad4b4);}(_0xb171,0x133));var _0x1b17=function(_0xf70bb5,_0x424578){_0xf70bb5=_0xf70bb5-0x0;var _0x23164f=_0xb171[_0xf70bb5];return _0x23164f;};'use strict';var multer=require(_0x1b17('0x0'));var util=require('util');var path=require(_0x1b17('0x1'));var timeout=require(_0x1b17('0x2'));var express=require(_0x1b17('0x3'));var router=express[_0x1b17('0x4')]();var fs_extra=require(_0x1b17('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x1b17('0x6'));var config=require(_0x1b17('0x7'));var controller=require(_0x1b17('0x8'));router[_0x1b17('0x9')](_0x1b17('0xa'),auth['isAuthenticated'](),controller[_0x1b17('0xb')]);router[_0x1b17('0xc')]('/',auth[_0x1b17('0xd')](),controller[_0x1b17('0xe')]);router[_0x1b17('0xf')](_0x1b17('0xa'),auth['isAuthenticated'](),controller[_0x1b17('0x10')]);router['delete']('/:id',auth[_0x1b17('0xd')](),controller[_0x1b17('0x11')]);module[_0x1b17('0x12')]=router;