{
    "tags": [
        {
            "name": "рос.док"
        }
    ],
    "editor": true,
    "type": "voice",
    "payload": "{\"id\":\"demo@0.1.0\",\"nodes\":{\"17\":{\"id\":17,\"data\":{\"extensions\":{\"tag\":\"17-start-custom-tag\"}},\"inputs\":{},\"outputs\":{\"out\":{\"connections\":[{\"node\":56,\"input\":\"in\",\"data\":{}}]}},\"position\":[0,0],\"name\":\"start\"},\"56\":{\"id\":56,\"data\":{\"all\":true,\"call\":{\"type\":\"tone\",\"file\":{},\"name\":\"%(1000,6000,425);loops=-1\"},\"hold\":{\"type\":\"tone\",\"file\":{},\"name\":\"%(1000,6000,425);loops=-1\"},\"transfer\":{\"type\":\"tone\",\"file\":{},\"name\":\"%(1000,6000,425);loops=-1\"},\"extensions\":{\"break\":false,\"tag\":\"56-ringback-custom-tag\"}},\"inputs\":{\"in\":{\"connections\":[{\"node\":17,\"output\":\"out\",\"data\":{}}]}},\"outputs\":{\"out\":{\"connections\":[{\"node\":57,\"input\":\"in\",\"data\":{}}]}},\"position\":[211.94426229508196,-34.08633411554733],\"name\":\"ringback\"},\"57\":{\"id\":57,\"data\":{\"strategy\":\"multiply\",\"endpoints\":[{\"extension\":\"1000\",\"idle\":true,\"type\":\"user\",\"parameters\":[]}],\"parameters\":[],\"extensions\":{\"break\":false,\"tag\":\"57-bridge-custom-tag\"}},\"inputs\":{\"in\":{\"connections\":[{\"node\":56,\"output\":\"out\",\"data\":{}}]}},\"outputs\":{\"out\":{\"connections\":[{\"node\":58,\"input\":\"in\",\"data\":{}}]}},\"position\":[412,-33.00001525878906],\"name\":\"bridge\"},\"58\":{\"id\":58,\"data\":{\"hangup\":\"\",\"extensions\":{\"break\":false,\"tag\":\"58-hangup-custom-tag\"}},\"inputs\":{\"in\":{\"connections\":[{\"node\":57,\"output\":\"out\",\"data\":{}}]}},\"outputs\":{\"out\":{\"connections\":[]}},\"position\":[600.0041888373146,-34.99718496157874],\"name\":\"hangup\"},\"59\":{\"id\":59,\"data\":{\"trigger\":\"disconnected\",\"extensions\":{\"break\":false,\"tag\":\"59-trigger-custom-tag\"}},\"inputs\":{},\"outputs\":{\"action\":{\"connections\":[{\"node\":60,\"input\":\"in\",\"data\":{}}]}},\"position\":[-11.97829770667123,174.06838007375268],\"name\":\"trigger\"},\"60\":{\"id\":60,\"data\":{\"expression\":\"+${bridge_epoch} == 0\",\"extensions\":{\"break\":false,\"tag\":\"60-if-custom-tag\"}},\"inputs\":{\"in\":{\"connections\":[{\"node\":59,\"output\":\"action\",\"data\":{}}]}},\"outputs\":{\"then\":{\"connections\":[{\"node\":61,\"input\":\"in\",\"data\":{}}]},\"else\":{\"connections\":[]},\"out\":{\"connections\":[]}},\"position\":[203,154],\"name\":\"if\"},\"61\":{\"id\":61,\"data\":{\"url\":\"https://example-crm-bundle.terrasoft.ua/ServiceModel/AuthService.svc/Login\",\"method\":\"POST\",\"timeout\":1000,\"insecureSkipVerify\":false,\"parser\":\"application/json\",\"responseCode\":\"http_response_code\",\"exportCookie\":\"my-cookie\",\"cacheCookie\":false,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json\"}],\"path\":[],\"data\":\"{\\n\\\"UserName\\\": \\\"Supervisor\\\",\\n\\\"UserPassword\\\": \\\"Supervisor\\\"\\n }\",\"exportVariables\":[],\"extensions\":{\"break\":false,\"tag\":\"61-httpRequest-custom-tag\"}},\"inputs\":{\"in\":{\"connections\":[{\"node\":60,\"output\":\"then\",\"data\":{}}]}},\"outputs\":{\"out\":{\"connections\":[{\"node\":62,\"input\":\"in\",\"data\":{}}]}},\"position\":[406.98262018919445,177.99102054912797],\"name\":\"httpRequest\"},\"62\":{\"id\":62,\"data\":{\"data\":\"return ${my_cookie}.replace(/.*BPMCSRF=([-._A-Za-z0-9/]{22});.*/, '$1')\",\"setVar\":\"BPMCSRF\",\"extensions\":{\"break\":false,\"tag\":\"62-js-custom-tag\"}},\"inputs\":{\"in\":{\"connections\":[{\"node\":61,\"output\":\"out\",\"data\":{}}]}},\"outputs\":{\"out\":{\"connections\":[{\"node\":63,\"input\":\"in\",\"data\":{}}]}},\"position\":[639.9942689793144,176.49492079868585],\"name\":\"js\"},\"63\":{\"id\":63,\"data\":{\"url\":\"https://example-crm-bundle.terrasoft.ua/0/dataservice/json/reply/InsertQuery\",\"method\":\"POST\",\"timeout\":1000,\"insecureSkipVerify\":false,\"parser\":\"application/json\",\"responseCode\":\"http_response_code\",\"exportCookie\":\"my-cookie\",\"cacheCookie\":false,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Accept\",\"value\":\"application/json;odata=verbose\"},{\"key\":\"BPMCSRF\",\"value\":\"${BPMCSRF}\"},{\"key\":\"Cookie\",\"value\":\"${my_cookie}\"}],\"path\":[],\"data\":\"{\\n                                        \\\"ColumnValues\\\": {\\n                                            \\\"Items\\\": {\\n                                                \\\"ActivityCategory\\\": {\\n                                                    \\\"ExpressionType\\\": 2,\\n                                                    \\\"Parameter\\\": {\\n                                                        \\\"DataValueType\\\": 0,\\n                                                        \\\"Value\\\": \\\"E52BD583-7825-E011-8165-00155D043204\\\"\\n                                                    }\\n                                                },\\n                                                \\\"RemindToOwner\\\": {\\n                                                    \\\"ExpressionType\\\": 2,\\n                                                    \\\"Parameter\\\": {\\n                                                        \\\"DataValueType\\\": 12,\\n                                                        \\\"Value\\\": true\\n                                                    }\\n                                                },\\n                                                \\\"Title\\\": {\\n                                                    \\\"ExpressionType\\\": 2,\\n                                                    \\\"Parameter\\\": {\\n                                                        \\\"DataValueType\\\": 1,\\n                                                        \\\"Value\\\": \\\"Missed call from: ${caller_id_number}\\\"\\n                                                    }\\n                                                },\\n                                                \\\"Type\\\": {\\n                                                    \\\"ExpressionType\\\": 2,\\n                                                    \\\"Parameter\\\": {\\n                                                        \\\"DataValueType\\\": 0,\\n                                                        \\\"Value\\\": \\\"E1831DEC-CFC0-DF11-B00F-001D60E938C6\\\"\\n                                                    }\\n                                                }\\n                                            }\\n                                        },\\n                                        \\\"OperationType\\\": 1,\\n                                        \\\"RootSchemaName\\\": \\\"Activity\\\"\\n                                    }\",\"exportVariables\":[],\"extensions\":{\"break\":false,\"tag\":\"63-httpRequest-custom-tag\"}},\"inputs\":{\"in\":{\"connections\":[{\"node\":62,\"output\":\"out\",\"data\":{}}]}},\"outputs\":{\"out\":{\"connections\":[]}},\"position\":[818.9710245242405,175.99761827678657],\"name\":\"httpRequest\"}}}",
    "schema": "[\n    {\n        \"break\": false,\n        \"tag\": \"59-trigger-custom-tag\",\n        \"trigger\": {\n            \"disconnected\": [\n                {\n                    \"break\": false,\n                    \"if\": {\n                        \"expression\": \"+${bridge_epoch} == 0\",\n                        \"then\": [\n                            {\n                                \"break\": false,\n                                \"httpRequest\": {\n                                    \"cacheCookie\": false,\n                                    \"data\": {\n                                        \"UserName\": \"Supervisor\",\n                                        \"UserPassword\": \"Supervisor\"\n                                    },\n                                    \"exportCookie\": \"my-cookie\",\n                                    \"exportVariables\": {},\n                                    \"headers\": {\n                                        \"Content-Type\": \"application/json\"\n                                    },\n                                    \"insecureSkipVerify\": false,\n                                    \"method\": \"POST\",\n                                    \"parser\": \"application/json\",\n                                    \"path\": {},\n                                    \"responseCode\": \"http_response_code\",\n                                    \"timeout\": 1000,\n                                    \"url\": \"https://example-crm-bundle.terrasoft.ua/ServiceModel/AuthService.svc/Login\"\n                                },\n                                \"tag\": \"61-httpRequest-custom-tag\"\n                            },\n                            {\n                                \"break\": false,\n                                \"js\": {\n                                    \"data\": \"return ${my_cookie}.replace(/.*BPMCSRF=([-._A-Za-z0-9/]{22});.*/, '$1')\",\n                                    \"setVar\": \"BPMCSRF\"\n                                },\n                                \"tag\": \"62-js-custom-tag\"\n                            },\n                            {\n                                \"break\": false,\n                                \"httpRequest\": {\n                                    \"cacheCookie\": false,\n                                    \"data\": {\n                                        \"ColumnValues\": {\n                                            \"Items\": {\n                                                \"ActivityCategory\": {\n                                                    \"ExpressionType\": 2,\n                                                    \"Parameter\": {\n                                                        \"DataValueType\": 0,\n                                                        \"Value\": \"E52BD583-7825-E011-8165-00155D043204\"\n                                                    }\n                                                },\n                                                \"RemindToOwner\": {\n                                                    \"ExpressionType\": 2,\n                                                    \"Parameter\": {\n                                                        \"DataValueType\": 12,\n                                                        \"Value\": true\n                                                    }\n                                                },\n                                                \"Title\": {\n                                                    \"ExpressionType\": 2,\n                                                    \"Parameter\": {\n                                                        \"DataValueType\": 1,\n                                                        \"Value\": \"Missed call from: ${caller_id_number}\"\n                                                    }\n                                                },\n                                                \"Type\": {\n                                                    \"ExpressionType\": 2,\n                                                    \"Parameter\": {\n                                                        \"DataValueType\": 0,\n                                                        \"Value\": \"E1831DEC-CFC0-DF11-B00F-001D60E938C6\"\n                                                    }\n                                                }\n                                            }\n                                        },\n                                        \"OperationType\": 1,\n                                        \"RootSchemaName\": \"Activity\"\n                                    },\n                                    \"exportCookie\": \"my-cookie\",\n                                    \"exportVariables\": {},\n                                    \"headers\": {\n                                        \"Accept\": \"application/json;odata=verbose\",\n                                        \"BPMCSRF\": \"${BPMCSRF}\",\n                                        \"Content-Type\": \"application/json\",\n                                        \"Cookie\": \"${my_cookie}\"\n                                    },\n                                    \"insecureSkipVerify\": false,\n                                    \"method\": \"POST\",\n                                    \"parser\": \"application/json\",\n                                    \"path\": {},\n                                    \"responseCode\": \"http_response_code\",\n                                    \"timeout\": 1000,\n                                    \"url\": \"https://example-crm-bundle.terrasoft.ua/0/dataservice/json/reply/InsertQuery\"\n                                },\n                                \"tag\": \"63-httpRequest-custom-tag\"\n                            }\n                        ]\n                    },\n                    \"tag\": \"60-if-custom-tag\"\n                }\n            ]\n        }\n    },\n    {\n        \"break\": false,\n        \"ringback\": {\n            \"all\": true,\n            \"call\": {\n                \"file\": {},\n                \"name\": \"%(1000,6000,425);loops=-1\",\n                \"type\": \"tone\"\n            },\n            \"hold\": {\n                \"file\": {},\n                \"name\": \"%(1000,6000,425);loops=-1\",\n                \"type\": \"tone\"\n            },\n            \"transfer\": {\n                \"file\": {},\n                \"name\": \"%(1000,6000,425);loops=-1\",\n                \"type\": \"tone\"\n            }\n        },\n        \"tag\": \"56-ringback-custom-tag\"\n    },\n    {\n        \"break\": false,\n        \"bridge\": {\n            \"endpoints\": [\n                {\n                    \"extension\": \"1000\",\n                    \"idle\": true,\n                    \"parameters\": {},\n                    \"type\": \"user\"\n                }\n            ],\n            \"parameters\": {},\n            \"strategy\": \"multiply\"\n        },\n        \"tag\": \"57-bridge-custom-tag\"\n    },\n    {\n        \"break\": false,\n        \"hangup\": \"\",\n        \"tag\": \"58-hangup-custom-tag\"\n    }\n]",
    "id": "1587",
    "createdAt": "1709308253155",
    "createdBy": {
        "id": "8864",
        "name": "Артур Беляев"
    },
    "updatedAt": "1709308253155",
    "updatedBy": {
        "id": "8864",
        "name": "Артур Беляев"
    },
    "name": "Создаем активность в Creatio по пропущенным звонкам"
}