"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports._processAutoAdd = _processAutoAdd;
const get_prop_1 = require("../../../objects/get-prop");
const autoAddUsers_1 = require("../../autoAddUsers");
const _format_auto_add_response_1 = require("./_format-auto-add-response");
/**
 * @private
 */
function _processAutoAdd(context) {
    return (0, autoAddUsers_1.autoAddUsers)((0, get_prop_1.getProp)(context, "groupId"), (0, get_prop_1.getProp)(context, "usersToAutoAdd"), (0, get_prop_1.getProp)(context, "primaryRO.authentication")).then((rawResponse) => (0, _format_auto_add_response_1._formatAutoAddResponse)(rawResponse, context));
}
//# sourceMappingURL=_process-auto-add.js.map