import json


def rule(event):
    if any(
        [
            all(
                [
                    "New-MailboxExportRequest" in json.dumps(event.to_dict()),
                    " -Mailbox " in json.dumps(event.to_dict()),
                    any(
                        [
                            '-FilePath "\\\\' in json.dumps(event.to_dict()),
                            ".aspx" in json.dumps(event.to_dict()),
                        ]
                    ),
                ]
            ),
            all(
                [
                    "New-ManagementRoleAssignment" in json.dumps(event.to_dict()),
                    ' -Role "Mailbox Import Export"' in json.dumps(event.to_dict()),
                    " -User " in json.dumps(event.to_dict()),
                ]
            ),
        ]
    ):
        return True
    return False
