{
    "properties": {
        "name": "FetchAndFlatten",
        "environment": {
            "type": "noflo-nodejs"
        }
    },
    "inports": {
        "in": {
            "process": "Fetch",
            "port": "in",
            "metadata": {
                "x": -108,
                "y": 108,
                "width": 72,
                "height": 72
            }
        }
    },
    "outports": {
        "out": {
            "process": "RemoveId",
            "port": "out",
            "metadata": {
                "x": 792,
                "y": -72,
                "width": 72,
                "height": 72
            }
        },
        "error": {
            "process": "Errors",
            "port": "out",
            "metadata": {
                "x": 792,
                "y": 216,
                "width": 72,
                "height": 72
            }
        }
    },
    "groups": [],
    "processes": {
        "Flatten": {
            "component": "html/Flatten",
            "metadata": {
                "label": "Flatten",
                "x": 180,
                "y": 36,
                "width": 72,
                "height": 72
            }
        },
        "Fetch": {
            "component": "harpy/Fetch",
            "metadata": {
                "label": "Fetch",
                "x": 0,
                "y": 108,
                "width": 72,
                "height": 72
            }
        },
        "RemoveId": {
            "component": "objects/RemoveProperty",
            "metadata": {
                "label": "RemoveId",
                "x": 648,
                "y": -72,
                "width": 72,
                "height": 72
            }
        },
        "Errors": {
            "component": "core/Merge",
            "metadata": {
                "label": "Errors",
                "x": 684,
                "y": 216,
                "width": 72,
                "height": 72
            }
        },
        "UploadImages": {
            "component": "harpy/HandleDataUrls",
            "metadata": {
                "label": "UploadImages",
                "x": 324,
                "y": -72,
                "width": 72,
                "height": 72
            }
        },
        "S2Key": {
            "component": "core/ReadEnv",
            "metadata": {
                "label": "S2Key",
                "x": -108,
                "y": -360,
                "width": 72,
                "height": 72
            }
        },
        "S2Secret": {
            "component": "core/ReadEnv",
            "metadata": {
                "label": "S2Secret",
                "x": -108,
                "y": -252,
                "width": 72,
                "height": 72
            }
        },
        "S3Bucket": {
            "component": "core/ReadEnv",
            "metadata": {
                "label": "S3Bucket",
                "x": -108,
                "y": -144,
                "width": 72,
                "height": 72
            }
        },
        "S3Region": {
            "component": "core/ReadEnv",
            "metadata": {
                "label": "S3Region",
                "x": -108,
                "y": -36,
                "width": 72,
                "height": 72
            }
        },
        "UpdateBlockMeta": {
            "component": "harpy/UpdateBlockMetadata",
            "metadata": {
                "label": "UpdateBlockMeta",
                "x": 504,
                "y": -72,
                "width": 72,
                "height": 72
            }
        }
    },
    "connections": [
        {
            "src": {
                "process": "Fetch",
                "port": "out"
            },
            "tgt": {
                "process": "Flatten",
                "port": "in"
            },
            "metadata": {
                "route": 4
            }
        },
        {
            "src": {
                "process": "Flatten",
                "port": "error"
            },
            "tgt": {
                "process": "Errors",
                "port": "in"
            },
            "metadata": {
                "route": 1
            }
        },
        {
            "src": {
                "process": "Fetch",
                "port": "error"
            },
            "tgt": {
                "process": "Errors",
                "port": "in"
            },
            "metadata": {
                "route": 1
            }
        },
        {
            "src": {
                "process": "UploadImages",
                "port": "error"
            },
            "tgt": {
                "process": "Errors",
                "port": "in"
            },
            "metadata": {
                "route": 1
            }
        },
        {
            "src": {
                "process": "Flatten",
                "port": "out"
            },
            "tgt": {
                "process": "UploadImages",
                "port": "in"
            },
            "metadata": {
                "route": 4
            }
        },
        {
            "src": {
                "process": "S2Key",
                "port": "out"
            },
            "tgt": {
                "process": "UploadImages",
                "port": "key"
            },
            "metadata": {
                "route": 2
            }
        },
        {
            "src": {
                "process": "S2Secret",
                "port": "out"
            },
            "tgt": {
                "process": "UploadImages",
                "port": "secret"
            },
            "metadata": {
                "route": 2
            }
        },
        {
            "src": {
                "process": "S3Bucket",
                "port": "out"
            },
            "tgt": {
                "process": "UploadImages",
                "port": "bucket"
            },
            "metadata": {
                "route": 2
            }
        },
        {
            "src": {
                "process": "S3Region",
                "port": "out"
            },
            "tgt": {
                "process": "UploadImages",
                "port": "region"
            },
            "metadata": {
                "route": 2
            }
        },
        {
            "src": {
                "process": "UpdateBlockMeta",
                "port": "out"
            },
            "tgt": {
                "process": "RemoveId",
                "port": "in"
            },
            "metadata": {
                "route": 4
            }
        },
        {
            "src": {
                "process": "UploadImages",
                "port": "out"
            },
            "tgt": {
                "process": "UpdateBlockMeta",
                "port": "in"
            },
            "metadata": {
                "route": 4
            }
        },
        {
            "data": "id",
            "tgt": {
                "process": "RemoveId",
                "port": "property"
            }
        },
        {
            "data": "AMAZON_API_ID",
            "tgt": {
                "process": "S2Key",
                "port": "key"
            }
        },
        {
            "data": "AMAZON_API_TOKEN",
            "tgt": {
                "process": "S2Secret",
                "port": "key"
            }
        },
        {
            "data": "AMAZON_API_BUCKET",
            "tgt": {
                "process": "S3Bucket",
                "port": "key"
            }
        },
        {
            "data": "AMAZON_API_REGION",
            "tgt": {
                "process": "S3Region",
                "port": "key"
            }
        }
    ]
}
