"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadAppSettingsPublications = loadAppSettingsPublications;
var simpl_schema_1 = require("simpl-schema");
var app_setting_collection_1 = require("../collections/app-setting.collection");
function loadAppSettingsPublications(subscriptionManager) {
    subscriptionManager.publications({
        appSettings: {
            function: function () {
                return app_setting_collection_1.AppSettings.find({}, { sort: { company_name: 1 } });
            },
            collections: ['app-settings']
        },
        appSettingById: {
            check: new simpl_schema_1.default({
                id_app_setting: {
                    type: String
                }
            }),
            function: function (id_app_setting) {
                return app_setting_collection_1.AppSettings.findById(id_app_setting);
            },
            collections: ['app-settings']
        }
    });
}

//# sourceMappingURL=app-settings.js.map
