{ "createdAt": "2022-04-29T07:24:59.929Z", "updatedAt": "2022-08-03T13:35:44.256Z", "id": 11, "name": "avtomoto25", "active": true, "nodes": [ { "parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [ -800, 1100 ], "id": "9dac1004-f978-449c-a92e-0b90f2ee9f06" }, { "parameters": { "path": "scool", "responseMode": "responseNode", "options": {} }, "name": "Webhook", "type": "n8n-nodes-base.webhook", "typeVersion": 1, "position": [ -800, 1280 ], "webhookId": "42d23674-abe0-4cb4-a158-3319140d97f0", "id": "931df749-d755-4dfa-9ba9-6f1a1e21007d" }, { "parameters": { "docId": "tAuWNMisjXqyEkYudRcA2c", "tableId": "Classrooms", "returnAll": true, "additionalOptions": {} }, "name": "Grist", "type": "n8n-nodes-base.grist", "typeVersion": 1, "position": [ -500, 1280 ], "credentials": { "gristApi": { "id": "21", "name": "Grist account" } }, "id": "92e3c8bc-d8b3-44b3-8f42-d248e762a14a" }, { "parameters": { "operation": "aggregateItems", "fieldsToAggregate": { "fieldToAggregate": [ { "fieldToAggregate": "id" }, { "fieldToAggregate": "date_ru" }, { "fieldToAggregate": "date_ua" }, { "fieldToAggregate": "count" }, { "fieldToAggregate": "time" }, { "fieldToAggregate": "day_2_ua" }, { "fieldToAggregate": "day_1_ua" }, { "fieldToAggregate": "day_1_ru" }, { "fieldToAggregate": "day_2_ru" }, { "fieldToAggregate": "address" }, { "fieldToAggregate": "time_2" }, { "fieldToAggregate": "time_3" }, { "fieldToAggregate": "day_3_ua" }, { "fieldToAggregate": "day_3_ru" } ] }, "options": {} }, "name": "Item Lists", "type": "n8n-nodes-base.itemLists", "typeVersion": 1, "position": [ -280, 1280 ], "id": "af000df5-5893-4414-a635-9f408e0397cf" }, { "parameters": { "respondWith": "json", "responseBody": "={ \"data\": \n { \"data_rokoss\":\n {\n \"ru\": \"{{$json[\"date_ru\"][0]}}\",\n \"ua\": \"{{$json[\"date_ua\"][0]}}\"\n },\n \n \"data_masani\":\n {\n \"ru\": \"{{$json[\"date_ru\"][1]}}\",\n \"ua\": \"{{$json[\"date_ua\"][1]}}\"\n },\n \"data_prospect\":\n {\n \"ru\": \"{{$json[\"date_ru\"][2]}}\",\n \"ua\": \"{{$json[\"date_ua\"][2]}}\"\n } \n },\n \"count\":\n {\n \"rokoss\": \"{{$json[\"count\"][0]}}\",\n \"masani\": \"{{$json[\"count\"][1]}}\",\n \"prospect\": \"{{$json[\"count\"][2]}}\"\n },\n\n\"schedule\":\n {\n \"rokoss\":\n {\n \"day1\":\n {\n \"ru\": \"{{$json[\"day_1_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_1_ua\"][0]}}\"\n },\n \"day2\":\n {\n \"ru\": \"{{$json[\"day_2_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_2_ua\"][0]}}\"\n },\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][0]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][0]}}\"\n},\n \"time\": \"{{$json[\"time\"][0]}}\",\n \"time_2\": \"{{$json[\"time_2\"][0]}}\",\n \"time_3\": \"{{$json[\"time_3\"][0]}}\"\n },\n\"masani\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][1]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][1]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][1]}}\"\n},\n\"time\": \"{{$json[\"time\"][1]}}\",\n\"time_2\": \"{{$json[\"time_2\"][1]}}\",\n\"time_3\": \"{{$json[\"time_3\"][1]}}\"\n},\n\"prospect\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][2]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][2]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][2]}}\"\n},\n\"time\": \"{{$json[\"time\"][2]}}\",\n\"time_2\": \"{{$json[\"time_2\"][2]}}\",\n\"time_3\": \"{{$json[\"time_3\"][2]}}\"\n}\n}\n}", "options": { "responseCode": 200 } }, "name": "Respond to Webhook2", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1, "position": [ -40, 1280 ], "id": "2b49fef3-503f-4a4b-9462-5b28d2692964" } ], "connections": { "Webhook": { "main": [ [ { "node": "Grist", "type": "main", "index": 0 } ] ] }, "Grist": { "main": [ [ { "node": "Item Lists", "type": "main", "index": 0 } ] ] }, "Item Lists": { "main": [ [ { "node": "Respond to Webhook2", "type": "main", "index": 0 } ] ] } }, "settings": { "saveExecutionProgress": "DEFAULT", "errorWorkflow": "25" }, "staticData": null, "pinData": {}, "tags": [ { "createdAt": "2022-05-10T18:06:30.022Z", "updatedAt": "2022-05-10T18:06:30.022Z", "id": "1", "name": "avtomoto25" } ], "hash": "37d994cd552777fa64435357617fc713" }