'use strict';

var utils = require('../../../components/user-reports/utils.js');

class UserReportsController {
    layoutPath;
    services;
    constructor(layoutPath, services) {
        this.layoutPath = layoutPath;
        this.services = services;
    }
    GET = async (_req, res) => {
        const userReportsLists = await utils.initUserReports({ services: this.services, res, maxRows: 20 });
        res.render(`dpr/routes/journeys/my-reports/user-reports-view`, {
            layoutPath: this.layoutPath,
            userReportsLists,
        });
    };
}

module.exports = UserReportsController;
//# sourceMappingURL=controller.js.map
