def rule(event):
    if all(
        [
            event.deep_get("Initiated", default="") == "true",
            any(
                [
                    event.deep_get("DestinationHostname", default="").endswith(
                        "api.dropboxapi.com"
                    ),
                    event.deep_get("DestinationHostname", default="").endswith(
                        "content.dropboxapi.com"
                    ),
                ]
            ),
            not "\\Dropbox" in event.deep_get("Image", default=""),
        ]
    ):
        return True
    return False
