'use strict';

var logger = require('../../utils/logger.js');

class MissingReportService {
    missingReportClient;
    enabled;
    constructor(missingReportClient, serviceFeatureConfig) {
        this.missingReportClient = missingReportClient;
        this.enabled = Boolean(serviceFeatureConfig.collections);
        if (!this.enabled)
            logger.default.info(`Missing reports: disabled `);
    }
    submitMissingReportEntry(token, reportId, variantId, reason) {
        if (!this.enabled)
            return undefined;
        return this.missingReportClient.submitMissingReportEntry(token, reportId, variantId, reason);
    }
}

exports.MissingReportService = MissingReportService;
//# sourceMappingURL=missingReportService.js.map
