{
    "controller":"controllers/email",
    "acl":"acl/email",
    "model":"models/email",
    "views":{
        "list":"views/email/list",
        "detail":"views/email/detail"
    },
    "recordViews":{
        "list":"views/email/record/list",
        "detail":"views/email/record/detail",
        "edit":"views/email/record/edit",
        "editQuick":"views/email/record/edit-quick",
        "detailQuick":"views/email/record/detail-quick",
        "compose":"views/email/record/compose",
        "listRelated":"views/email/record/list-related"
    },
    "modalViews":{
        "detail":"views/email/modals/detail",
        "compose":"views/modals/compose-email"
    },
    "quickCreateModalType":"compose",
    "defaultSidePanelView": "views/email/record/panels/default-side",
    "defaultSidePanelFieldList": [
        "teams",
        "status",
        "replied",
        "replies"
    ],
    "menu":{
        "list":{
            "buttons":[
                {
                    "label":"Compose",
                    "action":"composeEmail",
                    "style":"danger",
                    "acl":"create"
                }
            ],
            "dropdown":[
                {
                    "label":"Archive Email",
                    "link":"#Email/create",
                    "acl":"create"
                },
                false,
                {
                    "label":"Email Templates",
                    "link":"#EmailTemplate",
                    "acl":"read",
                    "aclScope":"EmailTemplate"
                },
                {
                    "label":"Folders",
                    "link":"#EmailFolder",
                    "configCheck": "!emailFoldersDisabled"
                },
                {
                    "label":"Filters",
                    "link":"#EmailFilter"
                }
            ]
        },
        "detail":{
            "dropdown":[
                {
                    "label":"Reply",
                    "action":"reply",
                    "acl":"read"
                },
                {
                    "label":"Reply to All",
                    "action":"replyToAll",
                    "acl":"read"
                },
                {
                    "label":"Forward",
                    "action":"forward",
                    "acl":"read"
                }
            ]
        }
    },
    "dynamicLogic":{
        "fields": {
            "replied": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "isNotEmpty",
                            "attribute": "repliedId",
                            "data": {
                                "field": "replied"
                            }
                        }
                    ]
                }
            },
            "replies": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "isNotEmpty",
                            "attribute": "repliesIds",
                            "data": {
                                "field": "replies"
                            }
                        }
                    ]
                }
            }
        }
    },
    "filterList":[

    ],
    "defaultFilterData":{

    },
    "boolFilterList":[

    ],
    "iconClass":"fas fa-envelope"
}
