"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CleanEntityProvider = void 0;
const extension_description_1 = require("../../integration/extension-description");
const extension_provider_1 = require("../../integration/extension.provider");
const clean_entity_const_1 = require("./clean-entity.const");
const clean_entity_service_1 = require("./clean-entity.service");
class CleanEntityProvider extends extension_provider_1.ExtensionProvider {
    constructor(app) {
        super(clean_entity_const_1.CLEAN_ENTITY_PROVIDER, app);
        this.app = app;
        this.services.push({ cls: clean_entity_service_1.CleanEntityService });
        this.interceptorsPrepend.push({
            id: 'CleanEntityInterceptor',
            interceptor: clean_entity_service_1.CleanEntityInterceptor,
            description: {
                postTreatment: new extension_description_1.RunnerTreatmentDescription('Clean returned objects'),
            },
        });
    }
}
exports.CleanEntityProvider = CleanEntityProvider;
//# sourceMappingURL=clean-entity.provider.js.map