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