'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var express = require('express');
var controller = require('./controller.js');
var validateFilters = require('../../../../../validation/validateFilters.js');
var UserReports = require('../../../../../types/UserReports.js');

/* eslint-disable no-param-reassign */
function routes({ layoutPath, services }) {
    const router = express.Router({ mergeParams: true });
    const controller$1 = new controller.ViewSyncDashboardController(layoutPath, services);
    router.get([`/`], controller$1.GET);
    // Interactive controls
    router.post('/apply-filters', validateFilters.validateFilters({ interactive: true, loadType: UserReports.LoadType.SYNC }), controller$1.applyFilters);
    router.post('/apply-filters', controller$1.applyFilters);
    router.post('/reset-filters', controller$1.resetFilters);
    return router;
}

exports.default = routes;
exports.routes = routes;
//# sourceMappingURL=routes.js.map
