[
  {
    "id": "13c4e8e8f85d50b9",
    "type": "tab",
    "label": "Demo Flow",
    "disabled": false,
    "info": "",
    "env": []
  },
  {
    "id": "57c1f30f8a825e5c",
    "type": "group",
    "z": "13c4e8e8f85d50b9",
    "name": "",
    "style": {
      "label": true,
      "stroke": "#7fb7df"
    },
    "nodes": [
      "5792767043952f56",
      "d4443dc473b7c4f6",
      "ab41c49f03bf8362",
      "bfaa7a9c78a7a2de",
      "3b7037559c318361",
      "7fe43d2d1d7a9c40",
      "15d852f4a29abec1",
      "7ae6239a6e476d5f",
      "16c12e22e1f3b257",
      "16911b0ec2002d9e"
    ],
    "x": 14,
    "y": 19,
    "w": 972,
    "h": 242
  },
  {
    "id": "8f193a9c1fc939fb",
    "type": "group",
    "z": "13c4e8e8f85d50b9",
    "name": "",
    "style": {
      "stroke": "#c8e7a7",
      "label": true
    },
    "nodes": [
      "7376db537268899b",
      "b830fde9b0b58bad",
      "c571be138972b9e2",
      "bd18e498f7c61507",
      "19355c55dc280ad7",
      "0ef7c0721cf81927",
      "aebe2e693a217767",
      "b8efe4c50983c5a5",
      "f2f9ba519492522d",
      "d2b8ac5b67999199",
      "29aaf3383098e09e",
      "735b562a594841f3",
      "6a90881898ed3551",
      "74b469a486ba4f81",
      "ee3a2b0bc367a47e",
      "ca1a112e5c6cbdb2",
      "9acbf29beeba99c3",
      "a62c4dd343cccc7f",
      "ce937eb6b8c8ca65",
      "16d258ae4b97ca34",
      "78d3b0d5f0f884f4",
      "cf5f66733f714098",
      "fe80dd5b71c8eebe"
    ],
    "x": 14,
    "y": 299,
    "w": 972,
    "h": 542
  },
  {
    "id": "2c9b5f4cd21831cb",
    "type": "group",
    "z": "13c4e8e8f85d50b9",
    "name": "",
    "style": {
      "stroke": "#3f93cf",
      "label": true
    },
    "nodes": [
      "b6fe7042bd85ef5d",
      "5395c1e6288eedd1",
      "a946387bbf0e9716",
      "909e56335c63fd16",
      "a4532a063e702429",
      "e8373909bb49fb32"
    ],
    "x": 14,
    "y": 859,
    "w": 972,
    "h": 182
  },
  {
    "id": "5792767043952f56",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "Send Timestamp",
    "props": [
      {
        "p": "payload"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 140,
    "y": 100,
    "wires": [
      [
        "d4443dc473b7c4f6"
      ]
    ]
  },
  {
    "id": "d4443dc473b7c4f6",
    "type": "firebase-out",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "Overwrite Timestamp",
    "database": "e8796a1869e179bc",
    "path": "timestampOverwritten",
    "pathType": "str",
    "priority": "1",
    "queryType": "set",
    "x": 360,
    "y": 100,
    "wires": []
  },
  {
    "id": "7376db537268899b",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Add Alan",
    "props": [
      {
        "p": "payload"
      },
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "users/alanisawesome",
    "payload": "{\"date_of_birth\":\"June 23, 1912\",\"full_name\":\"Alan Turing\",\"nickname\":\"Alan The Machine\"}",
    "payloadType": "json",
    "x": 120,
    "y": 380,
    "wires": [
      [
        "b830fde9b0b58bad"
      ]
    ]
  },
  {
    "id": "b830fde9b0b58bad",
    "type": "firebase-out",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Add User",
    "database": "e8796a1869e179bc",
    "path": "topic",
    "pathType": "msg",
    "priority": "1",
    "queryType": "set",
    "x": 360,
    "y": 380,
    "wires": []
  },
  {
    "id": "c571be138972b9e2",
    "type": "firebase-out",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Update User Nickname",
    "database": "e8796a1869e179bc",
    "path": "topic",
    "pathType": "msg",
    "priority": "1",
    "queryType": "update",
    "x": 410,
    "y": 560,
    "wires": []
  },
  {
    "id": "ab41c49f03bf8362",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "Send Timestamp",
    "props": [
      {
        "p": "payload"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 140,
    "y": 220,
    "wires": [
      [
        "bfaa7a9c78a7a2de"
      ]
    ]
  },
  {
    "id": "bfaa7a9c78a7a2de",
    "type": "firebase-out",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "List of Timestamps",
    "database": "e8796a1869e179bc",
    "path": "timestampList",
    "pathType": "str",
    "priority": "1",
    "queryType": "push",
    "x": 350,
    "y": 220,
    "wires": []
  },
  {
    "id": "3b7037559c318361",
    "type": "firebase-in",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "Timestamp Changes",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "inputs": 0,
    "listenerType": "value",
    "outputType": "auto",
    "passThrough": false,
    "path": "timestampOverwritten",
    "pathType": "str",
    "useConstraints": false,
    "x": 670,
    "y": 100,
    "wires": [
      [
        "15d852f4a29abec1"
      ]
    ]
  },
  {
    "id": "7fe43d2d1d7a9c40",
    "type": "firebase-in",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "List Changes",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "inputs": 0,
    "listenerType": "value",
    "outputType": "auto",
    "passThrough": false,
    "path": "timestampList",
    "pathType": "str",
    "useConstraints": false,
    "x": 650,
    "y": 220,
    "wires": [
      [
        "7ae6239a6e476d5f"
      ]
    ]
  },
  {
    "id": "15d852f4a29abec1",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "debug 1",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 880,
    "y": 100,
    "wires": []
  },
  {
    "id": "7ae6239a6e476d5f",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "debug 2",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 880,
    "y": 220,
    "wires": []
  },
  {
    "id": "bd18e498f7c61507",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Add Steve",
    "props": [
      {
        "p": "payload"
      },
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "users/steveisapple",
    "payload": "{\"full_name\":\"Steve Jobs\",\"nickname\":\"Steve The King\",\"hobby\":\"Computer\"}",
    "payloadType": "json",
    "x": 120,
    "y": 440,
    "wires": [
      [
        "b830fde9b0b58bad"
      ]
    ]
  },
  {
    "id": "19355c55dc280ad7",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Modify Alan Nickname",
    "props": [
      {
        "p": "payload"
      },
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "users/alanisawesome",
    "payload": "{\"nickname\":\"Alan is Genius\"}",
    "payloadType": "json",
    "x": 160,
    "y": 560,
    "wires": [
      [
        "c571be138972b9e2"
      ]
    ]
  },
  {
    "id": "0ef7c0721cf81927",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Remove Alan",
    "props": [
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "users/alanisawesome",
    "x": 140,
    "y": 680,
    "wires": [
      [
        "aebe2e693a217767"
      ]
    ]
  },
  {
    "id": "aebe2e693a217767",
    "type": "firebase-out",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Remove User",
    "database": "e8796a1869e179bc",
    "path": "topic",
    "pathType": "msg",
    "priority": "1",
    "queryType": "remove",
    "x": 380,
    "y": 680,
    "wires": []
  },
  {
    "id": "b8efe4c50983c5a5",
    "type": "firebase-in",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "User Removed",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "inputs": 0,
    "listenerType": "child_removed",
    "outputType": "auto",
    "passThrough": false,
    "path": "users",
    "pathType": "str",
    "useConstraints": false,
    "x": 660,
    "y": 680,
    "wires": [
      [
        "6a90881898ed3551"
      ]
    ]
  },
  {
    "id": "f2f9ba519492522d",
    "type": "firebase-in",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "User added",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "inputs": 0,
    "listenerType": "child_added",
    "outputType": "auto",
    "passThrough": false,
    "path": "users",
    "pathType": "str",
    "useConstraints": false,
    "x": 650,
    "y": 380,
    "wires": [
      [
        "29aaf3383098e09e"
      ]
    ]
  },
  {
    "id": "d2b8ac5b67999199",
    "type": "firebase-in",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "User Modified",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "inputs": 0,
    "listenerType": "child_changed",
    "outputType": "auto",
    "passThrough": false,
    "path": "users",
    "pathType": "str",
    "useConstraints": false,
    "x": 650,
    "y": 560,
    "wires": [
      [
        "735b562a594841f3"
      ]
    ]
  },
  {
    "id": "29aaf3383098e09e",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "debug 3",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 880,
    "y": 380,
    "wires": []
  },
  {
    "id": "735b562a594841f3",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "debug 4",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 880,
    "y": 560,
    "wires": []
  },
  {
    "id": "6a90881898ed3551",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "debug 5",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 880,
    "y": 680,
    "wires": []
  },
  {
    "id": "74b469a486ba4f81",
    "type": "firebase-in",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "All Users Changes",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "inputs": 0,
    "listenerType": "value",
    "outputType": "auto",
    "passThrough": false,
    "path": "users",
    "pathType": "str",
    "useConstraints": false,
    "x": 670,
    "y": 800,
    "wires": [
      [
        "ee3a2b0bc367a47e"
      ]
    ]
  },
  {
    "id": "ee3a2b0bc367a47e",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "debug 6",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 880,
    "y": 800,
    "wires": []
  },
  {
    "id": "ca1a112e5c6cbdb2",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Get All Users",
    "props": [
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "users",
    "x": 130,
    "y": 800,
    "wires": [
      [
        "a62c4dd343cccc7f"
      ]
    ]
  },
  {
    "id": "9acbf29beeba99c3",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "debug 7",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "payload",
    "targetType": "msg",
    "statusVal": "",
    "statusType": "auto",
    "x": 460,
    "y": 800,
    "wires": []
  },
  {
    "id": "a62c4dd343cccc7f",
    "type": "firebase-get",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Get Users",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "outputType": "auto",
    "passThrough": false,
    "path": "topic",
    "pathType": "msg",
    "useConstraints": false,
    "x": 300,
    "y": 800,
    "wires": [
      [
        "9acbf29beeba99c3"
      ]
    ]
  },
  {
    "id": "16c12e22e1f3b257",
    "type": "comment",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "Set Timestamp to \"timestampOverwritten\"",
    "info": "",
    "x": 220,
    "y": 60,
    "wires": []
  },
  {
    "id": "16911b0ec2002d9e",
    "type": "comment",
    "z": "13c4e8e8f85d50b9",
    "g": "57c1f30f8a825e5c",
    "name": "Push Timestamp to \"timestampList\"",
    "info": "",
    "x": 200,
    "y": 180,
    "wires": []
  },
  {
    "id": "ce937eb6b8c8ca65",
    "type": "comment",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Add Alan to \"users\"",
    "info": "",
    "x": 150,
    "y": 340,
    "wires": []
  },
  {
    "id": "16d258ae4b97ca34",
    "type": "comment",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Modify the Alan's Nickname",
    "info": "",
    "x": 180,
    "y": 520,
    "wires": []
  },
  {
    "id": "78d3b0d5f0f884f4",
    "type": "comment",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Remove Alan from \"users\"",
    "info": "",
    "x": 170,
    "y": 640,
    "wires": []
  },
  {
    "id": "cf5f66733f714098",
    "type": "comment",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Get All Users from \"users\"",
    "info": "",
    "x": 170,
    "y": 760,
    "wires": []
  },
  {
    "id": "fe80dd5b71c8eebe",
    "type": "comment",
    "z": "13c4e8e8f85d50b9",
    "g": "8f193a9c1fc939fb",
    "name": "Print All Users Changes",
    "info": "",
    "x": 680,
    "y": 760,
    "wires": []
  },
  {
    "id": "b6fe7042bd85ef5d",
    "type": "firebase-out",
    "z": "13c4e8e8f85d50b9",
    "g": "2c9b5f4cd21831cb",
    "name": "Overwrite Index",
    "database": "e8796a1869e179bc",
    "path": "index",
    "pathType": "str",
    "priority": "1",
    "queryType": "set",
    "x": 380,
    "y": 900,
    "wires": []
  },
  {
    "id": "5395c1e6288eedd1",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "2c9b5f4cd21831cb",
    "name": "Set index to 1",
    "props": [
      {
        "p": "payload"
      },
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "1",
    "payloadType": "num",
    "x": 130,
    "y": 900,
    "wires": [
      [
        "b6fe7042bd85ef5d"
      ]
    ]
  },
  {
    "id": "a946387bbf0e9716",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "2c9b5f4cd21831cb",
    "name": "Increment by 1",
    "props": [
      {
        "p": "payload"
      },
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "INCREMENT 1",
    "payloadType": "str",
    "x": 140,
    "y": 960,
    "wires": [
      [
        "b6fe7042bd85ef5d"
      ]
    ]
  },
  {
    "id": "909e56335c63fd16",
    "type": "inject",
    "z": "13c4e8e8f85d50b9",
    "g": "2c9b5f4cd21831cb",
    "name": "Decrement by 1",
    "props": [
      {
        "p": "payload"
      },
      {
        "p": "topic",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "DECREMENT 1",
    "payloadType": "str",
    "x": 140,
    "y": 1000,
    "wires": [
      [
        "b6fe7042bd85ef5d"
      ]
    ]
  },
  {
    "id": "a4532a063e702429",
    "type": "firebase-in",
    "z": "13c4e8e8f85d50b9",
    "g": "2c9b5f4cd21831cb",
    "name": "Index Changes",
    "constraints": {},
    "database": "e8796a1869e179bc",
    "inputs": 0,
    "listenerType": "value",
    "outputType": "auto",
    "passThrough": false,
    "path": "index",
    "pathType": "str",
    "useConstraints": false,
    "x": 660,
    "y": 900,
    "wires": [
      [
        "e8373909bb49fb32"
      ]
    ]
  },
  {
    "id": "e8373909bb49fb32",
    "type": "debug",
    "z": "13c4e8e8f85d50b9",
    "g": "2c9b5f4cd21831cb",
    "name": "debug 13",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 880,
    "y": 900,
    "wires": []
  },
  {
    "id": "e8796a1869e179bc",
    "type": "firebase-config",
    "name": "My Database",
    "authType": "privateKey",
    "claims": {},
    "createUser": false,
    "useClaims": false
  }
]