{
    "controller": "controllers/record",
    "dynamicHandler": "handlers/email-filter",
    "modalViews": {
        "edit": "views/email-filter/modals/edit"
    },
    "recordViews": {
        "list": "views/email-filter/record/list"
    },
    "inlineEditDisabled": true,
    "searchPanelDisabled": false,
    "menu": {
        "list": {
            "buttons": [
                {
                    "label": "Emails",
                    "link": "#Email",
                    "style": "default",
                    "aclScope": "Email"
                }
            ]
        }
    },
    "boolFilterList": [
        "onlyMy"
    ],
    "dynamicLogic": {
        "fields": {
            "parent": {
                "visible": {
                    "conditionGroup": [
                        {
                            "attribute": "isGlobal",
                            "type": "isFalse"
                        }
                    ]
                },
                "required": {
                    "conditionGroup": [
                        {
                            "attribute": "isGlobal",
                            "type": "isFalse"
                        }
                    ]
                }
            },
            "emailFolder": {
                "visible": {
                    "conditionGroup": [
                        {
                            "attribute": "action",
                            "type": "equals",
                            "value": "Move to Folder"
                        }
                    ]
                },
                "required": {
                    "conditionGroup": [
                        {
                            "attribute": "action",
                            "type": "equals",
                            "value": "Move to Folder"
                        }
                    ]
                }
            },
            "groupEmailFolder": {
                "visible": {
                    "conditionGroup": [
                        {
                            "attribute": "action",
                            "type": "equals",
                            "value": "Move to Group Folder"
                        }
                    ]
                },
                "required": {
                    "conditionGroup": [
                        {
                            "attribute": "action",
                            "type": "equals",
                            "value": "Move to Group Folder"
                        }
                    ]
                }
            },
            "markAsRead": {
                "visible": {
                    "conditionGroup": [
                        {
                            "attribute": "parentType",
                            "type": "equals",
                            "value": "User"
                        }
                    ]
                }
            }
        },
        "options": {
            "action": [
                {
                    "conditionGroup": [
                        {
                            "attribute": "isGlobal",
                            "type": "isTrue"
                        }
                    ],
                    "optionList": [
                        "Skip"
                    ]
                },
                {
                    "conditionGroup": [
                        {
                            "attribute": "parentType",
                            "type": "equals",
                            "value": "User"
                        }
                    ],
                    "optionList": [
                        "Skip",
                        "Move to Folder",
                        "None"
                    ]
                },
                {
                    "conditionGroup": [
                        {
                            "attribute": "parentType",
                            "type": "equals",
                            "value": "InboundEmail"
                        }
                    ],
                    "optionList": [
                        "Skip",
                        "Move to Group Folder"
                    ]
                },
                {
                    "conditionGroup": [],
                    "optionList": [
                        "Skip"
                    ]
                }
            ]
        }
    }
}
