"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const DatabaseConfigurator_1 = require("./DatabaseConfigurator");
const config_1 = require("../../config");
function configure() {
    return __awaiter(this, void 0, void 0, function* () {
        const configurator = new DatabaseConfigurator_1.DatabaseConfigurator({
            adminPassword: config_1.default.get('couchPassword'),
            adminUsername: config_1.default.get('couchUser'),
            couchHost: config_1.default.get('couchHost'),
            couchPort: config_1.default.get('couchPort')
        });
        yield configurator.configure();
    });
}
exports.configure = configure;
//# sourceMappingURL=index.js.map