"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "getSettings", {
    enumerable: true,
    get: function() {
        return getSettings;
    }
});
const _expressasynchandler = /*#__PURE__*/ _interop_require_default(require("express-async-handler"));
const _settings = require("@tamanu/settings");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const getSettings = (0, _expressasynchandler.default)(async (req, res)=>{
    const { params: { facilityId }, store: { models } } = req;
    const settingsReader = new _settings.ReadSettings(models, facilityId);
    const settings = await settingsReader.getPatientPortalSettings();
    return res.send(settings);
});

//# sourceMappingURL=settings.js.map