"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InsideRestDataSource = void 0;
const tslib_1 = require("tslib");
const core_1 = require("@loopback/core");
const repository_1 = require("@loopback/repository");
const inside_rest_datasource_config_json_1 = tslib_1.__importDefault(require("./inside-rest.datasource.config.json"));
// Observe application's life cycle to disconnect the datasource when
// application is stopped. This allows the application to be shut down
// gracefully. The `stop()` method is inherited from `juggler.DataSource`.
// Learn more at https://loopback.io/doc/en/lb4/Life-cycle.html
let InsideRestDataSource = class InsideRestDataSource extends repository_1.juggler.DataSource {
    constructor(dsConfig = inside_rest_datasource_config_json_1.default) {
        super(dsConfig);
    }
};
InsideRestDataSource.dataSourceName = 'insideRest';
InsideRestDataSource.defaultConfig = inside_rest_datasource_config_json_1.default;
InsideRestDataSource = tslib_1.__decorate([
    core_1.lifeCycleObserver('datasource'),
    tslib_1.__param(0, core_1.inject('datasources.config.insideRest', { optional: true })),
    tslib_1.__metadata("design:paramtypes", [Object])
], InsideRestDataSource);
exports.InsideRestDataSource = InsideRestDataSource;
//# sourceMappingURL=inside-rest.datasource.js.map