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 _0xa129=['exports','util','path','connect-timeout','Router','../../components/auth/service','./dashboardItem.controller','get','/:id','isAuthenticated','show','post','create','put','update','destroy'];(function(_0x551c63,_0x21c721){var _0x2d227a=function(_0x1b426c){while(--_0x1b426c){_0x551c63['push'](_0x551c63['shift']());}};_0x2d227a(++_0x21c721);}(_0xa129,0xb1));var _0x9a12=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa129[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0x9a12('0x0'));var path=require(_0x9a12('0x1'));var timeout=require(_0x9a12('0x2'));var express=require('express');var router=express[_0x9a12('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x9a12('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x9a12('0x5'));router[_0x9a12('0x6')](_0x9a12('0x7'),auth[_0x9a12('0x8')](),controller[_0x9a12('0x9')]);router[_0x9a12('0xa')]('/',auth['isAuthenticated'](),controller[_0x9a12('0xb')]);router[_0x9a12('0xc')]('/:id',auth[_0x9a12('0x8')](),controller[_0x9a12('0xd')]);router['delete'](_0x9a12('0x7'),auth[_0x9a12('0x8')](),controller[_0x9a12('0xe')]);module[_0x9a12('0xf')]=router;