import json


def rule(event):
    if all(
        [
            "Set-OabVirtualDirectory" in json.dumps(event.to_dict()),
            "ExternalUrl" in json.dumps(event.to_dict()),
            "Page_Load" in json.dumps(event.to_dict()),
            "script" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
