"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildDefaultChannel = buildDefaultChannel;
const aclCategory_1 = require("../../discussions/api/enums/aclCategory");
const aclSubCategory_1 = require("../../discussions/api/enums/aclSubCategory");
const role_1 = require("../../discussions/api/enums/role");
const transformAclPermissionToEntityPermissionPolicy_1 = require("./transformAclPermissionToEntityPermissionPolicy");
/**
 * @private
 * Builds a partial IHubChannel object with default values
 * @param orgId the currently authenticated user's orgId
 * @returns a partial IHubChannel object
 */
function buildDefaultChannel(orgId) {
    return {
        name: "",
        blockWords: [],
        allowAsAnonymous: false,
        canEdit: true,
        canDelete: true,
        permissions: [
            (0, transformAclPermissionToEntityPermissionPolicy_1.transformAclPermissionToEntityPermissionPolicy)({
                category: aclCategory_1.AclCategory.ORG,
                subCategory: aclSubCategory_1.AclSubCategory.ADMIN,
                role: role_1.Role.OWNER,
                key: orgId,
            }),
        ],
    };
}
//# sourceMappingURL=buildDefaultChannel.js.map