{
    "controller": "crm:controllers/lead",
    "views": {
        "detail": "crm:views/lead/detail"
    },
    "recordViews": {
        "detail": "crm:views/lead/record/detail"
    },
    "sidePanels": {
        "detail": [
            {
                "name": "convertedTo",
                "label": "Converted To",
                "view": "crm:views/lead/record/panels/converted-to",
                "notRefreshable": true,
                "hidden": true,
                "style": "success",
                "isForm": true
            },
            {
                "name": "activities",
                "reference": "activities"
            },
            {
                "name": "history",
                "reference": "history"
            },
            {
                "name": "tasks",
                "reference": "tasks"
            }
        ],
        "edit": [
            {
                "name": "convertedTo",
                "label": "Converted To",
                "view": "crm:views/lead/record/panels/converted-to",
                "notRefreshable": true,
                "hidden": true,
                "style": "success",
                "isForm": true
            }
        ],
        "detailSmall": [
            {
                "name": "convertedTo",
                "label": "Converted To",
                "view": "crm:views/lead/record/panels/converted-to",
                "notRefreshable": true,
                "hidden": true,
                "style": "success",
                "isForm": true
            },
            {
                "name": "activities",
                "reference": "activities"
            },
            {
                "name": "history",
                "reference": "history"
            },
            {
                "name": "tasks",
                "reference": "tasks"
            }
        ],
        "editSmall": [
            {
                "name": "convertedTo",
                "label": "Converted To",
                "view": "crm:views/lead/record/panels/converted-to",
                "notRefreshable": true,
                "hidden": true,
                "style": "success",
                "isForm": true
            }
        ]
    },
    "bottomPanels": {
        "detail": [
            {
                "name": "activities",
                "reference": "activities",
                "disabled": true
            },
            {
                "name": "history",
                "reference": "history",
                "disabled": true
            }
        ]
    },
    "relationshipPanels": {
        "campaignLogRecords": {
            "rowActionsView": "views/record/row-actions/empty",
            "select": false,
            "create": false
        },
        "targetLists": {
            "create": false,
            "rowActionsView": "crm:views/record/row-actions/relationship-target",
            "layout": "listForTarget",
            "view": "crm:views/record/panels/target-lists"
        },
        "meetings": {
            "createHandler": "handlers/create-related/set-parent"
        },
        "calls": {
            "createHandler": "handlers/create-related/set-parent"
        }
    },
    "filterList": [
        {
            "name": "actual"
        },
        {
            "name": "converted",
            "style": "success"
        }
    ],
    "boolFilterList": [
        "onlyMy"
    ],
    "dynamicLogic": {
        "fields": {
            "name": {
                "required": {
                    "conditionGroup": [
                        {
                            "type": "isEmpty",
                            "attribute": "accountName"
                        },
                        {
                            "type": "isEmpty",
                            "attribute": "emailAddress"
                        },
                        {
                            "type": "isEmpty",
                            "attribute": "phoneNumber"
                        }
                    ]
                }
            },
            "convertedAt": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "and",
                            "value": [
                                {
                                    "type": "equals",
                                    "attribute": "status",
                                    "value": "Converted"
                                },
                                {
                                    "type": "isNotEmpty",
                                    "attribute": "convertedAt"
                                }
                            ]
                        }
                    ]
                }
            }
        },
        "panels": {
            "convertedTo": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "equals",
                            "attribute": "status",
                            "value": "Converted"
                        }
                    ]
                }
            }
        }
    },
    "color": "#d6a2c9",
    "iconClass": "fas fa-address-card"
}
