@itleanchatbot/shared-models-js-postgres 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/legacy/migrations/2021050204551-create-extension-uuid-ossp.js +12 -12
- package/src/legacy/migrations/20210503140511-create-channel-types.js +56 -56
- package/src/legacy/migrations/20210503141113-create-channel-configurations.js +56 -56
- package/src/legacy/migrations/20210503141528-create-enterprises.js +47 -47
- package/src/legacy/migrations/20210503142049-create-permissions.js.js +44 -44
- package/src/legacy/migrations/20210503142205-create-profiles.js.js +33 -33
- package/src/legacy/migrations/20210503142259-create-profiles-permissions.js +45 -45
- package/src/legacy/migrations/20210503142433-create-system-users.js +61 -61
- package/src/legacy/migrations/20210503142528-create-system-users-profiles.js +45 -45
- package/src/legacy/migrations/20210503142645-create-departments.js +49 -49
- package/src/legacy/migrations/20210503142739-create-clients.js +44 -44
- package/src/legacy/migrations/20210503142857-create-intelligences.js +48 -48
- package/src/legacy/migrations/20210503142959-create-ibm-providers.js +71 -71
- package/src/legacy/migrations/20210503151909-create-itlean-providers.js +53 -53
- package/src/legacy/migrations/20210503154612-create-skills.js +114 -110
- package/src/legacy/migrations/20210503161006-create-files.js +53 -53
- package/src/legacy/migrations/20210503161236-create-channels.js +66 -66
- package/src/legacy/migrations/20210503161308-create-sessions.js +67 -67
- package/src/legacy/migrations/20210503161503-create-subdepartments.js +49 -49
- package/src/legacy/migrations/20210503161543-create-branches.js +53 -53
- package/src/legacy/migrations/20210503161909-create-lines.js +55 -55
- package/src/legacy/migrations/20210503161947-create-entities.js +56 -56
- package/src/legacy/migrations/20210503162126-create-intentions.js +56 -56
- package/src/legacy/migrations/20210503162213-create-intentions-values.js +51 -51
- package/src/legacy/migrations/20210503162618-create-entities-values.js +67 -67
- package/src/legacy/migrations/20210503162752-create-synonyms.js +71 -71
- package/src/legacy/migrations/20210503163331-create-responses.js +58 -58
- package/src/legacy/migrations/20210503163437-create-responses-boxes.js +66 -66
- package/src/legacy/migrations/20210503163702-create-languages.js +42 -42
- package/src/legacy/migrations/20210503184109-create-groups.js +53 -53
- package/src/legacy/migrations/20210503185846-create-contacts.js +55 -55
- package/src/legacy/migrations/20210503190220-create-groups-contacts.js +47 -47
- package/src/legacy/migrations/20210503190338-create-fields.js +40 -40
- package/src/legacy/migrations/20210503190515-create-apis.js +65 -65
- package/src/legacy/migrations/20210503191041-create-apis-resources-body.js +46 -46
- package/src/legacy/migrations/20210503191107-create-apis-resources.js +74 -74
- package/src/legacy/migrations/20210503191253-create-apis-resources-headers.js +53 -53
- package/src/legacy/migrations/20210503193228-create-apis-resources-query-string-params.js +61 -61
- package/src/legacy/migrations/20210503193425-create-apis-resources-path-params.js +52 -52
- package/src/legacy/migrations/20210503193511-create-dialog-nodes.js +121 -121
- package/src/legacy/migrations/20210503193629-create-response-dialog-nodes.js +46 -46
- package/src/legacy/migrations/20210503193905-create-system-users-lines.js +45 -45
- package/src/legacy/migrations/20210503194004-create-attendances.js +80 -80
- package/src/legacy/migrations/20210503194036-create-tranship-conversations.js +65 -65
- package/src/legacy/migrations/20210503194204-create-line-configurations.js +75 -75
- package/src/legacy/migrations/20210504133611-create-templates.js +68 -68
- package/src/legacy/migrations/20210504133647-create-socket-clients.js +73 -73
- package/src/legacy/migrations/20210504143703-create-dialog-nodes-multiple-responses.js +47 -47
- package/src/legacy/migrations/20210504144332-create-messages-hsm.js +72 -72
- package/src/legacy/migrations/20210504144657-create-dialog-nodes-api-resources.js +54 -54
- package/src/legacy/migrations/20210504144730-create-send-hsm.js +62 -62
- package/src/legacy/migrations/20210504144859-create-messages-hsm-channels.js +48 -48
- package/src/legacy/migrations/20210504144931-create-open-faqs.js +55 -55
- package/src/legacy/migrations/20210504145032-create-return-hsm.js +50 -50
- package/src/legacy/migrations/20210504160623-create-group-send-hsm.js +52 -52
- package/src/legacy/migrations/20210504164445-create-extension-unaccent.js +11 -11
- package/src/legacy/migrations/20210504164516-create-extension-fuzzy.js +11 -11
- package/src/legacy/migrations/20210504164553-create-attendance-scale.js +48 -48
- package/src/legacy/migrations/20210504164613-create-attendance-scale-off.js +58 -58
- package/src/legacy/migrations/20210504165351-create-comments.js +42 -42
- package/src/legacy/migrations/20210504165421-create-quick-messages.js +49 -49
- package/src/legacy/migrations/20210504165514-create-bot-iterables.js +60 -60
- package/src/legacy/migrations/20210504165900-create-tranship-triggers.js +114 -114
- package/src/legacy/migrations/20210505025504-create-send-hsm-return-hsm.js +34 -34
- package/src/legacy/migrations/20210507012938-create-faq-triggers.js +68 -68
- package/src/legacy/migrations/20210518122431-alter-responses.js +17 -17
- package/src/legacy/migrations/20210524150418-create-faq-questions.js +51 -51
- package/src/legacy/migrations/20210524173157-alter-table-open-faq.js +17 -17
- package/src/legacy/migrations/20210526115430-alter-attendances.js +14 -14
- package/src/legacy/migrations/20210528101030-alter-attendances.js +82 -82
- package/src/legacy/migrations/20210609103918-create-table-postbakGupshup.js +46 -46
- package/src/legacy/migrations/20210614194609-alter-channels.js +14 -14
- package/src/legacy/migrations/20210618101840-alter-table-MessagesHsms.js +14 -14
- package/src/legacy/migrations/20210622132643-alter-table-postbackGupshup.js +11 -11
- package/src/legacy/migrations/20210623110159-alter-table-botinterable.js +176 -176
- package/src/legacy/migrations/20210623180356-alter-dialog-nodes-api-resources.js +15 -15
- package/src/legacy/migrations/20210625165930-alter-dialog-nodes-api-resources.js +15 -15
- package/src/legacy/migrations/20210708142712-alter-table-entity-values.js +17 -17
- package/src/legacy/migrations/20210708145259-alter-table-synonyms.js +25 -25
- package/src/legacy/migrations/20210719161230-alter-attendances.js +14 -14
- package/src/legacy/migrations/20210727095921-alter-name-size.js +39 -39
- package/src/legacy/migrations/20210727110430-create-endSessionTriggers.js +71 -71
- package/src/legacy/migrations/20210728140327-create-table-online-editing.js +42 -42
- package/src/legacy/migrations/20210810152747-alter-botIterables.js +26 -26
- package/src/legacy/migrations/20210812110330-create-indexes.js +101 -101
- package/src/legacy/migrations/20210816124430-create-inactivityTriggers.js +60 -60
- package/src/legacy/migrations/20210819155330-create-function.js +123 -123
- package/src/legacy/migrations/20210823145424-remove-names-botiterables.js +74 -74
- package/src/legacy/migrations/20210902145430-create-apiKeys.js +40 -40
- package/src/legacy/migrations/20210906092430-create-customPostback.js +44 -44
- package/src/legacy/migrations/20210906144034-alter-api-body-migration.js +74 -72
- package/src/legacy/migrations/20210910081430-create-transhipInactivityTriggers.js +48 -48
- package/src/legacy/migrations/20210923131530-alter-attendances.js +14 -14
- package/src/legacy/migrations/20210923140130-create-function.js +85 -85
- package/src/legacy/migrations/20210927141630-alter-attendances.js +32 -32
- package/src/legacy/migrations/20211006150930-create-index.js +62 -62
- package/src/legacy/migrations/20211020130541-alter-table-session-hasTranship.js +14 -14
- package/src/legacy/migrations/20211022105430-alter-attendance-scale-off.js +27 -27
- package/src/legacy/migrations/20211025155825-create-stopwords.js +50 -50
- package/src/legacy/migrations/20211029134230-remove-constraints.js +187 -187
- package/src/legacy/migrations/20211119123119-CreateApiPreRequest.js +66 -66
- package/src/legacy/migrations/20211122115430-create-publish.js +40 -40
- package/src/legacy/migrations/20211213111830-alter-publications.js +13 -13
- package/src/legacy/migrations/20211220144430-alter-channels.js +13 -13
- package/src/legacy/migrations/20220105153930-alter-botIterables.js +13 -13
- package/src/legacy/migrations/20220118131507-alter-table-SystemUsers-isActive.js +20 -20
- package/src/legacy/migrations/20220121145703-alter-table-botiterable.js +28 -32
- package/src/legacy/migrations/20220126141248-alter-table-sessions-session-start.js +14 -14
- package/src/legacy/migrations/20220203094630-alter-SendHsmReturHsms.js +14 -14
- package/src/legacy/migrations/20220203181702-insert-teams-channel-configurations.js +21 -21
- package/src/legacy/migrations/20220204141205-create-whastapp-sessions.js +36 -36
- package/src/legacy/migrations/20220207124321-create-conversation-session.js +85 -85
- package/src/legacy/migrations/20220215123711-alter-table-conversation-sessions.js +15 -15
- package/src/legacy/migrations/20220221140530-alter-functions.js +161 -160
- package/src/legacy/migrations/20220224112430-create-index.js +13 -13
- package/src/legacy/migrations/20220301115430-create-sessionsPreReports.js +58 -58
- package/src/legacy/migrations/20220301115530-alter-sessions.js +14 -14
- package/src/legacy/migrations/20220303152530-create-dialogNodesPreReports.js +46 -46
- package/src/legacy/migrations/20220308145105-alter-table-transhipConversation-mimetype.js +16 -16
- package/src/legacy/migrations/20220309145730-create-function.js +116 -117
- package/src/legacy/migrations/20220310125603-alter-table-conversationSessions-SkillId.js +20 -20
- package/src/legacy/migrations/20220310143530-alter-functions.js +321 -319
- package/src/legacy/migrations/20220406125731-alter-table-entities-add-column-fuzzy.js +14 -14
- package/src/legacy/migrations/20220407191846-alter-table-dialog-nodes-type.js +34 -33
- package/src/legacy/migrations/20220408125630-create-index.js +19 -22
- package/src/legacy/migrations/20220413113609-alter-table-botiterable-action.js +24 -18
- package/src/legacy/migrations/20220503111730-create-index.js +25 -31
- package/src/legacy/migrations/20220503150629-create-table-blacklist-contacts.js +40 -40
- package/src/legacy/migrations/20220503150638-create-table-whitelist-contacts.js +40 -40
- package/src/legacy/migrations/20220524130822-alter-table-channel-title-icon-file.js +20 -20
- package/src/legacy/migrations/20220610103030-create-index.js +13 -13
- package/src/legacy/migrations/20220704143200-create-index.js +13 -16
- package/src/legacy/migrations/20220728094430-create-index.js +73 -94
- package/src/legacy/migrations/20220823112830-alter-skill.js +25 -24
- package/src/legacy/models/apiKeys.js +25 -24
- package/src/legacy/models/apiPreRequest.js +56 -55
- package/src/legacy/models/apiResourceBodies.js +44 -43
- package/src/legacy/models/apiResourceHeaders.js +30 -29
- package/src/legacy/models/apiResourcePathParams.js +29 -28
- package/src/legacy/models/apiResourceQueryStringParams.js +37 -36
- package/src/legacy/models/apiResources.js +78 -77
- package/src/legacy/models/apis.js +67 -64
- package/src/legacy/models/attendanceScale.js +40 -40
- package/src/legacy/models/attendanceScaleOff.js +56 -59
- package/src/legacy/models/attendances.js +93 -93
- package/src/legacy/models/blacklistContacts.js +24 -24
- package/src/legacy/models/botIterable.js +137 -143
- package/src/legacy/models/branches.js +35 -35
- package/src/legacy/models/channelConfigurations.js +41 -41
- package/src/legacy/models/channelTypes.js +68 -68
- package/src/legacy/models/channels.js +77 -77
- package/src/legacy/models/client.js +25 -25
- package/src/legacy/models/comments.js +27 -27
- package/src/legacy/models/contacts.js +41 -40
- package/src/legacy/models/conversationSessions.js +56 -56
- package/src/legacy/models/customPostbacks.js +29 -28
- package/src/legacy/models/departments.js +35 -35
- package/src/legacy/models/dialogNodes.js +162 -200
- package/src/legacy/models/dialogNodesPreReports.js +35 -34
- package/src/legacy/models/dialogNodes_MultipleResponses.js +40 -41
- package/src/legacy/models/dialogNodes_apiResources.js +51 -52
- package/src/legacy/models/endSessionTriggers.js +29 -32
- package/src/legacy/models/enterprises.js +29 -29
- package/src/legacy/models/entity.js +38 -38
- package/src/legacy/models/entityValues.js +63 -63
- package/src/legacy/models/faqQuestions.js +31 -31
- package/src/legacy/models/faqTriggers.js +51 -60
- package/src/legacy/models/fields.js +28 -27
- package/src/legacy/models/files.js +35 -35
- package/src/legacy/models/groups.js +45 -44
- package/src/legacy/models/groupsContracts.js +13 -12
- package/src/legacy/models/groupsSendHsms.js +13 -12
- package/src/legacy/models/ibmProvider.js +57 -57
- package/src/legacy/models/inactivityTriggers.js +37 -37
- package/src/legacy/models/intelligence.js +45 -45
- package/src/legacy/models/intention.js +36 -36
- package/src/legacy/models/intentionValue.js +31 -31
- package/src/legacy/models/itleanProvider.js +35 -34
- package/src/legacy/models/language.js +21 -20
- package/src/legacy/models/lineConfigurations.js +63 -62
- package/src/legacy/models/lines.js +49 -49
- package/src/legacy/models/messagesHsm.js +75 -75
- package/src/legacy/models/onlineEditions.js +27 -26
- package/src/legacy/models/openFaqs.js +33 -33
- package/src/legacy/models/permissions.js +28 -27
- package/src/legacy/models/postbackGupshup.js +27 -26
- package/src/legacy/models/profile.js +23 -23
- package/src/legacy/models/profiles_permission.js +25 -25
- package/src/legacy/models/publications.js +30 -29
- package/src/legacy/models/quickMessages.js +35 -34
- package/src/legacy/models/responseChannels.js +39 -38
- package/src/legacy/models/response_DialogNodes.js +37 -36
- package/src/legacy/models/responses.js +55 -54
- package/src/legacy/models/responsesBoxes.js +66 -64
- package/src/legacy/models/returnHsm.js +31 -30
- package/src/legacy/models/sendHsm.js +51 -50
- package/src/legacy/models/sendHsmReturnHsm.js +16 -15
- package/src/legacy/models/sessions.js +79 -79
- package/src/legacy/models/sessionsPreReports.js +43 -42
- package/src/legacy/models/skill.js +112 -112
- package/src/legacy/models/socketClients.js +56 -56
- package/src/legacy/models/stopwords.js +41 -39
- package/src/legacy/models/subDepartments.js +35 -35
- package/src/legacy/models/synonyms.js +67 -67
- package/src/legacy/models/systemUsers.js +64 -64
- package/src/legacy/models/systemUsers_Lines.js +25 -25
- package/src/legacy/models/systemUsers_profiles.js +25 -25
- package/src/legacy/models/templates.js +50 -49
- package/src/legacy/models/transhipConversations.js +50 -50
- package/src/legacy/models/transhipInactivityTriggers.js +31 -31
- package/src/legacy/models/transhipTriggers.js +103 -118
- package/src/legacy/models/whitelistContacts.js +24 -24
- package/src/legacy/seeders/20210414180447-change-ChannelTypes.js +47 -47
- package/src/legacy/seeders/20210505130137-insert-channel-types.js +65 -65
- package/src/legacy/seeders/20210505132612-insert-intelligence.js +27 -27
- package/src/legacy/seeders/20210505134121-insert-enterprise.js +15 -15
- package/src/legacy/seeders/20210505134345-insert-permissions.js +125 -125
- package/src/legacy/seeders/20210505134549-insert-profiles.js +39 -39
- package/src/legacy/seeders/20210505134700-insert-profiles-permissions.js +80 -82
- package/src/legacy/seeders/20210505135931-insert-system-users.js +52 -52
- package/src/legacy/seeders/20210505140025-insert-system-users-profiles.js +26 -26
- package/src/legacy/seeders/20210505140049-insert-language.js +21 -21
- package/src/legacy/seeders/20210505140259-insert-itlean-provider.js +34 -34
- package/src/legacy/seeders/20210505140343-insert-templates.js +228 -228
- package/src/legacy/seeders/20210505140658-insert-channel-configurations.js +146 -146
- package/src/legacy/seeders/20210618132740-add-new-channel-configutations.js +45 -45
- package/src/legacy/seeders/20210817081230-insert-profiles-permissions.js +105 -105
- package/src/legacy/seeders/20210830131930-insert-profiles-permissions.js +71 -71
- package/src/legacy/seeders/20210902160430-insert-apiKey.js +30 -30
- package/src/legacy/seeders/20210914165047-update-channel-types.js +15 -15
- package/src/legacy/seeders/20211005135921-edit-gupshup-reponseTypes.js +47 -47
- package/src/legacy/seeders/20220203123900-insert-teams-channel-type.js +30 -32
- package/src/legacy/seeders/20220203181702-insert-teams-channel-configurations.js +67 -71
- package/src/legacy/seeders/20220221142239-add-permissions-to-adm.js +98 -111
- package/src/legacy/seeders/20220317172100-insert-facebook-messenger-channel-type.js +44 -46
- package/src/legacy/seeders/20220317172234-insert-facebook-messenger-channel-configuration.js +62 -66
- package/src/legacy/seeders/test/20200924195050-create-ibmprovider.js +38 -38
- package/src/legacy/seeders/test/20200924195050-create-itlean-provider.js +40 -40
- package/src/legacy/seeders/test/20200924195050-seed-enterprises.js +24 -24
- package/src/legacy/seeders/test/20200925184253-seed-skils-itlean-provider.js +37 -37
- package/src/legacy/seeders/test/20200925184253-seed-skils.js +41 -41
- package/src/legacy/seeders/test/20200925184254-seed-Intention.js +39 -39
- package/src/legacy/seeders/test/20200925184258-seed-Intention-values.js +41 -41
- package/src/legacy/seeders/test/20200925191642-seed-entity-skill-itlean.js +23 -23
- package/src/legacy/seeders/test/20200925191642-seed-entity.js +23 -23
- package/src/legacy/seeders/test/20200925191643-seed-entity-values-skill-itlean.js +32 -32
- package/src/legacy/seeders/test/20200925191643-seed-entity-values.js +33 -33
- package/src/legacy/seeders/test/20200929132705-seed-dialog-node.js +128 -128
- package/src/legacy/seeders/test/20201016200600-seed-responses.js +563 -563
- package/src/legacy/seeders/test/20201104183653-seed-create-ype-skill.js +42 -42
- package/src/legacy/seeders/test/20201104183700-seed-create-ype-intention.js +26 -26
- package/src/legacy/seeders/test/20201104183706-seed-create-ype-intention-values.js +70 -70
- package/src/legacy/seeders/test/20201104183714-seed-create-ype-entity.js +38 -38
- package/src/legacy/seeders/test/20201104183723-seed-create-ype-entity-values.js +243 -243
- package/src/legacy/seeders/test/20201104183727-seed-create-ype-synonyms.js +253 -253
- package/src/legacy/seeders/test/20201104202534-seed-create-ype-node-saudacao.js +124 -124
- package/src/legacy/seeders/test/20210224163857-create-ibmprovider-framework.js +37 -36
- package/src/legacy/seeders/test/20210224165819-create-skill-framework.js +41 -41
- package/src/legacy/seeders/test/20210224165821-seed-channel-framework.js +62 -62
- package/src/legacy/seeders/test/20210224171409-create-apiResource-framework.js +107 -107
- package/src/legacy/seeders/test/20210224171409-create-apiResource.js +114 -114
- package/src/legacy/seeders/test/20210226115055-create-entity-framework.js +21 -21
- package/src/legacy/seeders/test/20210226115540-create-entity-value-framework.js +21 -21
- package/src/legacy/seeders/test/20210226115720-create-intention-framework.js +22 -22
- package/src/legacy/seeders/test/20210226115935-create-intention-values-framework.js +21 -21
- package/src/legacy/seeders/test/20210226121222-create-synonyms-framework.js +24 -24
- package/src/legacy/seeders/test/20210301174809-create-dialog-node-framework.js +43 -43
- package/src/legacy/seeders/test/20210422144458-seed-context-test.js +175 -175
- package/src/legacy/seeders/test/20210422181114-seed-jump-node.js +123 -123
- package/src/legacy/seeders/test/20210422182413-seed-jump-skill.js +123 -123
- package/src/legacy/seeders/test/20210426100156-seed-api-test.js +138 -138
- package/src/legacy/seeders/test/20210426103704-seed-multiple-response-test.js +275 -275
- package/src/legacy/seeders/test/20210426190844-seed-entity-search-test.js +160 -160
- package/src/legacy/seeders/test/20210427172150-seed-test-with-input-test-fisrt.js +160 -160
- package/src/legacy/seeders/test/20210428105402-seed-test-condition-1.js +190 -190
- package/src/legacy/seeders/test/20210430181906-seed-test-input-text-zero.js +120 -120
- package/src/legacy/seeders/test/20210430183204-seed-ype-test-condition.js +557 -557
- package/src/legacy/seeders/test/20210503172321-seed-invalid-condition.js +119 -119
- package/src/legacy/seeders/test/20210505140225-insert-skills.js +41 -41
- package/src/legacy/seeders/test/20210505183810-seed-chain-with-context.js +147 -147
- package/src/legacy/seeders/test/20210506125701-seed-with-intention-and-entity-same-name.js +188 -188
- package/src/legacy/seeders/test/20210507204437-seed-condition-igual-true.js +119 -119
- package/src/legacy/seeders/test/20210511181006-seed-using-internal-functions.js +274 -274
- package/src/legacy/seeders/test/20210512140152-seed-ype-real-bot.js +2578 -2578
- package/src/legacy/seeders/test/20210519162746-seed-response-with-context.js +186 -186
- package/src/legacy/seeders/test/20210524141819-seed-dialog-node-faq.js +244 -244
- package/src/legacy/seeders/test/20210525180523-seed-regex.js +173 -173
- package/src/legacy/seeders/test/20210602111930-insert-dialogNodes.js +200 -200
- package/src/legacy/seeders/test/20210607124530-create-tranship-framework.js +428 -428
- package/src/legacy/seeders/test/20210608103730-create-transhipConversation-framework.js +368 -366
- package/src/legacy/seeders/test/20210608140230-test-transfer-framework.js +415 -415
- package/src/legacy/seeders/test/20210610152534-seed-test-internal-function-in-context.js +216 -216
- package/src/legacy/seeders/test/20210610181308-seed-test-find-in-array-internal-function.js +147 -147
- package/src/legacy/seeders/test/20210611101042-bot-example-internal-functions.js +985 -985
- package/src/legacy/seeders/test/20210613111900-bot-example-api.js +420 -420
- package/src/legacy/seeders/test/20210614113654-miltiple-response-with-research.js +387 -387
- package/src/legacy/seeders/test/20210616212102-api-authentication-and-list.js +422 -422
- package/src/legacy/seeders/test/20210624172310-seed-api-duble-request.js +424 -424
- package/src/legacy/seeders/test/20210628135630-test-branches.js +224 -224
- package/src/legacy/seeders/test/20210629141030-test-departments.js +225 -225
- package/src/legacy/seeders/test/20210630105430-test-subDepartments.js +223 -223
- package/src/legacy/seeders/test/20210630114011-test-contact.js +178 -178
- package/src/legacy/seeders/test/20210701130630-test-channels.js +381 -381
- package/src/legacy/seeders/test/20210702191230-seed-test-counter-in-context.js +122 -122
- package/src/legacy/seeders/test/20210705061313-test-fields.js +152 -152
- package/src/legacy/seeders/test/20210705080813-test-groups.js +122 -122
- package/src/legacy/seeders/test/20210705105918-seed-test-function-slice.js +161 -161
- package/src/legacy/seeders/test/20210706105508-seed-node-without-condition.js +254 -254
- package/src/legacy/seeders/test/20210706112906-seed-1.0-on-response.js +172 -172
- package/src/legacy/seeders/test/20210706145547-seed-clean-context.js +132 -132
- package/src/legacy/seeders/test/20210707151538-seed-test-response-break-line.js +161 -161
- package/src/legacy/seeders/test/20210713155530-seed-test-itl0079-875.js +129 -129
- package/src/legacy/seeders/test/20210715125619-seed-multiple-response-with-several-jumps.js +789 -789
- package/src/legacy/seeders/test/20210715163606-seed-test-multiple-response-with-jump.js +250 -250
- package/src/legacy/seeders/test/20210719154025-seed-2-contexts-together.js +133 -133
- package/src/legacy/seeders/test/20210802144227-seed-end-session-trigger.js +163 -163
- package/src/legacy/seeders/test/20210803103030-tests-dialogNodes.js +406 -406
- package/src/legacy/seeders/test/20210804094630-tests-lines.js +487 -487
- package/src/legacy/seeders/test/20210805104130-tests-lineConfigurations.js +106 -106
- package/src/legacy/seeders/test/20210805133330-tests-systemUsers.js +507 -507
- package/src/legacy/seeders/test/20210813124630-tests-getMessagesBySession.js +333 -333
- package/src/legacy/seeders/test/20210813143730-tests-botIterables-framework.js +400 -400
- package/src/legacy/seeders/test/20210816151830-testes-inactivityTriggers.js +196 -196
- package/src/legacy/seeders/test/20210830134230-tests-sessionReports.js +254 -254
- package/src/legacy/seeders/test/20210830165830-tests-attendancesHistory.js +181 -181
- package/src/legacy/seeders/test/20210927115821-skill-test-open-faq.js +37 -37
- package/src/legacy/seeders/test/20211004131813-true-and-context-with-parent.js +190 -190
- package/src/legacy/seeders/test/20211006210203-context-concat-with-text.js +193 -193
- package/src/legacy/seeders/test/20211122141406-api-pre-request.js +201 -201
- package/src/migrations/20220509095001-create-extension-uuid-ossp.js +27 -27
- package/src/migrations/20220509095002-create-enterprises.js +64 -64
- package/src/migrations/20220509095003-create-systemUsers.js +97 -97
- package/src/migrations/20220509095004-create-permissions.js +45 -45
- package/src/migrations/20220509095005-create-profiles.js +38 -38
- package/src/migrations/20220509095006-create-profiles-permissions.js +45 -51
- package/src/migrations/20220509095007-create-systemUsers-profiles.js +45 -51
- package/src/migrations/20220509095008-create-branches.js +61 -61
- package/src/migrations/20220509095009-create-departments.js +61 -61
- package/src/migrations/20220509095010-create-subDepartments.js +61 -70
- package/src/migrations/20220509095011-create-lines.js +47 -47
- package/src/migrations/20220509095012-create-systemUsers-lines.js +45 -51
- package/src/migrations/20220509095013-create-apiKeys.js +40 -40
- package/src/migrations/20220509095014-create-customPostbacks.js +44 -47
- package/src/migrations/20220509095015-create-lineConfigurations.js +85 -91
- package/src/migrations/20220509095016-create-attendanceScales.js +48 -51
- package/src/migrations/20220509095017-create-attendanceScaleOffs.js +58 -61
- package/src/migrations/20220509095018-create-quickMessages.js +54 -57
- package/src/migrations/20220509095019-create-transhipInactivityTriggers.js +52 -55
- package/src/migrations/20220509095020-create-contacts.js +54 -54
- package/src/migrations/20220509095021-create-groups.js +52 -52
- package/src/migrations/20220509095022-create-groupsContacts.js +45 -51
- package/src/migrations/20220509095023-create-fields.js +39 -39
- package/src/migrations/20220509095024-create-channelTypes.js +62 -62
- package/src/migrations/20220509095025-create-channelConfigurations.js +56 -59
- package/src/migrations/20220509095026-create-templates.js +59 -59
- package/src/migrations/20220509095027-create-intelligences.js +50 -53
- package/src/migrations/20220509095028-create-itleanProviders.js +44 -47
- package/src/migrations/20220509095029-create-ibmProviders.js +63 -63
- package/src/migrations/20220509095030-create-skills.js +124 -126
- package/src/migrations/20220509095031-create-files.js +49 -49
- package/src/migrations/20220509095032-create-channels.js +88 -92
- package/src/migrations/20220509095033-create-messagesHsms.js +70 -70
- package/src/migrations/20220509095034-create-messagesHsms_channels.js +46 -52
- package/src/migrations/20220509095035-create-sendHsms.js +68 -68
- package/src/migrations/20220509095036-create-groupsSendHsms.js +46 -52
- package/src/migrations/20220509095037-create-intentions.js +57 -57
- package/src/migrations/20220509095038-create-intentionValues.js +53 -59
- package/src/migrations/20220509095039-create-entities.js +61 -61
- package/src/migrations/20220509095040-create-entityValues.js +72 -70
- package/src/migrations/20220509095041-create-synonyms.js +67 -67
- package/src/migrations/20220509095042-create-responses.js +63 -63
- package/src/migrations/20220509095043-create-responsesBoxes.js +68 -75
- package/src/migrations/20220509095044-create-openFaqs.js +60 -60
- package/src/migrations/20220509095045-create-faqQuestions.js +53 -53
- package/src/migrations/20220509095046-create-apis.js +63 -61
- package/src/migrations/20220509095047-create-apiResourcesBodies.js +49 -50
- package/src/migrations/20220509095048-create-apiResources.js +72 -72
- package/src/migrations/20220509095049-create-apiPreRequests.js +76 -88
- package/src/migrations/20220509095050-create-apiResourcesHeaders.js +61 -70
- package/src/migrations/20220509095051-create-apiResourcesPathParams.js +60 -69
- package/src/migrations/20220509095052-create-apiResourcesQueryStringParams.js +71 -83
- package/src/migrations/20220509095053-create-clients.js +47 -47
- package/src/migrations/20220509095054-create-onlineEditions.js +52 -55
- package/src/migrations/20220509095055-create-postbackGupshups.js +66 -75
- package/src/migrations/20220509095056-create-publications.js +54 -54
- package/src/migrations/20220509095057-create-returnHsms.js +62 -62
- package/src/migrations/20220509095058-create-sendHsmReturnHsms.js +56 -65
- package/src/migrations/20220509095059-create-sessions.js +85 -85
- package/src/migrations/20220509095060-create-sessionsPreReports.js +74 -80
- package/src/migrations/20220509095061-create-socketClients.js +80 -101
- package/src/migrations/20220509095062-create-stopwords.js +44 -44
- package/src/migrations/20220509095063-create-conversationSessions.js +69 -78
- package/src/migrations/20220509095064-create-dialogNodes.js +92 -96
- package/src/migrations/20220509095065-create-dialogNodesPreReports.js +62 -68
- package/src/migrations/20220509095066-create-dialogNodes_ApiResources.js +65 -74
- package/src/migrations/20220509095067-create-dialogNodes_MultipleResponses.js +46 -52
- package/src/migrations/20220509095068-create-response_DialogNodes.js +57 -66
- package/src/migrations/20220509095069-create-transhipTriggers.js +84 -87
- package/src/migrations/20220509095070-create-attendances.js +112 -119
- package/src/migrations/20220509095071-create-comments.js +46 -46
- package/src/migrations/20220509095072-create-transhipConversations.js +75 -81
- package/src/migrations/20220509095073-create-endSessionTriggers.js +45 -51
- package/src/migrations/20220509095074-create-faqTriggers.js +47 -47
- package/src/migrations/20220509095075-create-inactivityTriggers.js +58 -64
- package/src/migrations/20220509095076-create-botIterables.js +148 -161
- package/src/migrations/20220509095077-create-blacklistContacts.js +44 -47
- package/src/migrations/20220509095078-create-whitelistContacts.js +44 -47
- package/src/migrations/20220509095079-create-function-getInactiveSessions.js +93 -91
- package/src/migrations/20220509095080-create-function-getInactiveAttendances.js +94 -92
- package/src/migrations/20221004113728-add-indexes.js +14 -14
- package/src/migrations/20221205131730-add-indexes.js +40 -45
- package/src/migrations/20221205131730-alter-function.js +175 -173
- package/src/migrations/20221205131731-alter-function.js +176 -174
- package/src/migrations/20221205131732-add-indexes.js +27 -28
- package/src/migrations/20221215115730-alter-contacts.js +14 -14
- package/src/migrations/20250715190352-create-transcriptions-table.js +41 -41
- package/src/migrations/20250820141518-update-view-channel_message_type_daily.js +61 -0
- package/src/models/Transcription.js +34 -34
- package/src/models/apiKeys.js +22 -22
- package/src/models/apiPreRequest.js +59 -58
- package/src/models/apiResourceBodies.js +53 -52
- package/src/models/apiResourceHeaders.js +37 -36
- package/src/models/apiResourcePathParams.js +36 -35
- package/src/models/apiResourceQueryStringParams.js +44 -43
- package/src/models/apiResources.js +83 -82
- package/src/models/apis.js +66 -63
- package/src/models/attendanceScale.js +38 -38
- package/src/models/attendanceScaleOff.js +54 -57
- package/src/models/attendances.js +110 -110
- package/src/models/blacklistContacts.js +31 -31
- package/src/models/botIterable.js +139 -145
- package/src/models/branches.js +33 -33
- package/src/models/channelConfigurations.js +39 -39
- package/src/models/channelMessageTypeDaily.js +20 -0
- package/src/models/channelTypes.js +69 -69
- package/src/models/channels.js +85 -85
- package/src/models/client.js +31 -31
- package/src/models/comments.js +33 -33
- package/src/models/contacts.js +44 -43
- package/src/models/conversationSessions.js +59 -59
- package/src/models/customPostbacks.js +27 -26
- package/src/models/departments.js +33 -33
- package/src/models/dialogNodes.js +167 -201
- package/src/models/dialogNodesPreReports.js +54 -53
- package/src/models/dialogNodes_MultipleResponses.js +35 -34
- package/src/models/dialogNodes_apiResources.js +47 -46
- package/src/models/endSessionTriggers.js +25 -28
- package/src/models/enterprises.js +80 -80
- package/src/models/entity.js +43 -43
- package/src/models/entityValues.js +63 -62
- package/src/models/faqQuestions.js +34 -34
- package/src/models/faqTriggers.js +43 -52
- package/src/models/fields.js +26 -25
- package/src/models/files.js +33 -33
- package/src/models/groups.js +43 -42
- package/src/models/groupsContracts.js +13 -12
- package/src/models/groupsSendHsms.js +13 -12
- package/src/models/ibmProvider.js +56 -55
- package/src/models/inactivityTriggers.js +42 -42
- package/src/models/intelligence.js +45 -45
- package/src/models/intention.js +39 -39
- package/src/models/intentionValue.js +33 -33
- package/src/models/itleanProvider.js +32 -31
- package/src/models/lineConfigurations.js +70 -69
- package/src/models/lines.js +54 -54
- package/src/models/messagesHsm.js +71 -71
- package/src/models/messagesHsms_Channels.js +22 -21
- package/src/models/onlineEditions.js +40 -39
- package/src/models/openFaqs.js +43 -43
- package/src/models/permissions.js +27 -26
- package/src/models/postbackGupshup.js +27 -26
- package/src/models/profile.js +22 -22
- package/src/models/profiles_permission.js +21 -21
- package/src/models/publications.js +40 -39
- package/src/models/quickMessages.js +42 -41
- package/src/models/response_DialogNodes.js +33 -32
- package/src/models/responses.js +60 -59
- package/src/models/responsesBoxes.js +66 -64
- package/src/models/returnHsm.js +31 -30
- package/src/models/sendHsm.js +54 -53
- package/src/models/sendHsmReturnHsm.js +26 -25
- package/src/models/sessions.js +85 -85
- package/src/models/sessionsPreReports.js +62 -61
- package/src/models/skill.js +135 -135
- package/src/models/socketClients.js +61 -61
- package/src/models/stopwords.js +37 -35
- package/src/models/subDepartments.js +33 -33
- package/src/models/synonyms.js +60 -60
- package/src/models/systemUsers.js +68 -68
- package/src/models/systemUsers_Lines.js +27 -27
- package/src/models/systemUsers_profiles.js +21 -21
- package/src/models/templates.js +40 -39
- package/src/models/transhipConversations.js +57 -57
- package/src/models/transhipInactivityTriggers.js +45 -45
- package/src/models/transhipTriggers.js +91 -106
- package/src/models/whitelistContacts.js +31 -31
- package/src/presenters/database/migrationHelpers.js +62 -62
- package/src/presenters/encryptation.js +14 -14
- package/src/scripts/migrateBotIterables.js +205 -203
- package/src/scripts/migrateClients.js +151 -149
- package/src/scripts/migrateConversationSessions.js +160 -158
- package/src/scripts/migrateDialogNodes.js +181 -179
- package/src/scripts/migrateDialogNodesPreReports.js +160 -158
- package/src/scripts/migrateDialogNodes_MultipleResponses.js +148 -146
- package/src/scripts/migrateEntities.js +157 -155
- package/src/scripts/migrateEntityValues.js +157 -155
- package/src/scripts/migrateIntentionValues.js +151 -149
- package/src/scripts/migrateIntentions.js +154 -152
- package/src/scripts/migratePostbackGupshups.js +125 -124
- package/src/scripts/migrateResponse_DialogNodes.js +151 -149
- package/src/scripts/migrateResponses.js +154 -152
- package/src/scripts/migrateResponsesBoxes.js +157 -155
- package/src/scripts/migrateSessions.js +175 -173
- package/src/scripts/migrateSynonyms.js +157 -155
- package/src/scripts/migrateTranshipConversations.js +166 -164
- package/src/scripts/unification.js +1434 -1941
- package/src/seeders/20220509095001-insert-permissions.js +166 -163
- package/src/seeders/20220509095002-insert-profiles.js +40 -39
- package/src/seeders/20220509095003-insert-profiles-permissions.js +99 -101
- package/src/seeders/20220509095004-insert-channelTypes.js +110 -110
- package/src/seeders/20220509095005-insert-channelConfigurations.js +173 -173
- package/src/seeders/20220509095006-insert-templates.js +207 -206
- package/src/seeders/20220509095007-insert-intelligence.js +27 -27
- package/src/seeders/test/20200924195049-create-enterprise.js +66 -64
- package/src/seeders/test/20200924195050-create-ibmprovider.js +39 -39
- package/src/seeders/test/20200924195050-create-itlean-provider.js +35 -35
- package/src/seeders/test/20200924195050-seed-enterprises.js +25 -25
- package/src/seeders/test/20200925184253-seed-skils-itlean-provider.js +38 -38
- package/src/seeders/test/20200925184253-seed-skils.js +43 -43
- package/src/seeders/test/20200925184254-seed-Intention.js +43 -43
- package/src/seeders/test/20200925184258-seed-Intention-values.js +44 -44
- package/src/seeders/test/20200925191642-seed-entity-skill-itlean.js +25 -25
- package/src/seeders/test/20200925191642-seed-entity.js +25 -25
- package/src/seeders/test/20200925191643-seed-entity-values-skill-itlean.js +35 -35
- package/src/seeders/test/20200925191643-seed-entity-values.js +35 -35
- package/src/seeders/test/20200929132705-seed-dialog-node.js +136 -136
- package/src/seeders/test/20201016200600-seed-responses.js +594 -594
- package/src/seeders/test/20201104183653-seed-create-ype-skill.js +44 -44
- package/src/seeders/test/20201104183700-seed-create-ype-intention.js +28 -28
- package/src/seeders/test/20201104183706-seed-create-ype-intention-values.js +73 -73
- package/src/seeders/test/20201104183714-seed-create-ype-entity.js +40 -40
- package/src/seeders/test/20201104183723-seed-create-ype-entity-values.js +246 -246
- package/src/seeders/test/20201104183727-seed-create-ype-synonyms.js +256 -256
- package/src/seeders/test/20201104202534-seed-create-ype-node-saudacao.js +136 -136
- package/src/seeders/test/20210224163857-create-ibmprovider-framework.js +39 -38
- package/src/seeders/test/20210224165819-create-skill-framework.js +43 -43
- package/src/seeders/test/20210224165821-seed-channel-framework.js +66 -66
- package/src/seeders/test/20210224171409-create-apiResource-framework.js +114 -114
- package/src/seeders/test/20210224171409-create-apiResource.js +121 -121
- package/src/seeders/test/20210226115055-create-entity-framework.js +24 -24
- package/src/seeders/test/20210226115540-create-entity-value-framework.js +24 -24
- package/src/seeders/test/20210226115720-create-intention-framework.js +25 -25
- package/src/seeders/test/20210226115935-create-intention-values-framework.js +24 -24
- package/src/seeders/test/20210226121222-create-synonyms-framework.js +27 -27
- package/src/seeders/test/20210301174809-create-dialog-node-framework.js +46 -46
- package/src/seeders/test/20210422144458-seed-context-test.js +189 -189
- package/src/seeders/test/20210422181114-seed-jump-node.js +134 -134
- package/src/seeders/test/20210422182413-seed-jump-skill.js +134 -134
- package/src/seeders/test/20210426100156-seed-api-test.js +149 -149
- package/src/seeders/test/20210426103704-seed-multiple-response-test.js +292 -292
- package/src/seeders/test/20210426190844-seed-entity-search-test.js +175 -175
- package/src/seeders/test/20210427172150-seed-test-with-input-test-fisrt.js +175 -175
- package/src/seeders/test/20210428105402-seed-test-condition-1.js +209 -209
- package/src/seeders/test/20210430181906-seed-test-input-text-zero.js +132 -132
- package/src/seeders/test/20210430183204-seed-ype-test-condition.js +603 -603
- package/src/seeders/test/20210503172321-seed-invalid-condition.js +131 -131
- package/src/seeders/test/20210505140225-insert-skills.js +45 -45
- package/src/seeders/test/20210505183810-seed-chain-with-context.js +160 -160
- package/src/seeders/test/20210506125701-seed-with-intention-and-entity-same-name.js +204 -204
- package/src/seeders/test/20210507204437-seed-condition-igual-true.js +131 -131
- package/src/seeders/test/20210511181006-seed-using-internal-functions.js +292 -292
- package/src/seeders/test/20210512140152-seed-ype-real-bot.js +2706 -2706
- package/src/seeders/test/20210519162746-seed-response-with-context.js +194 -194
- package/src/seeders/test/20210524141819-seed-dialog-node-faq.js +257 -257
- package/src/seeders/test/20210525180523-seed-regex.js +182 -182
- package/src/seeders/test/20210602111930-insert-dialogNodes.js +202 -201
- package/src/seeders/test/20210607124530-create-tranship-framework.js +434 -433
- package/src/seeders/test/20210608103730-create-transhipConversation-framework.js +380 -378
- package/src/seeders/test/20210608140230-test-transfer-framework.js +425 -425
- package/src/seeders/test/20210610152534-seed-test-internal-function-in-context.js +226 -226
- package/src/seeders/test/20210610181308-seed-test-find-in-array-internal-function.js +154 -154
- package/src/seeders/test/20210611101042-bot-example-internal-functions.js +1029 -1029
- package/src/seeders/test/20210613111900-bot-example-api.js +432 -432
- package/src/seeders/test/20210614113654-miltiple-response-with-research.js +400 -400
- package/src/seeders/test/20210616212102-api-authentication-and-list.js +432 -432
- package/src/seeders/test/20210624172310-seed-api-duble-request.js +434 -434
- package/src/seeders/test/20210628135630-test-branches.js +221 -221
- package/src/seeders/test/20210629141030-test-departments.js +222 -222
- package/src/seeders/test/20210630105430-test-subDepartments.js +220 -220
- package/src/seeders/test/20210630114011-test-contact.js +174 -174
- package/src/seeders/test/20210701130630-test-channels.js +393 -393
- package/src/seeders/test/20210702191230-seed-test-counter-in-context.js +128 -128
- package/src/seeders/test/20210705061313-test-fields.js +148 -148
- package/src/seeders/test/20210705080813-test-groups.js +118 -118
- package/src/seeders/test/20210705105918-seed-test-function-slice.js +167 -167
- package/src/seeders/test/20210706105508-seed-node-without-condition.js +266 -266
- package/src/seeders/test/20210706112906-seed-1.0-on-response.js +181 -181
- package/src/seeders/test/20210706145547-seed-clean-context.js +138 -138
- package/src/seeders/test/20210707151538-seed-test-response-break-line.js +167 -167
- package/src/seeders/test/20210713155530-seed-test-itl0079-875.js +134 -134
- package/src/seeders/test/20210715125619-seed-multiple-response-with-several-jumps.js +820 -820
- package/src/seeders/test/20210715163606-seed-test-multiple-response-with-jump.js +260 -260
- package/src/seeders/test/20210719154025-seed-2-contexts-together.js +139 -139
- package/src/seeders/test/20210802144227-seed-end-session-trigger.js +170 -170
- package/src/seeders/test/20210803103030-tests-dialogNodes.js +422 -422
- package/src/seeders/test/20210804094630-tests-lines.js +500 -500
- package/src/seeders/test/20210805104130-tests-lineConfigurations.js +104 -104
- package/src/seeders/test/20210805133330-tests-systemUsers.js +506 -506
- package/src/seeders/test/20210813124630-tests-getMessagesBySession.js +352 -352
- package/src/seeders/test/20210813143730-tests-botIterables-framework.js +422 -422
- package/src/seeders/test/20210816151830-testes-inactivityTriggers.js +207 -207
- package/src/seeders/test/20210830134230-tests-sessionReports.js +272 -272
- package/src/seeders/test/20210830165830-tests-attendancesHistory.js +177 -177
- package/src/seeders/test/20210927115821-skill-test-open-faq.js +39 -39
- package/src/seeders/test/20211004131813-true-and-context-with-parent.js +199 -199
- package/src/seeders/test/20211006210203-context-concat-with-text.js +202 -202
- package/src/seeders/test/20211122141406-api-pre-request.js +210 -210
|
@@ -1,2578 +1,2578 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const SkillId = 'fdb00709-411d-4fee-9429-83fc859f57fb'
|
|
4
|
-
|
|
5
|
-
// Welcome Intention stack
|
|
6
|
-
const welcomeIntention = {
|
|
7
|
-
id: '28ee1203-3390-4926-bfd8-f30695eef4fa',
|
|
8
|
-
name: 'saudacao',
|
|
9
|
-
description: '',
|
|
10
|
-
SkillId,
|
|
11
|
-
createdAt: new Date(),
|
|
12
|
-
updatedAt: new Date(),
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const welcomeIntentionIntentionValues = [
|
|
16
|
-
{
|
|
17
|
-
name: 'saudacao',
|
|
18
|
-
IntentionId: welcomeIntention.id,
|
|
19
|
-
createdAt: new Date(),
|
|
20
|
-
updatedAt: new Date(),
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'oi',
|
|
24
|
-
IntentionId: welcomeIntention.id,
|
|
25
|
-
createdAt: new Date(),
|
|
26
|
-
updatedAt: new Date(),
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: 'ola',
|
|
30
|
-
IntentionId: welcomeIntention.id,
|
|
31
|
-
createdAt: new Date(),
|
|
32
|
-
updatedAt: new Date(),
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'ooi',
|
|
36
|
-
IntentionId: welcomeIntention.id,
|
|
37
|
-
createdAt: new Date(),
|
|
38
|
-
updatedAt: new Date(),
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'eai',
|
|
42
|
-
IntentionId: welcomeIntention.id,
|
|
43
|
-
createdAt: new Date(),
|
|
44
|
-
updatedAt: new Date(),
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'hola',
|
|
48
|
-
IntentionId: welcomeIntention.id,
|
|
49
|
-
createdAt: new Date(),
|
|
50
|
-
updatedAt: new Date(),
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'salve',
|
|
54
|
-
IntentionId: welcomeIntention.id,
|
|
55
|
-
createdAt: new Date(),
|
|
56
|
-
updatedAt: new Date(),
|
|
57
|
-
},
|
|
58
|
-
]
|
|
59
|
-
|
|
60
|
-
// Benefits product stack
|
|
61
|
-
|
|
62
|
-
const benefitsProductIntention = {
|
|
63
|
-
id: 'af1327d2-7869-45f3-a7d8-a099afbb4292',
|
|
64
|
-
name: 'beneficios_produtos',
|
|
65
|
-
description: '',
|
|
66
|
-
SkillId,
|
|
67
|
-
createdAt: new Date(),
|
|
68
|
-
updatedAt: new Date(),
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const benefitsProductIntentionValues = [
|
|
72
|
-
{
|
|
73
|
-
name: 'beneficios',
|
|
74
|
-
IntentionId: benefitsProductIntention.id,
|
|
75
|
-
createdAt: new Date(),
|
|
76
|
-
updatedAt: new Date(),
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'Vantagem de usar',
|
|
80
|
-
IntentionId: benefitsProductIntention.id,
|
|
81
|
-
createdAt: new Date(),
|
|
82
|
-
updatedAt: new Date(),
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'Utilidade para que',
|
|
86
|
-
IntentionId: benefitsProductIntention.id,
|
|
87
|
-
createdAt: new Date(),
|
|
88
|
-
updatedAt: new Date(),
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'Qual o benefício',
|
|
92
|
-
IntentionId: benefitsProductIntention.id,
|
|
93
|
-
createdAt: new Date(),
|
|
94
|
-
updatedAt: new Date(),
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'Qual a utilidade do',
|
|
98
|
-
IntentionId: benefitsProductIntention.id,
|
|
99
|
-
createdAt: new Date(),
|
|
100
|
-
updatedAt: new Date(),
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'Quais são os beneficíos',
|
|
104
|
-
IntentionId: benefitsProductIntention.id,
|
|
105
|
-
createdAt: new Date(),
|
|
106
|
-
updatedAt: new Date(),
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: 'colocar direto na máquina',
|
|
110
|
-
IntentionId: benefitsProductIntention.id,
|
|
111
|
-
createdAt: new Date(),
|
|
112
|
-
updatedAt: new Date(),
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'Posso colocar direto',
|
|
116
|
-
IntentionId: benefitsProductIntention.id,
|
|
117
|
-
createdAt: new Date(),
|
|
118
|
-
updatedAt: new Date(),
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: 'Posso colocar o',
|
|
122
|
-
IntentionId: benefitsProductIntention.id,
|
|
123
|
-
createdAt: new Date(),
|
|
124
|
-
updatedAt: new Date(),
|
|
125
|
-
},
|
|
126
|
-
]
|
|
127
|
-
|
|
128
|
-
// Products Intention Stack
|
|
129
|
-
|
|
130
|
-
const productsIntention = {
|
|
131
|
-
id: 'a002ff49-911e-46f5-a965-b059126f8f46',
|
|
132
|
-
name: 'produtos',
|
|
133
|
-
description: '',
|
|
134
|
-
SkillId,
|
|
135
|
-
createdAt: new Date(),
|
|
136
|
-
updatedAt: new Date(),
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const productsIntentionValues = [
|
|
140
|
-
{
|
|
141
|
-
name: 'produtos',
|
|
142
|
-
IntentionId: productsIntention.id,
|
|
143
|
-
createdAt: new Date(),
|
|
144
|
-
updatedAt: new Date(),
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: 'produto',
|
|
148
|
-
IntentionId: productsIntention.id,
|
|
149
|
-
createdAt: new Date(),
|
|
150
|
-
updatedAt: new Date(),
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: 'Gostaria de saber de produtos',
|
|
154
|
-
IntentionId: productsIntention.id,
|
|
155
|
-
createdAt: new Date(),
|
|
156
|
-
updatedAt: new Date(),
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
name: 'Sobre produto',
|
|
160
|
-
IntentionId: productsIntention.id,
|
|
161
|
-
createdAt: new Date(),
|
|
162
|
-
updatedAt: new Date(),
|
|
163
|
-
},
|
|
164
|
-
]
|
|
165
|
-
|
|
166
|
-
// How to use Intention stack
|
|
167
|
-
|
|
168
|
-
const howToUseProductsIntention = {
|
|
169
|
-
id: 'a585eefb-d4c1-4233-bdcb-8482d6935d4e',
|
|
170
|
-
name: 'modo_de_usar_produtos',
|
|
171
|
-
description: '',
|
|
172
|
-
SkillId,
|
|
173
|
-
createdAt: new Date(),
|
|
174
|
-
updatedAt: new Date(),
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
const howToUseProductsIntentionValues = [
|
|
178
|
-
{
|
|
179
|
-
name: 'modo de uso',
|
|
180
|
-
IntentionId: howToUseProductsIntention.id,
|
|
181
|
-
createdAt: new Date(),
|
|
182
|
-
updatedAt: new Date(),
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
name: 'modo de usar',
|
|
186
|
-
IntentionId: howToUseProductsIntention.id,
|
|
187
|
-
createdAt: new Date(),
|
|
188
|
-
updatedAt: new Date(),
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
name: 'Com o que devo usar',
|
|
192
|
-
IntentionId: howToUseProductsIntention.id,
|
|
193
|
-
createdAt: new Date(),
|
|
194
|
-
updatedAt: new Date(),
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
name: 'Como devo utilizar',
|
|
198
|
-
IntentionId: howToUseProductsIntention.id,
|
|
199
|
-
createdAt: new Date(),
|
|
200
|
-
updatedAt: new Date(),
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
name: 'Como faço para utilizar',
|
|
204
|
-
IntentionId: howToUseProductsIntention.id,
|
|
205
|
-
createdAt: new Date(),
|
|
206
|
-
updatedAt: new Date(),
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
name: 'como utilizar',
|
|
210
|
-
IntentionId: howToUseProductsIntention.id,
|
|
211
|
-
createdAt: new Date(),
|
|
212
|
-
updatedAt: new Date(),
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
name: 'Como usar',
|
|
216
|
-
IntentionId: howToUseProductsIntention.id,
|
|
217
|
-
createdAt: new Date(),
|
|
218
|
-
updatedAt: new Date(),
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
name: 'Como utilizar',
|
|
222
|
-
IntentionId: howToUseProductsIntention.id,
|
|
223
|
-
createdAt: new Date(),
|
|
224
|
-
updatedAt: new Date(),
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: 'Como utilizar',
|
|
228
|
-
IntentionId: howToUseProductsIntention.id,
|
|
229
|
-
createdAt: new Date(),
|
|
230
|
-
updatedAt: new Date(),
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
name: 'CONHEÇA A LINHA COMPLETA',
|
|
234
|
-
IntentionId: howToUseProductsIntention.id,
|
|
235
|
-
createdAt: new Date(),
|
|
236
|
-
updatedAt: new Date(),
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
name: 'Desisnfecção utilizando',
|
|
240
|
-
IntentionId: howToUseProductsIntention.id,
|
|
241
|
-
createdAt: new Date(),
|
|
242
|
-
updatedAt: new Date(),
|
|
243
|
-
},
|
|
244
|
-
]
|
|
245
|
-
|
|
246
|
-
// Benefits Entity stack
|
|
247
|
-
|
|
248
|
-
const benefitsEntity = {
|
|
249
|
-
id: 'f7d39541-8582-4037-8509-de2ca7ebbc31',
|
|
250
|
-
name: 'beneficios',
|
|
251
|
-
SkillId,
|
|
252
|
-
createdAt: new Date(),
|
|
253
|
-
updatedAt: new Date(),
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
const benefitsEntityValues = [
|
|
257
|
-
{
|
|
258
|
-
id: '92bf6891-4752-4853-b250-f70eb34a1ff3',
|
|
259
|
-
EntityId: benefitsEntity.id,
|
|
260
|
-
name: 'beneficios',
|
|
261
|
-
type: 'synonyms',
|
|
262
|
-
synonyms: 'beneficio,benecifio,benefacil,benenicios,beneficenge',
|
|
263
|
-
createdAt: new Date(),
|
|
264
|
-
updatedAt: new Date(),
|
|
265
|
-
},
|
|
266
|
-
]
|
|
267
|
-
|
|
268
|
-
const benefitsEntitySynonyms = [
|
|
269
|
-
{
|
|
270
|
-
EntityId: benefitsEntity.id,
|
|
271
|
-
EntityValueId: benefitsEntityValues[0].id,
|
|
272
|
-
name: 'beneficios',
|
|
273
|
-
type: 'synonyms',
|
|
274
|
-
createdAt: new Date(),
|
|
275
|
-
updatedAt: new Date(),
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
EntityId: benefitsEntity.id,
|
|
279
|
-
EntityValueId: benefitsEntityValues[0].id,
|
|
280
|
-
name: 'beneficio',
|
|
281
|
-
type: 'synonyms',
|
|
282
|
-
createdAt: new Date(),
|
|
283
|
-
updatedAt: new Date(),
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
EntityId: benefitsEntity.id,
|
|
287
|
-
EntityValueId: benefitsEntityValues[0].id,
|
|
288
|
-
name: 'Benefícios',
|
|
289
|
-
type: 'synonyms',
|
|
290
|
-
createdAt: new Date(),
|
|
291
|
-
updatedAt: new Date(),
|
|
292
|
-
},
|
|
293
|
-
]
|
|
294
|
-
|
|
295
|
-
// Products Entity stack
|
|
296
|
-
|
|
297
|
-
const productEntity = {
|
|
298
|
-
id: '684a3c25-74a2-41e5-a963-c4b5ade51d75',
|
|
299
|
-
name: 'produtos',
|
|
300
|
-
SkillId,
|
|
301
|
-
createdAt: new Date(),
|
|
302
|
-
updatedAt: new Date(),
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
const productEntityValues = [
|
|
306
|
-
{
|
|
307
|
-
id: '2ee73eb5-77a3-4ccd-bbd8-863d92039ebf',
|
|
308
|
-
EntityId: productEntity.id,
|
|
309
|
-
name: 'detergente_tradicional',
|
|
310
|
-
type: 'synonyms',
|
|
311
|
-
synonyms: 'deterjente,deter jente,detirgente,detertente,detergente',
|
|
312
|
-
createdAt: new Date(),
|
|
313
|
-
updatedAt: new Date(),
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
id: '716bb6cd-1e2c-4ce9-82d9-c51ef6922f58',
|
|
317
|
-
EntityId: productEntity.id,
|
|
318
|
-
name: 'sabao_em_po',
|
|
319
|
-
type: 'synonyms',
|
|
320
|
-
synonyms: 'Sabão em pó,sabao em po,sabao',
|
|
321
|
-
createdAt: new Date(),
|
|
322
|
-
updatedAt: new Date(),
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
id: 'fc3acf66-4f9e-44ea-b400-8a4a55c1e05a',
|
|
326
|
-
EntityId: productEntity.id,
|
|
327
|
-
name: 'amaciante',
|
|
328
|
-
type: 'synonyms',
|
|
329
|
-
synonyms: 'amaciante,amassiante,amaçiante',
|
|
330
|
-
createdAt: new Date(),
|
|
331
|
-
updatedAt: new Date(),
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
id: 'c44d96d7-9b4f-47ea-8b6f-c7bbece98f18',
|
|
335
|
-
EntityId: productEntity.id,
|
|
336
|
-
name: 'agua_sanitaria',
|
|
337
|
-
type: 'synonyms',
|
|
338
|
-
synonyms: 'agua de sanitario,agua sanitaria',
|
|
339
|
-
createdAt: new Date(),
|
|
340
|
-
updatedAt: new Date(),
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
id: 'fb8efa51-df94-4589-a1c4-446198d7c424',
|
|
344
|
-
EntityId: productEntity.id,
|
|
345
|
-
name: 'multiuso_premium',
|
|
346
|
-
type: 'synonyms',
|
|
347
|
-
synonyms: 'Multiuso,Multiusos,Multilaser',
|
|
348
|
-
createdAt: new Date(),
|
|
349
|
-
updatedAt: new Date(),
|
|
350
|
-
},
|
|
351
|
-
]
|
|
352
|
-
|
|
353
|
-
const productEntitySynonyms = [
|
|
354
|
-
{
|
|
355
|
-
EntityId: productEntity.id,
|
|
356
|
-
EntityValueId: productEntityValues[0].id,
|
|
357
|
-
name: 'Detergente Tradicional',
|
|
358
|
-
type: 'synonyms',
|
|
359
|
-
createdAt: new Date(),
|
|
360
|
-
updatedAt: new Date(),
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
EntityId: productEntity.id,
|
|
364
|
-
EntityValueId: productEntityValues[0].id,
|
|
365
|
-
name: 'Detergente',
|
|
366
|
-
type: 'synonyms',
|
|
367
|
-
createdAt: new Date(),
|
|
368
|
-
updatedAt: new Date(),
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
EntityId: productEntity.id,
|
|
372
|
-
EntityValueId: productEntityValues[0].id,
|
|
373
|
-
name: 'detergente tradicional',
|
|
374
|
-
type: 'synonyms',
|
|
375
|
-
createdAt: new Date(),
|
|
376
|
-
updatedAt: new Date(),
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
EntityId: productEntity.id,
|
|
380
|
-
EntityValueId: productEntityValues[0].id,
|
|
381
|
-
name: 'detergentes',
|
|
382
|
-
type: 'synonyms',
|
|
383
|
-
createdAt: new Date(),
|
|
384
|
-
updatedAt: new Date(),
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
EntityId: productEntity.id,
|
|
388
|
-
EntityValueId: productEntityValues[1].id,
|
|
389
|
-
name: 'Sabão em pó',
|
|
390
|
-
type: 'synonyms',
|
|
391
|
-
createdAt: new Date(),
|
|
392
|
-
updatedAt: new Date(),
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
EntityId: productEntity.id,
|
|
396
|
-
EntityValueId: productEntityValues[1].id,
|
|
397
|
-
name: 'Sabao em po',
|
|
398
|
-
type: 'synonyms',
|
|
399
|
-
createdAt: new Date(),
|
|
400
|
-
updatedAt: new Date(),
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
EntityId: productEntity.id,
|
|
404
|
-
EntityValueId: productEntityValues[2].id,
|
|
405
|
-
name: 'Amaciante',
|
|
406
|
-
type: 'synonyms',
|
|
407
|
-
createdAt: new Date(),
|
|
408
|
-
updatedAt: new Date(),
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
EntityId: productEntity.id,
|
|
412
|
-
EntityValueId: productEntityValues[2].id,
|
|
413
|
-
name: 'amaciante',
|
|
414
|
-
type: 'synonyms',
|
|
415
|
-
createdAt: new Date(),
|
|
416
|
-
updatedAt: new Date(),
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
EntityId: productEntity.id,
|
|
420
|
-
EntityValueId: productEntityValues[3].id,
|
|
421
|
-
name: 'Água Sanitária',
|
|
422
|
-
type: 'synonyms',
|
|
423
|
-
createdAt: new Date(),
|
|
424
|
-
updatedAt: new Date(),
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
EntityId: productEntity.id,
|
|
428
|
-
EntityValueId: productEntityValues[3].id,
|
|
429
|
-
name: 'agua sanitaria',
|
|
430
|
-
type: 'synonyms',
|
|
431
|
-
createdAt: new Date(),
|
|
432
|
-
updatedAt: new Date(),
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
EntityId: productEntity.id,
|
|
436
|
-
EntityValueId: productEntityValues[4].id,
|
|
437
|
-
name: 'Multiuso Premium',
|
|
438
|
-
type: 'synonyms',
|
|
439
|
-
createdAt: new Date(),
|
|
440
|
-
updatedAt: new Date(),
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
EntityId: productEntity.id,
|
|
444
|
-
EntityValueId: productEntityValues[4].id,
|
|
445
|
-
name: 'multiuso premium',
|
|
446
|
-
type: 'synonyms',
|
|
447
|
-
createdAt: new Date(),
|
|
448
|
-
updatedAt: new Date(),
|
|
449
|
-
},
|
|
450
|
-
]
|
|
451
|
-
|
|
452
|
-
// How to use Entity stack
|
|
453
|
-
|
|
454
|
-
const howToUseEntity = {
|
|
455
|
-
id: 'fe3f31c7-0608-4cf7-b6a3-23361bc217db',
|
|
456
|
-
name: 'modo_usar',
|
|
457
|
-
SkillId,
|
|
458
|
-
createdAt: new Date(),
|
|
459
|
-
updatedAt: new Date(),
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
const howToUseEntityValues = [
|
|
463
|
-
{
|
|
464
|
-
id: 'f5162219-36be-4c9e-8fc3-2b4974cf60c1',
|
|
465
|
-
EntityId: howToUseEntity.id,
|
|
466
|
-
name: 'modo de usar',
|
|
467
|
-
type: 'synonyms',
|
|
468
|
-
synonyms: 'modo de usar,modu de usar,modulo de usacao,modu de uso',
|
|
469
|
-
createdAt: new Date(),
|
|
470
|
-
updatedAt: new Date(),
|
|
471
|
-
},
|
|
472
|
-
]
|
|
473
|
-
|
|
474
|
-
const howToUseEntitySynonyms = [
|
|
475
|
-
{
|
|
476
|
-
EntityId: howToUseEntity.id,
|
|
477
|
-
EntityValueId: howToUseEntityValues[0].id,
|
|
478
|
-
name: 'modo de usar',
|
|
479
|
-
type: 'synonyms',
|
|
480
|
-
createdAt: new Date(),
|
|
481
|
-
updatedAt: new Date(),
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
EntityId: howToUseEntity.id,
|
|
485
|
-
EntityValueId: howToUseEntityValues[0].id,
|
|
486
|
-
name: 'modo de uso',
|
|
487
|
-
type: 'synonyms',
|
|
488
|
-
createdAt: new Date(),
|
|
489
|
-
updatedAt: new Date(),
|
|
490
|
-
},
|
|
491
|
-
]
|
|
492
|
-
|
|
493
|
-
// Responses
|
|
494
|
-
// Detergente Tradicional modo de uso
|
|
495
|
-
|
|
496
|
-
const detergenteTradicionalResponse = {
|
|
497
|
-
id: 'e64a3ed8-027a-4e2d-a8a6-3195ac15d099',
|
|
498
|
-
name: 'Detergente Tradicional Ypê modo uso',
|
|
499
|
-
SkillId,
|
|
500
|
-
type: 'flow',
|
|
501
|
-
createdAt: new Date(),
|
|
502
|
-
updatedAt: new Date(),
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
const detergenteTradicionalResponseBox = {
|
|
506
|
-
ResponseId: detergenteTradicionalResponse.id,
|
|
507
|
-
ChannelTypeId: null,
|
|
508
|
-
type: 'flow',
|
|
509
|
-
payload: JSON.stringify([
|
|
510
|
-
{
|
|
511
|
-
id: '',
|
|
512
|
-
type: 'text',
|
|
513
|
-
messages: [
|
|
514
|
-
{ message: 'Super fácil! 💙' },
|
|
515
|
-
{ message: 'É bem simples! 💙' },
|
|
516
|
-
{ message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙' },
|
|
517
|
-
{ message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙' },
|
|
518
|
-
{ message: 'Usar esse produto é bem simples! 💙' },
|
|
519
|
-
],
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
id: '',
|
|
523
|
-
type: 'text',
|
|
524
|
-
messages: [
|
|
525
|
-
{
|
|
526
|
-
message:
|
|
527
|
-
'• Aplique o lava-louças Ypê em uma esponja molhada. \n \n• Para limpeza geral, aplique o lava-louças Ypê em uma vasilha com água. ',
|
|
528
|
-
},
|
|
529
|
-
],
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
id: '',
|
|
533
|
-
type: 'text',
|
|
534
|
-
messages: [
|
|
535
|
-
{ message: 'É muito importante entender esse passo, não é mesmo?! 😍' },
|
|
536
|
-
],
|
|
537
|
-
},
|
|
538
|
-
]),
|
|
539
|
-
createdAt: new Date(),
|
|
540
|
-
updatedAt: new Date(),
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
// Detergente Tradicional modo de uso
|
|
544
|
-
|
|
545
|
-
const detergenteTradicionalMenuResponse = {
|
|
546
|
-
id: '00fdf060-a458-4457-92bb-84de60a3e49e',
|
|
547
|
-
name: 'Detergente Tradicional Ypê menu',
|
|
548
|
-
SkillId,
|
|
549
|
-
type: 'flow',
|
|
550
|
-
createdAt: new Date(),
|
|
551
|
-
updatedAt: new Date(),
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
const detergenteTradicionalMenuResponseBeneficio = {
|
|
555
|
-
id: '701e4e94-b52c-4172-9f0e-6f48c3ca83c0',
|
|
556
|
-
name: 'Detergente Tradicional Ypê beneficio',
|
|
557
|
-
SkillId,
|
|
558
|
-
type: 'flow',
|
|
559
|
-
createdAt: new Date(),
|
|
560
|
-
updatedAt: new Date(),
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
const detergenteTradicionalMenuResponseBeneficioBox = {
|
|
564
|
-
ResponseId: detergenteTradicionalMenuResponseBeneficio.id,
|
|
565
|
-
ChannelTypeId: null,
|
|
566
|
-
type: 'flow',
|
|
567
|
-
payload: JSON.stringify([
|
|
568
|
-
{
|
|
569
|
-
id: '',
|
|
570
|
-
type: 'text',
|
|
571
|
-
messages: [
|
|
572
|
-
{
|
|
573
|
-
message:
|
|
574
|
-
'Com o Detergente Tradicional Ypê, a sua rotina não será a mesma! 😍\n\nConheça o que preparamos de melhor pra você, nas versões:\n\nCapim Limão / Limão / Maçã',
|
|
575
|
-
},
|
|
576
|
-
],
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
id: '',
|
|
580
|
-
type: 'image',
|
|
581
|
-
messages: [
|
|
582
|
-
{
|
|
583
|
-
message:
|
|
584
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/Controle de Odor.png',
|
|
585
|
-
},
|
|
586
|
-
],
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
id: '',
|
|
590
|
-
type: 'text',
|
|
591
|
-
messages: [
|
|
592
|
-
{
|
|
593
|
-
message:
|
|
594
|
-
'Tecnologia de Controle de Odor, não agride as mãos, com poder desengordurante, melhor custo/benefício e fórmula biodegradável.',
|
|
595
|
-
},
|
|
596
|
-
],
|
|
597
|
-
},
|
|
598
|
-
{ id: '', type: 'text', messages: [{ message: 'Clear / Neutro ' }] },
|
|
599
|
-
{
|
|
600
|
-
id: '',
|
|
601
|
-
type: 'image',
|
|
602
|
-
messages: [
|
|
603
|
-
{ message: 'https://chatbot.dev.ypedia.com.br/images/bot/neutro.png' },
|
|
604
|
-
],
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
id: '',
|
|
608
|
-
type: 'text',
|
|
609
|
-
messages: [
|
|
610
|
-
{
|
|
611
|
-
message:
|
|
612
|
-
'O Melhor custo/benefício, com poder desengordurante e fórmula biodegradável.',
|
|
613
|
-
},
|
|
614
|
-
],
|
|
615
|
-
},
|
|
616
|
-
{ id: '', type: 'text', messages: [{ message: 'Toque Suave / Coco' }] },
|
|
617
|
-
{
|
|
618
|
-
id: '',
|
|
619
|
-
type: 'image',
|
|
620
|
-
messages: [
|
|
621
|
-
{
|
|
622
|
-
message:
|
|
623
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/Toque suave.png',
|
|
624
|
-
},
|
|
625
|
-
],
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
id: '',
|
|
629
|
-
type: 'text',
|
|
630
|
-
messages: [
|
|
631
|
-
{
|
|
632
|
-
message:
|
|
633
|
-
'Toque suave, melhor custo/benefício, fórmula biodegradável e com poder desengordurante.',
|
|
634
|
-
},
|
|
635
|
-
],
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
id: '',
|
|
639
|
-
type: 'text',
|
|
640
|
-
messages: [{ message: 'Gostou de saber disso? Eu adorei! 🥰' }],
|
|
641
|
-
},
|
|
642
|
-
]),
|
|
643
|
-
createdAt: new Date(),
|
|
644
|
-
updatedAt: new Date(),
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
const detergenteTradicionalMenuResponseBox = {
|
|
648
|
-
ResponseId: detergenteTradicionalMenuResponse.id,
|
|
649
|
-
ChannelTypeId: null,
|
|
650
|
-
type: 'flow',
|
|
651
|
-
payload: JSON.stringify([
|
|
652
|
-
{
|
|
653
|
-
id: '',
|
|
654
|
-
type: 'text',
|
|
655
|
-
messages: [
|
|
656
|
-
{
|
|
657
|
-
message:
|
|
658
|
-
'Pode deixar, vou te mostrar todos os detalhes do Detergente Tradicional Ypê. Você vai adorar! 😄\n',
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
message:
|
|
662
|
-
'Se bateu aquela curiosidade sobre o Detergente Tradicional Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
663
|
-
},
|
|
664
|
-
{ message: 'Saiba tudo sobre o Detergente Tradicional Ypê! 😃\n' },
|
|
665
|
-
{
|
|
666
|
-
message:
|
|
667
|
-
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Detergente Tradicional Ypê. 😃\n',
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
message:
|
|
671
|
-
'Ficou mega interessado em conhecer mais sobre o Detergente Tradicional Ypê? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
672
|
-
},
|
|
673
|
-
],
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
id: '',
|
|
677
|
-
type: 'image',
|
|
678
|
-
messages: [
|
|
679
|
-
{
|
|
680
|
-
message:
|
|
681
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/destaque_lava_louca.png',
|
|
682
|
-
},
|
|
683
|
-
],
|
|
684
|
-
},
|
|
685
|
-
]),
|
|
686
|
-
createdAt: new Date(),
|
|
687
|
-
updatedAt: new Date(),
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
// Sabão em pó Tixan Ypê modo uso
|
|
691
|
-
|
|
692
|
-
const sabaoEmPoTixanResponse = {
|
|
693
|
-
id: '565442e0-a913-4f47-9223-98ce7735bbb2',
|
|
694
|
-
name: 'Sabão em pó Tixan Ypê modo uso',
|
|
695
|
-
SkillId,
|
|
696
|
-
type: 'flow',
|
|
697
|
-
createdAt: new Date(),
|
|
698
|
-
updatedAt: new Date(),
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
const sabaoEmPoTixanResponseBox = {
|
|
702
|
-
ResponseId: sabaoEmPoTixanResponse.id,
|
|
703
|
-
ChannelTypeId: null,
|
|
704
|
-
type: 'flow',
|
|
705
|
-
payload: JSON.stringify([
|
|
706
|
-
{
|
|
707
|
-
id: '',
|
|
708
|
-
type: 'text',
|
|
709
|
-
messages: [
|
|
710
|
-
{ value: '', message: 'Super fácil! 💙\n' },
|
|
711
|
-
{ value: '', message: 'É bem simples! 💙\n' },
|
|
712
|
-
{
|
|
713
|
-
value: '',
|
|
714
|
-
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
value: '',
|
|
718
|
-
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
719
|
-
},
|
|
720
|
-
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
721
|
-
],
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
id: '',
|
|
725
|
-
type: 'text',
|
|
726
|
-
messages: [
|
|
727
|
-
{
|
|
728
|
-
value: '',
|
|
729
|
-
message:
|
|
730
|
-
'Para máquina de lalet: \n \n• Para nível alto adicionar ¾ de um copo americano e para nível baixo ½ de um copo americano (considerando máquina de 6 kg); \n \n• Para nível alto adicionar 1 de um copo americano e para nível baixo ¾ de um copo americano (considerando máquina de 8 kg); \n \n• Para nível alto adicionar 1 ½ de um copo americano e para nível baixo 1 de um copo americano (considerando máquina de 12 kg ou mais); \n \n• Adicione no compartimento da máquina e deixe seguir o ciclo normalmente. ',
|
|
731
|
-
},
|
|
732
|
-
],
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
id: '',
|
|
736
|
-
type: 'text',
|
|
737
|
-
messages: [
|
|
738
|
-
{
|
|
739
|
-
value: '',
|
|
740
|
-
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
741
|
-
},
|
|
742
|
-
],
|
|
743
|
-
},
|
|
744
|
-
]),
|
|
745
|
-
createdAt: new Date(),
|
|
746
|
-
updatedAt: new Date(),
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
// Sabão em pó Tixan Ypê menu
|
|
750
|
-
|
|
751
|
-
const sabaoEmPoTixanMenuResponse = {
|
|
752
|
-
id: '7c68eca6-47ce-45d8-95a3-bb464743aa3d',
|
|
753
|
-
name: 'Sabão em pó Tixan Ypê menu',
|
|
754
|
-
SkillId,
|
|
755
|
-
type: 'flow',
|
|
756
|
-
createdAt: new Date(),
|
|
757
|
-
updatedAt: new Date(),
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
const sabaoEmPoTixanMenuResponseBox = {
|
|
761
|
-
ResponseId: sabaoEmPoTixanMenuResponse.id,
|
|
762
|
-
ChannelTypeId: null,
|
|
763
|
-
type: 'flow',
|
|
764
|
-
payload: JSON.stringify([
|
|
765
|
-
{
|
|
766
|
-
id: '',
|
|
767
|
-
type: 'text',
|
|
768
|
-
messages: [
|
|
769
|
-
{
|
|
770
|
-
message:
|
|
771
|
-
'Pode deixar, vou te mostrar todos os detalhes do Sabão em Pó Tixan Ypê. Você vai adorar! 😄\n',
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
message:
|
|
775
|
-
'Se bateu aquela curiosidade sobre o Sabão em Pó Tixan Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
776
|
-
},
|
|
777
|
-
{ message: 'Saiba tudo sobre o Sabão em Pó Tixan Ypê! 😃\n' },
|
|
778
|
-
{
|
|
779
|
-
message:
|
|
780
|
-
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Sabão em Pó Tixan Ypê. 😃\n',
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
message:
|
|
784
|
-
'Ficou mega interessado em conhecer mais sobre o Sabão em Pó Tixan Ypê? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
785
|
-
},
|
|
786
|
-
],
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
id: '',
|
|
790
|
-
type: 'image',
|
|
791
|
-
messages: [
|
|
792
|
-
{
|
|
793
|
-
message:
|
|
794
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/primavera-1kg-3x.png',
|
|
795
|
-
},
|
|
796
|
-
],
|
|
797
|
-
},
|
|
798
|
-
]),
|
|
799
|
-
createdAt: new Date(),
|
|
800
|
-
updatedAt: new Date(),
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
// Sabão em pó Tixan Ypê beneficio
|
|
804
|
-
|
|
805
|
-
const sabaoEmPoTixanBeneficioResponse = {
|
|
806
|
-
id: 'ee1e18e0-ab53-40a3-95f7-48867e16f5d6',
|
|
807
|
-
name: 'Sabão em pó Tixan Ypê beneficio',
|
|
808
|
-
SkillId,
|
|
809
|
-
type: 'flow',
|
|
810
|
-
createdAt: new Date(),
|
|
811
|
-
updatedAt: new Date(),
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
const sabaoEmPoTixanBeneficioResponseBox = {
|
|
815
|
-
ResponseId: sabaoEmPoTixanBeneficioResponse.id,
|
|
816
|
-
ChannelTypeId: null,
|
|
817
|
-
type: 'flow',
|
|
818
|
-
payload: JSON.stringify([
|
|
819
|
-
{
|
|
820
|
-
id: '',
|
|
821
|
-
type: 'text',
|
|
822
|
-
messages: [
|
|
823
|
-
{
|
|
824
|
-
value: '',
|
|
825
|
-
message:
|
|
826
|
-
'Você não vai acreditar! 🤩 \n \nO Sabão em Pó Tixan Ypê é prático, pode ser usado direto na máquina ou tanque. 👕👖 Ele limpa manchas mais resistentes, é um ótimo custo/benefício e deixa suas roupas limpas e perfumadas.',
|
|
827
|
-
},
|
|
828
|
-
],
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
id: '',
|
|
832
|
-
type: 'text',
|
|
833
|
-
messages: [
|
|
834
|
-
{ value: '', message: 'Gostou de saber disso? Eu adorei! 🥰' },
|
|
835
|
-
],
|
|
836
|
-
},
|
|
837
|
-
]),
|
|
838
|
-
createdAt: new Date(),
|
|
839
|
-
updatedAt: new Date(),
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
// Amaciante Ypê Essencial modo uso
|
|
843
|
-
|
|
844
|
-
const amacianteEssencialResponse = {
|
|
845
|
-
id: 'cb0ea99e-dcc9-4b4f-b9f9-7c79d3e07dc9',
|
|
846
|
-
name: 'Amaciante Ypê Essencial modo uso',
|
|
847
|
-
SkillId,
|
|
848
|
-
type: 'flow',
|
|
849
|
-
createdAt: new Date(),
|
|
850
|
-
updatedAt: new Date(),
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
const amacianteEssencialResponseBox = {
|
|
854
|
-
ResponseId: amacianteEssencialResponse.id,
|
|
855
|
-
ChannelTypeId: null,
|
|
856
|
-
type: 'flow',
|
|
857
|
-
payload: JSON.stringify([
|
|
858
|
-
{
|
|
859
|
-
id: '',
|
|
860
|
-
type: 'text',
|
|
861
|
-
messages: [
|
|
862
|
-
{ value: '', message: 'Super fácil! 💙\n' },
|
|
863
|
-
{ value: '', message: 'É bem simples! 💙\n' },
|
|
864
|
-
{
|
|
865
|
-
value: '',
|
|
866
|
-
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
value: '',
|
|
870
|
-
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
871
|
-
},
|
|
872
|
-
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
873
|
-
],
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
id: '',
|
|
877
|
-
type: 'text',
|
|
878
|
-
messages: [
|
|
879
|
-
{
|
|
880
|
-
value: '',
|
|
881
|
-
message:
|
|
882
|
-
'Para máquina de lalet: \n \n1- Basta colocar ½ tampa do Amaciante Ypê Essencial para perfumar uma máquina cheia (considerando máquina de 8kg). \n \n2- Após o processo de lavagem, faça mais um enxágue adicionando meia tampa de Amaciante Ypê Essencial sobre a água limpa ou no compartimento da máquina, evitando o contato direto do produto com as roupas. \n \n3- Deixe agir por 10 minutos e complete o processo, centrifugando. \n \n4- Coloque para secar normalmente.',
|
|
883
|
-
},
|
|
884
|
-
],
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
id: '',
|
|
888
|
-
type: 'text',
|
|
889
|
-
messages: [
|
|
890
|
-
{
|
|
891
|
-
value: '',
|
|
892
|
-
message:
|
|
893
|
-
'Para tanque: \n \n1- Após o processo de lavagem, faça mais um enxágue adicionando meia tampa de Amaciante Ypê Essencial sobre a água limpa, evitando o contato direto do produto com as roupas. \n \n2- Deixe agir por 10 minutos e complete o processo, torcendo. \n \n3- Coloque para secar normalmente.',
|
|
894
|
-
},
|
|
895
|
-
],
|
|
896
|
-
},
|
|
897
|
-
{
|
|
898
|
-
id: '',
|
|
899
|
-
type: 'text',
|
|
900
|
-
messages: [
|
|
901
|
-
{
|
|
902
|
-
value: '',
|
|
903
|
-
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
904
|
-
},
|
|
905
|
-
],
|
|
906
|
-
},
|
|
907
|
-
]),
|
|
908
|
-
createdAt: new Date(),
|
|
909
|
-
updatedAt: new Date(),
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
// Amaciante Ypê Essencial beneficio
|
|
913
|
-
|
|
914
|
-
const amacianteEssencialBeneficioResponse = {
|
|
915
|
-
id: '1504146e-47af-4361-92e3-724d53ce0ec5',
|
|
916
|
-
name: 'Amaciante Ypê Essencial beneficio',
|
|
917
|
-
SkillId,
|
|
918
|
-
type: 'flow',
|
|
919
|
-
createdAt: new Date(),
|
|
920
|
-
updatedAt: new Date(),
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
const amacianteEssencialBeneficioResponseBox = {
|
|
924
|
-
ResponseId: amacianteEssencialBeneficioResponse.id,
|
|
925
|
-
ChannelTypeId: null,
|
|
926
|
-
type: 'flow',
|
|
927
|
-
payload: JSON.stringify([
|
|
928
|
-
{
|
|
929
|
-
id: '',
|
|
930
|
-
type: 'text',
|
|
931
|
-
messages: [
|
|
932
|
-
{
|
|
933
|
-
value: '',
|
|
934
|
-
message:
|
|
935
|
-
'Você vai se surpreender com a inovação do Amaciante Ypê Essencial! 🤩',
|
|
936
|
-
},
|
|
937
|
-
],
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
id: '',
|
|
941
|
-
type: 'text',
|
|
942
|
-
messages: [
|
|
943
|
-
{
|
|
944
|
-
value: '',
|
|
945
|
-
message:
|
|
946
|
-
'É o primeiro amaciante translúcido do mercado brasileiro, tratamento micelar, livre de corantes, fragrância com óleos essenciais, 99% biodegradável e hipoalergênico.',
|
|
947
|
-
},
|
|
948
|
-
],
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
id: '',
|
|
952
|
-
type: 'text',
|
|
953
|
-
messages: [
|
|
954
|
-
{ value: '', message: 'Gostou de saber disso? Eu adorei! 🥰' },
|
|
955
|
-
],
|
|
956
|
-
},
|
|
957
|
-
]),
|
|
958
|
-
createdAt: new Date(),
|
|
959
|
-
updatedAt: new Date(),
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
// Amaciante Ypê Essencial menu
|
|
963
|
-
|
|
964
|
-
const amacianteEssencialMenuResponse = {
|
|
965
|
-
id: 'f8fcafea-7779-473c-8858-573560278a31',
|
|
966
|
-
name: 'Amaciante Ypê Essencial menu',
|
|
967
|
-
SkillId,
|
|
968
|
-
type: 'flow',
|
|
969
|
-
createdAt: new Date(),
|
|
970
|
-
updatedAt: new Date(),
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
const amacianteEssencialMenuResponseBox = {
|
|
974
|
-
ResponseId: amacianteEssencialMenuResponse.id,
|
|
975
|
-
ChannelTypeId: null,
|
|
976
|
-
type: 'flow',
|
|
977
|
-
payload: JSON.stringify([
|
|
978
|
-
{
|
|
979
|
-
id: '',
|
|
980
|
-
type: 'text',
|
|
981
|
-
messages: [
|
|
982
|
-
{
|
|
983
|
-
value: '',
|
|
984
|
-
message:
|
|
985
|
-
'Pode deixar, vou te mostrar todos os detalhes do Amaciante Ypê Essencial. Você vai adorar! 😄\n',
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
value: '',
|
|
989
|
-
message:
|
|
990
|
-
'Se bateu aquela curiosidade sobre o Amaciante Ypê Essencial, estou aqui pra te explicar tudinho! 😊\n',
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
value: '',
|
|
994
|
-
message: 'Saiba tudo sobre o Amaciante Ypê Essencial! 😃\n',
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
value: '',
|
|
998
|
-
message:
|
|
999
|
-
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Amaciante Ypê Essencial. 😃\n',
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
value: '',
|
|
1003
|
-
message:
|
|
1004
|
-
'Ficou mega interessado em conhecer mais sobre o Amaciante Ypê Essencial? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
1005
|
-
},
|
|
1006
|
-
],
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
id: '',
|
|
1010
|
-
type: 'image',
|
|
1011
|
-
messages: [
|
|
1012
|
-
{
|
|
1013
|
-
value: '',
|
|
1014
|
-
message:
|
|
1015
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/produto_amaciantes_concentrado-2020.png',
|
|
1016
|
-
},
|
|
1017
|
-
],
|
|
1018
|
-
},
|
|
1019
|
-
]),
|
|
1020
|
-
createdAt: new Date(),
|
|
1021
|
-
updatedAt: new Date(),
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
// menu ype
|
|
1025
|
-
|
|
1026
|
-
const menuYpeResponse = {
|
|
1027
|
-
id: '54a4179b-390f-42e9-a932-2c98868fae52',
|
|
1028
|
-
name: 'menu ype',
|
|
1029
|
-
SkillId,
|
|
1030
|
-
type: 'flow',
|
|
1031
|
-
createdAt: new Date(),
|
|
1032
|
-
updatedAt: new Date(),
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
const menuYpeResponseBox = {
|
|
1036
|
-
ResponseId: menuYpeResponse.id,
|
|
1037
|
-
ChannelTypeId: null,
|
|
1038
|
-
type: 'flow',
|
|
1039
|
-
payload: JSON.stringify([
|
|
1040
|
-
{
|
|
1041
|
-
id: '',
|
|
1042
|
-
type: 'text',
|
|
1043
|
-
messages: [
|
|
1044
|
-
{
|
|
1045
|
-
message:
|
|
1046
|
-
'Oi! Aqui é o Ypêzinho, o assistente virtual da Ypê. \n\nVocê tem dúvidas? Dúvidas por quê? Qualidade é Ypê! Conte comigo. 😍',
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
message:
|
|
1050
|
-
'Oi, você tem dúvidas? 🤔\n\nDúvidas por quê? Qualidade é Ypê! Quer saber quem sou? 😁\n \nAqui é o Ypêzinho, o assistente virtual da Ypê. Conte comigo pra tudo, viu?',
|
|
1051
|
-
},
|
|
1052
|
-
],
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
type: 'simple_button',
|
|
1056
|
-
text: 'Podemos começar por qual assunto?',
|
|
1057
|
-
buttons: [
|
|
1058
|
-
{ label: 'Produtos', value: 'botao_prod' },
|
|
1059
|
-
{ label: 'Sugestão', value: 'sugestao ' },
|
|
1060
|
-
{ label: 'Institucional', value: 'institucional' },
|
|
1061
|
-
{ label: 'Reclamação', value: 'reclamacao' },
|
|
1062
|
-
],
|
|
1063
|
-
},
|
|
1064
|
-
]),
|
|
1065
|
-
createdAt: new Date(),
|
|
1066
|
-
updatedAt: new Date(),
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
// Água Sanitária Ypê modo uso
|
|
1070
|
-
|
|
1071
|
-
const aguaSanitariaModoDeUsoResponse = {
|
|
1072
|
-
id: '9970a245-c1bd-454d-89b3-88e29ff20ff6',
|
|
1073
|
-
name: 'Água Sanitária Ypê modo uso',
|
|
1074
|
-
SkillId,
|
|
1075
|
-
type: 'flow',
|
|
1076
|
-
createdAt: new Date(),
|
|
1077
|
-
updatedAt: new Date(),
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
const aguaSanitariaModoDeUsoResponseBox = {
|
|
1081
|
-
ResponseId: aguaSanitariaModoDeUsoResponse.id,
|
|
1082
|
-
ChannelTypeId: null,
|
|
1083
|
-
type: 'flow',
|
|
1084
|
-
payload: JSON.stringify([
|
|
1085
|
-
{
|
|
1086
|
-
id: '',
|
|
1087
|
-
type: 'text',
|
|
1088
|
-
messages: [
|
|
1089
|
-
{ value: '', message: 'Super fácil! 💙\n' },
|
|
1090
|
-
{ value: '', message: 'É bem simples! 💙\n' },
|
|
1091
|
-
{
|
|
1092
|
-
value: '',
|
|
1093
|
-
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
value: '',
|
|
1097
|
-
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
1098
|
-
},
|
|
1099
|
-
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
1100
|
-
],
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
id: '',
|
|
1104
|
-
type: 'text',
|
|
1105
|
-
messages: [
|
|
1106
|
-
{
|
|
1107
|
-
value: '',
|
|
1108
|
-
message:
|
|
1109
|
-
'Para limpeza geral: \n\n• Água Sanitária Ypê pode ser usada em toda a casa. Eficiente para a limpeza e desinfecção de banheiros, cozinhas, pisos, azulejos e paredes. Adicione 1 copo (200ml) de Água Sanitária Ypê para cada 5 litros de água. Se necessário, deixar de molho por 10 minutos. Enxaguar a seguir. \n \nPara lavagem de roupas:\n\n • Para alvejar, adicione 1 copo (200ml) de Água Sanitária Ypê para cada 20 litros de água. Deixe de molho por 30 minutos antes de iniciar a lavagem no tanque ou na máquina. LEMBRE-SE: Não utilize em roupas coloridas. \n \nPara limpeza de banheiras e pias: \n\n• Tampe o ralo e encha com água limpa a banheira ou a pia. Adicione ½ copo (100ml) de Água Sanitária Ypê para cada 10 litros de água. Deixe agir por 10 minutos e depois enxágue. ',
|
|
1110
|
-
},
|
|
1111
|
-
],
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
id: '',
|
|
1115
|
-
type: 'text',
|
|
1116
|
-
messages: [
|
|
1117
|
-
{
|
|
1118
|
-
value: '',
|
|
1119
|
-
message:
|
|
1120
|
-
'Para limpeza de vidros, louças, porcelanas, mármores, plásticos e cerâmicas:\n \n• Em um balde coloque 1 litro de água limpa. Em seguida, adicione 3 colheres de sopa (45ml) de Água Sanitária Ypê. Limpe os objetos com esponja ou pano molhado nesta solução. Enxágue a seguir. \n \nPara limpeza de vasos sanitários e ralos: \n\n• Para remoção da sujeira incrustada, despeje Água Sanitária Ypê pura, deixe agir por 10 minutos e enxágue a seguir. \n \nPara desinfecção de frutas, verduras e legumes:\n \n• Misture 1 colher de sopa (15ml) de Água Sanitária Ypê em 1 litro de água. Deixe de molho por 10 minutos e enxágue a seguir com água potável.',
|
|
1121
|
-
},
|
|
1122
|
-
],
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
id: '',
|
|
1126
|
-
type: 'text',
|
|
1127
|
-
messages: [
|
|
1128
|
-
{
|
|
1129
|
-
value: '',
|
|
1130
|
-
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
1131
|
-
},
|
|
1132
|
-
],
|
|
1133
|
-
},
|
|
1134
|
-
]),
|
|
1135
|
-
createdAt: new Date(),
|
|
1136
|
-
updatedAt: new Date(),
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
// Água Sanitária Ypê beneficio
|
|
1140
|
-
|
|
1141
|
-
const aguaSanitariaBeneficioResponse = {
|
|
1142
|
-
id: '23c35b9f-9ac1-4846-b5b1-b28c3263638e',
|
|
1143
|
-
name: 'Água Sanitária Ypê beneficio',
|
|
1144
|
-
SkillId,
|
|
1145
|
-
type: 'flow',
|
|
1146
|
-
createdAt: new Date(),
|
|
1147
|
-
updatedAt: new Date(),
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
const aguaSanitariaBeneficioResponseBox = {
|
|
1151
|
-
ResponseId: aguaSanitariaBeneficioResponse.id,
|
|
1152
|
-
ChannelTypeId: null,
|
|
1153
|
-
type: 'flow',
|
|
1154
|
-
payload: JSON.stringify([
|
|
1155
|
-
{
|
|
1156
|
-
id: '',
|
|
1157
|
-
type: 'text',
|
|
1158
|
-
messages: [
|
|
1159
|
-
{ value: '', message: 'Super fácil! 💙\n' },
|
|
1160
|
-
{ value: '', message: 'É bem simples! 💙\n' },
|
|
1161
|
-
{
|
|
1162
|
-
value: '',
|
|
1163
|
-
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
value: '',
|
|
1167
|
-
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
1168
|
-
},
|
|
1169
|
-
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
1170
|
-
],
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
id: '',
|
|
1174
|
-
type: 'text',
|
|
1175
|
-
messages: [
|
|
1176
|
-
{
|
|
1177
|
-
value: '',
|
|
1178
|
-
message:
|
|
1179
|
-
'Para limpeza geral: \n\n• Água Sanitária Ypê pode ser usada em toda a casa. Eficiente para a limpeza e desinfecção de banheiros, cozinhas, pisos, azulejos e paredes. Adicione 1 copo (200ml) de Água Sanitária Ypê para cada 5 litros de água. Se necessário, deixar de molho por 10 minutos. Enxaguar a seguir. \n \nPara lavagem de roupas:\n\n • Para alvejar, adicione 1 copo (200ml) de Água Sanitária Ypê para cada 20 litros de água. Deixe de molho por 30 minutos antes de iniciar a lavagem no tanque ou na máquina. LEMBRE-SE: Não utilize em roupas coloridas. \n \nPara limpeza de banheiras e pias: \n\n• Tampe o ralo e encha com água limpa a banheira ou a pia. Adicione ½ copo (100ml) de Água Sanitária Ypê para cada 10 litros de água. Deixe agir por 10 minutos e depois enxágue. ',
|
|
1180
|
-
},
|
|
1181
|
-
],
|
|
1182
|
-
},
|
|
1183
|
-
{
|
|
1184
|
-
id: '',
|
|
1185
|
-
type: 'text',
|
|
1186
|
-
messages: [
|
|
1187
|
-
{
|
|
1188
|
-
value: '',
|
|
1189
|
-
message:
|
|
1190
|
-
'Para limpeza de vidros, louças, porcelanas, mármores, plásticos e cerâmicas:\n \n• Em um balde coloque 1 litro de água limpa. Em seguida, adicione 3 colheres de sopa (45ml) de Água Sanitária Ypê. Limpe os objetos com esponja ou pano molhado nesta solução. Enxágue a seguir. \n \nPara limpeza de vasos sanitários e ralos: \n\n• Para remoção da sujeira incrustada, despeje Água Sanitária Ypê pura, deixe agir por 10 minutos e enxágue a seguir. \n \nPara desinfecção de frutas, verduras e legumes:\n \n• Misture 1 colher de sopa (15ml) de Água Sanitária Ypê em 1 litro de água. Deixe de molho por 10 minutos e enxágue a seguir com água potável.',
|
|
1191
|
-
},
|
|
1192
|
-
],
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
id: '',
|
|
1196
|
-
type: 'text',
|
|
1197
|
-
messages: [
|
|
1198
|
-
{
|
|
1199
|
-
value: '',
|
|
1200
|
-
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
1201
|
-
},
|
|
1202
|
-
],
|
|
1203
|
-
},
|
|
1204
|
-
]),
|
|
1205
|
-
createdAt: new Date(),
|
|
1206
|
-
updatedAt: new Date(),
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
// Água Sanitária Ypê Menu
|
|
1210
|
-
|
|
1211
|
-
const aguaSanitariaMenuResponse = {
|
|
1212
|
-
id: 'f4ccb878-cd63-4ef7-b8df-d280e4479a80',
|
|
1213
|
-
name: 'Água Sanitária Ypê Menu',
|
|
1214
|
-
SkillId,
|
|
1215
|
-
type: 'flow',
|
|
1216
|
-
createdAt: new Date(),
|
|
1217
|
-
updatedAt: new Date(),
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
const aguaSanitariaMenuResponseBox = {
|
|
1221
|
-
ResponseId: aguaSanitariaMenuResponse.id,
|
|
1222
|
-
ChannelTypeId: null,
|
|
1223
|
-
type: 'flow',
|
|
1224
|
-
payload: JSON.stringify([
|
|
1225
|
-
{
|
|
1226
|
-
id: '',
|
|
1227
|
-
type: 'text',
|
|
1228
|
-
messages: [
|
|
1229
|
-
{
|
|
1230
|
-
value: '',
|
|
1231
|
-
message:
|
|
1232
|
-
'Pode deixar, vou te mostrar todos os detalhes da Água Sanitária Ypê. Você vai adorar! 😄\n',
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
value: '',
|
|
1236
|
-
message:
|
|
1237
|
-
'Se bateu aquela curiosidade sobre a Água Sanitária Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
1238
|
-
},
|
|
1239
|
-
{ value: '', message: 'Saiba tudo sobre a Água Sanitária Ypê! 😃\n' },
|
|
1240
|
-
{
|
|
1241
|
-
value: '',
|
|
1242
|
-
message:
|
|
1243
|
-
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça a Água Sanitária Ypê. 😃\n',
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
value: '',
|
|
1247
|
-
message:
|
|
1248
|
-
'Ficou mega interessado em conhecer mais sobre a Água Sanitária Ypê? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
1249
|
-
},
|
|
1250
|
-
],
|
|
1251
|
-
},
|
|
1252
|
-
{
|
|
1253
|
-
id: '',
|
|
1254
|
-
type: 'image',
|
|
1255
|
-
messages: [
|
|
1256
|
-
{
|
|
1257
|
-
value: '',
|
|
1258
|
-
message:
|
|
1259
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/agua sanitaria.png',
|
|
1260
|
-
},
|
|
1261
|
-
],
|
|
1262
|
-
},
|
|
1263
|
-
]),
|
|
1264
|
-
createdAt: new Date(),
|
|
1265
|
-
updatedAt: new Date(),
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
// Multiuso Premium Ypê beneficio
|
|
1269
|
-
|
|
1270
|
-
const multiusoPremiumBeneficioResponse = {
|
|
1271
|
-
id: '1fa15aed-c7b0-4792-97b8-0182d8c036c7',
|
|
1272
|
-
name: 'Multiuso Premium beneficio',
|
|
1273
|
-
SkillId,
|
|
1274
|
-
type: 'flow',
|
|
1275
|
-
createdAt: new Date(),
|
|
1276
|
-
updatedAt: new Date(),
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
const multiusoPremiumBeneficioResponseBox = {
|
|
1280
|
-
ResponseId: multiusoPremiumBeneficioResponse.id,
|
|
1281
|
-
ChannelTypeId: null,
|
|
1282
|
-
type: 'flow',
|
|
1283
|
-
payload: JSON.stringify([
|
|
1284
|
-
{
|
|
1285
|
-
id: '',
|
|
1286
|
-
type: 'text',
|
|
1287
|
-
messages: [
|
|
1288
|
-
{
|
|
1289
|
-
value: '',
|
|
1290
|
-
message:
|
|
1291
|
-
'A linha Multiuso Premium Ypê garante praticidade e eficiência. Limpador de pequenas superfícies, para uma limpeza prática, rápida e eficiente. Podem ser utilizados em azulejos, pisos, vidros e fogão.\n\nCada uma das cinco versões possui um benefício extra, entregando a solução completa de limpeza para casa.',
|
|
1292
|
-
},
|
|
1293
|
-
],
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
id: '',
|
|
1297
|
-
type: 'text',
|
|
1298
|
-
messages: [
|
|
1299
|
-
{
|
|
1300
|
-
value: '',
|
|
1301
|
-
message:
|
|
1302
|
-
'A linha conta com as versões: \n \nCom Álcool - Fornece brilho sem embaçar.',
|
|
1303
|
-
},
|
|
1304
|
-
],
|
|
1305
|
-
},
|
|
1306
|
-
{
|
|
1307
|
-
id: '',
|
|
1308
|
-
type: 'image',
|
|
1309
|
-
messages: [
|
|
1310
|
-
{
|
|
1311
|
-
value: '',
|
|
1312
|
-
message: 'https://chatbot.dev.ypedia.com.br/images/bot/alcool.png',
|
|
1313
|
-
},
|
|
1314
|
-
],
|
|
1315
|
-
},
|
|
1316
|
-
{
|
|
1317
|
-
id: '',
|
|
1318
|
-
type: 'text',
|
|
1319
|
-
messages: [{ value: '', message: 'Clássico - Ação desengordurante.' }],
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
id: '',
|
|
1323
|
-
type: 'image',
|
|
1324
|
-
messages: [
|
|
1325
|
-
{
|
|
1326
|
-
value: '',
|
|
1327
|
-
message: 'https://chatbot.dev.ypedia.com.br/images/bot/classico.png',
|
|
1328
|
-
},
|
|
1329
|
-
],
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
id: '',
|
|
1333
|
-
type: 'text',
|
|
1334
|
-
messages: [
|
|
1335
|
-
{ value: '', message: 'Controle de Odor - Ação que controla odores.' },
|
|
1336
|
-
],
|
|
1337
|
-
},
|
|
1338
|
-
{
|
|
1339
|
-
id: '',
|
|
1340
|
-
type: 'image',
|
|
1341
|
-
messages: [
|
|
1342
|
-
{
|
|
1343
|
-
value: '',
|
|
1344
|
-
message:
|
|
1345
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/controle-odor (1).png',
|
|
1346
|
-
},
|
|
1347
|
-
],
|
|
1348
|
-
},
|
|
1349
|
-
{
|
|
1350
|
-
id: '',
|
|
1351
|
-
type: 'text',
|
|
1352
|
-
messages: [
|
|
1353
|
-
{
|
|
1354
|
-
value: '',
|
|
1355
|
-
message: 'Secagem Rápida - Proporciona a perfumação e seca rápido.',
|
|
1356
|
-
},
|
|
1357
|
-
],
|
|
1358
|
-
},
|
|
1359
|
-
{
|
|
1360
|
-
id: '',
|
|
1361
|
-
type: 'image',
|
|
1362
|
-
messages: [
|
|
1363
|
-
{
|
|
1364
|
-
value: '',
|
|
1365
|
-
message:
|
|
1366
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/secagem-rapida.png',
|
|
1367
|
-
},
|
|
1368
|
-
],
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
id: '',
|
|
1372
|
-
type: 'text',
|
|
1373
|
-
messages: [
|
|
1374
|
-
{ value: '', message: 'Tira Manchas - Ação em superfícies e tecidos.' },
|
|
1375
|
-
],
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
id: '',
|
|
1379
|
-
type: 'image',
|
|
1380
|
-
messages: [
|
|
1381
|
-
{
|
|
1382
|
-
value: '',
|
|
1383
|
-
message:
|
|
1384
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/tira-manchas.png',
|
|
1385
|
-
},
|
|
1386
|
-
],
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
id: '',
|
|
1390
|
-
type: 'text',
|
|
1391
|
-
messages: [
|
|
1392
|
-
{ value: '', message: 'Gostou de saber disso? Eu adorei! 🥰' },
|
|
1393
|
-
],
|
|
1394
|
-
},
|
|
1395
|
-
]),
|
|
1396
|
-
createdAt: new Date(),
|
|
1397
|
-
updatedAt: new Date(),
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
// Multiuso Premium Ypê modo uso
|
|
1401
|
-
|
|
1402
|
-
const multiusoPremiumModoDeUsoResponse = {
|
|
1403
|
-
id: '8a9cddcc-b4c4-4dd2-ae52-bb1206fb6b77',
|
|
1404
|
-
name: 'Multiuso Premium Ypê modo uso',
|
|
1405
|
-
SkillId,
|
|
1406
|
-
type: 'flow',
|
|
1407
|
-
createdAt: new Date(),
|
|
1408
|
-
updatedAt: new Date(),
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
const multiusoPremiumModoDeUsoResponseBox = {
|
|
1412
|
-
ResponseId: multiusoPremiumModoDeUsoResponse.id,
|
|
1413
|
-
ChannelTypeId: null,
|
|
1414
|
-
type: 'flow',
|
|
1415
|
-
payload: JSON.stringify([
|
|
1416
|
-
{
|
|
1417
|
-
id: '',
|
|
1418
|
-
type: 'text',
|
|
1419
|
-
messages: [
|
|
1420
|
-
{ value: '', message: 'Super fácil! 💙\n' },
|
|
1421
|
-
{ value: '', message: 'É bem simples! 💙\n' },
|
|
1422
|
-
{
|
|
1423
|
-
value: '',
|
|
1424
|
-
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
value: '',
|
|
1428
|
-
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
1429
|
-
},
|
|
1430
|
-
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
1431
|
-
],
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
id: '',
|
|
1435
|
-
type: 'text',
|
|
1436
|
-
messages: [
|
|
1437
|
-
{
|
|
1438
|
-
value: '',
|
|
1439
|
-
message:
|
|
1440
|
-
'• Passo 1: Umedeça um pano limpo e seco com o produto e espalhe sobre a superfície. \n\n• Passo 2: Enxugue com outro pano limpo e seco até sua remoção.\n\n• Passo 3: Em superfícies muito sujas, repita o processo.',
|
|
1441
|
-
},
|
|
1442
|
-
],
|
|
1443
|
-
},
|
|
1444
|
-
{
|
|
1445
|
-
id: '',
|
|
1446
|
-
type: 'text',
|
|
1447
|
-
messages: [
|
|
1448
|
-
{
|
|
1449
|
-
value: '',
|
|
1450
|
-
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
1451
|
-
},
|
|
1452
|
-
],
|
|
1453
|
-
},
|
|
1454
|
-
]),
|
|
1455
|
-
createdAt: new Date(),
|
|
1456
|
-
updatedAt: new Date(),
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
// Multiuso Premium Ypê menu
|
|
1460
|
-
|
|
1461
|
-
const multiusoPremiumMenuResponse = {
|
|
1462
|
-
id: 'e1db9eaf-39fd-42b3-8f97-c849e94c824c',
|
|
1463
|
-
name: 'Multiuso Premium Ypê menu',
|
|
1464
|
-
SkillId,
|
|
1465
|
-
type: 'flow',
|
|
1466
|
-
createdAt: new Date(),
|
|
1467
|
-
updatedAt: new Date(),
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
const multiusoPremiumMenuResponseBox = {
|
|
1471
|
-
ResponseId: multiusoPremiumMenuResponse.id,
|
|
1472
|
-
ChannelTypeId: null,
|
|
1473
|
-
type: 'flow',
|
|
1474
|
-
payload: JSON.stringify([
|
|
1475
|
-
{
|
|
1476
|
-
id: '',
|
|
1477
|
-
type: 'text',
|
|
1478
|
-
messages: [
|
|
1479
|
-
{
|
|
1480
|
-
value: '',
|
|
1481
|
-
message:
|
|
1482
|
-
'Pode deixar, vou te mostrar todos os detalhes do Multiuso Premium Ypê. Você vai adorar! 😄\n',
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
value: '',
|
|
1486
|
-
message:
|
|
1487
|
-
'Se bateu aquela curiosidade sobre o Multiuso Premium Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
1488
|
-
},
|
|
1489
|
-
{ value: '', message: 'Saiba tudo sobre o Multiuso Premium Ypê! 😃\n' },
|
|
1490
|
-
{
|
|
1491
|
-
value: '',
|
|
1492
|
-
message:
|
|
1493
|
-
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Multiuso Premium Ypê. 😃\n',
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
value: '',
|
|
1497
|
-
message:
|
|
1498
|
-
'Ficou mega interessado em conhecer mais sobre o Multiuso Premium Ypê? Não se preocupe, vou te explicar tudo. 😍',
|
|
1499
|
-
},
|
|
1500
|
-
],
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
id: '',
|
|
1504
|
-
type: 'image',
|
|
1505
|
-
messages: [
|
|
1506
|
-
{
|
|
1507
|
-
value: '',
|
|
1508
|
-
message:
|
|
1509
|
-
'https://chatbot.dev.ypedia.com.br/images/bot/multiuso5produtos.png',
|
|
1510
|
-
},
|
|
1511
|
-
],
|
|
1512
|
-
},
|
|
1513
|
-
]),
|
|
1514
|
-
createdAt: new Date(),
|
|
1515
|
-
updatedAt: new Date(),
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
// produtos 5 mais buscados menu
|
|
1519
|
-
|
|
1520
|
-
const produtos5maisBuscadosResponse = {
|
|
1521
|
-
id: 'e8ee9e54-11c2-4c70-9786-87ba543b403c',
|
|
1522
|
-
name: 'produtos 5 mais buscados menu',
|
|
1523
|
-
SkillId,
|
|
1524
|
-
type: 'flow',
|
|
1525
|
-
createdAt: new Date(),
|
|
1526
|
-
updatedAt: new Date(),
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
const produtos5maisBuscadosResponseBox = {
|
|
1530
|
-
ResponseId: produtos5maisBuscadosResponse.id,
|
|
1531
|
-
ChannelTypeId: null,
|
|
1532
|
-
type: 'flow',
|
|
1533
|
-
payload: JSON.stringify([
|
|
1534
|
-
{
|
|
1535
|
-
id: '',
|
|
1536
|
-
type: 'text',
|
|
1537
|
-
messages: [
|
|
1538
|
-
{
|
|
1539
|
-
value: '',
|
|
1540
|
-
message:
|
|
1541
|
-
'Quer saber quais são os produtos mais buscados pelos nossos clientes? 😍',
|
|
1542
|
-
},
|
|
1543
|
-
],
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
type: 'simple_button',
|
|
1547
|
-
text: 'Que tal conhecer um pouquinho sobre eles. É fácil, é só clicar em uma dessas opções.',
|
|
1548
|
-
buttons: [
|
|
1549
|
-
{ label: 'Detergente Ypê', value: 'menu_prod_deter_ype' },
|
|
1550
|
-
{ label: 'Sabão em Pó Tixan', value: 'sabaoPo' },
|
|
1551
|
-
{ label: 'Amaciante Essencial ', value: 'prod_amanc' },
|
|
1552
|
-
{ label: 'Água Sanitária Ypê', value: 'ag_sanit' },
|
|
1553
|
-
{ label: 'Multiuso Premium Ypê', value: 'multiPremium' },
|
|
1554
|
-
{ label: 'Linha Completa ', value: 'ConhecaLinhaCompleta' },
|
|
1555
|
-
{ label: 'Voltar', value: 'menu' },
|
|
1556
|
-
{ label: 'Sair', value: 'adeus' },
|
|
1557
|
-
],
|
|
1558
|
-
},
|
|
1559
|
-
]),
|
|
1560
|
-
createdAt: new Date(),
|
|
1561
|
-
updatedAt: new Date(),
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
// Dialog nodes
|
|
1565
|
-
|
|
1566
|
-
let menuProdutosDialogNodeFolder = {
|
|
1567
|
-
id: '772646d9-5aac-46e2-994c-3c2d205bfc3a',
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
let menuProdutosDialogNodeMenuMoreSearch = {
|
|
1571
|
-
id: '56002edb-6a56-4b85-9860-47c0bd05bfa5',
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
let menuProdutosDialogNodeMenuBenefis = {
|
|
1575
|
-
id: '342df8b3-81dd-4562-b705-69a307512700',
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
let menuProdutosDialogNodeMenuHowToUse = {
|
|
1579
|
-
id: '53105c9d-89c2-4c7e-b44f-e53ec500303a',
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
let welcomeDialogNode = {
|
|
1583
|
-
id: 'e7fe802f-2075-442b-974c-18855d6431ea',
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
let faqDialogNodeFolder = {
|
|
1587
|
-
id: '43c14eee-7ede-4c0f-b7d2-109730c6f76b',
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
let productsDialogNodeFolder = {
|
|
1591
|
-
id: '163059a6-9793-43a5-8a8c-e703854ae63a',
|
|
1592
|
-
}
|
|
1593
|
-
let productsMoreSearchDialogNode = {
|
|
1594
|
-
id: 'f872321f-8023-4a6c-b912-53ede5f3db1a',
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
let multiusoPrmiumDialogNodeBenefisHowToUse = {
|
|
1598
|
-
id: '5d724624-55d8-4bac-b9fa-98c70942c794',
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
let multiusoPrmiumDialogNodeFolder = {
|
|
1602
|
-
id: 'ca81d90b-f2b3-45d2-a17a-734157794031',
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
let multiusoPrmiumDialogNodeBenefis = {
|
|
1606
|
-
id: '5aeb1a7d-098b-46f4-a581-a5f6496cf63a',
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
let multiusoPrmiumDialogNodeHowToUse = {
|
|
1610
|
-
id: '2f644ee3-dadb-40ac-8923-4325f49befb4',
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
let aguaSanitariaDialogNodeBenefisHowToUse = {
|
|
1614
|
-
id: '70767cf5-b6ac-4a55-a86a-264ccf765258',
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
let aguaSanitariaDialogNodeBenefis = {
|
|
1618
|
-
id: '6e4afca3-5404-4514-a8ba-489fc25ee36c',
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
let aguaSanitariaDialogNodeHowToUse = {
|
|
1622
|
-
id: 'ca6b1802-2c9a-4658-9b04-3a85d28ad645',
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
let aguaSanitariaDialogNodeFolder = {
|
|
1626
|
-
id: '3c7e5b22-9a60-4744-9fd6-731c354a8568',
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
let amacianteEssencialDialogNodeBenefisHowToUse = {
|
|
1630
|
-
id: 'd6005784-9ecd-4b92-bbc3-69470b140f06',
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
let amacianteEssencialDialogNodeBenefis = {
|
|
1634
|
-
id: 'c3e4b7c8-9bbb-412d-b890-86b2c05cd0f3',
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
let amacianteEssencialDialogNodeHowToUse = {
|
|
1638
|
-
id: 'f88d46ba-9a35-438f-8d22-fbe9064e103f',
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
let amacianteEssencialDialogNodeFolder = {
|
|
1642
|
-
id: 'b1b933b9-3a51-452c-9f8b-2eda068410af',
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
let sabaoEmPoDialogNodeBeneficsHowToUse = {
|
|
1646
|
-
id: '354a74cc-fb65-4e53-a405-d117f543d64b',
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
let sabaoEmPoDialogNodeBenefics = {
|
|
1650
|
-
id: 'fb7d776f-f617-4843-b0c4-995369d61d73',
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
let sabaoEmPoDialogNodeHowToUse = {
|
|
1654
|
-
id: '5a08350f-bd31-4c1f-b5c6-e0ce85815416',
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
let sabaoEmPoDialogNodeFolder = {
|
|
1658
|
-
id: '21a876a0-b8f9-450a-ad75-ff3b921e6ac7',
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
let detergenteTraditionalDialogBeneficsHowToUse = {
|
|
1662
|
-
id: '42077993-2ab5-420e-958b-e4028c52169c',
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
let detergenteTraditionalDialogBenefics = {
|
|
1666
|
-
id: '74daef7a-58b9-4380-a435-2139d3e0f93c',
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
let detergenteTraditionalDialogNodeHowToUse = {
|
|
1670
|
-
id: '7653f184-7d9c-4ded-8f0c-b81e2c74ec95',
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
let detergenteTraditionalDialogNodeFolder = {
|
|
1674
|
-
id: 'f09c5ce7-6a86-483e-b275-f26356c6c6f4',
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
let productsMoreSearchDialogNodeFolder = {
|
|
1678
|
-
id: 'ca54b825-8caf-4f9b-8a56-5200b434d5b9',
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
welcomeDialogNode = {
|
|
1682
|
-
...welcomeDialogNode,
|
|
1683
|
-
name: 'menu_principal',
|
|
1684
|
-
condition: '#saudacao',
|
|
1685
|
-
SkillId,
|
|
1686
|
-
contexts: JSON.stringify({
|
|
1687
|
-
ID: 'C4',
|
|
1688
|
-
nivel_1: 'menu',
|
|
1689
|
-
nivel_2: '',
|
|
1690
|
-
nivel_3: '',
|
|
1691
|
-
}),
|
|
1692
|
-
step: 1,
|
|
1693
|
-
replayWait: true,
|
|
1694
|
-
type: 'node',
|
|
1695
|
-
isMultipleResponse: false,
|
|
1696
|
-
JumpToDialogNodeId: null,
|
|
1697
|
-
JumpToSkillId: null,
|
|
1698
|
-
DialogNodeFolderId: null,
|
|
1699
|
-
createdAt: new Date(),
|
|
1700
|
-
updatedAt: new Date(),
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
faqDialogNodeFolder = {
|
|
1704
|
-
...faqDialogNodeFolder,
|
|
1705
|
-
name: 'FAQs',
|
|
1706
|
-
condition: null,
|
|
1707
|
-
SkillId,
|
|
1708
|
-
contexts: '{}',
|
|
1709
|
-
step: 2,
|
|
1710
|
-
replayWait: true,
|
|
1711
|
-
type: 'folder',
|
|
1712
|
-
isMultipleResponse: false,
|
|
1713
|
-
JumpToDialogNodeId: null,
|
|
1714
|
-
JumpToSkillId: null,
|
|
1715
|
-
DialogNodeFolderId: null,
|
|
1716
|
-
createdAt: new Date(),
|
|
1717
|
-
updatedAt: new Date(),
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
productsDialogNodeFolder = {
|
|
1721
|
-
...productsDialogNodeFolder,
|
|
1722
|
-
name: 'Produtos',
|
|
1723
|
-
condition: null,
|
|
1724
|
-
SkillId,
|
|
1725
|
-
contexts: '{}',
|
|
1726
|
-
step: 1,
|
|
1727
|
-
replayWait: true,
|
|
1728
|
-
type: 'folder',
|
|
1729
|
-
isMultipleResponse: false,
|
|
1730
|
-
JumpToDialogNodeId: null,
|
|
1731
|
-
JumpToSkillId: null,
|
|
1732
|
-
DialogNodeFolderId: faqDialogNodeFolder.id,
|
|
1733
|
-
createdAt: new Date(),
|
|
1734
|
-
updatedAt: new Date(),
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
productsMoreSearchDialogNodeFolder = {
|
|
1738
|
-
...productsMoreSearchDialogNodeFolder,
|
|
1739
|
-
name: 'Produtos mais buscados',
|
|
1740
|
-
condition: null,
|
|
1741
|
-
SkillId,
|
|
1742
|
-
contexts: '{}',
|
|
1743
|
-
step: 1,
|
|
1744
|
-
replayWait: true,
|
|
1745
|
-
type: 'folder',
|
|
1746
|
-
isMultipleResponse: false,
|
|
1747
|
-
JumpToDialogNodeId: null,
|
|
1748
|
-
JumpToSkillId: null,
|
|
1749
|
-
DialogNodeFolderId: productsDialogNodeFolder.id,
|
|
1750
|
-
createdAt: new Date(),
|
|
1751
|
-
updatedAt: new Date(),
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
detergenteTraditionalDialogNodeFolder = {
|
|
1755
|
-
...detergenteTraditionalDialogNodeFolder,
|
|
1756
|
-
name: 'Detergente Tradicional',
|
|
1757
|
-
condition: null,
|
|
1758
|
-
SkillId,
|
|
1759
|
-
contexts: '{}',
|
|
1760
|
-
step: 1,
|
|
1761
|
-
replayWait: true,
|
|
1762
|
-
type: 'folder',
|
|
1763
|
-
isMultipleResponse: false,
|
|
1764
|
-
JumpToDialogNodeId: null,
|
|
1765
|
-
JumpToSkillId: null,
|
|
1766
|
-
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
1767
|
-
createdAt: new Date(),
|
|
1768
|
-
updatedAt: new Date(),
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
detergenteTraditionalDialogNodeHowToUse = {
|
|
1772
|
-
...detergenteTraditionalDialogNodeHowToUse,
|
|
1773
|
-
name: 'produtos_mais_buscados_modo_uso_detergente',
|
|
1774
|
-
condition:
|
|
1775
|
-
'#modo_de_usar_produtos && @produtos:detergente_tradicional || input.text == menu_prod_deter_ype_ModoUsar || $nivel_2 == menu_prod_deter_ype && @modo_usar',
|
|
1776
|
-
SkillId,
|
|
1777
|
-
contexts: JSON.stringify({
|
|
1778
|
-
ID: 'C7',
|
|
1779
|
-
nivel_2: 'menu_prod_deter_ype',
|
|
1780
|
-
nivel_3: 'C7',
|
|
1781
|
-
}),
|
|
1782
|
-
step: 1,
|
|
1783
|
-
replayWait: true,
|
|
1784
|
-
type: 'node',
|
|
1785
|
-
isMultipleResponse: false,
|
|
1786
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1787
|
-
JumpToSkillId: null,
|
|
1788
|
-
DialogNodeFolderId: detergenteTraditionalDialogNodeFolder.id,
|
|
1789
|
-
createdAt: new Date(),
|
|
1790
|
-
updatedAt: new Date(),
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
detergenteTraditionalDialogBenefics = {
|
|
1794
|
-
...detergenteTraditionalDialogBenefics,
|
|
1795
|
-
name: 'produtos_mais_buscados_beneficios_detergente',
|
|
1796
|
-
condition:
|
|
1797
|
-
'#beneficios_produtos && @produtos:detergente_tradicional || input.text == menu_prod_deter_ype_beneficio || $nivel_2 == menu_prod_deter_ype && @beneficios',
|
|
1798
|
-
SkillId,
|
|
1799
|
-
contexts: JSON.stringify({
|
|
1800
|
-
ID: 'C6',
|
|
1801
|
-
nivel_2: 'menu_prod_deter_ype',
|
|
1802
|
-
nivel_3: 'C6',
|
|
1803
|
-
}),
|
|
1804
|
-
step: 2,
|
|
1805
|
-
replayWait: true,
|
|
1806
|
-
type: 'node',
|
|
1807
|
-
isMultipleResponse: false,
|
|
1808
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
1809
|
-
JumpToSkillId: null,
|
|
1810
|
-
DialogNodeFolderId: detergenteTraditionalDialogNodeFolder.id,
|
|
1811
|
-
createdAt: new Date(),
|
|
1812
|
-
updatedAt: new Date(),
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
detergenteTraditionalDialogBeneficsHowToUse = {
|
|
1816
|
-
...detergenteTraditionalDialogBeneficsHowToUse,
|
|
1817
|
-
name: 'produtos_mais_buscados_beneficios_modo_uso_detergente',
|
|
1818
|
-
condition:
|
|
1819
|
-
'#produtos && @produtos:detergente_tradicional || input.text == menu_prod_deter_ype || $nivel_1 == produto_menu || @produtos:detergente_tradicional',
|
|
1820
|
-
SkillId,
|
|
1821
|
-
contexts: JSON.stringify({
|
|
1822
|
-
ID: 'C5',
|
|
1823
|
-
nivel_2: 'menu_prod_deter_ype',
|
|
1824
|
-
nivel_3: 'C5',
|
|
1825
|
-
}),
|
|
1826
|
-
step: 3,
|
|
1827
|
-
replayWait: true,
|
|
1828
|
-
type: 'node',
|
|
1829
|
-
isMultipleResponse: false,
|
|
1830
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
1831
|
-
JumpToSkillId: null,
|
|
1832
|
-
DialogNodeFolderId: detergenteTraditionalDialogNodeFolder.id,
|
|
1833
|
-
createdAt: new Date(),
|
|
1834
|
-
updatedAt: new Date(),
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
sabaoEmPoDialogNodeFolder = {
|
|
1838
|
-
...sabaoEmPoDialogNodeFolder,
|
|
1839
|
-
name: 'Sabão em pó Tixan',
|
|
1840
|
-
condition: null,
|
|
1841
|
-
SkillId,
|
|
1842
|
-
contexts: '{}',
|
|
1843
|
-
step: 2,
|
|
1844
|
-
replayWait: true,
|
|
1845
|
-
type: 'folder',
|
|
1846
|
-
isMultipleResponse: false,
|
|
1847
|
-
JumpToDialogNodeId: null,
|
|
1848
|
-
JumpToSkillId: null,
|
|
1849
|
-
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
1850
|
-
createdAt: new Date(),
|
|
1851
|
-
updatedAt: new Date(),
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
sabaoEmPoDialogNodeHowToUse = {
|
|
1855
|
-
...sabaoEmPoDialogNodeHowToUse,
|
|
1856
|
-
name: 'produtos_mais_buscados_modo_uso_sabao_po_tixan',
|
|
1857
|
-
condition:
|
|
1858
|
-
'#modo_de_usar_produtos && @produtos:sabao_em_po || input.text == produtos_sabaopotixan_ModoUsar || $nivel_2 == produtos_sabaopotixan && @modo_usar',
|
|
1859
|
-
SkillId,
|
|
1860
|
-
contexts: JSON.stringify({
|
|
1861
|
-
ID: 'C9',
|
|
1862
|
-
nivel_2: 'produtos_sabaopotixan',
|
|
1863
|
-
nivel_3: 'C9',
|
|
1864
|
-
}),
|
|
1865
|
-
step: 3,
|
|
1866
|
-
replayWait: true,
|
|
1867
|
-
type: 'node',
|
|
1868
|
-
isMultipleResponse: false,
|
|
1869
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1870
|
-
JumpToSkillId: null,
|
|
1871
|
-
DialogNodeFolderId: sabaoEmPoDialogNodeFolder.id,
|
|
1872
|
-
createdAt: new Date(),
|
|
1873
|
-
updatedAt: new Date(),
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
sabaoEmPoDialogNodeBenefics = {
|
|
1877
|
-
...sabaoEmPoDialogNodeBenefics,
|
|
1878
|
-
name: 'produtos_mais_buscados_benefícios_sabao_po_tixan_ype',
|
|
1879
|
-
condition:
|
|
1880
|
-
'#beneficios_produtos && @produtos:sabao_em_po || input.text == produtos_sabaopotixan_beneficio || $nivel_2 == produtos_sabaopotixan && @beneficios',
|
|
1881
|
-
SkillId,
|
|
1882
|
-
contexts: JSON.stringify({
|
|
1883
|
-
ID: 'C8',
|
|
1884
|
-
nivel_2: 'produtos_sabaopotixan',
|
|
1885
|
-
nivel_3: 'C8',
|
|
1886
|
-
}),
|
|
1887
|
-
step: 1,
|
|
1888
|
-
replayWait: true,
|
|
1889
|
-
type: 'node',
|
|
1890
|
-
isMultipleResponse: false,
|
|
1891
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1892
|
-
JumpToSkillId: null,
|
|
1893
|
-
DialogNodeFolderId: sabaoEmPoDialogNodeFolder.id,
|
|
1894
|
-
createdAt: new Date(),
|
|
1895
|
-
updatedAt: new Date(),
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
sabaoEmPoDialogNodeBeneficsHowToUse = {
|
|
1899
|
-
...sabaoEmPoDialogNodeBeneficsHowToUse,
|
|
1900
|
-
name: 'produtos_mais_buscados_benefícios_modo_uso_sabao_po_tixan',
|
|
1901
|
-
condition:
|
|
1902
|
-
'#produtos && @produtos:sabao_em_po || input.text == sabaoPo || $nivel_1 == produto_menu || @produtos:sabao_em_po',
|
|
1903
|
-
SkillId,
|
|
1904
|
-
contexts: JSON.stringify({
|
|
1905
|
-
ID: 'C10',
|
|
1906
|
-
nivel_2: 'produtos_sabaopotixan',
|
|
1907
|
-
nivel_3: 'C10',
|
|
1908
|
-
}),
|
|
1909
|
-
step: 2,
|
|
1910
|
-
replayWait: true,
|
|
1911
|
-
type: 'node',
|
|
1912
|
-
isMultipleResponse: false,
|
|
1913
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
1914
|
-
JumpToSkillId: null,
|
|
1915
|
-
DialogNodeFolderId: sabaoEmPoDialogNodeFolder.id,
|
|
1916
|
-
createdAt: new Date(),
|
|
1917
|
-
updatedAt: new Date(),
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
amacianteEssencialDialogNodeFolder = {
|
|
1921
|
-
id: 'b1b933b9-3a51-452c-9f8b-2eda068410af',
|
|
1922
|
-
name: 'Amaciante Essencial',
|
|
1923
|
-
condition: null,
|
|
1924
|
-
SkillId,
|
|
1925
|
-
contexts: '{}',
|
|
1926
|
-
step: 3,
|
|
1927
|
-
replayWait: true,
|
|
1928
|
-
type: 'folder',
|
|
1929
|
-
isMultipleResponse: false,
|
|
1930
|
-
JumpToDialogNodeId: null,
|
|
1931
|
-
JumpToSkillId: null,
|
|
1932
|
-
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
1933
|
-
createdAt: new Date(),
|
|
1934
|
-
updatedAt: new Date(),
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
amacianteEssencialDialogNodeHowToUse = {
|
|
1938
|
-
...amacianteEssencialDialogNodeHowToUse,
|
|
1939
|
-
name: 'produtos_mais_buscados_modo_uso_amaciante_essencial',
|
|
1940
|
-
condition:
|
|
1941
|
-
'#modo_de_usar_produtos && @produtos:amaciante || input.text == prod_amanc_ype_ModoUsar || $nivel_2 == prod_amanc_ype && @modo_usar',
|
|
1942
|
-
SkillId,
|
|
1943
|
-
contexts: JSON.stringify({
|
|
1944
|
-
ID: 'C12',
|
|
1945
|
-
nivel_2: 'prod_amanc_ype',
|
|
1946
|
-
nivel_3: 'C12',
|
|
1947
|
-
}),
|
|
1948
|
-
step: 1,
|
|
1949
|
-
replayWait: true,
|
|
1950
|
-
type: 'node',
|
|
1951
|
-
isMultipleResponse: false,
|
|
1952
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1953
|
-
JumpToSkillId: null,
|
|
1954
|
-
DialogNodeFolderId: amacianteEssencialDialogNodeFolder.id,
|
|
1955
|
-
createdAt: new Date(),
|
|
1956
|
-
updatedAt: new Date(),
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
amacianteEssencialDialogNodeBenefis = {
|
|
1960
|
-
...amacianteEssencialDialogNodeBenefis,
|
|
1961
|
-
name: 'produtos_mais_buscados_benefícios_amaciante_ype_essencial',
|
|
1962
|
-
condition:
|
|
1963
|
-
'#beneficios_produtos && @produtos:amaciante || input.text == prod_amanc_ype_beneficio || $nivel_2 == prod_amanc_ype && @beneficios',
|
|
1964
|
-
SkillId,
|
|
1965
|
-
contexts: JSON.stringify({
|
|
1966
|
-
ID: 'C11',
|
|
1967
|
-
nivel_2: 'prod_amanc_ype',
|
|
1968
|
-
nivel_3: 'C11',
|
|
1969
|
-
}),
|
|
1970
|
-
step: 2,
|
|
1971
|
-
replayWait: true,
|
|
1972
|
-
type: 'node',
|
|
1973
|
-
isMultipleResponse: false,
|
|
1974
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
1975
|
-
JumpToSkillId: null,
|
|
1976
|
-
DialogNodeFolderId: amacianteEssencialDialogNodeFolder.id,
|
|
1977
|
-
createdAt: new Date(),
|
|
1978
|
-
updatedAt: new Date(),
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
amacianteEssencialDialogNodeBenefisHowToUse = {
|
|
1982
|
-
...amacianteEssencialDialogNodeBenefisHowToUse,
|
|
1983
|
-
name: 'produtos_mais_buscados_benefícios_modo_uso_amaciante_essencial',
|
|
1984
|
-
condition:
|
|
1985
|
-
'#produtos && @produtos:amaciante || input.text == prod_amanc || $nivel_1 == produto_menu || @produtos:amaciante',
|
|
1986
|
-
SkillId,
|
|
1987
|
-
contexts: JSON.stringify({
|
|
1988
|
-
ID: 'C13',
|
|
1989
|
-
nivel_2: 'prod_amanc_ype',
|
|
1990
|
-
nivel_3: 'C13',
|
|
1991
|
-
}),
|
|
1992
|
-
step: 3,
|
|
1993
|
-
replayWait: true,
|
|
1994
|
-
type: 'node',
|
|
1995
|
-
isMultipleResponse: false,
|
|
1996
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
1997
|
-
JumpToSkillId: null,
|
|
1998
|
-
DialogNodeFolderId: amacianteEssencialDialogNodeFolder.id,
|
|
1999
|
-
createdAt: new Date(),
|
|
2000
|
-
updatedAt: new Date(),
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
aguaSanitariaDialogNodeFolder = {
|
|
2004
|
-
...aguaSanitariaDialogNodeFolder,
|
|
2005
|
-
name: 'Água Sanitária',
|
|
2006
|
-
condition: null,
|
|
2007
|
-
SkillId,
|
|
2008
|
-
contexts: '{}',
|
|
2009
|
-
step: 4,
|
|
2010
|
-
replayWait: true,
|
|
2011
|
-
type: 'folder',
|
|
2012
|
-
isMultipleResponse: false,
|
|
2013
|
-
JumpToDialogNodeId: null,
|
|
2014
|
-
JumpToSkillId: null,
|
|
2015
|
-
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
2016
|
-
createdAt: new Date(),
|
|
2017
|
-
updatedAt: new Date(),
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
aguaSanitariaDialogNodeHowToUse = {
|
|
2021
|
-
...aguaSanitariaDialogNodeHowToUse,
|
|
2022
|
-
name: 'produtos_mais_buscados_modo_uso_agua_sanitaria',
|
|
2023
|
-
condition:
|
|
2024
|
-
'#modo_de_usar_produtos && @produtos:agua_sanitaria || input.text == produtos_ag_sanit_ModoUsar || $nivel_2 == produtos_ag_sanit && @modo_usar',
|
|
2025
|
-
SkillId,
|
|
2026
|
-
contexts: JSON.stringify({
|
|
2027
|
-
ID: 'C16',
|
|
2028
|
-
nivel_2: 'produtos_ag_sanit',
|
|
2029
|
-
nivel_3: 'C16',
|
|
2030
|
-
}),
|
|
2031
|
-
step: 1,
|
|
2032
|
-
replayWait: true,
|
|
2033
|
-
type: 'node',
|
|
2034
|
-
isMultipleResponse: false,
|
|
2035
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
2036
|
-
JumpToSkillId: null,
|
|
2037
|
-
DialogNodeFolderId: aguaSanitariaDialogNodeFolder.id,
|
|
2038
|
-
createdAt: new Date(),
|
|
2039
|
-
updatedAt: new Date(),
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
aguaSanitariaDialogNodeBenefis = {
|
|
2043
|
-
...aguaSanitariaDialogNodeBenefis,
|
|
2044
|
-
name: 'produtos_mais_buscados_benefícios_agua_sanitaria',
|
|
2045
|
-
condition:
|
|
2046
|
-
'#beneficios_produtos && @produtos:agua_sanitaria || input.text == produtos_ag_sanit_beneficio || $nivel_2 == produtos_ag_sanit && @beneficios',
|
|
2047
|
-
SkillId,
|
|
2048
|
-
contexts: JSON.stringify({
|
|
2049
|
-
ID: 'C15',
|
|
2050
|
-
nivel_2: 'produtos_ag_sanit',
|
|
2051
|
-
nivel_3: 'C15',
|
|
2052
|
-
}),
|
|
2053
|
-
step: 2,
|
|
2054
|
-
replayWait: true,
|
|
2055
|
-
type: 'node',
|
|
2056
|
-
isMultipleResponse: false,
|
|
2057
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
2058
|
-
JumpToSkillId: null,
|
|
2059
|
-
DialogNodeFolderId: aguaSanitariaDialogNodeFolder.id,
|
|
2060
|
-
createdAt: new Date(),
|
|
2061
|
-
updatedAt: new Date(),
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
aguaSanitariaDialogNodeBenefisHowToUse = {
|
|
2065
|
-
...aguaSanitariaDialogNodeBenefisHowToUse,
|
|
2066
|
-
name: 'produtos_mais_buscados_benefícios_modo_uso_agua_sanitaria',
|
|
2067
|
-
condition:
|
|
2068
|
-
'#produtos && @produtos:agua_sanitaria || input.text == ag_sanit || $nivel_1 == produto_menu && @produtos:agua_sanitaria || @produtos:agua_sanitaria',
|
|
2069
|
-
SkillId,
|
|
2070
|
-
contexts: JSON.stringify({
|
|
2071
|
-
ID: 'C14',
|
|
2072
|
-
nivel_2: 'produtos_ag_sanit',
|
|
2073
|
-
nivel_3: 'C14',
|
|
2074
|
-
}),
|
|
2075
|
-
step: 3,
|
|
2076
|
-
replayWait: true,
|
|
2077
|
-
type: 'node',
|
|
2078
|
-
isMultipleResponse: false,
|
|
2079
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
2080
|
-
JumpToSkillId: null,
|
|
2081
|
-
DialogNodeFolderId: aguaSanitariaDialogNodeFolder.id,
|
|
2082
|
-
createdAt: new Date(),
|
|
2083
|
-
updatedAt: new Date(),
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
multiusoPrmiumDialogNodeFolder = {
|
|
2087
|
-
...multiusoPrmiumDialogNodeFolder,
|
|
2088
|
-
name: 'Multiuso Premium',
|
|
2089
|
-
condition: null,
|
|
2090
|
-
SkillId,
|
|
2091
|
-
contexts: '{}',
|
|
2092
|
-
step: 5,
|
|
2093
|
-
replayWait: true,
|
|
2094
|
-
type: 'folder',
|
|
2095
|
-
isMultipleResponse: false,
|
|
2096
|
-
JumpToDialogNodeId: null,
|
|
2097
|
-
JumpToSkillId: null,
|
|
2098
|
-
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
2099
|
-
createdAt: new Date(),
|
|
2100
|
-
updatedAt: new Date(),
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
multiusoPrmiumDialogNodeBenefis = {
|
|
2104
|
-
...multiusoPrmiumDialogNodeBenefis,
|
|
2105
|
-
name: 'produtos_mais_buscados_benefícios_multioso_premium',
|
|
2106
|
-
condition:
|
|
2107
|
-
'#beneficios_produtos && @produtos:multiuso_premiun || input.text == Produtos_MultiusoPremium_beneficio || $nivel_2 == Produtos_MultiusoPremium && @beneficios',
|
|
2108
|
-
SkillId,
|
|
2109
|
-
contexts: JSON.stringify({
|
|
2110
|
-
ID: 'C17',
|
|
2111
|
-
nivel_2: 'Produtos_MultiusoPremium',
|
|
2112
|
-
nivel_3: 'C17',
|
|
2113
|
-
}),
|
|
2114
|
-
step: 1,
|
|
2115
|
-
replayWait: true,
|
|
2116
|
-
type: 'node',
|
|
2117
|
-
isMultipleResponse: false,
|
|
2118
|
-
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
2119
|
-
JumpToSkillId: null,
|
|
2120
|
-
DialogNodeFolderId: multiusoPrmiumDialogNodeFolder.id,
|
|
2121
|
-
createdAt: new Date(),
|
|
2122
|
-
updatedAt: new Date(),
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
multiusoPrmiumDialogNodeHowToUse = {
|
|
2126
|
-
...multiusoPrmiumDialogNodeHowToUse,
|
|
2127
|
-
name: 'produtos_mais_buscados_modo_uso_multioso_premium',
|
|
2128
|
-
condition:
|
|
2129
|
-
'#modo_de_usar_produtos && @produtos:multiuso_premiun || input.text == Produtos_MultiusoPremium_ModoUsar || $nivel_2 == Produtos_MultiusoPremium && @modo_usar',
|
|
2130
|
-
SkillId,
|
|
2131
|
-
contexts: JSON.stringify({
|
|
2132
|
-
ID: 'C18',
|
|
2133
|
-
nivel_2: 'Produtos_MultiusoPremium',
|
|
2134
|
-
nivel_3: 'C18',
|
|
2135
|
-
}),
|
|
2136
|
-
step: 2,
|
|
2137
|
-
replayWait: true,
|
|
2138
|
-
type: 'node',
|
|
2139
|
-
isMultipleResponse: false,
|
|
2140
|
-
JumpToDialogNodeId: null,
|
|
2141
|
-
JumpToSkillId: null,
|
|
2142
|
-
DialogNodeFolderId: multiusoPrmiumDialogNodeFolder.id,
|
|
2143
|
-
createdAt: new Date(),
|
|
2144
|
-
updatedAt: new Date(),
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
multiusoPrmiumDialogNodeBenefisHowToUse = {
|
|
2148
|
-
...multiusoPrmiumDialogNodeBenefisHowToUse,
|
|
2149
|
-
name: 'produtos_mais_buscados_benefícios_modo_uso_multioso_premium',
|
|
2150
|
-
condition:
|
|
2151
|
-
'#produtos && @produtos:multiuso_premiun || input.text == multiPremium || $nivel_1 == produto_menu || @produtos:multiuso_premiun',
|
|
2152
|
-
SkillId,
|
|
2153
|
-
contexts: JSON.stringify({
|
|
2154
|
-
ID: 'C19',
|
|
2155
|
-
nivel_2: 'Produtos_MultiusoPremium',
|
|
2156
|
-
nivel_3: 'C19',
|
|
2157
|
-
}),
|
|
2158
|
-
step: 2,
|
|
2159
|
-
replayWait: true,
|
|
2160
|
-
type: 'node',
|
|
2161
|
-
isMultipleResponse: false,
|
|
2162
|
-
JumpToDialogNodeId: null,
|
|
2163
|
-
JumpToSkillId: null,
|
|
2164
|
-
DialogNodeFolderId: multiusoPrmiumDialogNodeFolder.id,
|
|
2165
|
-
createdAt: new Date(),
|
|
2166
|
-
updatedAt: new Date(),
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
menuProdutosDialogNodeFolder = {
|
|
2170
|
-
...menuProdutosDialogNodeFolder,
|
|
2171
|
-
name: 'menu produtos',
|
|
2172
|
-
condition: null,
|
|
2173
|
-
SkillId,
|
|
2174
|
-
contexts: '{}',
|
|
2175
|
-
step: 2,
|
|
2176
|
-
replayWait: true,
|
|
2177
|
-
type: 'folder',
|
|
2178
|
-
isMultipleResponse: false,
|
|
2179
|
-
JumpToDialogNodeId: null,
|
|
2180
|
-
JumpToSkillId: null,
|
|
2181
|
-
DialogNodeFolderId: productsDialogNodeFolder.id,
|
|
2182
|
-
createdAt: new Date(),
|
|
2183
|
-
updatedAt: new Date(),
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
menuProdutosDialogNodeMenuMoreSearch = {
|
|
2187
|
-
...menuProdutosDialogNodeMenuMoreSearch,
|
|
2188
|
-
name: 'produtos_menu_produtos_mais_buscado',
|
|
2189
|
-
condition: null,
|
|
2190
|
-
SkillId,
|
|
2191
|
-
contexts: JSON.stringify({
|
|
2192
|
-
ID: 'C20',
|
|
2193
|
-
nivel_3: 'produtos',
|
|
2194
|
-
}),
|
|
2195
|
-
step: 1,
|
|
2196
|
-
replayWait: true,
|
|
2197
|
-
type: 'node',
|
|
2198
|
-
isMultipleResponse: false,
|
|
2199
|
-
JumpToDialogNodeId: null,
|
|
2200
|
-
JumpToSkillId: null,
|
|
2201
|
-
DialogNodeFolderId: menuProdutosDialogNodeFolder.id,
|
|
2202
|
-
createdAt: new Date(),
|
|
2203
|
-
updatedAt: new Date(),
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
menuProdutosDialogNodeMenuBenefis = {
|
|
2207
|
-
...menuProdutosDialogNodeMenuBenefis,
|
|
2208
|
-
name: 'produtos_menu_produtos_beneficios',
|
|
2209
|
-
condition: null,
|
|
2210
|
-
SkillId,
|
|
2211
|
-
contexts: JSON.stringify({
|
|
2212
|
-
ID: 'C21',
|
|
2213
|
-
nivel_3: 'produtos',
|
|
2214
|
-
}),
|
|
2215
|
-
step: 2,
|
|
2216
|
-
replayWait: true,
|
|
2217
|
-
type: 'node',
|
|
2218
|
-
isMultipleResponse: false,
|
|
2219
|
-
JumpToDialogNodeId: null,
|
|
2220
|
-
JumpToSkillId: null,
|
|
2221
|
-
DialogNodeFolderId: menuProdutosDialogNodeFolder.id,
|
|
2222
|
-
createdAt: new Date(),
|
|
2223
|
-
updatedAt: new Date(),
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
menuProdutosDialogNodeMenuHowToUse = {
|
|
2227
|
-
...menuProdutosDialogNodeMenuHowToUse,
|
|
2228
|
-
name: 'produtos_menu_produtos_mododeusar',
|
|
2229
|
-
condition: null,
|
|
2230
|
-
SkillId,
|
|
2231
|
-
contexts: JSON.stringify({
|
|
2232
|
-
ID: 'C22',
|
|
2233
|
-
nivel_3: 'produtos',
|
|
2234
|
-
}),
|
|
2235
|
-
step: 3,
|
|
2236
|
-
replayWait: true,
|
|
2237
|
-
type: 'node',
|
|
2238
|
-
isMultipleResponse: false,
|
|
2239
|
-
JumpToDialogNodeId: null,
|
|
2240
|
-
JumpToSkillId: null,
|
|
2241
|
-
DialogNodeFolderId: menuProdutosDialogNodeFolder.id,
|
|
2242
|
-
createdAt: new Date(),
|
|
2243
|
-
updatedAt: new Date(),
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
productsMoreSearchDialogNode = {
|
|
2247
|
-
...productsMoreSearchDialogNode,
|
|
2248
|
-
name: 'produtos_mais_buscados',
|
|
2249
|
-
condition:
|
|
2250
|
-
'input.text == menu_produtos_mais_buscados || input.text == voltar_menu_produtos || input.text == botao_prod || $nivel_3 == produtos && @voltar',
|
|
2251
|
-
SkillId,
|
|
2252
|
-
contexts: JSON.stringify({
|
|
2253
|
-
ID: 'C23',
|
|
2254
|
-
nivel_1: 'produto_menu',
|
|
2255
|
-
nivel_2: '',
|
|
2256
|
-
nivel_3: 'menu',
|
|
2257
|
-
}),
|
|
2258
|
-
step: 3,
|
|
2259
|
-
replayWait: true,
|
|
2260
|
-
type: 'node',
|
|
2261
|
-
isMultipleResponse: false,
|
|
2262
|
-
JumpToDialogNodeId: null,
|
|
2263
|
-
JumpToSkillId: null,
|
|
2264
|
-
DialogNodeFolderId: productsDialogNodeFolder.id,
|
|
2265
|
-
createdAt: new Date(),
|
|
2266
|
-
updatedAt: new Date(),
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
// To create on database
|
|
2270
|
-
|
|
2271
|
-
const intentions = [
|
|
2272
|
-
welcomeIntention,
|
|
2273
|
-
benefitsProductIntention,
|
|
2274
|
-
productsIntention,
|
|
2275
|
-
howToUseProductsIntention,
|
|
2276
|
-
]
|
|
2277
|
-
const intentionsValues = [
|
|
2278
|
-
...welcomeIntentionIntentionValues,
|
|
2279
|
-
...benefitsProductIntentionValues,
|
|
2280
|
-
...productsIntentionValues,
|
|
2281
|
-
...howToUseProductsIntentionValues,
|
|
2282
|
-
]
|
|
2283
|
-
|
|
2284
|
-
const entities = [benefitsEntity, productEntity, howToUseEntity]
|
|
2285
|
-
const entityValues = [
|
|
2286
|
-
...benefitsEntityValues,
|
|
2287
|
-
...productEntityValues,
|
|
2288
|
-
...howToUseEntityValues,
|
|
2289
|
-
]
|
|
2290
|
-
const synonyms = [
|
|
2291
|
-
...benefitsEntitySynonyms,
|
|
2292
|
-
...productEntitySynonyms,
|
|
2293
|
-
...howToUseEntitySynonyms,
|
|
2294
|
-
]
|
|
2295
|
-
|
|
2296
|
-
const responses = [
|
|
2297
|
-
detergenteTradicionalResponse,
|
|
2298
|
-
detergenteTradicionalMenuResponse,
|
|
2299
|
-
sabaoEmPoTixanResponse,
|
|
2300
|
-
sabaoEmPoTixanBeneficioResponse,
|
|
2301
|
-
amacianteEssencialResponse,
|
|
2302
|
-
amacianteEssencialBeneficioResponse,
|
|
2303
|
-
menuYpeResponse,
|
|
2304
|
-
amacianteEssencialMenuResponse,
|
|
2305
|
-
aguaSanitariaModoDeUsoResponse,
|
|
2306
|
-
aguaSanitariaBeneficioResponse,
|
|
2307
|
-
detergenteTradicionalMenuResponseBeneficio,
|
|
2308
|
-
sabaoEmPoTixanMenuResponse,
|
|
2309
|
-
aguaSanitariaMenuResponse,
|
|
2310
|
-
multiusoPremiumBeneficioResponse,
|
|
2311
|
-
multiusoPremiumModoDeUsoResponse,
|
|
2312
|
-
multiusoPremiumMenuResponse,
|
|
2313
|
-
produtos5maisBuscadosResponse,
|
|
2314
|
-
]
|
|
2315
|
-
const responsesBoxes = [
|
|
2316
|
-
detergenteTradicionalResponseBox,
|
|
2317
|
-
detergenteTradicionalMenuResponseBox,
|
|
2318
|
-
sabaoEmPoTixanResponseBox,
|
|
2319
|
-
sabaoEmPoTixanBeneficioResponseBox,
|
|
2320
|
-
amacianteEssencialResponseBox,
|
|
2321
|
-
amacianteEssencialBeneficioResponseBox,
|
|
2322
|
-
menuYpeResponseBox,
|
|
2323
|
-
amacianteEssencialMenuResponseBox,
|
|
2324
|
-
aguaSanitariaModoDeUsoResponseBox,
|
|
2325
|
-
aguaSanitariaBeneficioResponseBox,
|
|
2326
|
-
detergenteTradicionalMenuResponseBeneficioBox,
|
|
2327
|
-
sabaoEmPoTixanMenuResponseBox,
|
|
2328
|
-
aguaSanitariaMenuResponseBox,
|
|
2329
|
-
multiusoPremiumBeneficioResponseBox,
|
|
2330
|
-
multiusoPremiumModoDeUsoResponseBox,
|
|
2331
|
-
multiusoPremiumMenuResponseBox,
|
|
2332
|
-
produtos5maisBuscadosResponseBox,
|
|
2333
|
-
]
|
|
2334
|
-
|
|
2335
|
-
const dialogNodes = [
|
|
2336
|
-
welcomeDialogNode, // --> nivel 1
|
|
2337
|
-
faqDialogNodeFolder, // --> nivel 1
|
|
2338
|
-
productsDialogNodeFolder, // children faqDialogNodeFolder --> nivel 2
|
|
2339
|
-
|
|
2340
|
-
productsMoreSearchDialogNodeFolder, // children productsDialogNodeFolder --> nivel 3
|
|
2341
|
-
|
|
2342
|
-
detergenteTraditionalDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2343
|
-
|
|
2344
|
-
detergenteTraditionalDialogNodeHowToUse, // children detergenteTraditionalDialogNodeFolder --> nivel 5
|
|
2345
|
-
detergenteTraditionalDialogBenefics, // children detergenteTraditionalDialogNodeFolder --> nivel 5
|
|
2346
|
-
detergenteTraditionalDialogBeneficsHowToUse, // children detergenteTraditionalDialogNodeFolder --> nivel 5
|
|
2347
|
-
|
|
2348
|
-
sabaoEmPoDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2349
|
-
|
|
2350
|
-
sabaoEmPoDialogNodeHowToUse, // children sabaoEmPoDialogNodeFolder --> nivel 5
|
|
2351
|
-
sabaoEmPoDialogNodeBenefics, // children sabaoEmPoDialogNodeFolder --> nivel 5
|
|
2352
|
-
sabaoEmPoDialogNodeBeneficsHowToUse, // children sabaoEmPoDialogNodeFolder --> nivel 5
|
|
2353
|
-
|
|
2354
|
-
amacianteEssencialDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2355
|
-
|
|
2356
|
-
amacianteEssencialDialogNodeHowToUse, // children amacianteEssencialDialogNodeFolder --> nivel 5
|
|
2357
|
-
amacianteEssencialDialogNodeBenefis, // children amacianteEssencialDialogNodeFolder --> nivel 5
|
|
2358
|
-
amacianteEssencialDialogNodeBenefisHowToUse, // children amacianteEssencialDialogNodeFolder --> nivel 5
|
|
2359
|
-
|
|
2360
|
-
aguaSanitariaDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2361
|
-
|
|
2362
|
-
aguaSanitariaDialogNodeHowToUse, // children aguaSanitariaDialogNodeFolder --> nivel 5
|
|
2363
|
-
aguaSanitariaDialogNodeBenefis, // children aguaSanitariaDialogNodeFolder --> nivel 5
|
|
2364
|
-
aguaSanitariaDialogNodeBenefisHowToUse, // children aguaSanitariaDialogNodeFolder --> nivel 5
|
|
2365
|
-
|
|
2366
|
-
multiusoPrmiumDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2367
|
-
|
|
2368
|
-
multiusoPrmiumDialogNodeBenefis, // children multiusoPrmiumDialogNodeFolder --> nivel 5
|
|
2369
|
-
multiusoPrmiumDialogNodeHowToUse, // children multiusoPrmiumDialogNodeFolder --> nivel 5
|
|
2370
|
-
multiusoPrmiumDialogNodeBenefisHowToUse, // children multiusoPrmiumDialogNodeFolder --> nivel 5
|
|
2371
|
-
|
|
2372
|
-
menuProdutosDialogNodeFolder, // children productsDialogNodeFolder --> nivel 3
|
|
2373
|
-
|
|
2374
|
-
menuProdutosDialogNodeMenuMoreSearch, // children menuProdutosDialogNodeFolder --> nivel 4
|
|
2375
|
-
menuProdutosDialogNodeMenuBenefis, // children menuProdutosDialogNodeFolder --> nivel 4
|
|
2376
|
-
menuProdutosDialogNodeMenuHowToUse, // children menuProdutosDialogNodeFolder --> nivel 4
|
|
2377
|
-
|
|
2378
|
-
productsMoreSearchDialogNode, // children productsDialogNodeFolder --> nivel 3
|
|
2379
|
-
]
|
|
2380
|
-
|
|
2381
|
-
module.exports = {
|
|
2382
|
-
up: async (queryInterface, Sequelize) => {
|
|
2383
|
-
const ibmIntelligenceId = await queryInterface.rawSelect(
|
|
2384
|
-
'Intelligences',
|
|
2385
|
-
{
|
|
2386
|
-
where: {
|
|
2387
|
-
providerType: 'ibm',
|
|
2388
|
-
},
|
|
2389
|
-
},
|
|
2390
|
-
['id']
|
|
2391
|
-
)
|
|
2392
|
-
|
|
2393
|
-
const channelTypeId = await queryInterface.rawSelect(
|
|
2394
|
-
'ChannelTypes',
|
|
2395
|
-
{
|
|
2396
|
-
where: {
|
|
2397
|
-
channelName: 'webchat',
|
|
2398
|
-
},
|
|
2399
|
-
},
|
|
2400
|
-
['id']
|
|
2401
|
-
)
|
|
2402
|
-
|
|
2403
|
-
const ibmProviderId = 'f5cc3829-e441-452f-9bea-70581bde9eff'
|
|
2404
|
-
await queryInterface.bulkInsert(
|
|
2405
|
-
'Skills',
|
|
2406
|
-
[
|
|
2407
|
-
{
|
|
2408
|
-
id: SkillId,
|
|
2409
|
-
IntelligenceId: ibmIntelligenceId,
|
|
2410
|
-
AwsProviderId: null,
|
|
2411
|
-
ItleanProviderId: null,
|
|
2412
|
-
IbmProviderId: ibmProviderId,
|
|
2413
|
-
name: 'ype_test ',
|
|
2414
|
-
description: 'ype test created by seeders',
|
|
2415
|
-
lang: 'pt-br',
|
|
2416
|
-
createdAt: new Date(),
|
|
2417
|
-
updatedAt: new Date(),
|
|
2418
|
-
},
|
|
2419
|
-
],
|
|
2420
|
-
{}
|
|
2421
|
-
)
|
|
2422
|
-
|
|
2423
|
-
await queryInterface.bulkInsert('Intentions', intentions, {})
|
|
2424
|
-
await queryInterface.bulkInsert('IntentionValues', intentionsValues, {})
|
|
2425
|
-
|
|
2426
|
-
await queryInterface.bulkInsert('Entities', entities, {})
|
|
2427
|
-
await queryInterface.bulkInsert('EntityValues', entityValues, {})
|
|
2428
|
-
await queryInterface.bulkInsert('Synonyms', synonyms, {})
|
|
2429
|
-
|
|
2430
|
-
for (const responseBox of responsesBoxes) {
|
|
2431
|
-
responseBox.ChannelTypeId = channelTypeId
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2434
|
-
await queryInterface.bulkInsert('Responses', responses, {})
|
|
2435
|
-
await queryInterface.bulkInsert('ResponsesBoxes', responsesBoxes, {})
|
|
2436
|
-
|
|
2437
|
-
await queryInterface.bulkInsert('DialogNodes', dialogNodes, {})
|
|
2438
|
-
|
|
2439
|
-
await queryInterface.bulkInsert('Response_DialogNodes', [
|
|
2440
|
-
{
|
|
2441
|
-
DialogNodeId: welcomeDialogNode.id,
|
|
2442
|
-
ResponseId: menuYpeResponse.id,
|
|
2443
|
-
createdAt: new Date(),
|
|
2444
|
-
updatedAt: new Date(),
|
|
2445
|
-
},
|
|
2446
|
-
{
|
|
2447
|
-
DialogNodeId: detergenteTraditionalDialogNodeHowToUse.id,
|
|
2448
|
-
ResponseId: detergenteTradicionalResponse.id,
|
|
2449
|
-
createdAt: new Date(),
|
|
2450
|
-
updatedAt: new Date(),
|
|
2451
|
-
},
|
|
2452
|
-
{
|
|
2453
|
-
DialogNodeId: detergenteTraditionalDialogBenefics.id,
|
|
2454
|
-
ResponseId: detergenteTradicionalMenuResponseBeneficio.id,
|
|
2455
|
-
createdAt: new Date(),
|
|
2456
|
-
updatedAt: new Date(),
|
|
2457
|
-
},
|
|
2458
|
-
{
|
|
2459
|
-
DialogNodeId: detergenteTraditionalDialogBeneficsHowToUse.id,
|
|
2460
|
-
ResponseId: detergenteTradicionalMenuResponse.id,
|
|
2461
|
-
createdAt: new Date(),
|
|
2462
|
-
updatedAt: new Date(),
|
|
2463
|
-
},
|
|
2464
|
-
|
|
2465
|
-
{
|
|
2466
|
-
DialogNodeId: sabaoEmPoDialogNodeBenefics.id,
|
|
2467
|
-
ResponseId: sabaoEmPoTixanBeneficioResponse.id,
|
|
2468
|
-
createdAt: new Date(),
|
|
2469
|
-
updatedAt: new Date(),
|
|
2470
|
-
},
|
|
2471
|
-
{
|
|
2472
|
-
DialogNodeId: sabaoEmPoDialogNodeBeneficsHowToUse.id,
|
|
2473
|
-
ResponseId: sabaoEmPoTixanMenuResponse.id,
|
|
2474
|
-
createdAt: new Date(),
|
|
2475
|
-
updatedAt: new Date(),
|
|
2476
|
-
},
|
|
2477
|
-
{
|
|
2478
|
-
DialogNodeId: sabaoEmPoDialogNodeHowToUse.id,
|
|
2479
|
-
ResponseId: sabaoEmPoTixanResponse.id,
|
|
2480
|
-
createdAt: new Date(),
|
|
2481
|
-
updatedAt: new Date(),
|
|
2482
|
-
},
|
|
2483
|
-
|
|
2484
|
-
{
|
|
2485
|
-
DialogNodeId: amacianteEssencialDialogNodeBenefis.id,
|
|
2486
|
-
ResponseId: amacianteEssencialBeneficioResponse.id,
|
|
2487
|
-
createdAt: new Date(),
|
|
2488
|
-
updatedAt: new Date(),
|
|
2489
|
-
},
|
|
2490
|
-
{
|
|
2491
|
-
DialogNodeId: amacianteEssencialDialogNodeHowToUse.id,
|
|
2492
|
-
ResponseId: amacianteEssencialResponse.id,
|
|
2493
|
-
createdAt: new Date(),
|
|
2494
|
-
updatedAt: new Date(),
|
|
2495
|
-
},
|
|
2496
|
-
{
|
|
2497
|
-
DialogNodeId: amacianteEssencialDialogNodeBenefisHowToUse.id,
|
|
2498
|
-
ResponseId: amacianteEssencialMenuResponse.id,
|
|
2499
|
-
createdAt: new Date(),
|
|
2500
|
-
updatedAt: new Date(),
|
|
2501
|
-
},
|
|
2502
|
-
|
|
2503
|
-
{
|
|
2504
|
-
DialogNodeId: aguaSanitariaDialogNodeHowToUse.id,
|
|
2505
|
-
ResponseId: aguaSanitariaModoDeUsoResponse.id,
|
|
2506
|
-
createdAt: new Date(),
|
|
2507
|
-
updatedAt: new Date(),
|
|
2508
|
-
},
|
|
2509
|
-
{
|
|
2510
|
-
DialogNodeId: aguaSanitariaDialogNodeBenefis.id,
|
|
2511
|
-
ResponseId: aguaSanitariaBeneficioResponse.id,
|
|
2512
|
-
createdAt: new Date(),
|
|
2513
|
-
updatedAt: new Date(),
|
|
2514
|
-
},
|
|
2515
|
-
{
|
|
2516
|
-
DialogNodeId: aguaSanitariaDialogNodeBenefisHowToUse.id,
|
|
2517
|
-
ResponseId: aguaSanitariaMenuResponse.id,
|
|
2518
|
-
createdAt: new Date(),
|
|
2519
|
-
updatedAt: new Date(),
|
|
2520
|
-
},
|
|
2521
|
-
|
|
2522
|
-
{
|
|
2523
|
-
DialogNodeId: multiusoPrmiumDialogNodeBenefis.id,
|
|
2524
|
-
ResponseId: multiusoPremiumBeneficioResponse.id,
|
|
2525
|
-
createdAt: new Date(),
|
|
2526
|
-
updatedAt: new Date(),
|
|
2527
|
-
},
|
|
2528
|
-
{
|
|
2529
|
-
DialogNodeId: multiusoPrmiumDialogNodeHowToUse.id,
|
|
2530
|
-
ResponseId: multiusoPremiumModoDeUsoResponse.id,
|
|
2531
|
-
createdAt: new Date(),
|
|
2532
|
-
updatedAt: new Date(),
|
|
2533
|
-
},
|
|
2534
|
-
{
|
|
2535
|
-
DialogNodeId: multiusoPrmiumDialogNodeBenefisHowToUse.id,
|
|
2536
|
-
ResponseId: multiusoPremiumMenuResponse.id,
|
|
2537
|
-
createdAt: new Date(),
|
|
2538
|
-
updatedAt: new Date(),
|
|
2539
|
-
},
|
|
2540
|
-
|
|
2541
|
-
{
|
|
2542
|
-
DialogNodeId: productsMoreSearchDialogNode.id,
|
|
2543
|
-
ResponseId: produtos5maisBuscadosResponse.id,
|
|
2544
|
-
createdAt: new Date(),
|
|
2545
|
-
updatedAt: new Date(),
|
|
2546
|
-
},
|
|
2547
|
-
])
|
|
2548
|
-
},
|
|
2549
|
-
|
|
2550
|
-
down: async queryInterface => {
|
|
2551
|
-
for (const response of responses) {
|
|
2552
|
-
await queryInterface.bulkDelete('Response_DialogNodes', [
|
|
2553
|
-
{ ResponseId: response.id },
|
|
2554
|
-
])
|
|
2555
|
-
await queryInterface.bulkDelete('ResponsesBoxes', [
|
|
2556
|
-
{ ResponseId: response.id },
|
|
2557
|
-
])
|
|
2558
|
-
await queryInterface.bulkDelete('Responses', [{ id: response.id }])
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
await queryInterface.bulkDelete('DialogNodes', [{ SkillId }])
|
|
2562
|
-
|
|
2563
|
-
for (const intention of intentions) {
|
|
2564
|
-
await queryInterface.bulkDelete('IntentionValues', [
|
|
2565
|
-
{ IntentionId: intention.id },
|
|
2566
|
-
])
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
for (const entity of entities) {
|
|
2570
|
-
await queryInterface.bulkDelete('Synonyms', [{ EntityId: entity.id }])
|
|
2571
|
-
await queryInterface.bulkDelete('Synonyms', [{ EntityId: entity.id }])
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
await queryInterface.bulkDelete('Intentions', [{ SkillId }])
|
|
2575
|
-
await queryInterface.bulkDelete('Entities', [{ SkillId }])
|
|
2576
|
-
await queryInterface.bulkDelete('Skills', [{ id: SkillId }])
|
|
2577
|
-
},
|
|
2578
|
-
}
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const SkillId = 'fdb00709-411d-4fee-9429-83fc859f57fb'
|
|
4
|
+
|
|
5
|
+
// Welcome Intention stack
|
|
6
|
+
const welcomeIntention = {
|
|
7
|
+
id: '28ee1203-3390-4926-bfd8-f30695eef4fa',
|
|
8
|
+
name: 'saudacao',
|
|
9
|
+
description: '',
|
|
10
|
+
SkillId,
|
|
11
|
+
createdAt: new Date(),
|
|
12
|
+
updatedAt: new Date(),
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const welcomeIntentionIntentionValues = [
|
|
16
|
+
{
|
|
17
|
+
name: 'saudacao',
|
|
18
|
+
IntentionId: welcomeIntention.id,
|
|
19
|
+
createdAt: new Date(),
|
|
20
|
+
updatedAt: new Date(),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'oi',
|
|
24
|
+
IntentionId: welcomeIntention.id,
|
|
25
|
+
createdAt: new Date(),
|
|
26
|
+
updatedAt: new Date(),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'ola',
|
|
30
|
+
IntentionId: welcomeIntention.id,
|
|
31
|
+
createdAt: new Date(),
|
|
32
|
+
updatedAt: new Date(),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'ooi',
|
|
36
|
+
IntentionId: welcomeIntention.id,
|
|
37
|
+
createdAt: new Date(),
|
|
38
|
+
updatedAt: new Date(),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'eai',
|
|
42
|
+
IntentionId: welcomeIntention.id,
|
|
43
|
+
createdAt: new Date(),
|
|
44
|
+
updatedAt: new Date(),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'hola',
|
|
48
|
+
IntentionId: welcomeIntention.id,
|
|
49
|
+
createdAt: new Date(),
|
|
50
|
+
updatedAt: new Date(),
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'salve',
|
|
54
|
+
IntentionId: welcomeIntention.id,
|
|
55
|
+
createdAt: new Date(),
|
|
56
|
+
updatedAt: new Date(),
|
|
57
|
+
},
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
// Benefits product stack
|
|
61
|
+
|
|
62
|
+
const benefitsProductIntention = {
|
|
63
|
+
id: 'af1327d2-7869-45f3-a7d8-a099afbb4292',
|
|
64
|
+
name: 'beneficios_produtos',
|
|
65
|
+
description: '',
|
|
66
|
+
SkillId,
|
|
67
|
+
createdAt: new Date(),
|
|
68
|
+
updatedAt: new Date(),
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const benefitsProductIntentionValues = [
|
|
72
|
+
{
|
|
73
|
+
name: 'beneficios',
|
|
74
|
+
IntentionId: benefitsProductIntention.id,
|
|
75
|
+
createdAt: new Date(),
|
|
76
|
+
updatedAt: new Date(),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'Vantagem de usar',
|
|
80
|
+
IntentionId: benefitsProductIntention.id,
|
|
81
|
+
createdAt: new Date(),
|
|
82
|
+
updatedAt: new Date(),
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Utilidade para que',
|
|
86
|
+
IntentionId: benefitsProductIntention.id,
|
|
87
|
+
createdAt: new Date(),
|
|
88
|
+
updatedAt: new Date(),
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Qual o benefício',
|
|
92
|
+
IntentionId: benefitsProductIntention.id,
|
|
93
|
+
createdAt: new Date(),
|
|
94
|
+
updatedAt: new Date(),
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'Qual a utilidade do',
|
|
98
|
+
IntentionId: benefitsProductIntention.id,
|
|
99
|
+
createdAt: new Date(),
|
|
100
|
+
updatedAt: new Date(),
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'Quais são os beneficíos',
|
|
104
|
+
IntentionId: benefitsProductIntention.id,
|
|
105
|
+
createdAt: new Date(),
|
|
106
|
+
updatedAt: new Date(),
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'colocar direto na máquina',
|
|
110
|
+
IntentionId: benefitsProductIntention.id,
|
|
111
|
+
createdAt: new Date(),
|
|
112
|
+
updatedAt: new Date(),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'Posso colocar direto',
|
|
116
|
+
IntentionId: benefitsProductIntention.id,
|
|
117
|
+
createdAt: new Date(),
|
|
118
|
+
updatedAt: new Date(),
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'Posso colocar o',
|
|
122
|
+
IntentionId: benefitsProductIntention.id,
|
|
123
|
+
createdAt: new Date(),
|
|
124
|
+
updatedAt: new Date(),
|
|
125
|
+
},
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
// Products Intention Stack
|
|
129
|
+
|
|
130
|
+
const productsIntention = {
|
|
131
|
+
id: 'a002ff49-911e-46f5-a965-b059126f8f46',
|
|
132
|
+
name: 'produtos',
|
|
133
|
+
description: '',
|
|
134
|
+
SkillId,
|
|
135
|
+
createdAt: new Date(),
|
|
136
|
+
updatedAt: new Date(),
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const productsIntentionValues = [
|
|
140
|
+
{
|
|
141
|
+
name: 'produtos',
|
|
142
|
+
IntentionId: productsIntention.id,
|
|
143
|
+
createdAt: new Date(),
|
|
144
|
+
updatedAt: new Date(),
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'produto',
|
|
148
|
+
IntentionId: productsIntention.id,
|
|
149
|
+
createdAt: new Date(),
|
|
150
|
+
updatedAt: new Date(),
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'Gostaria de saber de produtos',
|
|
154
|
+
IntentionId: productsIntention.id,
|
|
155
|
+
createdAt: new Date(),
|
|
156
|
+
updatedAt: new Date(),
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'Sobre produto',
|
|
160
|
+
IntentionId: productsIntention.id,
|
|
161
|
+
createdAt: new Date(),
|
|
162
|
+
updatedAt: new Date(),
|
|
163
|
+
},
|
|
164
|
+
]
|
|
165
|
+
|
|
166
|
+
// How to use Intention stack
|
|
167
|
+
|
|
168
|
+
const howToUseProductsIntention = {
|
|
169
|
+
id: 'a585eefb-d4c1-4233-bdcb-8482d6935d4e',
|
|
170
|
+
name: 'modo_de_usar_produtos',
|
|
171
|
+
description: '',
|
|
172
|
+
SkillId,
|
|
173
|
+
createdAt: new Date(),
|
|
174
|
+
updatedAt: new Date(),
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const howToUseProductsIntentionValues = [
|
|
178
|
+
{
|
|
179
|
+
name: 'modo de uso',
|
|
180
|
+
IntentionId: howToUseProductsIntention.id,
|
|
181
|
+
createdAt: new Date(),
|
|
182
|
+
updatedAt: new Date(),
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'modo de usar',
|
|
186
|
+
IntentionId: howToUseProductsIntention.id,
|
|
187
|
+
createdAt: new Date(),
|
|
188
|
+
updatedAt: new Date(),
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'Com o que devo usar',
|
|
192
|
+
IntentionId: howToUseProductsIntention.id,
|
|
193
|
+
createdAt: new Date(),
|
|
194
|
+
updatedAt: new Date(),
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'Como devo utilizar',
|
|
198
|
+
IntentionId: howToUseProductsIntention.id,
|
|
199
|
+
createdAt: new Date(),
|
|
200
|
+
updatedAt: new Date(),
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'Como faço para utilizar',
|
|
204
|
+
IntentionId: howToUseProductsIntention.id,
|
|
205
|
+
createdAt: new Date(),
|
|
206
|
+
updatedAt: new Date(),
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'como utilizar',
|
|
210
|
+
IntentionId: howToUseProductsIntention.id,
|
|
211
|
+
createdAt: new Date(),
|
|
212
|
+
updatedAt: new Date(),
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'Como usar',
|
|
216
|
+
IntentionId: howToUseProductsIntention.id,
|
|
217
|
+
createdAt: new Date(),
|
|
218
|
+
updatedAt: new Date(),
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'Como utilizar',
|
|
222
|
+
IntentionId: howToUseProductsIntention.id,
|
|
223
|
+
createdAt: new Date(),
|
|
224
|
+
updatedAt: new Date(),
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: 'Como utilizar',
|
|
228
|
+
IntentionId: howToUseProductsIntention.id,
|
|
229
|
+
createdAt: new Date(),
|
|
230
|
+
updatedAt: new Date(),
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: 'CONHEÇA A LINHA COMPLETA',
|
|
234
|
+
IntentionId: howToUseProductsIntention.id,
|
|
235
|
+
createdAt: new Date(),
|
|
236
|
+
updatedAt: new Date(),
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'Desisnfecção utilizando',
|
|
240
|
+
IntentionId: howToUseProductsIntention.id,
|
|
241
|
+
createdAt: new Date(),
|
|
242
|
+
updatedAt: new Date(),
|
|
243
|
+
},
|
|
244
|
+
]
|
|
245
|
+
|
|
246
|
+
// Benefits Entity stack
|
|
247
|
+
|
|
248
|
+
const benefitsEntity = {
|
|
249
|
+
id: 'f7d39541-8582-4037-8509-de2ca7ebbc31',
|
|
250
|
+
name: 'beneficios',
|
|
251
|
+
SkillId,
|
|
252
|
+
createdAt: new Date(),
|
|
253
|
+
updatedAt: new Date(),
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const benefitsEntityValues = [
|
|
257
|
+
{
|
|
258
|
+
id: '92bf6891-4752-4853-b250-f70eb34a1ff3',
|
|
259
|
+
EntityId: benefitsEntity.id,
|
|
260
|
+
name: 'beneficios',
|
|
261
|
+
type: 'synonyms',
|
|
262
|
+
synonyms: 'beneficio,benecifio,benefacil,benenicios,beneficenge',
|
|
263
|
+
createdAt: new Date(),
|
|
264
|
+
updatedAt: new Date(),
|
|
265
|
+
},
|
|
266
|
+
]
|
|
267
|
+
|
|
268
|
+
const benefitsEntitySynonyms = [
|
|
269
|
+
{
|
|
270
|
+
EntityId: benefitsEntity.id,
|
|
271
|
+
EntityValueId: benefitsEntityValues[0].id,
|
|
272
|
+
name: 'beneficios',
|
|
273
|
+
type: 'synonyms',
|
|
274
|
+
createdAt: new Date(),
|
|
275
|
+
updatedAt: new Date(),
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
EntityId: benefitsEntity.id,
|
|
279
|
+
EntityValueId: benefitsEntityValues[0].id,
|
|
280
|
+
name: 'beneficio',
|
|
281
|
+
type: 'synonyms',
|
|
282
|
+
createdAt: new Date(),
|
|
283
|
+
updatedAt: new Date(),
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
EntityId: benefitsEntity.id,
|
|
287
|
+
EntityValueId: benefitsEntityValues[0].id,
|
|
288
|
+
name: 'Benefícios',
|
|
289
|
+
type: 'synonyms',
|
|
290
|
+
createdAt: new Date(),
|
|
291
|
+
updatedAt: new Date(),
|
|
292
|
+
},
|
|
293
|
+
]
|
|
294
|
+
|
|
295
|
+
// Products Entity stack
|
|
296
|
+
|
|
297
|
+
const productEntity = {
|
|
298
|
+
id: '684a3c25-74a2-41e5-a963-c4b5ade51d75',
|
|
299
|
+
name: 'produtos',
|
|
300
|
+
SkillId,
|
|
301
|
+
createdAt: new Date(),
|
|
302
|
+
updatedAt: new Date(),
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const productEntityValues = [
|
|
306
|
+
{
|
|
307
|
+
id: '2ee73eb5-77a3-4ccd-bbd8-863d92039ebf',
|
|
308
|
+
EntityId: productEntity.id,
|
|
309
|
+
name: 'detergente_tradicional',
|
|
310
|
+
type: 'synonyms',
|
|
311
|
+
synonyms: 'deterjente,deter jente,detirgente,detertente,detergente',
|
|
312
|
+
createdAt: new Date(),
|
|
313
|
+
updatedAt: new Date(),
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
id: '716bb6cd-1e2c-4ce9-82d9-c51ef6922f58',
|
|
317
|
+
EntityId: productEntity.id,
|
|
318
|
+
name: 'sabao_em_po',
|
|
319
|
+
type: 'synonyms',
|
|
320
|
+
synonyms: 'Sabão em pó,sabao em po,sabao',
|
|
321
|
+
createdAt: new Date(),
|
|
322
|
+
updatedAt: new Date(),
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: 'fc3acf66-4f9e-44ea-b400-8a4a55c1e05a',
|
|
326
|
+
EntityId: productEntity.id,
|
|
327
|
+
name: 'amaciante',
|
|
328
|
+
type: 'synonyms',
|
|
329
|
+
synonyms: 'amaciante,amassiante,amaçiante',
|
|
330
|
+
createdAt: new Date(),
|
|
331
|
+
updatedAt: new Date(),
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
id: 'c44d96d7-9b4f-47ea-8b6f-c7bbece98f18',
|
|
335
|
+
EntityId: productEntity.id,
|
|
336
|
+
name: 'agua_sanitaria',
|
|
337
|
+
type: 'synonyms',
|
|
338
|
+
synonyms: 'agua de sanitario,agua sanitaria',
|
|
339
|
+
createdAt: new Date(),
|
|
340
|
+
updatedAt: new Date(),
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
id: 'fb8efa51-df94-4589-a1c4-446198d7c424',
|
|
344
|
+
EntityId: productEntity.id,
|
|
345
|
+
name: 'multiuso_premium',
|
|
346
|
+
type: 'synonyms',
|
|
347
|
+
synonyms: 'Multiuso,Multiusos,Multilaser',
|
|
348
|
+
createdAt: new Date(),
|
|
349
|
+
updatedAt: new Date(),
|
|
350
|
+
},
|
|
351
|
+
]
|
|
352
|
+
|
|
353
|
+
const productEntitySynonyms = [
|
|
354
|
+
{
|
|
355
|
+
EntityId: productEntity.id,
|
|
356
|
+
EntityValueId: productEntityValues[0].id,
|
|
357
|
+
name: 'Detergente Tradicional',
|
|
358
|
+
type: 'synonyms',
|
|
359
|
+
createdAt: new Date(),
|
|
360
|
+
updatedAt: new Date(),
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
EntityId: productEntity.id,
|
|
364
|
+
EntityValueId: productEntityValues[0].id,
|
|
365
|
+
name: 'Detergente',
|
|
366
|
+
type: 'synonyms',
|
|
367
|
+
createdAt: new Date(),
|
|
368
|
+
updatedAt: new Date(),
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
EntityId: productEntity.id,
|
|
372
|
+
EntityValueId: productEntityValues[0].id,
|
|
373
|
+
name: 'detergente tradicional',
|
|
374
|
+
type: 'synonyms',
|
|
375
|
+
createdAt: new Date(),
|
|
376
|
+
updatedAt: new Date(),
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
EntityId: productEntity.id,
|
|
380
|
+
EntityValueId: productEntityValues[0].id,
|
|
381
|
+
name: 'detergentes',
|
|
382
|
+
type: 'synonyms',
|
|
383
|
+
createdAt: new Date(),
|
|
384
|
+
updatedAt: new Date(),
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
EntityId: productEntity.id,
|
|
388
|
+
EntityValueId: productEntityValues[1].id,
|
|
389
|
+
name: 'Sabão em pó',
|
|
390
|
+
type: 'synonyms',
|
|
391
|
+
createdAt: new Date(),
|
|
392
|
+
updatedAt: new Date(),
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
EntityId: productEntity.id,
|
|
396
|
+
EntityValueId: productEntityValues[1].id,
|
|
397
|
+
name: 'Sabao em po',
|
|
398
|
+
type: 'synonyms',
|
|
399
|
+
createdAt: new Date(),
|
|
400
|
+
updatedAt: new Date(),
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
EntityId: productEntity.id,
|
|
404
|
+
EntityValueId: productEntityValues[2].id,
|
|
405
|
+
name: 'Amaciante',
|
|
406
|
+
type: 'synonyms',
|
|
407
|
+
createdAt: new Date(),
|
|
408
|
+
updatedAt: new Date(),
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
EntityId: productEntity.id,
|
|
412
|
+
EntityValueId: productEntityValues[2].id,
|
|
413
|
+
name: 'amaciante',
|
|
414
|
+
type: 'synonyms',
|
|
415
|
+
createdAt: new Date(),
|
|
416
|
+
updatedAt: new Date(),
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
EntityId: productEntity.id,
|
|
420
|
+
EntityValueId: productEntityValues[3].id,
|
|
421
|
+
name: 'Água Sanitária',
|
|
422
|
+
type: 'synonyms',
|
|
423
|
+
createdAt: new Date(),
|
|
424
|
+
updatedAt: new Date(),
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
EntityId: productEntity.id,
|
|
428
|
+
EntityValueId: productEntityValues[3].id,
|
|
429
|
+
name: 'agua sanitaria',
|
|
430
|
+
type: 'synonyms',
|
|
431
|
+
createdAt: new Date(),
|
|
432
|
+
updatedAt: new Date(),
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
EntityId: productEntity.id,
|
|
436
|
+
EntityValueId: productEntityValues[4].id,
|
|
437
|
+
name: 'Multiuso Premium',
|
|
438
|
+
type: 'synonyms',
|
|
439
|
+
createdAt: new Date(),
|
|
440
|
+
updatedAt: new Date(),
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
EntityId: productEntity.id,
|
|
444
|
+
EntityValueId: productEntityValues[4].id,
|
|
445
|
+
name: 'multiuso premium',
|
|
446
|
+
type: 'synonyms',
|
|
447
|
+
createdAt: new Date(),
|
|
448
|
+
updatedAt: new Date(),
|
|
449
|
+
},
|
|
450
|
+
]
|
|
451
|
+
|
|
452
|
+
// How to use Entity stack
|
|
453
|
+
|
|
454
|
+
const howToUseEntity = {
|
|
455
|
+
id: 'fe3f31c7-0608-4cf7-b6a3-23361bc217db',
|
|
456
|
+
name: 'modo_usar',
|
|
457
|
+
SkillId,
|
|
458
|
+
createdAt: new Date(),
|
|
459
|
+
updatedAt: new Date(),
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
const howToUseEntityValues = [
|
|
463
|
+
{
|
|
464
|
+
id: 'f5162219-36be-4c9e-8fc3-2b4974cf60c1',
|
|
465
|
+
EntityId: howToUseEntity.id,
|
|
466
|
+
name: 'modo de usar',
|
|
467
|
+
type: 'synonyms',
|
|
468
|
+
synonyms: 'modo de usar,modu de usar,modulo de usacao,modu de uso',
|
|
469
|
+
createdAt: new Date(),
|
|
470
|
+
updatedAt: new Date(),
|
|
471
|
+
},
|
|
472
|
+
]
|
|
473
|
+
|
|
474
|
+
const howToUseEntitySynonyms = [
|
|
475
|
+
{
|
|
476
|
+
EntityId: howToUseEntity.id,
|
|
477
|
+
EntityValueId: howToUseEntityValues[0].id,
|
|
478
|
+
name: 'modo de usar',
|
|
479
|
+
type: 'synonyms',
|
|
480
|
+
createdAt: new Date(),
|
|
481
|
+
updatedAt: new Date(),
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
EntityId: howToUseEntity.id,
|
|
485
|
+
EntityValueId: howToUseEntityValues[0].id,
|
|
486
|
+
name: 'modo de uso',
|
|
487
|
+
type: 'synonyms',
|
|
488
|
+
createdAt: new Date(),
|
|
489
|
+
updatedAt: new Date(),
|
|
490
|
+
},
|
|
491
|
+
]
|
|
492
|
+
|
|
493
|
+
// Responses
|
|
494
|
+
// Detergente Tradicional modo de uso
|
|
495
|
+
|
|
496
|
+
const detergenteTradicionalResponse = {
|
|
497
|
+
id: 'e64a3ed8-027a-4e2d-a8a6-3195ac15d099',
|
|
498
|
+
name: 'Detergente Tradicional Ypê modo uso',
|
|
499
|
+
SkillId,
|
|
500
|
+
type: 'flow',
|
|
501
|
+
createdAt: new Date(),
|
|
502
|
+
updatedAt: new Date(),
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
const detergenteTradicionalResponseBox = {
|
|
506
|
+
ResponseId: detergenteTradicionalResponse.id,
|
|
507
|
+
ChannelTypeId: null,
|
|
508
|
+
type: 'flow',
|
|
509
|
+
payload: JSON.stringify([
|
|
510
|
+
{
|
|
511
|
+
id: '',
|
|
512
|
+
type: 'text',
|
|
513
|
+
messages: [
|
|
514
|
+
{ message: 'Super fácil! 💙' },
|
|
515
|
+
{ message: 'É bem simples! 💙' },
|
|
516
|
+
{ message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙' },
|
|
517
|
+
{ message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙' },
|
|
518
|
+
{ message: 'Usar esse produto é bem simples! 💙' },
|
|
519
|
+
],
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
id: '',
|
|
523
|
+
type: 'text',
|
|
524
|
+
messages: [
|
|
525
|
+
{
|
|
526
|
+
message:
|
|
527
|
+
'• Aplique o lava-louças Ypê em uma esponja molhada. \n \n• Para limpeza geral, aplique o lava-louças Ypê em uma vasilha com água. ',
|
|
528
|
+
},
|
|
529
|
+
],
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
id: '',
|
|
533
|
+
type: 'text',
|
|
534
|
+
messages: [
|
|
535
|
+
{ message: 'É muito importante entender esse passo, não é mesmo?! 😍' },
|
|
536
|
+
],
|
|
537
|
+
},
|
|
538
|
+
]),
|
|
539
|
+
createdAt: new Date(),
|
|
540
|
+
updatedAt: new Date(),
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
// Detergente Tradicional modo de uso
|
|
544
|
+
|
|
545
|
+
const detergenteTradicionalMenuResponse = {
|
|
546
|
+
id: '00fdf060-a458-4457-92bb-84de60a3e49e',
|
|
547
|
+
name: 'Detergente Tradicional Ypê menu',
|
|
548
|
+
SkillId,
|
|
549
|
+
type: 'flow',
|
|
550
|
+
createdAt: new Date(),
|
|
551
|
+
updatedAt: new Date(),
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
const detergenteTradicionalMenuResponseBeneficio = {
|
|
555
|
+
id: '701e4e94-b52c-4172-9f0e-6f48c3ca83c0',
|
|
556
|
+
name: 'Detergente Tradicional Ypê beneficio',
|
|
557
|
+
SkillId,
|
|
558
|
+
type: 'flow',
|
|
559
|
+
createdAt: new Date(),
|
|
560
|
+
updatedAt: new Date(),
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
const detergenteTradicionalMenuResponseBeneficioBox = {
|
|
564
|
+
ResponseId: detergenteTradicionalMenuResponseBeneficio.id,
|
|
565
|
+
ChannelTypeId: null,
|
|
566
|
+
type: 'flow',
|
|
567
|
+
payload: JSON.stringify([
|
|
568
|
+
{
|
|
569
|
+
id: '',
|
|
570
|
+
type: 'text',
|
|
571
|
+
messages: [
|
|
572
|
+
{
|
|
573
|
+
message:
|
|
574
|
+
'Com o Detergente Tradicional Ypê, a sua rotina não será a mesma! 😍\n\nConheça o que preparamos de melhor pra você, nas versões:\n\nCapim Limão / Limão / Maçã',
|
|
575
|
+
},
|
|
576
|
+
],
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
id: '',
|
|
580
|
+
type: 'image',
|
|
581
|
+
messages: [
|
|
582
|
+
{
|
|
583
|
+
message:
|
|
584
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/Controle de Odor.png',
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
id: '',
|
|
590
|
+
type: 'text',
|
|
591
|
+
messages: [
|
|
592
|
+
{
|
|
593
|
+
message:
|
|
594
|
+
'Tecnologia de Controle de Odor, não agride as mãos, com poder desengordurante, melhor custo/benefício e fórmula biodegradável.',
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
},
|
|
598
|
+
{ id: '', type: 'text', messages: [{ message: 'Clear / Neutro ' }] },
|
|
599
|
+
{
|
|
600
|
+
id: '',
|
|
601
|
+
type: 'image',
|
|
602
|
+
messages: [
|
|
603
|
+
{ message: 'https://chatbot.dev.ypedia.com.br/images/bot/neutro.png' },
|
|
604
|
+
],
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
id: '',
|
|
608
|
+
type: 'text',
|
|
609
|
+
messages: [
|
|
610
|
+
{
|
|
611
|
+
message:
|
|
612
|
+
'O Melhor custo/benefício, com poder desengordurante e fórmula biodegradável.',
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
},
|
|
616
|
+
{ id: '', type: 'text', messages: [{ message: 'Toque Suave / Coco' }] },
|
|
617
|
+
{
|
|
618
|
+
id: '',
|
|
619
|
+
type: 'image',
|
|
620
|
+
messages: [
|
|
621
|
+
{
|
|
622
|
+
message:
|
|
623
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/Toque suave.png',
|
|
624
|
+
},
|
|
625
|
+
],
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
id: '',
|
|
629
|
+
type: 'text',
|
|
630
|
+
messages: [
|
|
631
|
+
{
|
|
632
|
+
message:
|
|
633
|
+
'Toque suave, melhor custo/benefício, fórmula biodegradável e com poder desengordurante.',
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
id: '',
|
|
639
|
+
type: 'text',
|
|
640
|
+
messages: [{ message: 'Gostou de saber disso? Eu adorei! 🥰' }],
|
|
641
|
+
},
|
|
642
|
+
]),
|
|
643
|
+
createdAt: new Date(),
|
|
644
|
+
updatedAt: new Date(),
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
const detergenteTradicionalMenuResponseBox = {
|
|
648
|
+
ResponseId: detergenteTradicionalMenuResponse.id,
|
|
649
|
+
ChannelTypeId: null,
|
|
650
|
+
type: 'flow',
|
|
651
|
+
payload: JSON.stringify([
|
|
652
|
+
{
|
|
653
|
+
id: '',
|
|
654
|
+
type: 'text',
|
|
655
|
+
messages: [
|
|
656
|
+
{
|
|
657
|
+
message:
|
|
658
|
+
'Pode deixar, vou te mostrar todos os detalhes do Detergente Tradicional Ypê. Você vai adorar! 😄\n',
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
message:
|
|
662
|
+
'Se bateu aquela curiosidade sobre o Detergente Tradicional Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
663
|
+
},
|
|
664
|
+
{ message: 'Saiba tudo sobre o Detergente Tradicional Ypê! 😃\n' },
|
|
665
|
+
{
|
|
666
|
+
message:
|
|
667
|
+
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Detergente Tradicional Ypê. 😃\n',
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
message:
|
|
671
|
+
'Ficou mega interessado em conhecer mais sobre o Detergente Tradicional Ypê? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
672
|
+
},
|
|
673
|
+
],
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
id: '',
|
|
677
|
+
type: 'image',
|
|
678
|
+
messages: [
|
|
679
|
+
{
|
|
680
|
+
message:
|
|
681
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/destaque_lava_louca.png',
|
|
682
|
+
},
|
|
683
|
+
],
|
|
684
|
+
},
|
|
685
|
+
]),
|
|
686
|
+
createdAt: new Date(),
|
|
687
|
+
updatedAt: new Date(),
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
// Sabão em pó Tixan Ypê modo uso
|
|
691
|
+
|
|
692
|
+
const sabaoEmPoTixanResponse = {
|
|
693
|
+
id: '565442e0-a913-4f47-9223-98ce7735bbb2',
|
|
694
|
+
name: 'Sabão em pó Tixan Ypê modo uso',
|
|
695
|
+
SkillId,
|
|
696
|
+
type: 'flow',
|
|
697
|
+
createdAt: new Date(),
|
|
698
|
+
updatedAt: new Date(),
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
const sabaoEmPoTixanResponseBox = {
|
|
702
|
+
ResponseId: sabaoEmPoTixanResponse.id,
|
|
703
|
+
ChannelTypeId: null,
|
|
704
|
+
type: 'flow',
|
|
705
|
+
payload: JSON.stringify([
|
|
706
|
+
{
|
|
707
|
+
id: '',
|
|
708
|
+
type: 'text',
|
|
709
|
+
messages: [
|
|
710
|
+
{ value: '', message: 'Super fácil! 💙\n' },
|
|
711
|
+
{ value: '', message: 'É bem simples! 💙\n' },
|
|
712
|
+
{
|
|
713
|
+
value: '',
|
|
714
|
+
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
value: '',
|
|
718
|
+
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
719
|
+
},
|
|
720
|
+
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
721
|
+
],
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
id: '',
|
|
725
|
+
type: 'text',
|
|
726
|
+
messages: [
|
|
727
|
+
{
|
|
728
|
+
value: '',
|
|
729
|
+
message:
|
|
730
|
+
'Para máquina de lalet: \n \n• Para nível alto adicionar ¾ de um copo americano e para nível baixo ½ de um copo americano (considerando máquina de 6 kg); \n \n• Para nível alto adicionar 1 de um copo americano e para nível baixo ¾ de um copo americano (considerando máquina de 8 kg); \n \n• Para nível alto adicionar 1 ½ de um copo americano e para nível baixo 1 de um copo americano (considerando máquina de 12 kg ou mais); \n \n• Adicione no compartimento da máquina e deixe seguir o ciclo normalmente. ',
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
id: '',
|
|
736
|
+
type: 'text',
|
|
737
|
+
messages: [
|
|
738
|
+
{
|
|
739
|
+
value: '',
|
|
740
|
+
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
741
|
+
},
|
|
742
|
+
],
|
|
743
|
+
},
|
|
744
|
+
]),
|
|
745
|
+
createdAt: new Date(),
|
|
746
|
+
updatedAt: new Date(),
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
// Sabão em pó Tixan Ypê menu
|
|
750
|
+
|
|
751
|
+
const sabaoEmPoTixanMenuResponse = {
|
|
752
|
+
id: '7c68eca6-47ce-45d8-95a3-bb464743aa3d',
|
|
753
|
+
name: 'Sabão em pó Tixan Ypê menu',
|
|
754
|
+
SkillId,
|
|
755
|
+
type: 'flow',
|
|
756
|
+
createdAt: new Date(),
|
|
757
|
+
updatedAt: new Date(),
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
const sabaoEmPoTixanMenuResponseBox = {
|
|
761
|
+
ResponseId: sabaoEmPoTixanMenuResponse.id,
|
|
762
|
+
ChannelTypeId: null,
|
|
763
|
+
type: 'flow',
|
|
764
|
+
payload: JSON.stringify([
|
|
765
|
+
{
|
|
766
|
+
id: '',
|
|
767
|
+
type: 'text',
|
|
768
|
+
messages: [
|
|
769
|
+
{
|
|
770
|
+
message:
|
|
771
|
+
'Pode deixar, vou te mostrar todos os detalhes do Sabão em Pó Tixan Ypê. Você vai adorar! 😄\n',
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
message:
|
|
775
|
+
'Se bateu aquela curiosidade sobre o Sabão em Pó Tixan Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
776
|
+
},
|
|
777
|
+
{ message: 'Saiba tudo sobre o Sabão em Pó Tixan Ypê! 😃\n' },
|
|
778
|
+
{
|
|
779
|
+
message:
|
|
780
|
+
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Sabão em Pó Tixan Ypê. 😃\n',
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
message:
|
|
784
|
+
'Ficou mega interessado em conhecer mais sobre o Sabão em Pó Tixan Ypê? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
id: '',
|
|
790
|
+
type: 'image',
|
|
791
|
+
messages: [
|
|
792
|
+
{
|
|
793
|
+
message:
|
|
794
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/primavera-1kg-3x.png',
|
|
795
|
+
},
|
|
796
|
+
],
|
|
797
|
+
},
|
|
798
|
+
]),
|
|
799
|
+
createdAt: new Date(),
|
|
800
|
+
updatedAt: new Date(),
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// Sabão em pó Tixan Ypê beneficio
|
|
804
|
+
|
|
805
|
+
const sabaoEmPoTixanBeneficioResponse = {
|
|
806
|
+
id: 'ee1e18e0-ab53-40a3-95f7-48867e16f5d6',
|
|
807
|
+
name: 'Sabão em pó Tixan Ypê beneficio',
|
|
808
|
+
SkillId,
|
|
809
|
+
type: 'flow',
|
|
810
|
+
createdAt: new Date(),
|
|
811
|
+
updatedAt: new Date(),
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
const sabaoEmPoTixanBeneficioResponseBox = {
|
|
815
|
+
ResponseId: sabaoEmPoTixanBeneficioResponse.id,
|
|
816
|
+
ChannelTypeId: null,
|
|
817
|
+
type: 'flow',
|
|
818
|
+
payload: JSON.stringify([
|
|
819
|
+
{
|
|
820
|
+
id: '',
|
|
821
|
+
type: 'text',
|
|
822
|
+
messages: [
|
|
823
|
+
{
|
|
824
|
+
value: '',
|
|
825
|
+
message:
|
|
826
|
+
'Você não vai acreditar! 🤩 \n \nO Sabão em Pó Tixan Ypê é prático, pode ser usado direto na máquina ou tanque. 👕👖 Ele limpa manchas mais resistentes, é um ótimo custo/benefício e deixa suas roupas limpas e perfumadas.',
|
|
827
|
+
},
|
|
828
|
+
],
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
id: '',
|
|
832
|
+
type: 'text',
|
|
833
|
+
messages: [
|
|
834
|
+
{ value: '', message: 'Gostou de saber disso? Eu adorei! 🥰' },
|
|
835
|
+
],
|
|
836
|
+
},
|
|
837
|
+
]),
|
|
838
|
+
createdAt: new Date(),
|
|
839
|
+
updatedAt: new Date(),
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
// Amaciante Ypê Essencial modo uso
|
|
843
|
+
|
|
844
|
+
const amacianteEssencialResponse = {
|
|
845
|
+
id: 'cb0ea99e-dcc9-4b4f-b9f9-7c79d3e07dc9',
|
|
846
|
+
name: 'Amaciante Ypê Essencial modo uso',
|
|
847
|
+
SkillId,
|
|
848
|
+
type: 'flow',
|
|
849
|
+
createdAt: new Date(),
|
|
850
|
+
updatedAt: new Date(),
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
const amacianteEssencialResponseBox = {
|
|
854
|
+
ResponseId: amacianteEssencialResponse.id,
|
|
855
|
+
ChannelTypeId: null,
|
|
856
|
+
type: 'flow',
|
|
857
|
+
payload: JSON.stringify([
|
|
858
|
+
{
|
|
859
|
+
id: '',
|
|
860
|
+
type: 'text',
|
|
861
|
+
messages: [
|
|
862
|
+
{ value: '', message: 'Super fácil! 💙\n' },
|
|
863
|
+
{ value: '', message: 'É bem simples! 💙\n' },
|
|
864
|
+
{
|
|
865
|
+
value: '',
|
|
866
|
+
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
value: '',
|
|
870
|
+
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
871
|
+
},
|
|
872
|
+
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
873
|
+
],
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
id: '',
|
|
877
|
+
type: 'text',
|
|
878
|
+
messages: [
|
|
879
|
+
{
|
|
880
|
+
value: '',
|
|
881
|
+
message:
|
|
882
|
+
'Para máquina de lalet: \n \n1- Basta colocar ½ tampa do Amaciante Ypê Essencial para perfumar uma máquina cheia (considerando máquina de 8kg). \n \n2- Após o processo de lavagem, faça mais um enxágue adicionando meia tampa de Amaciante Ypê Essencial sobre a água limpa ou no compartimento da máquina, evitando o contato direto do produto com as roupas. \n \n3- Deixe agir por 10 minutos e complete o processo, centrifugando. \n \n4- Coloque para secar normalmente.',
|
|
883
|
+
},
|
|
884
|
+
],
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
id: '',
|
|
888
|
+
type: 'text',
|
|
889
|
+
messages: [
|
|
890
|
+
{
|
|
891
|
+
value: '',
|
|
892
|
+
message:
|
|
893
|
+
'Para tanque: \n \n1- Após o processo de lavagem, faça mais um enxágue adicionando meia tampa de Amaciante Ypê Essencial sobre a água limpa, evitando o contato direto do produto com as roupas. \n \n2- Deixe agir por 10 minutos e complete o processo, torcendo. \n \n3- Coloque para secar normalmente.',
|
|
894
|
+
},
|
|
895
|
+
],
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
id: '',
|
|
899
|
+
type: 'text',
|
|
900
|
+
messages: [
|
|
901
|
+
{
|
|
902
|
+
value: '',
|
|
903
|
+
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
904
|
+
},
|
|
905
|
+
],
|
|
906
|
+
},
|
|
907
|
+
]),
|
|
908
|
+
createdAt: new Date(),
|
|
909
|
+
updatedAt: new Date(),
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
// Amaciante Ypê Essencial beneficio
|
|
913
|
+
|
|
914
|
+
const amacianteEssencialBeneficioResponse = {
|
|
915
|
+
id: '1504146e-47af-4361-92e3-724d53ce0ec5',
|
|
916
|
+
name: 'Amaciante Ypê Essencial beneficio',
|
|
917
|
+
SkillId,
|
|
918
|
+
type: 'flow',
|
|
919
|
+
createdAt: new Date(),
|
|
920
|
+
updatedAt: new Date(),
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
const amacianteEssencialBeneficioResponseBox = {
|
|
924
|
+
ResponseId: amacianteEssencialBeneficioResponse.id,
|
|
925
|
+
ChannelTypeId: null,
|
|
926
|
+
type: 'flow',
|
|
927
|
+
payload: JSON.stringify([
|
|
928
|
+
{
|
|
929
|
+
id: '',
|
|
930
|
+
type: 'text',
|
|
931
|
+
messages: [
|
|
932
|
+
{
|
|
933
|
+
value: '',
|
|
934
|
+
message:
|
|
935
|
+
'Você vai se surpreender com a inovação do Amaciante Ypê Essencial! 🤩',
|
|
936
|
+
},
|
|
937
|
+
],
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
id: '',
|
|
941
|
+
type: 'text',
|
|
942
|
+
messages: [
|
|
943
|
+
{
|
|
944
|
+
value: '',
|
|
945
|
+
message:
|
|
946
|
+
'É o primeiro amaciante translúcido do mercado brasileiro, tratamento micelar, livre de corantes, fragrância com óleos essenciais, 99% biodegradável e hipoalergênico.',
|
|
947
|
+
},
|
|
948
|
+
],
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
id: '',
|
|
952
|
+
type: 'text',
|
|
953
|
+
messages: [
|
|
954
|
+
{ value: '', message: 'Gostou de saber disso? Eu adorei! 🥰' },
|
|
955
|
+
],
|
|
956
|
+
},
|
|
957
|
+
]),
|
|
958
|
+
createdAt: new Date(),
|
|
959
|
+
updatedAt: new Date(),
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
// Amaciante Ypê Essencial menu
|
|
963
|
+
|
|
964
|
+
const amacianteEssencialMenuResponse = {
|
|
965
|
+
id: 'f8fcafea-7779-473c-8858-573560278a31',
|
|
966
|
+
name: 'Amaciante Ypê Essencial menu',
|
|
967
|
+
SkillId,
|
|
968
|
+
type: 'flow',
|
|
969
|
+
createdAt: new Date(),
|
|
970
|
+
updatedAt: new Date(),
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
const amacianteEssencialMenuResponseBox = {
|
|
974
|
+
ResponseId: amacianteEssencialMenuResponse.id,
|
|
975
|
+
ChannelTypeId: null,
|
|
976
|
+
type: 'flow',
|
|
977
|
+
payload: JSON.stringify([
|
|
978
|
+
{
|
|
979
|
+
id: '',
|
|
980
|
+
type: 'text',
|
|
981
|
+
messages: [
|
|
982
|
+
{
|
|
983
|
+
value: '',
|
|
984
|
+
message:
|
|
985
|
+
'Pode deixar, vou te mostrar todos os detalhes do Amaciante Ypê Essencial. Você vai adorar! 😄\n',
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
value: '',
|
|
989
|
+
message:
|
|
990
|
+
'Se bateu aquela curiosidade sobre o Amaciante Ypê Essencial, estou aqui pra te explicar tudinho! 😊\n',
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
value: '',
|
|
994
|
+
message: 'Saiba tudo sobre o Amaciante Ypê Essencial! 😃\n',
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
value: '',
|
|
998
|
+
message:
|
|
999
|
+
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Amaciante Ypê Essencial. 😃\n',
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
value: '',
|
|
1003
|
+
message:
|
|
1004
|
+
'Ficou mega interessado em conhecer mais sobre o Amaciante Ypê Essencial? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
1005
|
+
},
|
|
1006
|
+
],
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
id: '',
|
|
1010
|
+
type: 'image',
|
|
1011
|
+
messages: [
|
|
1012
|
+
{
|
|
1013
|
+
value: '',
|
|
1014
|
+
message:
|
|
1015
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/produto_amaciantes_concentrado-2020.png',
|
|
1016
|
+
},
|
|
1017
|
+
],
|
|
1018
|
+
},
|
|
1019
|
+
]),
|
|
1020
|
+
createdAt: new Date(),
|
|
1021
|
+
updatedAt: new Date(),
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// menu ype
|
|
1025
|
+
|
|
1026
|
+
const menuYpeResponse = {
|
|
1027
|
+
id: '54a4179b-390f-42e9-a932-2c98868fae52',
|
|
1028
|
+
name: 'menu ype',
|
|
1029
|
+
SkillId,
|
|
1030
|
+
type: 'flow',
|
|
1031
|
+
createdAt: new Date(),
|
|
1032
|
+
updatedAt: new Date(),
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
const menuYpeResponseBox = {
|
|
1036
|
+
ResponseId: menuYpeResponse.id,
|
|
1037
|
+
ChannelTypeId: null,
|
|
1038
|
+
type: 'flow',
|
|
1039
|
+
payload: JSON.stringify([
|
|
1040
|
+
{
|
|
1041
|
+
id: '',
|
|
1042
|
+
type: 'text',
|
|
1043
|
+
messages: [
|
|
1044
|
+
{
|
|
1045
|
+
message:
|
|
1046
|
+
'Oi! Aqui é o Ypêzinho, o assistente virtual da Ypê. \n\nVocê tem dúvidas? Dúvidas por quê? Qualidade é Ypê! Conte comigo. 😍',
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
message:
|
|
1050
|
+
'Oi, você tem dúvidas? 🤔\n\nDúvidas por quê? Qualidade é Ypê! Quer saber quem sou? 😁\n \nAqui é o Ypêzinho, o assistente virtual da Ypê. Conte comigo pra tudo, viu?',
|
|
1051
|
+
},
|
|
1052
|
+
],
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
type: 'simple_button',
|
|
1056
|
+
text: 'Podemos começar por qual assunto?',
|
|
1057
|
+
buttons: [
|
|
1058
|
+
{ label: 'Produtos', value: 'botao_prod' },
|
|
1059
|
+
{ label: 'Sugestão', value: 'sugestao ' },
|
|
1060
|
+
{ label: 'Institucional', value: 'institucional' },
|
|
1061
|
+
{ label: 'Reclamação', value: 'reclamacao' },
|
|
1062
|
+
],
|
|
1063
|
+
},
|
|
1064
|
+
]),
|
|
1065
|
+
createdAt: new Date(),
|
|
1066
|
+
updatedAt: new Date(),
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
// Água Sanitária Ypê modo uso
|
|
1070
|
+
|
|
1071
|
+
const aguaSanitariaModoDeUsoResponse = {
|
|
1072
|
+
id: '9970a245-c1bd-454d-89b3-88e29ff20ff6',
|
|
1073
|
+
name: 'Água Sanitária Ypê modo uso',
|
|
1074
|
+
SkillId,
|
|
1075
|
+
type: 'flow',
|
|
1076
|
+
createdAt: new Date(),
|
|
1077
|
+
updatedAt: new Date(),
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
const aguaSanitariaModoDeUsoResponseBox = {
|
|
1081
|
+
ResponseId: aguaSanitariaModoDeUsoResponse.id,
|
|
1082
|
+
ChannelTypeId: null,
|
|
1083
|
+
type: 'flow',
|
|
1084
|
+
payload: JSON.stringify([
|
|
1085
|
+
{
|
|
1086
|
+
id: '',
|
|
1087
|
+
type: 'text',
|
|
1088
|
+
messages: [
|
|
1089
|
+
{ value: '', message: 'Super fácil! 💙\n' },
|
|
1090
|
+
{ value: '', message: 'É bem simples! 💙\n' },
|
|
1091
|
+
{
|
|
1092
|
+
value: '',
|
|
1093
|
+
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
value: '',
|
|
1097
|
+
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
1098
|
+
},
|
|
1099
|
+
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
1100
|
+
],
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
id: '',
|
|
1104
|
+
type: 'text',
|
|
1105
|
+
messages: [
|
|
1106
|
+
{
|
|
1107
|
+
value: '',
|
|
1108
|
+
message:
|
|
1109
|
+
'Para limpeza geral: \n\n• Água Sanitária Ypê pode ser usada em toda a casa. Eficiente para a limpeza e desinfecção de banheiros, cozinhas, pisos, azulejos e paredes. Adicione 1 copo (200ml) de Água Sanitária Ypê para cada 5 litros de água. Se necessário, deixar de molho por 10 minutos. Enxaguar a seguir. \n \nPara lavagem de roupas:\n\n • Para alvejar, adicione 1 copo (200ml) de Água Sanitária Ypê para cada 20 litros de água. Deixe de molho por 30 minutos antes de iniciar a lavagem no tanque ou na máquina. LEMBRE-SE: Não utilize em roupas coloridas. \n \nPara limpeza de banheiras e pias: \n\n• Tampe o ralo e encha com água limpa a banheira ou a pia. Adicione ½ copo (100ml) de Água Sanitária Ypê para cada 10 litros de água. Deixe agir por 10 minutos e depois enxágue. ',
|
|
1110
|
+
},
|
|
1111
|
+
],
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
id: '',
|
|
1115
|
+
type: 'text',
|
|
1116
|
+
messages: [
|
|
1117
|
+
{
|
|
1118
|
+
value: '',
|
|
1119
|
+
message:
|
|
1120
|
+
'Para limpeza de vidros, louças, porcelanas, mármores, plásticos e cerâmicas:\n \n• Em um balde coloque 1 litro de água limpa. Em seguida, adicione 3 colheres de sopa (45ml) de Água Sanitária Ypê. Limpe os objetos com esponja ou pano molhado nesta solução. Enxágue a seguir. \n \nPara limpeza de vasos sanitários e ralos: \n\n• Para remoção da sujeira incrustada, despeje Água Sanitária Ypê pura, deixe agir por 10 minutos e enxágue a seguir. \n \nPara desinfecção de frutas, verduras e legumes:\n \n• Misture 1 colher de sopa (15ml) de Água Sanitária Ypê em 1 litro de água. Deixe de molho por 10 minutos e enxágue a seguir com água potável.',
|
|
1121
|
+
},
|
|
1122
|
+
],
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
id: '',
|
|
1126
|
+
type: 'text',
|
|
1127
|
+
messages: [
|
|
1128
|
+
{
|
|
1129
|
+
value: '',
|
|
1130
|
+
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
1131
|
+
},
|
|
1132
|
+
],
|
|
1133
|
+
},
|
|
1134
|
+
]),
|
|
1135
|
+
createdAt: new Date(),
|
|
1136
|
+
updatedAt: new Date(),
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
// Água Sanitária Ypê beneficio
|
|
1140
|
+
|
|
1141
|
+
const aguaSanitariaBeneficioResponse = {
|
|
1142
|
+
id: '23c35b9f-9ac1-4846-b5b1-b28c3263638e',
|
|
1143
|
+
name: 'Água Sanitária Ypê beneficio',
|
|
1144
|
+
SkillId,
|
|
1145
|
+
type: 'flow',
|
|
1146
|
+
createdAt: new Date(),
|
|
1147
|
+
updatedAt: new Date(),
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
const aguaSanitariaBeneficioResponseBox = {
|
|
1151
|
+
ResponseId: aguaSanitariaBeneficioResponse.id,
|
|
1152
|
+
ChannelTypeId: null,
|
|
1153
|
+
type: 'flow',
|
|
1154
|
+
payload: JSON.stringify([
|
|
1155
|
+
{
|
|
1156
|
+
id: '',
|
|
1157
|
+
type: 'text',
|
|
1158
|
+
messages: [
|
|
1159
|
+
{ value: '', message: 'Super fácil! 💙\n' },
|
|
1160
|
+
{ value: '', message: 'É bem simples! 💙\n' },
|
|
1161
|
+
{
|
|
1162
|
+
value: '',
|
|
1163
|
+
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
value: '',
|
|
1167
|
+
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
1168
|
+
},
|
|
1169
|
+
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
1170
|
+
],
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
id: '',
|
|
1174
|
+
type: 'text',
|
|
1175
|
+
messages: [
|
|
1176
|
+
{
|
|
1177
|
+
value: '',
|
|
1178
|
+
message:
|
|
1179
|
+
'Para limpeza geral: \n\n• Água Sanitária Ypê pode ser usada em toda a casa. Eficiente para a limpeza e desinfecção de banheiros, cozinhas, pisos, azulejos e paredes. Adicione 1 copo (200ml) de Água Sanitária Ypê para cada 5 litros de água. Se necessário, deixar de molho por 10 minutos. Enxaguar a seguir. \n \nPara lavagem de roupas:\n\n • Para alvejar, adicione 1 copo (200ml) de Água Sanitária Ypê para cada 20 litros de água. Deixe de molho por 30 minutos antes de iniciar a lavagem no tanque ou na máquina. LEMBRE-SE: Não utilize em roupas coloridas. \n \nPara limpeza de banheiras e pias: \n\n• Tampe o ralo e encha com água limpa a banheira ou a pia. Adicione ½ copo (100ml) de Água Sanitária Ypê para cada 10 litros de água. Deixe agir por 10 minutos e depois enxágue. ',
|
|
1180
|
+
},
|
|
1181
|
+
],
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
id: '',
|
|
1185
|
+
type: 'text',
|
|
1186
|
+
messages: [
|
|
1187
|
+
{
|
|
1188
|
+
value: '',
|
|
1189
|
+
message:
|
|
1190
|
+
'Para limpeza de vidros, louças, porcelanas, mármores, plásticos e cerâmicas:\n \n• Em um balde coloque 1 litro de água limpa. Em seguida, adicione 3 colheres de sopa (45ml) de Água Sanitária Ypê. Limpe os objetos com esponja ou pano molhado nesta solução. Enxágue a seguir. \n \nPara limpeza de vasos sanitários e ralos: \n\n• Para remoção da sujeira incrustada, despeje Água Sanitária Ypê pura, deixe agir por 10 minutos e enxágue a seguir. \n \nPara desinfecção de frutas, verduras e legumes:\n \n• Misture 1 colher de sopa (15ml) de Água Sanitária Ypê em 1 litro de água. Deixe de molho por 10 minutos e enxágue a seguir com água potável.',
|
|
1191
|
+
},
|
|
1192
|
+
],
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
id: '',
|
|
1196
|
+
type: 'text',
|
|
1197
|
+
messages: [
|
|
1198
|
+
{
|
|
1199
|
+
value: '',
|
|
1200
|
+
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
1201
|
+
},
|
|
1202
|
+
],
|
|
1203
|
+
},
|
|
1204
|
+
]),
|
|
1205
|
+
createdAt: new Date(),
|
|
1206
|
+
updatedAt: new Date(),
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
// Água Sanitária Ypê Menu
|
|
1210
|
+
|
|
1211
|
+
const aguaSanitariaMenuResponse = {
|
|
1212
|
+
id: 'f4ccb878-cd63-4ef7-b8df-d280e4479a80',
|
|
1213
|
+
name: 'Água Sanitária Ypê Menu',
|
|
1214
|
+
SkillId,
|
|
1215
|
+
type: 'flow',
|
|
1216
|
+
createdAt: new Date(),
|
|
1217
|
+
updatedAt: new Date(),
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
const aguaSanitariaMenuResponseBox = {
|
|
1221
|
+
ResponseId: aguaSanitariaMenuResponse.id,
|
|
1222
|
+
ChannelTypeId: null,
|
|
1223
|
+
type: 'flow',
|
|
1224
|
+
payload: JSON.stringify([
|
|
1225
|
+
{
|
|
1226
|
+
id: '',
|
|
1227
|
+
type: 'text',
|
|
1228
|
+
messages: [
|
|
1229
|
+
{
|
|
1230
|
+
value: '',
|
|
1231
|
+
message:
|
|
1232
|
+
'Pode deixar, vou te mostrar todos os detalhes da Água Sanitária Ypê. Você vai adorar! 😄\n',
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
value: '',
|
|
1236
|
+
message:
|
|
1237
|
+
'Se bateu aquela curiosidade sobre a Água Sanitária Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
1238
|
+
},
|
|
1239
|
+
{ value: '', message: 'Saiba tudo sobre a Água Sanitária Ypê! 😃\n' },
|
|
1240
|
+
{
|
|
1241
|
+
value: '',
|
|
1242
|
+
message:
|
|
1243
|
+
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça a Água Sanitária Ypê. 😃\n',
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
value: '',
|
|
1247
|
+
message:
|
|
1248
|
+
'Ficou mega interessado em conhecer mais sobre a Água Sanitária Ypê? Não se preocupe, vou te explicar tudo. 😍\n',
|
|
1249
|
+
},
|
|
1250
|
+
],
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
id: '',
|
|
1254
|
+
type: 'image',
|
|
1255
|
+
messages: [
|
|
1256
|
+
{
|
|
1257
|
+
value: '',
|
|
1258
|
+
message:
|
|
1259
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/agua sanitaria.png',
|
|
1260
|
+
},
|
|
1261
|
+
],
|
|
1262
|
+
},
|
|
1263
|
+
]),
|
|
1264
|
+
createdAt: new Date(),
|
|
1265
|
+
updatedAt: new Date(),
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
// Multiuso Premium Ypê beneficio
|
|
1269
|
+
|
|
1270
|
+
const multiusoPremiumBeneficioResponse = {
|
|
1271
|
+
id: '1fa15aed-c7b0-4792-97b8-0182d8c036c7',
|
|
1272
|
+
name: 'Multiuso Premium beneficio',
|
|
1273
|
+
SkillId,
|
|
1274
|
+
type: 'flow',
|
|
1275
|
+
createdAt: new Date(),
|
|
1276
|
+
updatedAt: new Date(),
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
const multiusoPremiumBeneficioResponseBox = {
|
|
1280
|
+
ResponseId: multiusoPremiumBeneficioResponse.id,
|
|
1281
|
+
ChannelTypeId: null,
|
|
1282
|
+
type: 'flow',
|
|
1283
|
+
payload: JSON.stringify([
|
|
1284
|
+
{
|
|
1285
|
+
id: '',
|
|
1286
|
+
type: 'text',
|
|
1287
|
+
messages: [
|
|
1288
|
+
{
|
|
1289
|
+
value: '',
|
|
1290
|
+
message:
|
|
1291
|
+
'A linha Multiuso Premium Ypê garante praticidade e eficiência. Limpador de pequenas superfícies, para uma limpeza prática, rápida e eficiente. Podem ser utilizados em azulejos, pisos, vidros e fogão.\n\nCada uma das cinco versões possui um benefício extra, entregando a solução completa de limpeza para casa.',
|
|
1292
|
+
},
|
|
1293
|
+
],
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
id: '',
|
|
1297
|
+
type: 'text',
|
|
1298
|
+
messages: [
|
|
1299
|
+
{
|
|
1300
|
+
value: '',
|
|
1301
|
+
message:
|
|
1302
|
+
'A linha conta com as versões: \n \nCom Álcool - Fornece brilho sem embaçar.',
|
|
1303
|
+
},
|
|
1304
|
+
],
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
id: '',
|
|
1308
|
+
type: 'image',
|
|
1309
|
+
messages: [
|
|
1310
|
+
{
|
|
1311
|
+
value: '',
|
|
1312
|
+
message: 'https://chatbot.dev.ypedia.com.br/images/bot/alcool.png',
|
|
1313
|
+
},
|
|
1314
|
+
],
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
id: '',
|
|
1318
|
+
type: 'text',
|
|
1319
|
+
messages: [{ value: '', message: 'Clássico - Ação desengordurante.' }],
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
id: '',
|
|
1323
|
+
type: 'image',
|
|
1324
|
+
messages: [
|
|
1325
|
+
{
|
|
1326
|
+
value: '',
|
|
1327
|
+
message: 'https://chatbot.dev.ypedia.com.br/images/bot/classico.png',
|
|
1328
|
+
},
|
|
1329
|
+
],
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
id: '',
|
|
1333
|
+
type: 'text',
|
|
1334
|
+
messages: [
|
|
1335
|
+
{ value: '', message: 'Controle de Odor - Ação que controla odores.' },
|
|
1336
|
+
],
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
id: '',
|
|
1340
|
+
type: 'image',
|
|
1341
|
+
messages: [
|
|
1342
|
+
{
|
|
1343
|
+
value: '',
|
|
1344
|
+
message:
|
|
1345
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/controle-odor (1).png',
|
|
1346
|
+
},
|
|
1347
|
+
],
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
id: '',
|
|
1351
|
+
type: 'text',
|
|
1352
|
+
messages: [
|
|
1353
|
+
{
|
|
1354
|
+
value: '',
|
|
1355
|
+
message: 'Secagem Rápida - Proporciona a perfumação e seca rápido.',
|
|
1356
|
+
},
|
|
1357
|
+
],
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
id: '',
|
|
1361
|
+
type: 'image',
|
|
1362
|
+
messages: [
|
|
1363
|
+
{
|
|
1364
|
+
value: '',
|
|
1365
|
+
message:
|
|
1366
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/secagem-rapida.png',
|
|
1367
|
+
},
|
|
1368
|
+
],
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
id: '',
|
|
1372
|
+
type: 'text',
|
|
1373
|
+
messages: [
|
|
1374
|
+
{ value: '', message: 'Tira Manchas - Ação em superfícies e tecidos.' },
|
|
1375
|
+
],
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
id: '',
|
|
1379
|
+
type: 'image',
|
|
1380
|
+
messages: [
|
|
1381
|
+
{
|
|
1382
|
+
value: '',
|
|
1383
|
+
message:
|
|
1384
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/tira-manchas.png',
|
|
1385
|
+
},
|
|
1386
|
+
],
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
id: '',
|
|
1390
|
+
type: 'text',
|
|
1391
|
+
messages: [
|
|
1392
|
+
{ value: '', message: 'Gostou de saber disso? Eu adorei! 🥰' },
|
|
1393
|
+
],
|
|
1394
|
+
},
|
|
1395
|
+
]),
|
|
1396
|
+
createdAt: new Date(),
|
|
1397
|
+
updatedAt: new Date(),
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
// Multiuso Premium Ypê modo uso
|
|
1401
|
+
|
|
1402
|
+
const multiusoPremiumModoDeUsoResponse = {
|
|
1403
|
+
id: '8a9cddcc-b4c4-4dd2-ae52-bb1206fb6b77',
|
|
1404
|
+
name: 'Multiuso Premium Ypê modo uso',
|
|
1405
|
+
SkillId,
|
|
1406
|
+
type: 'flow',
|
|
1407
|
+
createdAt: new Date(),
|
|
1408
|
+
updatedAt: new Date(),
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
const multiusoPremiumModoDeUsoResponseBox = {
|
|
1412
|
+
ResponseId: multiusoPremiumModoDeUsoResponse.id,
|
|
1413
|
+
ChannelTypeId: null,
|
|
1414
|
+
type: 'flow',
|
|
1415
|
+
payload: JSON.stringify([
|
|
1416
|
+
{
|
|
1417
|
+
id: '',
|
|
1418
|
+
type: 'text',
|
|
1419
|
+
messages: [
|
|
1420
|
+
{ value: '', message: 'Super fácil! 💙\n' },
|
|
1421
|
+
{ value: '', message: 'É bem simples! 💙\n' },
|
|
1422
|
+
{
|
|
1423
|
+
value: '',
|
|
1424
|
+
message: 'Vamos descomplicar a sua vida! Olha como é fácil. 💙\n',
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
value: '',
|
|
1428
|
+
message: 'Isso vai facilitar a sua rotina, olha como é prático. 💙\n',
|
|
1429
|
+
},
|
|
1430
|
+
{ value: '', message: 'Usar esse produto é bem simples! 💙\n' },
|
|
1431
|
+
],
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
id: '',
|
|
1435
|
+
type: 'text',
|
|
1436
|
+
messages: [
|
|
1437
|
+
{
|
|
1438
|
+
value: '',
|
|
1439
|
+
message:
|
|
1440
|
+
'• Passo 1: Umedeça um pano limpo e seco com o produto e espalhe sobre a superfície. \n\n• Passo 2: Enxugue com outro pano limpo e seco até sua remoção.\n\n• Passo 3: Em superfícies muito sujas, repita o processo.',
|
|
1441
|
+
},
|
|
1442
|
+
],
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
id: '',
|
|
1446
|
+
type: 'text',
|
|
1447
|
+
messages: [
|
|
1448
|
+
{
|
|
1449
|
+
value: '',
|
|
1450
|
+
message: 'É muito importante entender esse passo, não é mesmo?! 😍',
|
|
1451
|
+
},
|
|
1452
|
+
],
|
|
1453
|
+
},
|
|
1454
|
+
]),
|
|
1455
|
+
createdAt: new Date(),
|
|
1456
|
+
updatedAt: new Date(),
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
// Multiuso Premium Ypê menu
|
|
1460
|
+
|
|
1461
|
+
const multiusoPremiumMenuResponse = {
|
|
1462
|
+
id: 'e1db9eaf-39fd-42b3-8f97-c849e94c824c',
|
|
1463
|
+
name: 'Multiuso Premium Ypê menu',
|
|
1464
|
+
SkillId,
|
|
1465
|
+
type: 'flow',
|
|
1466
|
+
createdAt: new Date(),
|
|
1467
|
+
updatedAt: new Date(),
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
const multiusoPremiumMenuResponseBox = {
|
|
1471
|
+
ResponseId: multiusoPremiumMenuResponse.id,
|
|
1472
|
+
ChannelTypeId: null,
|
|
1473
|
+
type: 'flow',
|
|
1474
|
+
payload: JSON.stringify([
|
|
1475
|
+
{
|
|
1476
|
+
id: '',
|
|
1477
|
+
type: 'text',
|
|
1478
|
+
messages: [
|
|
1479
|
+
{
|
|
1480
|
+
value: '',
|
|
1481
|
+
message:
|
|
1482
|
+
'Pode deixar, vou te mostrar todos os detalhes do Multiuso Premium Ypê. Você vai adorar! 😄\n',
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
value: '',
|
|
1486
|
+
message:
|
|
1487
|
+
'Se bateu aquela curiosidade sobre o Multiuso Premium Ypê, estou aqui pra te explicar tudinho! 😊\n',
|
|
1488
|
+
},
|
|
1489
|
+
{ value: '', message: 'Saiba tudo sobre o Multiuso Premium Ypê! 😃\n' },
|
|
1490
|
+
{
|
|
1491
|
+
value: '',
|
|
1492
|
+
message:
|
|
1493
|
+
'Pra você que acompanha a Ypê ou está conhecendo e quer saber um pouco mais sobre as nossas linhas, esse é o momento! Conheça o Multiuso Premium Ypê. 😃\n',
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
value: '',
|
|
1497
|
+
message:
|
|
1498
|
+
'Ficou mega interessado em conhecer mais sobre o Multiuso Premium Ypê? Não se preocupe, vou te explicar tudo. 😍',
|
|
1499
|
+
},
|
|
1500
|
+
],
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
id: '',
|
|
1504
|
+
type: 'image',
|
|
1505
|
+
messages: [
|
|
1506
|
+
{
|
|
1507
|
+
value: '',
|
|
1508
|
+
message:
|
|
1509
|
+
'https://chatbot.dev.ypedia.com.br/images/bot/multiuso5produtos.png',
|
|
1510
|
+
},
|
|
1511
|
+
],
|
|
1512
|
+
},
|
|
1513
|
+
]),
|
|
1514
|
+
createdAt: new Date(),
|
|
1515
|
+
updatedAt: new Date(),
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
// produtos 5 mais buscados menu
|
|
1519
|
+
|
|
1520
|
+
const produtos5maisBuscadosResponse = {
|
|
1521
|
+
id: 'e8ee9e54-11c2-4c70-9786-87ba543b403c',
|
|
1522
|
+
name: 'produtos 5 mais buscados menu',
|
|
1523
|
+
SkillId,
|
|
1524
|
+
type: 'flow',
|
|
1525
|
+
createdAt: new Date(),
|
|
1526
|
+
updatedAt: new Date(),
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
const produtos5maisBuscadosResponseBox = {
|
|
1530
|
+
ResponseId: produtos5maisBuscadosResponse.id,
|
|
1531
|
+
ChannelTypeId: null,
|
|
1532
|
+
type: 'flow',
|
|
1533
|
+
payload: JSON.stringify([
|
|
1534
|
+
{
|
|
1535
|
+
id: '',
|
|
1536
|
+
type: 'text',
|
|
1537
|
+
messages: [
|
|
1538
|
+
{
|
|
1539
|
+
value: '',
|
|
1540
|
+
message:
|
|
1541
|
+
'Quer saber quais são os produtos mais buscados pelos nossos clientes? 😍',
|
|
1542
|
+
},
|
|
1543
|
+
],
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
type: 'simple_button',
|
|
1547
|
+
text: 'Que tal conhecer um pouquinho sobre eles. É fácil, é só clicar em uma dessas opções.',
|
|
1548
|
+
buttons: [
|
|
1549
|
+
{ label: 'Detergente Ypê', value: 'menu_prod_deter_ype' },
|
|
1550
|
+
{ label: 'Sabão em Pó Tixan', value: 'sabaoPo' },
|
|
1551
|
+
{ label: 'Amaciante Essencial ', value: 'prod_amanc' },
|
|
1552
|
+
{ label: 'Água Sanitária Ypê', value: 'ag_sanit' },
|
|
1553
|
+
{ label: 'Multiuso Premium Ypê', value: 'multiPremium' },
|
|
1554
|
+
{ label: 'Linha Completa ', value: 'ConhecaLinhaCompleta' },
|
|
1555
|
+
{ label: 'Voltar', value: 'menu' },
|
|
1556
|
+
{ label: 'Sair', value: 'adeus' },
|
|
1557
|
+
],
|
|
1558
|
+
},
|
|
1559
|
+
]),
|
|
1560
|
+
createdAt: new Date(),
|
|
1561
|
+
updatedAt: new Date(),
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
// Dialog nodes
|
|
1565
|
+
|
|
1566
|
+
let menuProdutosDialogNodeFolder = {
|
|
1567
|
+
id: '772646d9-5aac-46e2-994c-3c2d205bfc3a',
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
let menuProdutosDialogNodeMenuMoreSearch = {
|
|
1571
|
+
id: '56002edb-6a56-4b85-9860-47c0bd05bfa5',
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
let menuProdutosDialogNodeMenuBenefis = {
|
|
1575
|
+
id: '342df8b3-81dd-4562-b705-69a307512700',
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
let menuProdutosDialogNodeMenuHowToUse = {
|
|
1579
|
+
id: '53105c9d-89c2-4c7e-b44f-e53ec500303a',
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
let welcomeDialogNode = {
|
|
1583
|
+
id: 'e7fe802f-2075-442b-974c-18855d6431ea',
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
let faqDialogNodeFolder = {
|
|
1587
|
+
id: '43c14eee-7ede-4c0f-b7d2-109730c6f76b',
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
let productsDialogNodeFolder = {
|
|
1591
|
+
id: '163059a6-9793-43a5-8a8c-e703854ae63a',
|
|
1592
|
+
}
|
|
1593
|
+
let productsMoreSearchDialogNode = {
|
|
1594
|
+
id: 'f872321f-8023-4a6c-b912-53ede5f3db1a',
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
let multiusoPrmiumDialogNodeBenefisHowToUse = {
|
|
1598
|
+
id: '5d724624-55d8-4bac-b9fa-98c70942c794',
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
let multiusoPrmiumDialogNodeFolder = {
|
|
1602
|
+
id: 'ca81d90b-f2b3-45d2-a17a-734157794031',
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
let multiusoPrmiumDialogNodeBenefis = {
|
|
1606
|
+
id: '5aeb1a7d-098b-46f4-a581-a5f6496cf63a',
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
let multiusoPrmiumDialogNodeHowToUse = {
|
|
1610
|
+
id: '2f644ee3-dadb-40ac-8923-4325f49befb4',
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
let aguaSanitariaDialogNodeBenefisHowToUse = {
|
|
1614
|
+
id: '70767cf5-b6ac-4a55-a86a-264ccf765258',
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
let aguaSanitariaDialogNodeBenefis = {
|
|
1618
|
+
id: '6e4afca3-5404-4514-a8ba-489fc25ee36c',
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
let aguaSanitariaDialogNodeHowToUse = {
|
|
1622
|
+
id: 'ca6b1802-2c9a-4658-9b04-3a85d28ad645',
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
let aguaSanitariaDialogNodeFolder = {
|
|
1626
|
+
id: '3c7e5b22-9a60-4744-9fd6-731c354a8568',
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
let amacianteEssencialDialogNodeBenefisHowToUse = {
|
|
1630
|
+
id: 'd6005784-9ecd-4b92-bbc3-69470b140f06',
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
let amacianteEssencialDialogNodeBenefis = {
|
|
1634
|
+
id: 'c3e4b7c8-9bbb-412d-b890-86b2c05cd0f3',
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
let amacianteEssencialDialogNodeHowToUse = {
|
|
1638
|
+
id: 'f88d46ba-9a35-438f-8d22-fbe9064e103f',
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
let amacianteEssencialDialogNodeFolder = {
|
|
1642
|
+
id: 'b1b933b9-3a51-452c-9f8b-2eda068410af',
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
let sabaoEmPoDialogNodeBeneficsHowToUse = {
|
|
1646
|
+
id: '354a74cc-fb65-4e53-a405-d117f543d64b',
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
let sabaoEmPoDialogNodeBenefics = {
|
|
1650
|
+
id: 'fb7d776f-f617-4843-b0c4-995369d61d73',
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
let sabaoEmPoDialogNodeHowToUse = {
|
|
1654
|
+
id: '5a08350f-bd31-4c1f-b5c6-e0ce85815416',
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
let sabaoEmPoDialogNodeFolder = {
|
|
1658
|
+
id: '21a876a0-b8f9-450a-ad75-ff3b921e6ac7',
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
let detergenteTraditionalDialogBeneficsHowToUse = {
|
|
1662
|
+
id: '42077993-2ab5-420e-958b-e4028c52169c',
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
let detergenteTraditionalDialogBenefics = {
|
|
1666
|
+
id: '74daef7a-58b9-4380-a435-2139d3e0f93c',
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
let detergenteTraditionalDialogNodeHowToUse = {
|
|
1670
|
+
id: '7653f184-7d9c-4ded-8f0c-b81e2c74ec95',
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
let detergenteTraditionalDialogNodeFolder = {
|
|
1674
|
+
id: 'f09c5ce7-6a86-483e-b275-f26356c6c6f4',
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
let productsMoreSearchDialogNodeFolder = {
|
|
1678
|
+
id: 'ca54b825-8caf-4f9b-8a56-5200b434d5b9',
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
welcomeDialogNode = {
|
|
1682
|
+
...welcomeDialogNode,
|
|
1683
|
+
name: 'menu_principal',
|
|
1684
|
+
condition: '#saudacao',
|
|
1685
|
+
SkillId,
|
|
1686
|
+
contexts: JSON.stringify({
|
|
1687
|
+
ID: 'C4',
|
|
1688
|
+
nivel_1: 'menu',
|
|
1689
|
+
nivel_2: '',
|
|
1690
|
+
nivel_3: '',
|
|
1691
|
+
}),
|
|
1692
|
+
step: 1,
|
|
1693
|
+
replayWait: true,
|
|
1694
|
+
type: 'node',
|
|
1695
|
+
isMultipleResponse: false,
|
|
1696
|
+
JumpToDialogNodeId: null,
|
|
1697
|
+
JumpToSkillId: null,
|
|
1698
|
+
DialogNodeFolderId: null,
|
|
1699
|
+
createdAt: new Date(),
|
|
1700
|
+
updatedAt: new Date(),
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
faqDialogNodeFolder = {
|
|
1704
|
+
...faqDialogNodeFolder,
|
|
1705
|
+
name: 'FAQs',
|
|
1706
|
+
condition: null,
|
|
1707
|
+
SkillId,
|
|
1708
|
+
contexts: '{}',
|
|
1709
|
+
step: 2,
|
|
1710
|
+
replayWait: true,
|
|
1711
|
+
type: 'folder',
|
|
1712
|
+
isMultipleResponse: false,
|
|
1713
|
+
JumpToDialogNodeId: null,
|
|
1714
|
+
JumpToSkillId: null,
|
|
1715
|
+
DialogNodeFolderId: null,
|
|
1716
|
+
createdAt: new Date(),
|
|
1717
|
+
updatedAt: new Date(),
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
productsDialogNodeFolder = {
|
|
1721
|
+
...productsDialogNodeFolder,
|
|
1722
|
+
name: 'Produtos',
|
|
1723
|
+
condition: null,
|
|
1724
|
+
SkillId,
|
|
1725
|
+
contexts: '{}',
|
|
1726
|
+
step: 1,
|
|
1727
|
+
replayWait: true,
|
|
1728
|
+
type: 'folder',
|
|
1729
|
+
isMultipleResponse: false,
|
|
1730
|
+
JumpToDialogNodeId: null,
|
|
1731
|
+
JumpToSkillId: null,
|
|
1732
|
+
DialogNodeFolderId: faqDialogNodeFolder.id,
|
|
1733
|
+
createdAt: new Date(),
|
|
1734
|
+
updatedAt: new Date(),
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
productsMoreSearchDialogNodeFolder = {
|
|
1738
|
+
...productsMoreSearchDialogNodeFolder,
|
|
1739
|
+
name: 'Produtos mais buscados',
|
|
1740
|
+
condition: null,
|
|
1741
|
+
SkillId,
|
|
1742
|
+
contexts: '{}',
|
|
1743
|
+
step: 1,
|
|
1744
|
+
replayWait: true,
|
|
1745
|
+
type: 'folder',
|
|
1746
|
+
isMultipleResponse: false,
|
|
1747
|
+
JumpToDialogNodeId: null,
|
|
1748
|
+
JumpToSkillId: null,
|
|
1749
|
+
DialogNodeFolderId: productsDialogNodeFolder.id,
|
|
1750
|
+
createdAt: new Date(),
|
|
1751
|
+
updatedAt: new Date(),
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
detergenteTraditionalDialogNodeFolder = {
|
|
1755
|
+
...detergenteTraditionalDialogNodeFolder,
|
|
1756
|
+
name: 'Detergente Tradicional',
|
|
1757
|
+
condition: null,
|
|
1758
|
+
SkillId,
|
|
1759
|
+
contexts: '{}',
|
|
1760
|
+
step: 1,
|
|
1761
|
+
replayWait: true,
|
|
1762
|
+
type: 'folder',
|
|
1763
|
+
isMultipleResponse: false,
|
|
1764
|
+
JumpToDialogNodeId: null,
|
|
1765
|
+
JumpToSkillId: null,
|
|
1766
|
+
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
1767
|
+
createdAt: new Date(),
|
|
1768
|
+
updatedAt: new Date(),
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
detergenteTraditionalDialogNodeHowToUse = {
|
|
1772
|
+
...detergenteTraditionalDialogNodeHowToUse,
|
|
1773
|
+
name: 'produtos_mais_buscados_modo_uso_detergente',
|
|
1774
|
+
condition:
|
|
1775
|
+
'#modo_de_usar_produtos && @produtos:detergente_tradicional || input.text == menu_prod_deter_ype_ModoUsar || $nivel_2 == menu_prod_deter_ype && @modo_usar',
|
|
1776
|
+
SkillId,
|
|
1777
|
+
contexts: JSON.stringify({
|
|
1778
|
+
ID: 'C7',
|
|
1779
|
+
nivel_2: 'menu_prod_deter_ype',
|
|
1780
|
+
nivel_3: 'C7',
|
|
1781
|
+
}),
|
|
1782
|
+
step: 1,
|
|
1783
|
+
replayWait: true,
|
|
1784
|
+
type: 'node',
|
|
1785
|
+
isMultipleResponse: false,
|
|
1786
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1787
|
+
JumpToSkillId: null,
|
|
1788
|
+
DialogNodeFolderId: detergenteTraditionalDialogNodeFolder.id,
|
|
1789
|
+
createdAt: new Date(),
|
|
1790
|
+
updatedAt: new Date(),
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
detergenteTraditionalDialogBenefics = {
|
|
1794
|
+
...detergenteTraditionalDialogBenefics,
|
|
1795
|
+
name: 'produtos_mais_buscados_beneficios_detergente',
|
|
1796
|
+
condition:
|
|
1797
|
+
'#beneficios_produtos && @produtos:detergente_tradicional || input.text == menu_prod_deter_ype_beneficio || $nivel_2 == menu_prod_deter_ype && @beneficios',
|
|
1798
|
+
SkillId,
|
|
1799
|
+
contexts: JSON.stringify({
|
|
1800
|
+
ID: 'C6',
|
|
1801
|
+
nivel_2: 'menu_prod_deter_ype',
|
|
1802
|
+
nivel_3: 'C6',
|
|
1803
|
+
}),
|
|
1804
|
+
step: 2,
|
|
1805
|
+
replayWait: true,
|
|
1806
|
+
type: 'node',
|
|
1807
|
+
isMultipleResponse: false,
|
|
1808
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
1809
|
+
JumpToSkillId: null,
|
|
1810
|
+
DialogNodeFolderId: detergenteTraditionalDialogNodeFolder.id,
|
|
1811
|
+
createdAt: new Date(),
|
|
1812
|
+
updatedAt: new Date(),
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
detergenteTraditionalDialogBeneficsHowToUse = {
|
|
1816
|
+
...detergenteTraditionalDialogBeneficsHowToUse,
|
|
1817
|
+
name: 'produtos_mais_buscados_beneficios_modo_uso_detergente',
|
|
1818
|
+
condition:
|
|
1819
|
+
'#produtos && @produtos:detergente_tradicional || input.text == menu_prod_deter_ype || $nivel_1 == produto_menu || @produtos:detergente_tradicional',
|
|
1820
|
+
SkillId,
|
|
1821
|
+
contexts: JSON.stringify({
|
|
1822
|
+
ID: 'C5',
|
|
1823
|
+
nivel_2: 'menu_prod_deter_ype',
|
|
1824
|
+
nivel_3: 'C5',
|
|
1825
|
+
}),
|
|
1826
|
+
step: 3,
|
|
1827
|
+
replayWait: true,
|
|
1828
|
+
type: 'node',
|
|
1829
|
+
isMultipleResponse: false,
|
|
1830
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
1831
|
+
JumpToSkillId: null,
|
|
1832
|
+
DialogNodeFolderId: detergenteTraditionalDialogNodeFolder.id,
|
|
1833
|
+
createdAt: new Date(),
|
|
1834
|
+
updatedAt: new Date(),
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
sabaoEmPoDialogNodeFolder = {
|
|
1838
|
+
...sabaoEmPoDialogNodeFolder,
|
|
1839
|
+
name: 'Sabão em pó Tixan',
|
|
1840
|
+
condition: null,
|
|
1841
|
+
SkillId,
|
|
1842
|
+
contexts: '{}',
|
|
1843
|
+
step: 2,
|
|
1844
|
+
replayWait: true,
|
|
1845
|
+
type: 'folder',
|
|
1846
|
+
isMultipleResponse: false,
|
|
1847
|
+
JumpToDialogNodeId: null,
|
|
1848
|
+
JumpToSkillId: null,
|
|
1849
|
+
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
1850
|
+
createdAt: new Date(),
|
|
1851
|
+
updatedAt: new Date(),
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
sabaoEmPoDialogNodeHowToUse = {
|
|
1855
|
+
...sabaoEmPoDialogNodeHowToUse,
|
|
1856
|
+
name: 'produtos_mais_buscados_modo_uso_sabao_po_tixan',
|
|
1857
|
+
condition:
|
|
1858
|
+
'#modo_de_usar_produtos && @produtos:sabao_em_po || input.text == produtos_sabaopotixan_ModoUsar || $nivel_2 == produtos_sabaopotixan && @modo_usar',
|
|
1859
|
+
SkillId,
|
|
1860
|
+
contexts: JSON.stringify({
|
|
1861
|
+
ID: 'C9',
|
|
1862
|
+
nivel_2: 'produtos_sabaopotixan',
|
|
1863
|
+
nivel_3: 'C9',
|
|
1864
|
+
}),
|
|
1865
|
+
step: 3,
|
|
1866
|
+
replayWait: true,
|
|
1867
|
+
type: 'node',
|
|
1868
|
+
isMultipleResponse: false,
|
|
1869
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1870
|
+
JumpToSkillId: null,
|
|
1871
|
+
DialogNodeFolderId: sabaoEmPoDialogNodeFolder.id,
|
|
1872
|
+
createdAt: new Date(),
|
|
1873
|
+
updatedAt: new Date(),
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
sabaoEmPoDialogNodeBenefics = {
|
|
1877
|
+
...sabaoEmPoDialogNodeBenefics,
|
|
1878
|
+
name: 'produtos_mais_buscados_benefícios_sabao_po_tixan_ype',
|
|
1879
|
+
condition:
|
|
1880
|
+
'#beneficios_produtos && @produtos:sabao_em_po || input.text == produtos_sabaopotixan_beneficio || $nivel_2 == produtos_sabaopotixan && @beneficios',
|
|
1881
|
+
SkillId,
|
|
1882
|
+
contexts: JSON.stringify({
|
|
1883
|
+
ID: 'C8',
|
|
1884
|
+
nivel_2: 'produtos_sabaopotixan',
|
|
1885
|
+
nivel_3: 'C8',
|
|
1886
|
+
}),
|
|
1887
|
+
step: 1,
|
|
1888
|
+
replayWait: true,
|
|
1889
|
+
type: 'node',
|
|
1890
|
+
isMultipleResponse: false,
|
|
1891
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1892
|
+
JumpToSkillId: null,
|
|
1893
|
+
DialogNodeFolderId: sabaoEmPoDialogNodeFolder.id,
|
|
1894
|
+
createdAt: new Date(),
|
|
1895
|
+
updatedAt: new Date(),
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
sabaoEmPoDialogNodeBeneficsHowToUse = {
|
|
1899
|
+
...sabaoEmPoDialogNodeBeneficsHowToUse,
|
|
1900
|
+
name: 'produtos_mais_buscados_benefícios_modo_uso_sabao_po_tixan',
|
|
1901
|
+
condition:
|
|
1902
|
+
'#produtos && @produtos:sabao_em_po || input.text == sabaoPo || $nivel_1 == produto_menu || @produtos:sabao_em_po',
|
|
1903
|
+
SkillId,
|
|
1904
|
+
contexts: JSON.stringify({
|
|
1905
|
+
ID: 'C10',
|
|
1906
|
+
nivel_2: 'produtos_sabaopotixan',
|
|
1907
|
+
nivel_3: 'C10',
|
|
1908
|
+
}),
|
|
1909
|
+
step: 2,
|
|
1910
|
+
replayWait: true,
|
|
1911
|
+
type: 'node',
|
|
1912
|
+
isMultipleResponse: false,
|
|
1913
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
1914
|
+
JumpToSkillId: null,
|
|
1915
|
+
DialogNodeFolderId: sabaoEmPoDialogNodeFolder.id,
|
|
1916
|
+
createdAt: new Date(),
|
|
1917
|
+
updatedAt: new Date(),
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
amacianteEssencialDialogNodeFolder = {
|
|
1921
|
+
id: 'b1b933b9-3a51-452c-9f8b-2eda068410af',
|
|
1922
|
+
name: 'Amaciante Essencial',
|
|
1923
|
+
condition: null,
|
|
1924
|
+
SkillId,
|
|
1925
|
+
contexts: '{}',
|
|
1926
|
+
step: 3,
|
|
1927
|
+
replayWait: true,
|
|
1928
|
+
type: 'folder',
|
|
1929
|
+
isMultipleResponse: false,
|
|
1930
|
+
JumpToDialogNodeId: null,
|
|
1931
|
+
JumpToSkillId: null,
|
|
1932
|
+
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
1933
|
+
createdAt: new Date(),
|
|
1934
|
+
updatedAt: new Date(),
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
amacianteEssencialDialogNodeHowToUse = {
|
|
1938
|
+
...amacianteEssencialDialogNodeHowToUse,
|
|
1939
|
+
name: 'produtos_mais_buscados_modo_uso_amaciante_essencial',
|
|
1940
|
+
condition:
|
|
1941
|
+
'#modo_de_usar_produtos && @produtos:amaciante || input.text == prod_amanc_ype_ModoUsar || $nivel_2 == prod_amanc_ype && @modo_usar',
|
|
1942
|
+
SkillId,
|
|
1943
|
+
contexts: JSON.stringify({
|
|
1944
|
+
ID: 'C12',
|
|
1945
|
+
nivel_2: 'prod_amanc_ype',
|
|
1946
|
+
nivel_3: 'C12',
|
|
1947
|
+
}),
|
|
1948
|
+
step: 1,
|
|
1949
|
+
replayWait: true,
|
|
1950
|
+
type: 'node',
|
|
1951
|
+
isMultipleResponse: false,
|
|
1952
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
1953
|
+
JumpToSkillId: null,
|
|
1954
|
+
DialogNodeFolderId: amacianteEssencialDialogNodeFolder.id,
|
|
1955
|
+
createdAt: new Date(),
|
|
1956
|
+
updatedAt: new Date(),
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
amacianteEssencialDialogNodeBenefis = {
|
|
1960
|
+
...amacianteEssencialDialogNodeBenefis,
|
|
1961
|
+
name: 'produtos_mais_buscados_benefícios_amaciante_ype_essencial',
|
|
1962
|
+
condition:
|
|
1963
|
+
'#beneficios_produtos && @produtos:amaciante || input.text == prod_amanc_ype_beneficio || $nivel_2 == prod_amanc_ype && @beneficios',
|
|
1964
|
+
SkillId,
|
|
1965
|
+
contexts: JSON.stringify({
|
|
1966
|
+
ID: 'C11',
|
|
1967
|
+
nivel_2: 'prod_amanc_ype',
|
|
1968
|
+
nivel_3: 'C11',
|
|
1969
|
+
}),
|
|
1970
|
+
step: 2,
|
|
1971
|
+
replayWait: true,
|
|
1972
|
+
type: 'node',
|
|
1973
|
+
isMultipleResponse: false,
|
|
1974
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
1975
|
+
JumpToSkillId: null,
|
|
1976
|
+
DialogNodeFolderId: amacianteEssencialDialogNodeFolder.id,
|
|
1977
|
+
createdAt: new Date(),
|
|
1978
|
+
updatedAt: new Date(),
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
amacianteEssencialDialogNodeBenefisHowToUse = {
|
|
1982
|
+
...amacianteEssencialDialogNodeBenefisHowToUse,
|
|
1983
|
+
name: 'produtos_mais_buscados_benefícios_modo_uso_amaciante_essencial',
|
|
1984
|
+
condition:
|
|
1985
|
+
'#produtos && @produtos:amaciante || input.text == prod_amanc || $nivel_1 == produto_menu || @produtos:amaciante',
|
|
1986
|
+
SkillId,
|
|
1987
|
+
contexts: JSON.stringify({
|
|
1988
|
+
ID: 'C13',
|
|
1989
|
+
nivel_2: 'prod_amanc_ype',
|
|
1990
|
+
nivel_3: 'C13',
|
|
1991
|
+
}),
|
|
1992
|
+
step: 3,
|
|
1993
|
+
replayWait: true,
|
|
1994
|
+
type: 'node',
|
|
1995
|
+
isMultipleResponse: false,
|
|
1996
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
1997
|
+
JumpToSkillId: null,
|
|
1998
|
+
DialogNodeFolderId: amacianteEssencialDialogNodeFolder.id,
|
|
1999
|
+
createdAt: new Date(),
|
|
2000
|
+
updatedAt: new Date(),
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
aguaSanitariaDialogNodeFolder = {
|
|
2004
|
+
...aguaSanitariaDialogNodeFolder,
|
|
2005
|
+
name: 'Água Sanitária',
|
|
2006
|
+
condition: null,
|
|
2007
|
+
SkillId,
|
|
2008
|
+
contexts: '{}',
|
|
2009
|
+
step: 4,
|
|
2010
|
+
replayWait: true,
|
|
2011
|
+
type: 'folder',
|
|
2012
|
+
isMultipleResponse: false,
|
|
2013
|
+
JumpToDialogNodeId: null,
|
|
2014
|
+
JumpToSkillId: null,
|
|
2015
|
+
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
2016
|
+
createdAt: new Date(),
|
|
2017
|
+
updatedAt: new Date(),
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
aguaSanitariaDialogNodeHowToUse = {
|
|
2021
|
+
...aguaSanitariaDialogNodeHowToUse,
|
|
2022
|
+
name: 'produtos_mais_buscados_modo_uso_agua_sanitaria',
|
|
2023
|
+
condition:
|
|
2024
|
+
'#modo_de_usar_produtos && @produtos:agua_sanitaria || input.text == produtos_ag_sanit_ModoUsar || $nivel_2 == produtos_ag_sanit && @modo_usar',
|
|
2025
|
+
SkillId,
|
|
2026
|
+
contexts: JSON.stringify({
|
|
2027
|
+
ID: 'C16',
|
|
2028
|
+
nivel_2: 'produtos_ag_sanit',
|
|
2029
|
+
nivel_3: 'C16',
|
|
2030
|
+
}),
|
|
2031
|
+
step: 1,
|
|
2032
|
+
replayWait: true,
|
|
2033
|
+
type: 'node',
|
|
2034
|
+
isMultipleResponse: false,
|
|
2035
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuHowToUse.id,
|
|
2036
|
+
JumpToSkillId: null,
|
|
2037
|
+
DialogNodeFolderId: aguaSanitariaDialogNodeFolder.id,
|
|
2038
|
+
createdAt: new Date(),
|
|
2039
|
+
updatedAt: new Date(),
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
aguaSanitariaDialogNodeBenefis = {
|
|
2043
|
+
...aguaSanitariaDialogNodeBenefis,
|
|
2044
|
+
name: 'produtos_mais_buscados_benefícios_agua_sanitaria',
|
|
2045
|
+
condition:
|
|
2046
|
+
'#beneficios_produtos && @produtos:agua_sanitaria || input.text == produtos_ag_sanit_beneficio || $nivel_2 == produtos_ag_sanit && @beneficios',
|
|
2047
|
+
SkillId,
|
|
2048
|
+
contexts: JSON.stringify({
|
|
2049
|
+
ID: 'C15',
|
|
2050
|
+
nivel_2: 'produtos_ag_sanit',
|
|
2051
|
+
nivel_3: 'C15',
|
|
2052
|
+
}),
|
|
2053
|
+
step: 2,
|
|
2054
|
+
replayWait: true,
|
|
2055
|
+
type: 'node',
|
|
2056
|
+
isMultipleResponse: false,
|
|
2057
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
2058
|
+
JumpToSkillId: null,
|
|
2059
|
+
DialogNodeFolderId: aguaSanitariaDialogNodeFolder.id,
|
|
2060
|
+
createdAt: new Date(),
|
|
2061
|
+
updatedAt: new Date(),
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
aguaSanitariaDialogNodeBenefisHowToUse = {
|
|
2065
|
+
...aguaSanitariaDialogNodeBenefisHowToUse,
|
|
2066
|
+
name: 'produtos_mais_buscados_benefícios_modo_uso_agua_sanitaria',
|
|
2067
|
+
condition:
|
|
2068
|
+
'#produtos && @produtos:agua_sanitaria || input.text == ag_sanit || $nivel_1 == produto_menu && @produtos:agua_sanitaria || @produtos:agua_sanitaria',
|
|
2069
|
+
SkillId,
|
|
2070
|
+
contexts: JSON.stringify({
|
|
2071
|
+
ID: 'C14',
|
|
2072
|
+
nivel_2: 'produtos_ag_sanit',
|
|
2073
|
+
nivel_3: 'C14',
|
|
2074
|
+
}),
|
|
2075
|
+
step: 3,
|
|
2076
|
+
replayWait: true,
|
|
2077
|
+
type: 'node',
|
|
2078
|
+
isMultipleResponse: false,
|
|
2079
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuMoreSearch.id,
|
|
2080
|
+
JumpToSkillId: null,
|
|
2081
|
+
DialogNodeFolderId: aguaSanitariaDialogNodeFolder.id,
|
|
2082
|
+
createdAt: new Date(),
|
|
2083
|
+
updatedAt: new Date(),
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
multiusoPrmiumDialogNodeFolder = {
|
|
2087
|
+
...multiusoPrmiumDialogNodeFolder,
|
|
2088
|
+
name: 'Multiuso Premium',
|
|
2089
|
+
condition: null,
|
|
2090
|
+
SkillId,
|
|
2091
|
+
contexts: '{}',
|
|
2092
|
+
step: 5,
|
|
2093
|
+
replayWait: true,
|
|
2094
|
+
type: 'folder',
|
|
2095
|
+
isMultipleResponse: false,
|
|
2096
|
+
JumpToDialogNodeId: null,
|
|
2097
|
+
JumpToSkillId: null,
|
|
2098
|
+
DialogNodeFolderId: productsMoreSearchDialogNodeFolder.id,
|
|
2099
|
+
createdAt: new Date(),
|
|
2100
|
+
updatedAt: new Date(),
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
multiusoPrmiumDialogNodeBenefis = {
|
|
2104
|
+
...multiusoPrmiumDialogNodeBenefis,
|
|
2105
|
+
name: 'produtos_mais_buscados_benefícios_multioso_premium',
|
|
2106
|
+
condition:
|
|
2107
|
+
'#beneficios_produtos && @produtos:multiuso_premiun || input.text == Produtos_MultiusoPremium_beneficio || $nivel_2 == Produtos_MultiusoPremium && @beneficios',
|
|
2108
|
+
SkillId,
|
|
2109
|
+
contexts: JSON.stringify({
|
|
2110
|
+
ID: 'C17',
|
|
2111
|
+
nivel_2: 'Produtos_MultiusoPremium',
|
|
2112
|
+
nivel_3: 'C17',
|
|
2113
|
+
}),
|
|
2114
|
+
step: 1,
|
|
2115
|
+
replayWait: true,
|
|
2116
|
+
type: 'node',
|
|
2117
|
+
isMultipleResponse: false,
|
|
2118
|
+
JumpToDialogNodeId: menuProdutosDialogNodeMenuBenefis.id,
|
|
2119
|
+
JumpToSkillId: null,
|
|
2120
|
+
DialogNodeFolderId: multiusoPrmiumDialogNodeFolder.id,
|
|
2121
|
+
createdAt: new Date(),
|
|
2122
|
+
updatedAt: new Date(),
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
multiusoPrmiumDialogNodeHowToUse = {
|
|
2126
|
+
...multiusoPrmiumDialogNodeHowToUse,
|
|
2127
|
+
name: 'produtos_mais_buscados_modo_uso_multioso_premium',
|
|
2128
|
+
condition:
|
|
2129
|
+
'#modo_de_usar_produtos && @produtos:multiuso_premiun || input.text == Produtos_MultiusoPremium_ModoUsar || $nivel_2 == Produtos_MultiusoPremium && @modo_usar',
|
|
2130
|
+
SkillId,
|
|
2131
|
+
contexts: JSON.stringify({
|
|
2132
|
+
ID: 'C18',
|
|
2133
|
+
nivel_2: 'Produtos_MultiusoPremium',
|
|
2134
|
+
nivel_3: 'C18',
|
|
2135
|
+
}),
|
|
2136
|
+
step: 2,
|
|
2137
|
+
replayWait: true,
|
|
2138
|
+
type: 'node',
|
|
2139
|
+
isMultipleResponse: false,
|
|
2140
|
+
JumpToDialogNodeId: null,
|
|
2141
|
+
JumpToSkillId: null,
|
|
2142
|
+
DialogNodeFolderId: multiusoPrmiumDialogNodeFolder.id,
|
|
2143
|
+
createdAt: new Date(),
|
|
2144
|
+
updatedAt: new Date(),
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
multiusoPrmiumDialogNodeBenefisHowToUse = {
|
|
2148
|
+
...multiusoPrmiumDialogNodeBenefisHowToUse,
|
|
2149
|
+
name: 'produtos_mais_buscados_benefícios_modo_uso_multioso_premium',
|
|
2150
|
+
condition:
|
|
2151
|
+
'#produtos && @produtos:multiuso_premiun || input.text == multiPremium || $nivel_1 == produto_menu || @produtos:multiuso_premiun',
|
|
2152
|
+
SkillId,
|
|
2153
|
+
contexts: JSON.stringify({
|
|
2154
|
+
ID: 'C19',
|
|
2155
|
+
nivel_2: 'Produtos_MultiusoPremium',
|
|
2156
|
+
nivel_3: 'C19',
|
|
2157
|
+
}),
|
|
2158
|
+
step: 2,
|
|
2159
|
+
replayWait: true,
|
|
2160
|
+
type: 'node',
|
|
2161
|
+
isMultipleResponse: false,
|
|
2162
|
+
JumpToDialogNodeId: null,
|
|
2163
|
+
JumpToSkillId: null,
|
|
2164
|
+
DialogNodeFolderId: multiusoPrmiumDialogNodeFolder.id,
|
|
2165
|
+
createdAt: new Date(),
|
|
2166
|
+
updatedAt: new Date(),
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
menuProdutosDialogNodeFolder = {
|
|
2170
|
+
...menuProdutosDialogNodeFolder,
|
|
2171
|
+
name: 'menu produtos',
|
|
2172
|
+
condition: null,
|
|
2173
|
+
SkillId,
|
|
2174
|
+
contexts: '{}',
|
|
2175
|
+
step: 2,
|
|
2176
|
+
replayWait: true,
|
|
2177
|
+
type: 'folder',
|
|
2178
|
+
isMultipleResponse: false,
|
|
2179
|
+
JumpToDialogNodeId: null,
|
|
2180
|
+
JumpToSkillId: null,
|
|
2181
|
+
DialogNodeFolderId: productsDialogNodeFolder.id,
|
|
2182
|
+
createdAt: new Date(),
|
|
2183
|
+
updatedAt: new Date(),
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
menuProdutosDialogNodeMenuMoreSearch = {
|
|
2187
|
+
...menuProdutosDialogNodeMenuMoreSearch,
|
|
2188
|
+
name: 'produtos_menu_produtos_mais_buscado',
|
|
2189
|
+
condition: null,
|
|
2190
|
+
SkillId,
|
|
2191
|
+
contexts: JSON.stringify({
|
|
2192
|
+
ID: 'C20',
|
|
2193
|
+
nivel_3: 'produtos',
|
|
2194
|
+
}),
|
|
2195
|
+
step: 1,
|
|
2196
|
+
replayWait: true,
|
|
2197
|
+
type: 'node',
|
|
2198
|
+
isMultipleResponse: false,
|
|
2199
|
+
JumpToDialogNodeId: null,
|
|
2200
|
+
JumpToSkillId: null,
|
|
2201
|
+
DialogNodeFolderId: menuProdutosDialogNodeFolder.id,
|
|
2202
|
+
createdAt: new Date(),
|
|
2203
|
+
updatedAt: new Date(),
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
menuProdutosDialogNodeMenuBenefis = {
|
|
2207
|
+
...menuProdutosDialogNodeMenuBenefis,
|
|
2208
|
+
name: 'produtos_menu_produtos_beneficios',
|
|
2209
|
+
condition: null,
|
|
2210
|
+
SkillId,
|
|
2211
|
+
contexts: JSON.stringify({
|
|
2212
|
+
ID: 'C21',
|
|
2213
|
+
nivel_3: 'produtos',
|
|
2214
|
+
}),
|
|
2215
|
+
step: 2,
|
|
2216
|
+
replayWait: true,
|
|
2217
|
+
type: 'node',
|
|
2218
|
+
isMultipleResponse: false,
|
|
2219
|
+
JumpToDialogNodeId: null,
|
|
2220
|
+
JumpToSkillId: null,
|
|
2221
|
+
DialogNodeFolderId: menuProdutosDialogNodeFolder.id,
|
|
2222
|
+
createdAt: new Date(),
|
|
2223
|
+
updatedAt: new Date(),
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
menuProdutosDialogNodeMenuHowToUse = {
|
|
2227
|
+
...menuProdutosDialogNodeMenuHowToUse,
|
|
2228
|
+
name: 'produtos_menu_produtos_mododeusar',
|
|
2229
|
+
condition: null,
|
|
2230
|
+
SkillId,
|
|
2231
|
+
contexts: JSON.stringify({
|
|
2232
|
+
ID: 'C22',
|
|
2233
|
+
nivel_3: 'produtos',
|
|
2234
|
+
}),
|
|
2235
|
+
step: 3,
|
|
2236
|
+
replayWait: true,
|
|
2237
|
+
type: 'node',
|
|
2238
|
+
isMultipleResponse: false,
|
|
2239
|
+
JumpToDialogNodeId: null,
|
|
2240
|
+
JumpToSkillId: null,
|
|
2241
|
+
DialogNodeFolderId: menuProdutosDialogNodeFolder.id,
|
|
2242
|
+
createdAt: new Date(),
|
|
2243
|
+
updatedAt: new Date(),
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
productsMoreSearchDialogNode = {
|
|
2247
|
+
...productsMoreSearchDialogNode,
|
|
2248
|
+
name: 'produtos_mais_buscados',
|
|
2249
|
+
condition:
|
|
2250
|
+
'input.text == menu_produtos_mais_buscados || input.text == voltar_menu_produtos || input.text == botao_prod || $nivel_3 == produtos && @voltar',
|
|
2251
|
+
SkillId,
|
|
2252
|
+
contexts: JSON.stringify({
|
|
2253
|
+
ID: 'C23',
|
|
2254
|
+
nivel_1: 'produto_menu',
|
|
2255
|
+
nivel_2: '',
|
|
2256
|
+
nivel_3: 'menu',
|
|
2257
|
+
}),
|
|
2258
|
+
step: 3,
|
|
2259
|
+
replayWait: true,
|
|
2260
|
+
type: 'node',
|
|
2261
|
+
isMultipleResponse: false,
|
|
2262
|
+
JumpToDialogNodeId: null,
|
|
2263
|
+
JumpToSkillId: null,
|
|
2264
|
+
DialogNodeFolderId: productsDialogNodeFolder.id,
|
|
2265
|
+
createdAt: new Date(),
|
|
2266
|
+
updatedAt: new Date(),
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
// To create on database
|
|
2270
|
+
|
|
2271
|
+
const intentions = [
|
|
2272
|
+
welcomeIntention,
|
|
2273
|
+
benefitsProductIntention,
|
|
2274
|
+
productsIntention,
|
|
2275
|
+
howToUseProductsIntention,
|
|
2276
|
+
]
|
|
2277
|
+
const intentionsValues = [
|
|
2278
|
+
...welcomeIntentionIntentionValues,
|
|
2279
|
+
...benefitsProductIntentionValues,
|
|
2280
|
+
...productsIntentionValues,
|
|
2281
|
+
...howToUseProductsIntentionValues,
|
|
2282
|
+
]
|
|
2283
|
+
|
|
2284
|
+
const entities = [benefitsEntity, productEntity, howToUseEntity]
|
|
2285
|
+
const entityValues = [
|
|
2286
|
+
...benefitsEntityValues,
|
|
2287
|
+
...productEntityValues,
|
|
2288
|
+
...howToUseEntityValues,
|
|
2289
|
+
]
|
|
2290
|
+
const synonyms = [
|
|
2291
|
+
...benefitsEntitySynonyms,
|
|
2292
|
+
...productEntitySynonyms,
|
|
2293
|
+
...howToUseEntitySynonyms,
|
|
2294
|
+
]
|
|
2295
|
+
|
|
2296
|
+
const responses = [
|
|
2297
|
+
detergenteTradicionalResponse,
|
|
2298
|
+
detergenteTradicionalMenuResponse,
|
|
2299
|
+
sabaoEmPoTixanResponse,
|
|
2300
|
+
sabaoEmPoTixanBeneficioResponse,
|
|
2301
|
+
amacianteEssencialResponse,
|
|
2302
|
+
amacianteEssencialBeneficioResponse,
|
|
2303
|
+
menuYpeResponse,
|
|
2304
|
+
amacianteEssencialMenuResponse,
|
|
2305
|
+
aguaSanitariaModoDeUsoResponse,
|
|
2306
|
+
aguaSanitariaBeneficioResponse,
|
|
2307
|
+
detergenteTradicionalMenuResponseBeneficio,
|
|
2308
|
+
sabaoEmPoTixanMenuResponse,
|
|
2309
|
+
aguaSanitariaMenuResponse,
|
|
2310
|
+
multiusoPremiumBeneficioResponse,
|
|
2311
|
+
multiusoPremiumModoDeUsoResponse,
|
|
2312
|
+
multiusoPremiumMenuResponse,
|
|
2313
|
+
produtos5maisBuscadosResponse,
|
|
2314
|
+
]
|
|
2315
|
+
const responsesBoxes = [
|
|
2316
|
+
detergenteTradicionalResponseBox,
|
|
2317
|
+
detergenteTradicionalMenuResponseBox,
|
|
2318
|
+
sabaoEmPoTixanResponseBox,
|
|
2319
|
+
sabaoEmPoTixanBeneficioResponseBox,
|
|
2320
|
+
amacianteEssencialResponseBox,
|
|
2321
|
+
amacianteEssencialBeneficioResponseBox,
|
|
2322
|
+
menuYpeResponseBox,
|
|
2323
|
+
amacianteEssencialMenuResponseBox,
|
|
2324
|
+
aguaSanitariaModoDeUsoResponseBox,
|
|
2325
|
+
aguaSanitariaBeneficioResponseBox,
|
|
2326
|
+
detergenteTradicionalMenuResponseBeneficioBox,
|
|
2327
|
+
sabaoEmPoTixanMenuResponseBox,
|
|
2328
|
+
aguaSanitariaMenuResponseBox,
|
|
2329
|
+
multiusoPremiumBeneficioResponseBox,
|
|
2330
|
+
multiusoPremiumModoDeUsoResponseBox,
|
|
2331
|
+
multiusoPremiumMenuResponseBox,
|
|
2332
|
+
produtos5maisBuscadosResponseBox,
|
|
2333
|
+
]
|
|
2334
|
+
|
|
2335
|
+
const dialogNodes = [
|
|
2336
|
+
welcomeDialogNode, // --> nivel 1
|
|
2337
|
+
faqDialogNodeFolder, // --> nivel 1
|
|
2338
|
+
productsDialogNodeFolder, // children faqDialogNodeFolder --> nivel 2
|
|
2339
|
+
|
|
2340
|
+
productsMoreSearchDialogNodeFolder, // children productsDialogNodeFolder --> nivel 3
|
|
2341
|
+
|
|
2342
|
+
detergenteTraditionalDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2343
|
+
|
|
2344
|
+
detergenteTraditionalDialogNodeHowToUse, // children detergenteTraditionalDialogNodeFolder --> nivel 5
|
|
2345
|
+
detergenteTraditionalDialogBenefics, // children detergenteTraditionalDialogNodeFolder --> nivel 5
|
|
2346
|
+
detergenteTraditionalDialogBeneficsHowToUse, // children detergenteTraditionalDialogNodeFolder --> nivel 5
|
|
2347
|
+
|
|
2348
|
+
sabaoEmPoDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2349
|
+
|
|
2350
|
+
sabaoEmPoDialogNodeHowToUse, // children sabaoEmPoDialogNodeFolder --> nivel 5
|
|
2351
|
+
sabaoEmPoDialogNodeBenefics, // children sabaoEmPoDialogNodeFolder --> nivel 5
|
|
2352
|
+
sabaoEmPoDialogNodeBeneficsHowToUse, // children sabaoEmPoDialogNodeFolder --> nivel 5
|
|
2353
|
+
|
|
2354
|
+
amacianteEssencialDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2355
|
+
|
|
2356
|
+
amacianteEssencialDialogNodeHowToUse, // children amacianteEssencialDialogNodeFolder --> nivel 5
|
|
2357
|
+
amacianteEssencialDialogNodeBenefis, // children amacianteEssencialDialogNodeFolder --> nivel 5
|
|
2358
|
+
amacianteEssencialDialogNodeBenefisHowToUse, // children amacianteEssencialDialogNodeFolder --> nivel 5
|
|
2359
|
+
|
|
2360
|
+
aguaSanitariaDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2361
|
+
|
|
2362
|
+
aguaSanitariaDialogNodeHowToUse, // children aguaSanitariaDialogNodeFolder --> nivel 5
|
|
2363
|
+
aguaSanitariaDialogNodeBenefis, // children aguaSanitariaDialogNodeFolder --> nivel 5
|
|
2364
|
+
aguaSanitariaDialogNodeBenefisHowToUse, // children aguaSanitariaDialogNodeFolder --> nivel 5
|
|
2365
|
+
|
|
2366
|
+
multiusoPrmiumDialogNodeFolder, // children productsMoreSearchDialogNodeFolder --> nivel 4
|
|
2367
|
+
|
|
2368
|
+
multiusoPrmiumDialogNodeBenefis, // children multiusoPrmiumDialogNodeFolder --> nivel 5
|
|
2369
|
+
multiusoPrmiumDialogNodeHowToUse, // children multiusoPrmiumDialogNodeFolder --> nivel 5
|
|
2370
|
+
multiusoPrmiumDialogNodeBenefisHowToUse, // children multiusoPrmiumDialogNodeFolder --> nivel 5
|
|
2371
|
+
|
|
2372
|
+
menuProdutosDialogNodeFolder, // children productsDialogNodeFolder --> nivel 3
|
|
2373
|
+
|
|
2374
|
+
menuProdutosDialogNodeMenuMoreSearch, // children menuProdutosDialogNodeFolder --> nivel 4
|
|
2375
|
+
menuProdutosDialogNodeMenuBenefis, // children menuProdutosDialogNodeFolder --> nivel 4
|
|
2376
|
+
menuProdutosDialogNodeMenuHowToUse, // children menuProdutosDialogNodeFolder --> nivel 4
|
|
2377
|
+
|
|
2378
|
+
productsMoreSearchDialogNode, // children productsDialogNodeFolder --> nivel 3
|
|
2379
|
+
]
|
|
2380
|
+
|
|
2381
|
+
module.exports = {
|
|
2382
|
+
up: async (queryInterface, Sequelize) => {
|
|
2383
|
+
const ibmIntelligenceId = await queryInterface.rawSelect(
|
|
2384
|
+
'Intelligences',
|
|
2385
|
+
{
|
|
2386
|
+
where: {
|
|
2387
|
+
providerType: 'ibm',
|
|
2388
|
+
},
|
|
2389
|
+
},
|
|
2390
|
+
['id']
|
|
2391
|
+
)
|
|
2392
|
+
|
|
2393
|
+
const channelTypeId = await queryInterface.rawSelect(
|
|
2394
|
+
'ChannelTypes',
|
|
2395
|
+
{
|
|
2396
|
+
where: {
|
|
2397
|
+
channelName: 'webchat',
|
|
2398
|
+
},
|
|
2399
|
+
},
|
|
2400
|
+
['id']
|
|
2401
|
+
)
|
|
2402
|
+
|
|
2403
|
+
const ibmProviderId = 'f5cc3829-e441-452f-9bea-70581bde9eff'
|
|
2404
|
+
await queryInterface.bulkInsert(
|
|
2405
|
+
'Skills',
|
|
2406
|
+
[
|
|
2407
|
+
{
|
|
2408
|
+
id: SkillId,
|
|
2409
|
+
IntelligenceId: ibmIntelligenceId,
|
|
2410
|
+
AwsProviderId: null,
|
|
2411
|
+
ItleanProviderId: null,
|
|
2412
|
+
IbmProviderId: ibmProviderId,
|
|
2413
|
+
name: 'ype_test ',
|
|
2414
|
+
description: 'ype test created by seeders',
|
|
2415
|
+
lang: 'pt-br',
|
|
2416
|
+
createdAt: new Date(),
|
|
2417
|
+
updatedAt: new Date(),
|
|
2418
|
+
},
|
|
2419
|
+
],
|
|
2420
|
+
{}
|
|
2421
|
+
)
|
|
2422
|
+
|
|
2423
|
+
await queryInterface.bulkInsert('Intentions', intentions, {})
|
|
2424
|
+
await queryInterface.bulkInsert('IntentionValues', intentionsValues, {})
|
|
2425
|
+
|
|
2426
|
+
await queryInterface.bulkInsert('Entities', entities, {})
|
|
2427
|
+
await queryInterface.bulkInsert('EntityValues', entityValues, {})
|
|
2428
|
+
await queryInterface.bulkInsert('Synonyms', synonyms, {})
|
|
2429
|
+
|
|
2430
|
+
for (const responseBox of responsesBoxes) {
|
|
2431
|
+
responseBox.ChannelTypeId = channelTypeId
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
await queryInterface.bulkInsert('Responses', responses, {})
|
|
2435
|
+
await queryInterface.bulkInsert('ResponsesBoxes', responsesBoxes, {})
|
|
2436
|
+
|
|
2437
|
+
await queryInterface.bulkInsert('DialogNodes', dialogNodes, {})
|
|
2438
|
+
|
|
2439
|
+
await queryInterface.bulkInsert('Response_DialogNodes', [
|
|
2440
|
+
{
|
|
2441
|
+
DialogNodeId: welcomeDialogNode.id,
|
|
2442
|
+
ResponseId: menuYpeResponse.id,
|
|
2443
|
+
createdAt: new Date(),
|
|
2444
|
+
updatedAt: new Date(),
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
DialogNodeId: detergenteTraditionalDialogNodeHowToUse.id,
|
|
2448
|
+
ResponseId: detergenteTradicionalResponse.id,
|
|
2449
|
+
createdAt: new Date(),
|
|
2450
|
+
updatedAt: new Date(),
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
DialogNodeId: detergenteTraditionalDialogBenefics.id,
|
|
2454
|
+
ResponseId: detergenteTradicionalMenuResponseBeneficio.id,
|
|
2455
|
+
createdAt: new Date(),
|
|
2456
|
+
updatedAt: new Date(),
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
DialogNodeId: detergenteTraditionalDialogBeneficsHowToUse.id,
|
|
2460
|
+
ResponseId: detergenteTradicionalMenuResponse.id,
|
|
2461
|
+
createdAt: new Date(),
|
|
2462
|
+
updatedAt: new Date(),
|
|
2463
|
+
},
|
|
2464
|
+
|
|
2465
|
+
{
|
|
2466
|
+
DialogNodeId: sabaoEmPoDialogNodeBenefics.id,
|
|
2467
|
+
ResponseId: sabaoEmPoTixanBeneficioResponse.id,
|
|
2468
|
+
createdAt: new Date(),
|
|
2469
|
+
updatedAt: new Date(),
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
DialogNodeId: sabaoEmPoDialogNodeBeneficsHowToUse.id,
|
|
2473
|
+
ResponseId: sabaoEmPoTixanMenuResponse.id,
|
|
2474
|
+
createdAt: new Date(),
|
|
2475
|
+
updatedAt: new Date(),
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
DialogNodeId: sabaoEmPoDialogNodeHowToUse.id,
|
|
2479
|
+
ResponseId: sabaoEmPoTixanResponse.id,
|
|
2480
|
+
createdAt: new Date(),
|
|
2481
|
+
updatedAt: new Date(),
|
|
2482
|
+
},
|
|
2483
|
+
|
|
2484
|
+
{
|
|
2485
|
+
DialogNodeId: amacianteEssencialDialogNodeBenefis.id,
|
|
2486
|
+
ResponseId: amacianteEssencialBeneficioResponse.id,
|
|
2487
|
+
createdAt: new Date(),
|
|
2488
|
+
updatedAt: new Date(),
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
DialogNodeId: amacianteEssencialDialogNodeHowToUse.id,
|
|
2492
|
+
ResponseId: amacianteEssencialResponse.id,
|
|
2493
|
+
createdAt: new Date(),
|
|
2494
|
+
updatedAt: new Date(),
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
DialogNodeId: amacianteEssencialDialogNodeBenefisHowToUse.id,
|
|
2498
|
+
ResponseId: amacianteEssencialMenuResponse.id,
|
|
2499
|
+
createdAt: new Date(),
|
|
2500
|
+
updatedAt: new Date(),
|
|
2501
|
+
},
|
|
2502
|
+
|
|
2503
|
+
{
|
|
2504
|
+
DialogNodeId: aguaSanitariaDialogNodeHowToUse.id,
|
|
2505
|
+
ResponseId: aguaSanitariaModoDeUsoResponse.id,
|
|
2506
|
+
createdAt: new Date(),
|
|
2507
|
+
updatedAt: new Date(),
|
|
2508
|
+
},
|
|
2509
|
+
{
|
|
2510
|
+
DialogNodeId: aguaSanitariaDialogNodeBenefis.id,
|
|
2511
|
+
ResponseId: aguaSanitariaBeneficioResponse.id,
|
|
2512
|
+
createdAt: new Date(),
|
|
2513
|
+
updatedAt: new Date(),
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
DialogNodeId: aguaSanitariaDialogNodeBenefisHowToUse.id,
|
|
2517
|
+
ResponseId: aguaSanitariaMenuResponse.id,
|
|
2518
|
+
createdAt: new Date(),
|
|
2519
|
+
updatedAt: new Date(),
|
|
2520
|
+
},
|
|
2521
|
+
|
|
2522
|
+
{
|
|
2523
|
+
DialogNodeId: multiusoPrmiumDialogNodeBenefis.id,
|
|
2524
|
+
ResponseId: multiusoPremiumBeneficioResponse.id,
|
|
2525
|
+
createdAt: new Date(),
|
|
2526
|
+
updatedAt: new Date(),
|
|
2527
|
+
},
|
|
2528
|
+
{
|
|
2529
|
+
DialogNodeId: multiusoPrmiumDialogNodeHowToUse.id,
|
|
2530
|
+
ResponseId: multiusoPremiumModoDeUsoResponse.id,
|
|
2531
|
+
createdAt: new Date(),
|
|
2532
|
+
updatedAt: new Date(),
|
|
2533
|
+
},
|
|
2534
|
+
{
|
|
2535
|
+
DialogNodeId: multiusoPrmiumDialogNodeBenefisHowToUse.id,
|
|
2536
|
+
ResponseId: multiusoPremiumMenuResponse.id,
|
|
2537
|
+
createdAt: new Date(),
|
|
2538
|
+
updatedAt: new Date(),
|
|
2539
|
+
},
|
|
2540
|
+
|
|
2541
|
+
{
|
|
2542
|
+
DialogNodeId: productsMoreSearchDialogNode.id,
|
|
2543
|
+
ResponseId: produtos5maisBuscadosResponse.id,
|
|
2544
|
+
createdAt: new Date(),
|
|
2545
|
+
updatedAt: new Date(),
|
|
2546
|
+
},
|
|
2547
|
+
])
|
|
2548
|
+
},
|
|
2549
|
+
|
|
2550
|
+
down: async (queryInterface) => {
|
|
2551
|
+
for (const response of responses) {
|
|
2552
|
+
await queryInterface.bulkDelete('Response_DialogNodes', [
|
|
2553
|
+
{ ResponseId: response.id },
|
|
2554
|
+
])
|
|
2555
|
+
await queryInterface.bulkDelete('ResponsesBoxes', [
|
|
2556
|
+
{ ResponseId: response.id },
|
|
2557
|
+
])
|
|
2558
|
+
await queryInterface.bulkDelete('Responses', [{ id: response.id }])
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
await queryInterface.bulkDelete('DialogNodes', [{ SkillId }])
|
|
2562
|
+
|
|
2563
|
+
for (const intention of intentions) {
|
|
2564
|
+
await queryInterface.bulkDelete('IntentionValues', [
|
|
2565
|
+
{ IntentionId: intention.id },
|
|
2566
|
+
])
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
for (const entity of entities) {
|
|
2570
|
+
await queryInterface.bulkDelete('Synonyms', [{ EntityId: entity.id }])
|
|
2571
|
+
await queryInterface.bulkDelete('Synonyms', [{ EntityId: entity.id }])
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
await queryInterface.bulkDelete('Intentions', [{ SkillId }])
|
|
2575
|
+
await queryInterface.bulkDelete('Entities', [{ SkillId }])
|
|
2576
|
+
await queryInterface.bulkDelete('Skills', [{ id: SkillId }])
|
|
2577
|
+
},
|
|
2578
|
+
}
|