"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const http_status_1 = __importDefault(require("http-status"));
const docAccess_1 = require("../operations/docAccess");
async function docAccessRequestHandler(req, res, next, globalConfig) {
    try {
        const accessResults = await (0, docAccess_1.docAccess)({
            req,
            globalConfig,
        });
        return res.status(http_status_1.default.OK).json(accessResults);
    }
    catch (error) {
        return next(error);
    }
}
exports.default = docAccessRequestHandler;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jQWNjZXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2dsb2JhbHMvcmVxdWVzdEhhbmRsZXJzL2RvY0FjY2Vzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUNBLDhEQUFxQztBQUVyQyx1REFBb0Q7QUFJckMsS0FBSyxVQUFVLHVCQUF1QixDQUFDLEdBQW1CLEVBQUUsR0FBYSxFQUFFLElBQWtCLEVBQUUsWUFBbUM7SUFDL0ksSUFBSTtRQUNGLE1BQU0sYUFBYSxHQUFHLE1BQU0sSUFBQSxxQkFBUyxFQUFDO1lBQ3BDLEdBQUc7WUFDSCxZQUFZO1NBQ2IsQ0FBQyxDQUFDO1FBRUgsT0FBTyxHQUFHLENBQUMsTUFBTSxDQUFDLHFCQUFVLENBQUMsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDO0tBQ3REO0lBQUMsT0FBTyxLQUFLLEVBQUU7UUFDZCxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztLQUNwQjtBQUNILENBQUM7QUFYRCwwQ0FXQyJ9