"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RootConfigProvider = void 0;
const extension_provider_1 = require("../../integration/extension.provider");
const root_config_const_1 = require("./root-config.const");
const root_config_service_1 = require("./root-config.service");
class RootConfigProvider extends extension_provider_1.ExtensionProvider {
    constructor(app) {
        super(root_config_const_1.ROOT_CONFIG_PROVIDER, app);
        this.app = app;
        this.services.push({ cls: root_config_service_1.RootConfigService });
        this.objectTypes.push(root_config_const_1.ROOT_CONFIGURATION_TYPE);
        this.objectSubTypes.push(root_config_const_1.ROOT_ROOT_CONFIGURATION_SUBTYPE);
        this.objectTrees.rootConfiguration = {
            parentNode: () => this.appCtx.rootNode.value,
            treeNodeTypeId: root_config_const_1.ROOT_CONFIGURATION_TYPE.name,
            treeNodeName: root_config_const_1.ROOT_CONFIGURATION_TYPE.name,
            tree: { treeNode: {}, children: {} },
        };
    }
}
exports.RootConfigProvider = RootConfigProvider;
//# sourceMappingURL=root-config.provider.js.map