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 _0x2fde=['/:id/items','post','create','/:id/clone','clone','addItem','put','update','delete','multer','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','show'];(function(_0x335d63,_0x5d8378){var _0x49bcda=function(_0x4b3ea4){while(--_0x4b3ea4){_0x335d63['push'](_0x335d63['shift']());}};_0x49bcda(++_0x5d8378);}(_0x2fde,0xcf));var _0xe2fd=function(_0x11006a,_0x3685c6){_0x11006a=_0x11006a-0x0;var _0x372dd8=_0x2fde[_0x11006a];return _0x372dd8;};'use strict';var multer=require(_0xe2fd('0x0'));var util=require('util');var path=require(_0xe2fd('0x1'));var timeout=require('connect-timeout');var express=require(_0xe2fd('0x2'));var router=express[_0xe2fd('0x3')]();var fs_extra=require(_0xe2fd('0x4'));var auth=require(_0xe2fd('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe2fd('0x6'));var controller=require(_0xe2fd('0x7'));router[_0xe2fd('0x8')]('/',auth[_0xe2fd('0x9')](),controller[_0xe2fd('0xa')]);router[_0xe2fd('0x8')](_0xe2fd('0xb'),auth[_0xe2fd('0x9')](),controller[_0xe2fd('0xc')]);router[_0xe2fd('0x8')](_0xe2fd('0xd'),auth[_0xe2fd('0x9')](),controller['getItems']);router[_0xe2fd('0xe')]('/',auth[_0xe2fd('0x9')](),controller[_0xe2fd('0xf')]);router[_0xe2fd('0xe')](_0xe2fd('0x10'),auth[_0xe2fd('0x9')](),controller[_0xe2fd('0x11')]);router[_0xe2fd('0xe')]('/:id/items',auth[_0xe2fd('0x9')](),controller[_0xe2fd('0x12')]);router[_0xe2fd('0x13')]('/:id',auth[_0xe2fd('0x9')](),controller[_0xe2fd('0x14')]);router[_0xe2fd('0x15')](_0xe2fd('0xb'),auth[_0xe2fd('0x9')](),controller['destroy']);module['exports']=router;