This repository has been archived by the owner on Apr 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
First_Flow.json
1 lines (1 loc) · 39.2 KB
/
First_Flow.json
1
[{"id":"69b7d74a.c4d048","type":"tab","label":"First_Flow","disabled":false,"info":""},{"id":"82337adc.2fdb38","type":"http request","z":"69b7d74a.c4d048","name":"","method":"POST","ret":"obj","url":"{{{topic}}}","tls":"","x":454.9837951660156,"y":46.26766395568848,"wires":[["494c4d6e.96eff4"]]},{"id":"840a5091.c42a7","type":"inject","z":"69b7d74a.c4d048","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"x":119.52381134033203,"y":46.543291091918945,"wires":[["6831d7a2.1e1dd8","75290c01.87e1b4"]]},{"id":"494c4d6e.96eff4","type":"function","z":"69b7d74a.c4d048","name":"cookie","func":"var cookies = msg.responseCookies;\n\nmsg.headers = {\n \"content-type\":\"application/json\",\n \"Cookie\": \"connect.sid=\" + cookies[\"connect.sid\"][\"value\"]\n};\n\nflow.set(\"cookie\",msg.headers[\"Cookie\"]);\n\nreturn msg;\n\n","outputs":1,"noerr":0,"x":599.7615928649902,"y":45.79739284515381,"wires":[["f8b921e8.d4aa7","e9bdb44f.2b1498","ae6653ac.9fbf6"]]},{"id":"2d2906b.39db3fa","type":"debug","z":"69b7d74a.c4d048","name":"A","active":true,"console":"false","complete":"payload","x":1186.5030059814453,"y":235.62692499160767,"wires":[]},{"id":"799a0480.085cec","type":"debug","z":"69b7d74a.c4d048","name":"B","active":true,"console":"false","complete":"payload","x":1185.8148708343506,"y":276.73811960220337,"wires":[]},{"id":"75290c01.87e1b4","type":"function","z":"69b7d74a.c4d048","name":"header","func":"msg.payload = {\n \"username\": global.get(\"username\"), // delete your credentials if you want to share your flow!\n \"password\": global.get(\"password\") // delete your credentials if you want to share your flow!\n};\n\nmsg.topic = \"https://api1.www.3drepo.io/api/login\";\n\nmsg.headers = {\n 'content-type':'application/json'\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":303.610595703125,"y":46.294429779052734,"wires":[["82337adc.2fdb38"]]},{"id":"f8b921e8.d4aa7","type":"function","z":"69b7d74a.c4d048","name":"API call","func":"filter = flow.get(\"filter\")\ncookie = flow.get(\"cookie\");\nvar calls = [];\n\nmsg.headers = {\n \"content-type\":\"application/json\",\n \"Cookie\": cookie\n};\n\nfor(var prop in filter){\n calls.push(\"https://api1.www.3drepo.io/api/\" + flow.get(\"teamspace\") + \"/\" + flow.get(\"modelID\") + \"/revision/\" + flow.get(\"revision\") + \"/meta/findObjsWith/\" + prop + \".json\");\n}\n\nmsg.payload = calls;\n\nreturn msg;","outputs":"1","noerr":0,"x":743.4024543762207,"y":46.07339286804199,"wires":[["a9679184.8fdca"]]},{"id":"a9679184.8fdca","type":"split","z":"69b7d74a.c4d048","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":880.8118362426758,"y":45.95047187805176,"wires":[["5cd3815e.de603"]]},{"id":"5cd3815e.de603","type":"http request","z":"69b7d74a.c4d048","name":"","method":"GET","ret":"obj","url":"{{{payload}}}","tls":"","x":1033.3640441894531,"y":45.69371795654297,"wires":[["da56712e.cb214"]]},{"id":"da56712e.cb214","type":"join","z":"69b7d74a.c4d048","name":"","mode":"auto","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","x":1178.181734085083,"y":46.29886054992676,"wires":[["448cb712.59bc78"]]},{"id":"33dc088e.15db88","type":"function","z":"69b7d74a.c4d048","name":"meta","func":"var meta = {};\n\nfor(var i=0; i<msg.payload.length; i++){\n meta[i] = [];\n if(msg.payload[i].data != undefined){\n for(var j=0; j<msg.payload[i].data.length; j++){\n var obj = msg.payload[i].data[j];\n meta[i].push(obj.metadata.value);\n }\n }\n var set = new Set(meta[i]);\n meta[i] = Array.from(set);\n}\n\nflow.set(\"meta\",meta);\nmsg.payload = meta;\n\nreturn msg;","outputs":1,"noerr":0,"x":778.164379119873,"y":279.18847036361694,"wires":[[]]},{"id":"9194a8b3.ba00d8","type":"function","z":"69b7d74a.c4d048","name":"count by meta","func":"var meta = flow.get(\"meta\");\nvar counter = {};\n\nfor(var l=0; l<msg.payload.length; l++){\n if(msg.payload[l] != undefined && msg.payload[l].data != undefined){\n for(var i=0; i<msg.payload.length; i++){\n counter[i] = {};\n for(var j=0; j<meta[i].length; j++){\n counter[i][meta[i][j]] = {};\n counter[i][meta[i][j]] = 0;\n }\n \n for(var j=0; j<msg.payload[i].data.length; j++){\n var obj = msg.payload[i].data[j];\n for(var k=0; k<meta[i].length; k++){\n if(obj.metadata.value == meta[i][k]){\n counter[i][meta[i][k]] += 1;\n }\n }\n }\n }\n }\n}\n\nmsg.payload = counter; \n\nflow.set(\"stats\",counter);\n\nreturn msg;","outputs":1,"noerr":0,"x":810.3865547180176,"y":325.85518503189087,"wires":[["c03bd6ca.4da378","2d2906b.39db3fa"]]},{"id":"62aa3c35.c3cc64","type":"function","z":"69b7d74a.c4d048","name":"filters","func":"filter = flow.get(\"filter\");\n\nvar parentIDs = [];\nvar metaIDs = [];\nvar i = -1;\n\nfor(var prop in filter){\n i += 1;\n parentIDs[i] = [];\n metaIDs[i] = [];\n for(var j=0; j<filter[prop].length; j++){\n if(msg.payload[i] != undefined && msg.payload[i].data != undefined){\n for(var k=0; k<msg.payload[i].data.length; k++){\n var obj = msg.payload[i].data[k];\n if(obj != undefined){\n if(filter[prop][0] == true && obj.metadata.value.search(filter[prop][j]) > -1){\n metaIDs[i].push(obj._id);\n for(var l=0; l<obj.parents.length; l++){\n parentIDs[i].push(obj.parents[l]);\n }\n }else{\n if(obj.metadata.value == filter[prop][j]){\n metaIDs[i].push(obj._id);\n for(var l=0; l<obj.parents.length; l++){\n parentIDs[i].push(obj.parents[l]);\n }\n }\n }\n }\n }\n }\n }\n}\n\nmsg.payload = [parentIDs, metaIDs];\n\nreturn msg;","outputs":1,"noerr":0,"x":780.4484558105469,"y":230.55424737930298,"wires":[["ba03e32b.6a59"]]},{"id":"448cb712.59bc78","type":"function","z":"69b7d74a.c4d048","name":"if fed","func":"var o = [];\n\nfor (var i=0; i < msg.payload.length; i++) {\n if (msg.payload[i] != undefined) {\n if (msg.payload[i].subModels != undefined) {\n var obj = {};\n var temp = [];\n for (var j = 0; j < msg.payload[i].subModels.length; j++) {\n for (var k = 0; k < msg.payload[i].subModels[j].data.length; k++) {\n // merge data arrays as per API calls \n temp.push(msg.payload[i].subModels[j].data[k])\n }\n }\n obj.data = temp;\n o.push(obj);\n } else {\n return msg;\n }\n }\n}\n\nmsg.payload = o;\n\nreturn msg","outputs":1,"noerr":0,"x":560.2442760467529,"y":268.8594994544983,"wires":[["33dc088e.15db88","62aa3c35.c3cc64","9194a8b3.ba00d8","14a29049.aa0f8"]]},{"id":"ba03e32b.6a59","type":"function","z":"69b7d74a.c4d048","name":"set operations","func":"operation = flow.get(\"operation\");\n\nif(operation == \"union\"){\n var unionMesh = new Set([].concat(...msg.payload[0]));\n unionMesh = Array.from(unionMesh);\n resultMesh = unionMesh;\n var unionMeta = new Set([].concat(...msg.payload[1]));\n unionMeta = Array.from(unionMeta);\n resultMeta = unionMeta;\n}\nif(operation == \"intersection\"){\n var resultMesh = msg.payload[0].shift().filter(function(v) {\n return msg.payload[0].every(function(a) {\n return a.indexOf(v) !== -1;\n });\n });\n var resultMeta = msg.payload[1].shift().filter(function(v) {\n return msg.payload[1].every(function(a) {\n return a.indexOf(v) !== -1;\n });\n });\n}\nif(operation == \"difference\"){\n allMeshes = flow.get(\"allMeshes\");\n var unionMesh = new Set([].concat(...msg.payload[0]));\n unionMesh = Array.from(unionMesh);\n var unionMeta = new Set([].concat(...msg.payload[1]));\n unionMeta = Array.from(unionMeta);\n // var intersectionMesh = msg.payload[0].shift().filter(function(v) {\n // return msg.payload[0].every(function(a) {\n // return a.indexOf(v) !== -1;\n // });\n // });\n // node.send({payload:union})\n var differenceMesh = []\n for(var i=0; i<allMeshes.length; i++){\n if(unionMesh.includes(allMeshes[i]) == false){\n differenceMesh.push(allMeshes[i]);\n }\n }\n resultMesh = differenceMesh;\n \n // var differenceMeta = []; // new API for all meta objects coming soon \n resultMeta = resultMesh;\n}\n\nmsg.payload = resultMeta.length + \" results\";\n\nflow.set(\"filteredMesh\", resultMesh);\nflow.set(\"filteredMeta\", resultMeta);\n\nreturn msg;","outputs":1,"noerr":0,"x":956.8390293121338,"y":224.32168245315552,"wires":[["2d2906b.39db3fa"]]},{"id":"e3a6741e.a0c368","type":"http response","z":"69b7d74a.c4d048","name":"","statusCode":"","headers":{},"x":1216.1254386901855,"y":567.0334329605103,"wires":[]},{"id":"dba8c96d.bde8b8","type":"http request","z":"69b7d74a.c4d048","name":"","method":"POST","ret":"obj","url":"{{{topic}}}","tls":"","x":583.6844253540039,"y":564.0662794113159,"wires":[["586756d1.e22c68","cda87d00.0914c"]]},{"id":"56404ab7.22acf4","type":"function","z":"69b7d74a.c4d048","name":"group API call","func":"var cookie = flow.get(\"cookie\");\n\nmsg.headers = {\n \"content-type\":\"application/json\",\n \"Cookie\": cookie\n};\n\nmsg.topic = \"https://api1.www.3drepo.io/api/\" + flow.get(\"teamspace\") + \"/\" + flow.get(\"modelID\") + \"/groups\";\nnode.send({payload:msg.topic})\nvar group = {};\ngroup.name = \"filtered\";\ngroup.color = [255,0,0];\ngroup.objects = msg.payload;\n\nmsg.payload = group;\n\nreturn msg;","outputs":1,"noerr":0,"x":1185.7204704284668,"y":434.9241580963135,"wires":[["dba8c96d.bde8b8"]]},{"id":"6831d7a2.1e1dd8","type":"function","z":"69b7d74a.c4d048","name":"INPUTS","func":"// *** required fields:\nteamspace = \"***\"; // make sure you have permissions to acces this teamspace\nmodelID = \"***\"; // copy from Sample_Federation's URL \nrevision = \"master/head\";\n\nissueName = \"Green bricks\"; // name appears in issue tracker\ncreateIssue = true;\noperation = \"intersection\" // specify set operations: union, intersection or difference\n\nfilter = {\n \"IFC%20Type\":[false, \"IfcBuildingElementProxy\"], // use %20 for empty space\n \"RGB\":[false, \"#00451A\"],\n \"Category\":[false, \"SYSTEM: BRICKS\"],\n // \"Floor\":[false, \"GF Ground value\",\"RF Roof\"],\n // \"BrickName\":[true, \"1X3\",\"2X3\"], // \"true\" for string search\n // \"ColourType\":[\"Transparent\"]\n}\n\n// ignore the rest\nflow.set(\"teamspace\", teamspace);\nflow.set(\"modelID\", modelID);\nflow.set(\"revision\", revision);\nflow.set(\"filter\",filter);\nflow.set(\"issueName\", issueName);\nflow.set(\"createIssue\", createIssue);\nflow.set(\"operation\", operation)\n\nreturn msg;","outputs":1,"noerr":0,"x":111.51799583435059,"y":278.5077500343323,"wires":[[]]},{"id":"46057473.6ebdbc","type":"function","z":"69b7d74a.c4d048","name":"ID map call","func":"cookie = flow.get(\"cookie\");\n\nmsg.headers = {\n \"content-type\":\"application/json\",\n \"Cookie\": cookie\n};\n\nmsg.payload = \"https://api1.www.3drepo.io/api/\" + flow.get(\"teamspace\") + \"/\" + flow.get(\"modelID\") + \"/revision/\" + flow.get(\"revision\") + \"/idmap.json\";\n\nreturn msg;\n","outputs":1,"noerr":0,"x":640.9114074707031,"y":429.1138277053833,"wires":[["a70d3590.db5228"]]},{"id":"a70d3590.db5228","type":"http request","z":"69b7d74a.c4d048","name":"","method":"GET","ret":"obj","url":"{{{payload}}}","tls":"","x":823.4070281982422,"y":432.5339870452881,"wires":[["7a2e342f.0766bc"]]},{"id":"7a2e342f.0766bc","type":"function","z":"69b7d74a.c4d048","name":"shared IDs","func":"function getKeyByValue(object, value) {\n return Object.keys(object).find(key => object[key] === value);\n}\nfunction createObject(account, ID, modelID, sharedID){\n var o = {};\n o.account = account;\n o.id = ID;\n o.model = modelID;\n o.shared_id = sharedID;\n return o\n}\n \nvar objects = [];\nfiltered = flow.get(\"filteredMesh\");\n// node.send({payload:filtered})\n \nif (msg.payload != undefined) {\n if (msg.payload.subModels != undefined){\n for(var i=0; i<filtered.length; i++){\n for (var j=0; j<msg.payload.subModels.length; j++){\n var key = getKeyByValue(msg.payload.subModels[j].idMap, filtered[i]);\n if(key != undefined){\n objects.push(createObject(msg.payload.subModels[j].account, key, msg.payload.subModels[j].model, filtered[i]));\n break\n }\n }\n }\n }else{\n for(var i=0; i<filtered.length; i++){\n var key = getKeyByValue(msg.payload.idMap, filtered[i]);\n objects.push(createObject(flow.get(\"teamspace\"), key, flow.get(\"modelID\"), filtered[i]));\n }\n }\n}\n\nmsg.payload = objects;\n\nreturn msg;","outputs":1,"noerr":0,"x":996.980842590332,"y":436.1573734283447,"wires":[["56404ab7.22acf4"]]},{"id":"586756d1.e22c68","type":"function","z":"69b7d74a.c4d048","name":"create issue API call","func":"var issue = {};\nvar viewpoint = {};\nfilter = flow.get(\"filter\");\nstats = flow.get(\"stats\");\nvar f = [];\nfor(var prop in filter){\n f.push(filter[prop].slice(1)); \n}\nissue.name = flow.get(\"issueName\");\nissue.desc = flow.get(\"filteredMeta\").length + \" results for \" + flow.get(\"operation\") + \" of: \" + f;\nissue.account = flow.get(\"username\");\nissue.assigned_roles = [];\nissue.creator_role = \"Client\";\nissue.group_id = msg.payload._id;\nissue.model = flow.get(\"modelID\");\nissue.objectId = null;\nissue.pickedNorm = null;\nissue.pickedPos = null;\nissue.priority = \"none\";\nissue.rev_id = null;\nissue.scale = 1;\nissue.status = \"open\";\nissue.topic_type = \"for_information\";\n\nissue.comments = flow.get(\"comments\");\n\n// viewpoint.aspect_ratio = 1.1499189138412476;\n// viewpoint.clippingPlanes = [];\n// viewpoint.far = 37788.875;\n// viewpoint.fov = 1.0471975803375244;\n// viewpoint.look_at = [9599.10546875,76.478515625,-6112.9375];\n// viewpoint.near = 75.57775115966797;\n// viewpoint.position = [26698.98046875,18214.173828125,-25682.21875];\n// viewpoint.right = [-0.7530198097229004,0,-0.6579978466033936];\nviewpoint.screenshot = \"iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH3wsGDTs2hte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mlZ3vsFRUpYhPSzJRrsBACZhs0kPuzN83R7AkjRO+sKQhomTsgAAnmdIun+ctNTdLxzgiXe7XNp5o1TKXbIAAB72zFhphideOMBT73i5tKGPFCGpA/0HAHhg6fvGODeedPXvrJ588wXS05LmMw0AAG42t1B6xpM7YPF0BQzJMkWaaJGeZD4AANxg4hjpWYuHz0WymKUab0lPGxW3/rIwNwAArljzGdLYcdJUM+yMqcJusnSfpeIOJIHMEwCAE5VJGjZWmmuWHTLdanOKNFDSbEmRzBcAgBPkGdID46SvzLRTpvy49+odsxaIe0cDAByz0iLd4+6bbPweVjNWa5SUVVvqJmmCuGsWAOCPK5c0obZ0kxnD17Qr4H82RbpZFRdJJzCfAAC/w3FJj46VvjPzTlrNXsWx0rcFUgOL9IxFKmJeAQD+g0uGNKaS1NDs4esVK+B/Nk2qXyZNs0h9mWcAgH/yraRRY6Uj3rLDXnfNrSFZpkoDDek5SS2ZcwDg19IlvTxW+tLbdtyrb3oxVepULj1tqThOzA08AMA/GIb0bYA0cbT0g7e+CZ8IralSJ5s0VlI/ScHMTQDwSSWGtNQiTRkrbfT2N+NTq8ZpUhWb1N+Q7lHFow5ZFQOAl692Ja22SHOt0pejpEJfeWM+G1CTpGut0p2quJ64pbi9JQB4izJJ6RYpzSYtGCdl+OKb9IsV4kSpcrDUSVIXi9TFkJqp4lnEAADPuygpwyKts0nrQqQfRlZ8z6f57Ue0U6VEm9TIIjWRlGRI9Qwp0lJxD+oq+t8/AQD2K1DFx8YFhlRoqfj7EUn7JB2wSQfGSycpEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+DX/DVO794WNQIKBAAAAAElFTkSuQmCC\";\n// viewpoint.up = [-0.37658801674842834,0.8200274705886841,0.4309714138507843];\n// viewpoint.view_dir = [-0.5395762920379639,-0.5723240971565247,0.6174969673156738];\n\nissue.viewpoint = viewpoint;\n\nvar cookie = flow.get(\"cookie\");\n\nmsg.headers = {\n \"content-type\":\"application/json\",\n \"Cookie\": cookie\n};\n\nmsg.topic = \"https://api1.www.3drepo.io/api/\" + flow.get(\"teamspace\") + \"/\" + flow.get(\"modelID\") + \"/issues.json\";\n\nmsg.payload = issue;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":799.5445747375488,"y":564.6735725402832,"wires":[["d612e5fa.248ca8"]]},{"id":"d612e5fa.248ca8","type":"http request","z":"69b7d74a.c4d048","name":"","method":"POST","ret":"obj","url":"{{{topic}}}","tls":"","x":1049.183120727539,"y":567.0378036499023,"wires":[["e3a6741e.a0c368"]]},{"id":"f41e00f9.b167","type":"ui_chart","z":"69b7d74a.c4d048","name":"","group":"a48111f1.9661b","order":1,"width":0,"height":0,"label":"","chartType":"horizontalBar","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":true,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":1185.794973373413,"y":326.46439599990845,"wires":[[],[]]},{"id":"c03bd6ca.4da378","type":"function","z":"69b7d74a.c4d048","name":"format","func":"filter = flow.get(\"filter\");\nvar series = [];\nvar data = [];\nvar labels = [];\nvar m = {};\n\nfor(var prop in filter){\n series.push(prop)\n}\n\nfor(var i=0; i<Object.keys(msg.payload).length; i++){\n for(var prop in msg.payload[i]){\n labels.push(prop);\n data.push(msg.payload[i][prop]);\n }\n}\n\nm.labels = labels;\nm.series = [\"Count\"];\nm.data = [data];\n\nmsg.payload = [m];\n\nreturn msg;","outputs":"1","noerr":0,"x":1008.2926273345947,"y":328.3003087043762,"wires":[["f41e00f9.b167"]]},{"id":"f3b4e7f.017d518","type":"switch","z":"69b7d74a.c4d048","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"No new issue created","vt":"str"},{"t":"eq","v":"payload","vt":"msg"}],"checkall":"false","outputs":2,"x":466.2049026489258,"y":420.8634967803955,"wires":[["2d2906b.39db3fa"],["46057473.6ebdbc"]]},{"id":"14a29049.aa0f8","type":"function","z":"69b7d74a.c4d048","name":"create issue","func":"createIssue = flow.get(\"createIssue\");\n\nif(createIssue === true){ \n return msg;\n}else{\n msg.payload = \"No new issue created\"\n return msg;\n}","outputs":1,"noerr":0,"x":292.09986305236816,"y":423.06463861465454,"wires":[["f3b4e7f.017d518"]]},{"id":"f19e3f4.083efc","type":"ui_text_input","z":"69b7d74a.c4d048","name":"","label":"Username","group":"a3a2993c.d55868","order":1,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"","x":1018.7069931030273,"y":732.0548076629639,"wires":[["a5ad3735.77a668"]]},{"id":"2f6b61e8.1a7a2e","type":"ui_text_input","z":"69b7d74a.c4d048","name":"","label":"Password","group":"a3a2993c.d55868","order":2,"width":0,"height":0,"passthru":false,"mode":"password","delay":300,"topic":"","x":1009.9569511413574,"y":779.5592079162598,"wires":[["53408dbe.405744"]]},{"id":"a5ad3735.77a668","type":"function","z":"69b7d74a.c4d048","name":"username","func":"global.set(\"username\",msg.payload);","outputs":1,"noerr":0,"x":1172.4569854736328,"y":730.5313587188721,"wires":[[]]},{"id":"53408dbe.405744","type":"function","z":"69b7d74a.c4d048","name":"password","func":"global.set(\"password\",msg.payload);\n","outputs":1,"noerr":0,"x":1172.4613075256348,"y":776.7727508544922,"wires":[[]]},{"id":"f1bd2cfb.b515e","type":"ui_text","z":"69b7d74a.c4d048","group":"a3a2993c.d55868","order":5,"width":0,"height":0,"name":"","label":"teamspace: ","format":"{{msg.payload}}","layout":"row-left","x":803.7069034576416,"y":759.0969705581665,"wires":[]},{"id":"fd5688f1.159d58","type":"function","z":"69b7d74a.c4d048","name":"","func":"msg.payload = flow.get(\"teamspace\");\n\nreturn msg;","outputs":1,"noerr":0,"x":653.7133846282959,"y":757.3326425552368,"wires":[["f1bd2cfb.b515e"]]},{"id":"e9bdb44f.2b1498","type":"function","z":"69b7d74a.c4d048","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":154.95474243164062,"y":771.0805435180664,"wires":[["fd5688f1.159d58","1e8abd6e.284853","ec76c368.a68d8"]]},{"id":"40644fae.42033","type":"ui_text","z":"69b7d74a.c4d048","group":"a3a2993c.d55868","order":6,"width":0,"height":0,"name":"","label":"revision: ","format":"{{msg.payload}}","layout":"row-left","x":791.141767501831,"y":806.3712186813354,"wires":[]},{"id":"1e8abd6e.284853","type":"function","z":"69b7d74a.c4d048","name":"","func":"msg.payload = flow.get(\"revision\");\n\nreturn msg;","outputs":1,"noerr":0,"x":651.1482486724854,"y":804.6068906784058,"wires":[["40644fae.42033"]]},{"id":"ec76c368.a68d8","type":"function","z":"69b7d74a.c4d048","name":"model settings","func":"cookie = flow.get(\"cookie\");\n\nmsg.headers = {\n \"content-type\":\"application/json\",\n \"Cookie\": cookie\n};\n\nmsg.payload = \"https://api1.www.3drepo.io/api/\" + flow.get(\"teamspace\") + \"/\" + flow.get(\"modelID\") + \".json\";\n\nreturn msg;","outputs":1,"noerr":0,"x":317.4634494781494,"y":708.5848107337952,"wires":[["2efe513a.ba90be"]]},{"id":"2efe513a.ba90be","type":"http request","z":"69b7d74a.c4d048","name":"","method":"GET","ret":"obj","url":"{{{payload}}}","tls":"","x":503.70913887023926,"y":709.7762174606323,"wires":[["cb5f9494.4dbf98"]]},{"id":"cb5f9494.4dbf98","type":"function","z":"69b7d74a.c4d048","name":"","func":"if(msg.payload.name != undefined){\n msg.payload = msg.payload.name;\n}else{\n msg.payload = \"NOT AUTHORISED\";\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":653.7069759368896,"y":708.5826377868652,"wires":[["7696d1b2.dbf17"]]},{"id":"7696d1b2.dbf17","type":"ui_text","z":"69b7d74a.c4d048","group":"a3a2993c.d55868","order":4,"width":0,"height":0,"name":"","label":"name: ","format":"{{msg.payload}}","layout":"row-left","x":804.8917598724365,"y":705.121208190918,"wires":[]},{"id":"c6b80ba5.f49ef8","type":"ui_template","z":"69b7d74a.c4d048","group":"a3a2993c.d55868","name":"Results","order":8,"width":"0","height":"0","format":"<style>\n td {\n height: 20px;\n }\n a:link {\n color: white;\n background-color: #0094ce;\n text-decoration: none;\n padding: 5px;\n border-radius: 2px;\n box-shadow: 2px 2px 3px #d1d1d1;\n }\n a:visited {\n color: white;\n background-color: #0094ce;\n text-decoration: none;\n }\n a:hover {\n color: white;\n background-color: #1bbfff;\n text-decoration: none;\n }\n</style>\n\n<table style=\"width:100%\">\n <caption><b></b></caption>\n <tr ng-repeat=\"x in msg.payload\">\n <td width=\"100%\"><a href=\"{{x.link}}\" target=\"_blank\"><b>{{x.name}}</b></a></td>\n </tr>\n</table>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":1008.6417541503906,"y":632.6212120056152,"wires":[[]]},{"id":"cda87d00.0914c","type":"function","z":"69b7d74a.c4d048","name":"issue link","func":"o = {};\n\no.name = \"See results in 3D Repo\";\no.link = \"https://www.3drepo.io/\" + flow.get(\"teamspace\") + \"/\" + flow.get(\"modelID\") + \"/issues/\" + msg.payload._id;\n\nmsg.payload = [o];\n\nreturn msg;","outputs":1,"noerr":0,"x":847.4612808227539,"y":634.695915222168,"wires":[["c6b80ba5.f49ef8"]]},{"id":"b94aa487.0d53b8","type":"ui_text","z":"69b7d74a.c4d048","group":"a3a2993c.d55868","order":3,"width":"5","height":"2","name":"","label":"","format":"{{msg.payload}}","layout":"row-spread","x":1018.7049903869629,"y":824.0948028564453,"wires":[]},{"id":"a5c83cf1.b21ab","type":"ui_text","z":"69b7d74a.c4d048","group":"a3a2993c.d55868","order":7,"width":"5","height":"2","name":"","label":"","format":"{{msg.payload}}","layout":"row-spread","x":793.6417579650879,"y":848.8712120056152,"wires":[]},{"id":"f0c3cc03.847bb","type":"function","z":"69b7d74a.c4d048","name":"meshes call","func":"cookie = flow.get(\"cookie\");\n\nmsg.headers = {\n \"content-type\":\"application/json\",\n \"Cookie\": cookie\n};\n\nmsg.payload = \"https://api1.www.3drepo.io/api/\" + flow.get(\"teamspace\") + \"/\" + flow.get(\"modelID\") + \"/revision/\" + flow.get(\"revision\") + \"/meshes.json\";\n\nreturn msg;","outputs":1,"noerr":0,"x":831.6774749755859,"y":119.58554744720459,"wires":[["c78b6cfe.884cb"]]},{"id":"c78b6cfe.884cb","type":"http request","z":"69b7d74a.c4d048","name":"","method":"GET","ret":"obj","url":"{{{payload}}}","tls":"","x":1014.1730575561523,"y":117.02696132659912,"wires":[["8631d848.d29a68"]]},{"id":"ae6653ac.9fbf6","type":"function","z":"69b7d74a.c4d048","name":"if difference","func":"operation = flow.get(\"operation\");\n\nif(operation == \"difference\"){\n return msg;\n}else{\n return;\n}","outputs":1,"noerr":0,"x":655.4274978637695,"y":118.33552169799805,"wires":[["f0c3cc03.847bb"]]},{"id":"8631d848.d29a68","type":"function","z":"69b7d74a.c4d048","name":"all meshes","func":"teamspace = flow.get(\"teamspace\");\n\nallMeshes = [];\n\nif (msg.payload.subModels != undefined) {\n for (var i = 0; i < msg.payload.subModels.length; i++) {\n for (var j = 0; j < msg.payload.subModels[i].meshes.length; j++) {\n allMeshes.push(msg.payload.subModels[i].meshes[j].shared_id)\n }\n }\n}else{\n for(var i in msg.payload.meshes){\n allMeshes.push(msg.payload.meshes[i].shared_id)\n }\n}\n\nvar allMeshes = new Set([].concat(...allMeshes));\nallMeshes = Array.from(allMeshes);\n\nflow.set(\"allMeshes\", allMeshes);","outputs":1,"noerr":0,"x":1187.5759201049805,"y":117.7669448852539,"wires":[[]]},{"id":"a48111f1.9661b","type":"ui_group","z":"","name":"","tab":"eea91618.05e5c8","order":3,"disp":true,"width":"18"},{"id":"a3a2993c.d55868","type":"ui_group","z":"","name":"","tab":"eea91618.05e5c8","order":1,"disp":true,"width":"5"},{"id":"eea91618.05e5c8","type":"ui_tab","z":"","name":"BIM Forensics","icon":"dashboard","order":3}]