{
  "active": false,
  "activeVersion": null,
  "activeVersionId": null,
  "connections": {
    "Preparar Inser\u00e7\u00e3o AN": {
      "main": [
        [
          {
            "node": "Criar a\u00e7\u00e3o de match AN",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zendesk": {
      "main": [
        [
          {
            "node": "IF se tem a info de link do match",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zendesk1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Preparar Inser\u00e7\u00e3o AN",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF se tem a info de link do match": {
      "main": [
        [
          {
            "node": "Zendesk1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "IF organiza\u00e7\u00e3o do ticket for psicologa ou advogada",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Criar a\u00e7\u00e3o de match AN": {
      "main": [
        [
          {
            "node": "Criar a\u00e7\u00e3o de ativista AN1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zendesk2": {
      "main": [
        [
          {
            "node": "Preparar Atualiza\u00e7\u00e3o AN",
            "type": "main",
            "index": 0
          },
          {
            "node": "Postgres3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Preparar Atualiza\u00e7\u00e3o AN": {
      "main": [
        [
          {
            "node": "Criar a\u00e7\u00e3o de ativista AN",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF organiza\u00e7\u00e3o do ticket for psicologa ou advogada": {
      "main": [
        [
          {
            "node": "Zendesk2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Criar a\u00e7\u00e3o de ativista AN": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "Postgres",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Criar a\u00e7\u00e3o de ativista AN1": {
      "main": [
        [
          {
            "node": "Set1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set1": {
      "main": [
        [
          {
            "node": "Postgres1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Zendesk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres3": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF": {
      "main": [
        [
          {
            "node": "Set2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set2": {
      "main": [
        [
          {
            "node": "Postgres4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "createdAt": "2024-01-16T20:49:50.001Z",
  "description": null,
  "id": "BDKJhldTcqLnqcCt",
  "isArchived": false,
  "meta": null,
  "name": "Fluxo de volunt\u00e1rias ZendeskXANXBD",
  "nodes": [
    {
      "parameters": {
        "functionCode": "api_domain = \"https://actionnetwork.org/api/v2\";\n\npayload = {};\npayload_action = {};\nrequest = {};\n\npayload_action[\"id\"] = item.ticket_id;\npayload_action[\"title\"] = `Atendimento #${item.id} ${item.custom_fields[12].value} `;\npayload_action[\"description\"] = `Encaminhamento para a MSR: ${item.custom_fields[12].value}`;\npayload_action[\"origin_system\"] = \"MAPA\";\n\n\ngiven_name = item.name.substring(0, item.name.indexOf(\" \"));\nfamily_name = item.name.substring(item.name.indexOf(\" \") + 1);\n\nperson = {\n  given_name: given_name,\n  family_name: family_name,\n  email_addresses: [\n    {\n      address: item.email,\n    },\n  ],\n  languages_spoken: [\"pt-BR\"],\n};\npayload[\"person\"] = person;\npayload[\"add_tags\"] = [\"encaminhamento-realizado\"];\n\n\n\n// # CUSTOM FIELDS\ncustom_fields = {};\nif (item.user_fields.gender) {\n  custom_fields[\"gender\"] = item.user_fields.gender;\n}\nif (item.user_fields.cor) {\n  custom_fields[\"cor\"] = item.user_fields.cor;\n}\nif (item.user_fields.state) {\n  custom_fields[\"estado\"] = item.user_fields.state;\n}\nif (item.user_fields.city) {\n  custom_fields[\"cidade\"] = item.user_fields.city;\n}\n\n/*Encaminhamentos realizados [calculado], Atendimentos em andamento [calculado], Atendimentos conclu\u00eddos [calculado] */\nif (item.user_fields.encaminhamentos_realizados_calculado_){\n  custom_fields[\"encaminhamentos_realizados_calculado\"] = item.user_fields.encaminhamentos_realizados_calculado_\n}\nif (item.user_fields.atendimentos_concludos_calculado_){\n  custom_fields[\"atendimentos_concluidos_calculado\"] = item.user_fields.atendimentos_concludos_calculado_\n}\nif (item.user_fields.atendimentos_em_andamento_calculado_){\n  custom_fields[\"atendimentos_em_andamento_calculado\"] = item.user_fields.atendimentos_em_andamento_calculado_\n}\n\nmatch_number = ''\nswitch(item.user_fields.encaminhamentos_realizados_calculado_) {\n  case 2:\n    match_number = '2'\n    break;\n  case 3:\n    match_number = '3'\n    break;\n  default:\n    match_number = '1'\n}\ncustom_fields[\"m\"+match_number +\"-nome-msr\"] = item.custom_fields[12].value\ncustom_fields[\"m\"+match_number +\"-data-encaminhamento\"] = item.created_at\n\n//{\"ADVOGADA\":\"360269610652\",\"MSR\":\"360273031591\",\"PSICOLOGA\":\"360282119532\"}\nif (item.organization_id = 360269610652) {\n  custom_fields[\"oab\"] = item.user_fields.registration_number\n  } else {\n    if (item.organization_id = 360282119532) {\n    custom_fields[\"crp\"] = item.user_fields.registration_number\n  }\n  }\ncustom_fields[\"m\"+match_number +\"-link\"] = item.custom_fields[4].value\ncustom_fields[\"m\"+match_number +\"-status-atendimento\"] = item.custom_fields[8].value\ncustom_fields[\"status-voluntaria\"] = item.user_fields.condition\n // `https://mapadoacolhimento.zendesk.com/agent/tickets/${item.id}`\n\n\npayload[\"person\"][\"custom_fields\"] = custom_fields;\n\nrequest = {\n  path: `${api_domain}/forms/`,\n  an_resource_name: \"submissions\",\n  headers: {\n    \"OSDI-API-Token\": \"22338da900df9848af38babe24aba9cc\",\n    \"Content-Type\": \"application/json\",\n  },\n};\n\nreturn {\n  payload,\n  payload_action,\n  request,\n};\n"
      },
      "id": "f267323f-d631-482b-a78d-fe1018b2813f",
      "name": "Preparar Inser\u00e7\u00e3o AN",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        1320,
        780
      ]
    },
    {
      "parameters": {
        "operation": "get",
        "id": "={{ $json[\"body\"][\"ticket\"][\"id\"] }}"
      },
      "id": "5890ebfe-42e4-4584-b98d-dced07a50099",
      "name": "Zendesk",
      "type": "n8n-nodes-base.zendesk",
      "typeVersion": 1,
      "position": [
        420,
        820
      ],
      "credentials": {
        "zendeskApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "resource": "user",
        "operation": "get",
        "id": "={{ $json[\"requester_id\"] }}"
      },
      "id": "6d849488-7d2f-480e-ba39-278f84824e48",
      "name": "Zendesk1",
      "type": "n8n-nodes-base.zendesk",
      "typeVersion": 1,
      "position": [
        840,
        600
      ],
      "credentials": {
        "zendeskApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "mode": "combine",
        "mergeByFields": {
          "values": [
            {
              "field1": "id",
              "field2": "requester_id"
            }
          ]
        },
        "options": {}
      },
      "id": "02315ab0-f664-4a5f-9965-57d3b6926996",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 2,
      "position": [
        1080,
        780
      ]
    },
    {
      "parameters": {},
      "id": "c9fb5cf3-bbe9-4b17-849f-e87cdddd3af2",
      "name": "NoOp",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1060,
        1420
      ]
    },
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "={{ $json[\"_links\"][\"osdi:submissions\"][\"href\"] }}",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={{ $node[\"Preparar Inser\u00e7\u00e3o AN\"].json[\"payload\"] }}",
        "headerParametersJson": "={{ $node[\"Preparar Inser\u00e7\u00e3o AN\"].json[\"request\"][\"headers\"] }}"
      },
      "id": "e7925ebc-688e-4691-9ec3-52586217ad05",
      "name": "Criar a\u00e7\u00e3o de ativista AN1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        1740,
        780
      ]
    },
    {
      "parameters": {
        "authentication": "basicAuth",
        "httpMethod": "POST",
        "path": "zendesk-an",
        "options": {}
      },
      "id": "5604f4fb-a59b-43f8-916d-b516cd3c79ed",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        140,
        820
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json[\"fields\"][\"4\"][\"value\"] }}",
              "operation": "isNotEmpty"
            }
          ]
        }
      },
      "id": "b7fd84fe-f319-4212-9ecd-306270527bbf",
      "name": "IF se tem a info de link do match",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        660,
        820
      ]
    },
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "= {{ $json[\"request\"][\"path\"] }}",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={{ $json[\"payload_action\"] }}",
        "headerParametersJson": "={{ $json[\"request\"][\"headers\"] }}"
      },
      "id": "a7617f97-e333-4687-a7e0-64547d4a5846",
      "name": "Criar a\u00e7\u00e3o de match AN",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        1540,
        780
      ],
      "continueOnFail": true
    },
    {
      "parameters": {
        "content": "## Atuliza\u00e7\u00e3o de cadastro\nSempre que for um ticket de volunt\u00e1ria: \nbuscar a volunt\u00e1ria na AN verifcar a iforma\u00e7\u00f5es, condition e os campos relacionados a endere\u00e7o, pegar as infos extras da inscri\u00e7\u00e3o no mautic. ",
        "height": 236.55636567582724,
        "width": 297.7117218171622
      },
      "id": "6582d852-59b4-496a-a4bb-9a891c85209a",
      "name": "Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        340,
        1120
      ]
    },
    {
      "parameters": {
        "resource": "user",
        "operation": "get",
        "id": "={{ $json[\"requester_id\"] }}"
      },
      "id": "a3389d32-a4ac-4a87-99a6-b14793b4bdff",
      "name": "Zendesk2",
      "type": "n8n-nodes-base.zendesk",
      "typeVersion": 1,
      "position": [
        1060,
        1160
      ],
      "credentials": {
        "zendeskApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "functionCode": "api_domain = \"https://actionnetwork.org/api/v2\";\n\npayload = {};\npayload_action = {};\nrequest = {};\naddress = {};\n\ngiven_name = item.name.substring(0, item.name.indexOf(\" \"));\nfamily_name = item.name.substring(item.name.indexOf(\" \") + 1);\n\nperson = {\n  given_name: given_name,\n  family_name: family_name,\n  email_addresses: [\n    {\n      address: item.email,\n    },\n  ],\n  address,\n  languages_spoken: [\"pt-BR\"],\n};\npayload[\"person\"] = person;\n\npayload[\"add_tags\"] = item.tags; //[\"indispon\u00edvel_outros_motivos\"]\n\n\n\n// # CUSTOM FIELDS\ncustom_fields = {};\nif (item.user_fields.gender) {\n  custom_fields[\"gender\"] = item.user_fields.gender;\n}\nif (item.user_fields.cor) {\n  custom_fields[\"cor\"] = item.user_fields.cor;\n}\nif (item.user_fields.state) {\n  custom_fields[\"estado\"] = item.user_fields.state;\n}\nif (item.user_fields.city) {\n  custom_fields[\"cidade\"] = item.user_fields.city;\n}\n\nif (item.user_fields.birth_date) {\n  custom_fields[\"birth_date\"] = item.user_fields.birth_date;\n}\n\nif (item.user_fields.libras) {\n  custom_fields[\"libras\"] = item.user_fields.libras;\n}\n\nif (item.user_fields.years_of_experience) {\n  custom_fields[\"years_of_experience\"] = item.user_fields.years_of_experience;\n}          \n   \nif (item.user_fields.approach) {\n  custom_fields[\"approach\"] = item.user_fields.approach;\n}        \n\nif (item.user_fields.modality) {\n  custom_fields[\"modality\"] = item.user_fields.modality;\n}            \n \nif (item.user_fields.fields_of_work) {\n  custom_fields[\"fields_of_work\"] = item.user_fields.fields_of_work;\n}         \n\naddress['country'] = 'BR'\n\n//{\"ADVOGADA\":\"360269610652\",\"MSR\":\"360273031591\",\"PSICOLOGA\":\"360282119532\"}\nif (item.organization_id = 360269610652) {\n  custom_fields[\"oab\"] = item.user_fields.registration_number\n  } else {\n    if (item.organization_id = 360282119532) {\n    custom_fields[\"crp\"] = item.user_fields.registration_number\n  }\n  }\n\ncustom_fields[\"status-voluntaria\"] = item.user_fields.condition\n // `https://mapadoacolhimento.zendesk.com/agent/tickets/${item.id}`\n\n\npayload[\"person\"][\"custom_fields\"] = custom_fields;\n\nrequest = {\n  path: `${api_domain}/forms/`,\n  an_resource_name: \"submissions\",\n  headers: {\n    \"OSDI-API-Token\": \"13e153fdaad7ef46cf087216c88b1284\",\n    \"Content-Type\": \"application/json\",\n  },\n};\n\nreturn {\n  payload,\n  request,\n};\n"
      },
      "id": "fd62d854-35a3-45f4-8385-6115dab63c68",
      "name": "Preparar Atualiza\u00e7\u00e3o AN",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        1280,
        1160
      ]
    },
    {
      "parameters": {
        "mode": "combine",
        "mergeByFields": {
          "values": [
            {
              "field1": "id",
              "field2": "requester_id"
            }
          ]
        },
        "options": {}
      },
      "id": "5450ce9b-371f-4460-84fc-4243de38ff0f",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 2,
      "position": [
        340,
        1540
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "seconds"
            }
          ]
        }
      },
      "id": "f60afffb-ccb9-45eb-81e2-2ebff968ccc3",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        240,
        960
      ]
    },
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "https://actionnetwork.org/api/v2/forms/8f1f013a-7c42-4971-b82f-077dd34e5996/submissions",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={{$node[\"Preparar Atualiza\u00e7\u00e3o AN\"].json[\"payload\"]}}",
        "headerParametersJson": "={{ $node[\"Preparar Atualiza\u00e7\u00e3o AN\"].json[\"request\"][\"headers\"] }}"
      },
      "id": "dd2a4e7d-42c6-4017-a46a-1f72344e1849",
      "name": "Criar a\u00e7\u00e3o de ativista AN",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        1540,
        1160
      ]
    },
    {
      "parameters": {
        "content": "## LEMBRAR ANTES DE ATIVAR O FLUXO\n**ATULAIZAR** \n- CHAVES DOS GRUPOS\n- A\u00c7\u00c3O DE ATUALIZA\u00c7\u00c3O\n- BANCO DE DADOS\n**ATIAVAR**\n- GATILHO NO ZENDESK ",
        "height": 236.86127041454168,
        "width": 274.68874645288037
      },
      "id": "9829fccd-f9e6-4381-a0ba-fed0cae43a6b",
      "name": "Note1",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        460,
        460
      ]
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{ $json[\"organization_id\"] }}",
              "operation": "equal",
              "value2": 360269610652
            },
            {
              "value1": "={{ $json[\"organization_id\"] }}",
              "operation": "equal",
              "value2": 360282119532
            }
          ]
        },
        "combineOperation": "any"
      },
      "id": "b7085b73-e327-409c-a971-717cedd298be",
      "name": "IF organiza\u00e7\u00e3o do ticket for psicologa ou advogada",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        800,
        1180
      ]
    },
    {
      "parameters": {
        "schema": "mapa_do_acolhimento",
        "table": "logs_an",
        "columns": "user_id:int,email:text,organization_id:int8,an_response:jsonb",
        "additionalFields": {}
      },
      "id": "8f84b27a-546f-4b87-84e8-312e3fa0f942",
      "name": "Postgres",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 1,
      "position": [
        1980,
        1160
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "number": [
            {
              "name": "user_id",
              "value": "={{$node[\"Zendesk2\"].json[\"external_id\"]}}"
            },
            {
              "name": "organization_id",
              "value": "={{$node[\"Zendesk2\"].json[\"organization_id\"]}}"
            }
          ],
          "string": [
            {
              "name": "email",
              "value": "={{$node[\"Zendesk2\"].json[\"email\"]}}"
            },
            {
              "name": "an_response",
              "value": "={{$node[\"Criar a\u00e7\u00e3o de ativista AN\"].json}}"
            }
          ]
        },
        "options": {}
      },
      "id": "8fba70aa-f9b3-498c-85fc-cd54048d2637",
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1780,
        1160
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "number": [
            {
              "name": "user_id",
              "value": "={{$node[\"Zendesk1\"].json[\"external_id\"]}}"
            },
            {
              "name": "organization_id",
              "value": "={{$node[\"Zendesk1\"].json[\"organization_id\"]}}"
            }
          ],
          "string": [
            {
              "name": "email",
              "value": "={{$node[\"Zendesk1\"].json[\"email\"]}}"
            },
            {
              "name": "an_response",
              "value": "={{$node[\"Criar a\u00e7\u00e3o de ativista AN1\"].json}}"
            }
          ]
        },
        "options": {}
      },
      "id": "02ecb6a1-f575-4567-983e-6206d264ac7c",
      "name": "Set1",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1940,
        780
      ]
    },
    {
      "parameters": {
        "schema": "mapa_do_acolhimento",
        "table": "logs_an",
        "columns": "user_id:int,email:text,organization_id:int8,an_response:jsonb",
        "additionalFields": {}
      },
      "id": "1acf697b-5376-4311-b253-6836afe4cbe3",
      "name": "Postgres1",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 1,
      "position": [
        2160,
        780
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "=select * from volunteers where email = '{{$node[\"Zendesk2\"].json[\"email\"]}}'",
        "additionalFields": {}
      },
      "id": "8a24bafc-22ff-4e7b-9b3d-d1b1d9b45c84",
      "name": "Postgres3",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 1,
      "position": [
        1260,
        1360
      ],
      "alwaysOutputData": true,
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$node[\"Postgres3\"].json}}",
              "operation": "isNotEmpty"
            }
          ]
        }
      },
      "id": "c0a652c1-d114-47ca-8cc4-5d70daf51078",
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        1480,
        1360
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "condition",
              "value": "={{ $node[\"Zendesk2\"].json[\"user_fields\"][\"condition\"] }}"
            },
            {
              "name": "color",
              "value": "={{ $node[\"Zendesk2\"].json[\"user_fields\"][\"cor\"] }}"
            },
            {
              "name": "state",
              "value": "={{ $node[\"Zendesk2\"].json[\"user_fields\"][\"state\"] }}"
            },
            {
              "name": "id",
              "value": "={{ $json[\"id\"] }}"
            }
          ]
        },
        "options": {}
      },
      "id": "448e53ea-f2a9-421e-9ac2-f8b806f7394d",
      "name": "Set2",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1700,
        1340
      ]
    },
    {
      "parameters": {
        "operation": "update",
        "table": "volunteers",
        "columns": "condition:text,color:text,state:text",
        "additionalFields": {}
      },
      "id": "77ce4653-3e37-4fef-9638-7d3d77f1b28c",
      "name": "Postgres4",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 1,
      "position": [
        1900,
        1340
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "settings": {
    "executionOrder": "v1"
  },
  "shared": [
    {
      "updatedAt": "2024-01-16T20:49:50.003Z",
      "createdAt": "2024-01-16T20:49:50.003Z",
      "role": "workflow:owner",
      "workflowId": "BDKJhldTcqLnqcCt",
      "projectId": "rfgBK87HsySgxYKT",
      "project": {
        "updatedAt": "2024-11-15T08:07:36.637Z",
        "createdAt": "2024-11-15T08:07:36.637Z",
        "id": "rfgBK87HsySgxYKT",
        "name": "Desenvolvimento Mapa <dev@mapa.org.br>",
        "type": "personal",
        "icon": null,
        "description": null,
        "projectRelations": [
          {
            "updatedAt": "2024-11-15T08:07:36.637Z",
            "createdAt": "2024-11-15T08:07:36.637Z",
            "userId": "6e437c36-d4e0-42f4-bbc3-d9b5ac96e474",
            "projectId": "rfgBK87HsySgxYKT",
            "user": {
              "updatedAt": "2026-05-25T12:45:47.000Z",
              "createdAt": "2024-01-09T22:21:28.810Z",
              "id": "6e437c36-d4e0-42f4-bbc3-d9b5ac96e474",
              "email": "dev@mapa.org.br",
              "firstName": "Desenvolvimento",
              "lastName": "Mapa",
              "personalizationAnswers": null,
              "settings": {
                "userActivated": true,
                "firstSuccessfulWorkflowId": "sMoToF9HauyKvsFJ",
                "isOnboarded": true,
                "userActivatedAt": 1731658062996,
                "npsSurvey": {
                  "responded": true,
                  "lastShownAt": 1766005013760
                },
                "easyAIWorkflowOnboarded": true
              },
              "disabled": false,
              "mfaEnabled": false,
              "lastActiveAt": "2026-05-25",
              "isPending": false
            }
          }
        ]
      }
    }
  ],
  "staticData": {
    "node:Schedule Trigger": {
      "recurrencyRules": []
    }
  },
  "tags": [
    {
      "updatedAt": "2024-01-16T17:41:58.269Z",
      "createdAt": "2024-01-16T17:41:58.269Z",
      "id": "E3Tnq8M430hgCQfP",
      "name": "Mapa do acolhimento"
    }
  ],
  "triggerCount": 2,
  "updatedAt": "2024-01-24T21:03:22.000Z",
  "versionCounter": 1,
  "versionId": "a2277bfa-59b5-4849-8532-eaae4d6d14cf"
}