{
    "controller": "controllers/record",
    "aclPortal": "crm:acl-portal/contact",
    "views": {
        "detail": "crm:views/contact/detail"
    },
    "recordViews": {
        "detail": "crm:views/contact/record/detail",
        "detailQuick": "crm:views/contact/record/detail-small"
    },
    "sidePanels": {
        "detail": [
            {
                "name": "activities",
                "label": "Activities",
                "view": "crm:views/record/panels/activities",
                "aclScope": "Activities"
            },
            {
                "name": "history",
                "label": "History",
                "view": "crm:views/record/panels/history",
                "aclScope": "Activities"
            },
            {
                "name": "tasks",
                "label": "Tasks",
                "view": "crm:views/record/panels/tasks",
                "aclScope": "Task"
            }
        ],
        "detailSmall": [
            {
                "name": "activities",
                "label": "Activities",
                "view": "crm:views/record/panels/activities",
                "aclScope": "Activities"
            },
            {
                "name": "history",
                "label": "History",
                "view": "crm:views/record/panels/history",
                "aclScope": "Activities"
            },
            {
                "name": "tasks",
                "label": "Tasks",
                "view": "crm:views/record/panels/tasks",
                "aclScope": "Task"
            }
        ]
    },
    "relationshipPanels": {
        "campaignLogRecords": {
            "rowActionsView": "views/record/row-actions/empty",
            "select": false,
            "create": false
        },
        "opportunities": {
            "layout": "listForContact"
        },
        "targetLists": {
            "create": false,
            "rowActionsView": "crm:views/record/row-actions/relationship-target",
            "layout": "listForTarget",
            "view": "crm:views/record/panels/target-lists"
        }
    },
    "boolFilterList": [
        "onlyMy"
    ],
    "additionalLayouts": {
        "detailConvert": {
            "type": "detail"
        },
        "listForAccount": {
            "type": "listSmall"
        }
    },
    "filterList": [
        "portalUsers"
    ],
    "dynamicLogic": {
        "fields": {
            "title": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "isNotEmpty",
                            "attribute": "accountId"
                        }
                    ]
                }
            },
            "portalUser": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "isNotEmpty",
                            "attribute": "portalUserId",
                            "data": {
                                "field": "portalUser"
                            }
                        }
                    ]
                }
            }
        }
    },
    "color": "#a4c5e0",
    "iconClass": "fas fa-id-badge"
}