"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function user(body) {
    return {
        _id: body._id,
        email: body.email,
        password: body.password,
        status: body.status,
        firstName: body.firstName,
        lastName: body.lastName,
        forceResetPassword: body.forceResetPassword,
        builder: body.builder,
        admin: body.admin,
        roles: body.roles,
    };
}
function mapUser(ctx) {
    return {
        data: user(ctx.body),
    };
}
function mapUsers(ctx) {
    const users = ctx.body.map((body) => user(body));
    return { data: users };
}
exports.default = {
    mapUser,
    mapUsers,
};
