{
    "name": "Sync Brevo Unsubscriptions to Justimmo",
    "flow": [
        {
            "id": 1,
            "module": "sendinblue:NewEvent",
            "version": 2,
            "parameters": {
                "__IMTHOOK__": 1957227
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0
                },
                "restore": {
                    "parameters": {
                        "__IMTHOOK__": {
                            "data": {
                                "editable": "false"
                            },
                            "label": "Brevo Webhook"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTHOOK__",
                        "type": "hook:sendinblue2",
                        "label": "Webhook",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 4,
            "module": "app#justimmo-z48jab:GetContactList",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 6758642
            },
            "mapper": {
                "emailAddress": "{{1.email}}"
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 0
                },
                "restore": {
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "app#justimmo-z48jab"
                            },
                            "label": "Justimmo BusinessAPI"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:app#justimmo-z48jab",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "emailAddress",
                        "type": "text",
                        "label": "Email Address",
                        "required": true
                    }
                ]
            },
            "onerror": [
                {
                    "id": 7,
                    "module": "builtin:Ignore",
                    "version": 1,
                    "metadata": {
                        "designer": {
                            "x": 292,
                            "y": -315
                        }
                    }
                }
            ]
        },
        {
            "id": 6,
            "module": "app#justimmo-z48jab:NewsletterUnsubscribe",
            "version": 1,
            "parameters": {
                "__IMTCONN__": 6758642
            },
            "filter": {
                "name": "",
                "conditions": [
                    [
                        {
                            "a": "{{4.`__IMTLENGTH__`}}",
                            "o": "number:greater",
                            "b": "0"
                        }
                    ]
                ]
            },
            "mapper": {
                "contactId": "{{4.id}}"
            },
            "metadata": {
                "designer": {
                    "x": 606,
                    "y": -3
                },
                "restore": {
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "app#justimmo-z48jab"
                            },
                            "label": "Justimmo BusinessAPI"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:app#justimmo-z48jab",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "contactId",
                        "type": "uinteger",
                        "label": "Contact ID",
                        "required": true
                    }
                ]
            },
            "onerror": [
                {
                    "id": 8,
                    "module": "builtin:Ignore",
                    "version": 1,
                    "metadata": {
                        "designer": {
                            "x": 606,
                            "y": -310
                        }
                    }
                }
            ]
        }
    ],
    "metadata": {
        "instant": true,
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": false,
            "slots": null,
            "confidential": false,
            "dataloss": false,
            "dlq": false,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        },
        "zone": "eu2.make.com",
        "notes": []
    }
}
