"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InsideRestProvider = void 0;
const extension_provider_1 = require("../../integration/extension.provider");
const entity_intercept_provider_1 = require("./../entity-intercept/entity-intercept.provider");
const inside_rest_const_1 = require("./inside-rest.const");
const inside_rest_datasource_1 = require("./inside-rest.datasource");
const inside_rest_service_1 = require("./inside-rest.service");
class InsideRestProvider extends extension_provider_1.ExtensionProvider {
    constructor(app) {
        super(inside_rest_const_1.INSIDE_REST_PROVIDER, app);
        this.app = app;
        this.requiredProviders.push(entity_intercept_provider_1.EntityInterceptProvider);
        this.dataSources.push({
            dataSource: inside_rest_datasource_1.InsideRestDataSource,
            name: inside_rest_const_1.DATASTORE_INSIDE_REST,
        });
        this.services.push({ cls: inside_rest_service_1.InsideRestRepositoryProvider }, { cls: inside_rest_service_1.InsideRestService });
    }
}
exports.InsideRestProvider = InsideRestProvider;
//# sourceMappingURL=inside-rest.provider.js.map