diff --git a/IVR/tab_2_conditions.json b/IVR/tab_2_conditions.json index f1aa65a8..44e6ea51 100644 --- a/IVR/tab_2_conditions.json +++ b/IVR/tab_2_conditions.json @@ -24,7 +24,7 @@ { "condition_string": "****", "target_node_id": "node1732726367723", - "extensionNumber": "4000" + "extensionNumber": "" } ] } diff --git a/IVR/tab_6_conditions.json b/IVR/tab_6_conditions.json deleted file mode 100644 index 03b7e115..00000000 --- a/IVR/tab_6_conditions.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "tabId": "6", - "tabName": "Prueba", - "node3_conditions": [ - { - "nodeId": "node1733232084628", - "title": "Prompt y Condiciones", - "conditions": [ - { - "condition_string": "*", - "target_node_id": "node1733232156012", - "extensionNumber": "1000" - }, - { - "condition_string": "**", - "target_node_id": "node1733232177548", - "extensionNumber": "2000" - }, - { - "condition_string": "***", - "target_node_id": "node1733232195165", - "extensionNumber": "3000" - } - ] - } - ] -} \ No newline at end of file diff --git a/IVR/tab_9_conditions.json b/IVR/tab_9_conditions.json new file mode 100644 index 00000000..1fadb26e --- /dev/null +++ b/IVR/tab_9_conditions.json @@ -0,0 +1,11 @@ +{ + "tabId": "9", + "tabName": "Demo_sura", + "node3_conditions": [ + { + "nodeId": "node1733925609991", + "title": "Prompt y Condiciones", + "conditions": [] + } + ] +} \ No newline at end of file diff --git a/flow/data/tab_2_IVR_2.json b/flow/data/tab_2_IVR_2.json index 94ea2271..de4e6e4b 100644 --- a/flow/data/tab_2_IVR_2.json +++ b/flow/data/tab_2_IVR_2.json @@ -79,16 +79,6 @@ }, "nodeType": "node4", "extensionNumber": "3000" - }, - { - "id": "node1732726367723", - "title": "Área comercial", - "position": { - "top": "309px", - "left": "927px" - }, - "nodeType": "node4", - "extensionNumber": "4000" } ], "connections": [ @@ -126,13 +116,6 @@ "endNodeId": "node1732719473032", "endPortClass": "in", "isActive": false - }, - { - "startNodeId": "node1732660230441", - "startPortClass": "out", - "endNodeId": "node1732726367723", - "endPortClass": "in", - "isActive": false } ] } \ No newline at end of file diff --git a/flow/data/tab_6_Prueba.json b/flow/data/tab_6_Prueba.json deleted file mode 100644 index 54388b90..00000000 --- a/flow/data/tab_6_Prueba.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "tabName": "Prueba", - "nodes": [ - { - "id": "node1733232048812", - "title": "DID o Extensión", - "extensionNumber": "7890", - "position": { - "top": "157px", - "left": "106px" - }, - "nodeType": "node1" - }, - { - "id": "node1733232060675", - "title": "IVR", - "audioFile": "/media/tabs/tab_6/audio_files/IVR_node2_node1733232060675.wav", - "position": { - "top": "156px", - "left": "379px" - }, - "nodeType": "node2" - }, - { - "id": "node1733232084628", - "title": "Prompt y Condiciones", - "content": "Eres un agente de servicio al cliente de telefonía y debes identificar si la persona quiere ser transferida al área de tecnología, administración o comercial. \nEn caso de tecnología devuelve 1 *.\nEn caso de Administración devuelve **.\nEn caso de Comercial devuelve ***.\n\nEs de suma importacia que los asteriscos deben ir al inicio de tú respuesta y siempre debes indicar a cuál área será transferido el cliente e indicar que fue un gusto atenderlo. Nunca puedes enviar los asteriscos solos, tienes que decir que fue un placer atenderte.", - "position": { - "top": "155px", - "left": "654px" - }, - "nodeType": "node3", - "textFile": "", - "conditions": [ - { - "condition_string": "*", - "target_node_id": "node1733232156012" - }, - { - "condition_string": "**", - "target_node_id": "node1733232177548" - }, - { - "condition_string": "***", - "target_node_id": "node1733232195165" - } - ] - }, - { - "id": "node1733232156012", - "title": "Tecnología", - "position": { - "top": "62px", - "left": "1010px" - }, - "nodeType": "node4", - "extensionNumber": "1000" - }, - { - "id": "node1733232177548", - "title": "Administración", - "position": { - "top": "181px", - "left": "1013px" - }, - "nodeType": "node4", - "extensionNumber": "2000" - }, - { - "id": "node1733232195165", - "title": "Comercial", - "position": { - "top": "290px", - "left": "1015px" - }, - "nodeType": "node4", - "extensionNumber": "3000" - } - ], - "connections": [ - { - "startNodeId": "node1733232048812", - "startPortClass": "out", - "endNodeId": "node1733232060675", - "endPortClass": "in", - "isActive": false - }, - { - "startNodeId": "node1733232060675", - "startPortClass": "out", - "endNodeId": "node1733232084628", - "endPortClass": "in", - "isActive": false - }, - { - "startNodeId": "node1733232084628", - "startPortClass": "out", - "endNodeId": "node1733232156012", - "endPortClass": "in", - "isActive": false - }, - { - "startNodeId": "node1733232084628", - "startPortClass": "out", - "endNodeId": "node1733232177548", - "endPortClass": "in", - "isActive": false - }, - { - "startNodeId": "node1733232084628", - "startPortClass": "out", - "endNodeId": "node1733232195165", - "endPortClass": "in", - "isActive": false - } - ] -} \ No newline at end of file diff --git a/flow/data/tab_9_Demo_sura.json b/flow/data/tab_9_Demo_sura.json new file mode 100644 index 00000000..9a91ce01 --- /dev/null +++ b/flow/data/tab_9_Demo_sura.json @@ -0,0 +1,53 @@ +{ + "tabName": "Demo_sura", + "nodes": [ + { + "id": "node1733925358572", + "title": "DID o Extensión", + "extensionNumber": "6666", + "position": { + "top": "159px", + "left": "106px" + }, + "nodeType": "node1" + }, + { + "id": "node1733925372948", + "title": "Audio", + "audioFile": "/media/tabs/tab_9/audio_files/Audio_node2_node1733925372948.wav", + "position": { + "top": "158px", + "left": "353px" + }, + "nodeType": "node2" + }, + { + "id": "node1733925609991", + "title": "Prompt y Condiciones", + "content": "Eres un asistente de tecnologia vas a conntestar llmadas con dudas dobre daños a computadoras, aparatos tecnologicos y todo referenete a tecnologia, serar un agente de TI nivel 1", + "position": { + "top": "158px", + "left": "590px" + }, + "nodeType": "node3", + "textFile": "", + "conditions": [] + } + ], + "connections": [ + { + "startNodeId": "node1733925358572", + "startPortClass": "out", + "endNodeId": "node1733925372948", + "endPortClass": "in", + "isActive": false + }, + { + "startNodeId": "node1733925372948", + "startPortClass": "out", + "endNodeId": "node1733925609991", + "endPortClass": "in", + "isActive": false + } + ] +} \ No newline at end of file diff --git a/flow/static/css/flow.css b/flow/static/css/flow.css index 1dccc71b..80bad9a5 100644 --- a/flow/static/css/flow.css +++ b/flow/static/css/flow.css @@ -41,7 +41,7 @@ body { } #node1, [data-node-type="node1"] { - background-color: #004D40; + background-color: #92a5b9; } #node2, [data-node-type="node2"] { @@ -220,4 +220,17 @@ canvas { height: 35px; border-radius: 5px; border: none; +} + +.footer { + display: flex; + align-content: center; + justify-content: center; + align-items: center; + bottom: 0; + position: absolute; + background: rgba(255,255,255,0.5); + width: 100%; + height: 60px; + font-size: 25px; } \ No newline at end of file diff --git a/flow/static/css/tabs.css b/flow/static/css/tabs.css index 182aea87..142cd27f 100644 --- a/flow/static/css/tabs.css +++ b/flow/static/css/tabs.css @@ -158,7 +158,7 @@ button { } [data-node-type="node1"] { - background-color: #004D40; + background-color: #92a5b9; } [data-node-type="node2"] { diff --git a/flow/static/images/loading-animation.png b/flow/static/images/loading-animation.png new file mode 100644 index 00000000..cfe7b708 Binary files /dev/null and b/flow/static/images/loading-animation.png differ diff --git a/flow/static/js/flow_doc.js b/flow/static/js/flow_doc.js index 8740d870..d33f0998 100644 --- a/flow/static/js/flow_doc.js +++ b/flow/static/js/flow_doc.js @@ -118,7 +118,7 @@ function createNode(e, tabId) { // Asignar puertos en base al tipo de nodo if (node_type === "node1") { - element.style.background = "#004D40"; + element.style.background = "#92a5b9"; element.setAttribute('data-node-type', 'node1'); const portOut = document.createElement('div'); portOut.className = 'port port-out'; diff --git a/flow/static/js/tabs.js b/flow/static/js/tabs.js index 759a8c4b..deabe10e 100644 --- a/flow/static/js/tabs.js +++ b/flow/static/js/tabs.js @@ -520,7 +520,7 @@ async function loadTabData(tabId, tabName = null) { const portOut = document.createElement('div'); portOut.className = "port port-out"; node.appendChild(portOut); - node.style.background = "#004D40"; + node.style.background = "#92a5b9"; } else if (nodeData.nodeType === "node2") { const portIn = document.createElement('div'); portIn.className = "port port-in"; diff --git a/flow/templates/flow.html b/flow/templates/flow.html index 926f7661..aac5153c 100644 --- a/flow/templates/flow.html +++ b/flow/templates/flow.html @@ -8,6 +8,7 @@ Flow System + @@ -23,6 +24,11 @@
+ + diff --git a/media/tabs/tab_6/audio_files/IVR_node2_node1732629043934.wav b/media/tabs/tab_6/audio_files/IVR_node2_node1732629043934.wav deleted file mode 100644 index 28d5af48..00000000 Binary files a/media/tabs/tab_6/audio_files/IVR_node2_node1732629043934.wav and /dev/null differ diff --git a/media/tabs/tab_6/audio_files/IVR_node2_node1733232060675.wav b/media/tabs/tab_6/audio_files/IVR_node2_node1733232060675.wav deleted file mode 100644 index b4c5c280..00000000 Binary files a/media/tabs/tab_6/audio_files/IVR_node2_node1733232060675.wav and /dev/null differ diff --git a/media/tabs/tab_6/text_files/Prompt_node3_node1732629072336.txt b/media/tabs/tab_6/text_files/Prompt_node3_node1732629072336.txt deleted file mode 100644 index 4cde488c..00000000 --- a/media/tabs/tab_6/text_files/Prompt_node3_node1732629072336.txt +++ /dev/null @@ -1 +0,0 @@ -+ para RTC, ++ para TIC y +++ para Desarrollo \ No newline at end of file diff --git a/media/tabs/tab_9/audio_files/Audio_node2_node1733925372948.wav b/media/tabs/tab_9/audio_files/Audio_node2_node1733925372948.wav new file mode 100644 index 00000000..4adada2a Binary files /dev/null and b/media/tabs/tab_9/audio_files/Audio_node2_node1733925372948.wav differ