{
    "controller": "controllers/record",
    "recordViews": {
        "detail": "crm:views/case/record/detail"
    },
    "detailActionList": [
        {
            "name": "close",
            "label": "Close",
            "handler": "crm:handlers/case/detail-actions",
            "actionFunction": "close",
            "checkVisibilityFunction": "isCloseAvailable"
        },
        {
            "name": "reject",
            "label": "Reject",
            "handler": "crm:handlers/case/detail-actions",
            "actionFunction": "reject",
            "checkVisibilityFunction": "isRejectAvailable"
        }
    ],
    "sidePanels":{
        "detail":[
             {
                "name":"activities",
                "label":"Activities",
                "view":"crm:views/case/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/case/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"
             }
        ]
    },
    "filterList": [
        {
            "name":"open"
        },
        {
            "name":"closed",
            "style": "success"
        }
    ],
    "relationshipPanels": {
        "articles": {
            "createDisabled": true,
            "editDisabled": true,
            "removeDisabled": true,
            "rowActionList": [
                "sendInEmail"
            ]
        },
        "contacts": {
            "createAttributeMap": {
                "accountId": "accountId",
                "accountName": "accountName"
            },
            "selectHandler": "handlers/select-related/same-account-many"
        },
        "contact": {
            "createAttributeMap": {
                "accountId": "accountId",
                "accountName": "accountName"
            },
            "selectHandler": "handlers/select-related/same-account-many"
        }
    },
    "boolFilterList": ["onlyMy"],
    "selectDefaultFilters": {
        "filter": "open"
    },
    "allowInternalNotes": true,
    "dynamicLogic": {
        "fields": {
            "number": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "isNotEmpty",
                            "attribute": "id"
                        }
                    ]
                }
            }
        }
    },
    "additionalLayouts": {
        "detailPortal": {
            "type": "detail"
        },
        "detailSmallPortal": {
            "type": "detail"
        },
        "listPortal": {
            "type": "list"
        }
    },
    "iconClass": "fas fa-briefcase"
}
