From 2aadb28c1eaaccc51fa9cbf53e3fbecaa99b16eb Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Thu, 2 Jun 2016 10:49:45 -0300 Subject: [PATCH] Add secret token field to livechat webhooks --- packages/rocketchat-lib/i18n/en.i18n.json | 1 + .../client/views/app/livechatIntegrations.html | 8 +++++++- .../client/views/app/livechatIntegrations.js | 12 ++++++++++++ packages/rocketchat-livechat/config.js | 7 +++++++ .../server/methods/webhookTest.js | 11 ++++++++--- .../rocketchat-livechat/server/setupWebhook.js | 15 +++++++++++++-- 6 files changed, 48 insertions(+), 6 deletions(-) diff --git a/packages/rocketchat-lib/i18n/en.i18n.json b/packages/rocketchat-lib/i18n/en.i18n.json index aebcf3a2543..10611afeff4 100644 --- a/packages/rocketchat-lib/i18n/en.i18n.json +++ b/packages/rocketchat-lib/i18n/en.i18n.json @@ -906,6 +906,7 @@ "Search_Messages" : "Search Messages", "Search_Private_Groups" : "Search Private Groups", "seconds" : "seconds", + "Secret_token" : "Secret token", "Select_a_department" : "Select a department", "Select_an_avatar" : "Select an avatar", "Select_file" : "Select file", diff --git a/packages/rocketchat-livechat/client/views/app/livechatIntegrations.html b/packages/rocketchat-livechat/client/views/app/livechatIntegrations.html index 76feff68a7f..d0aabcfaf44 100644 --- a/packages/rocketchat-livechat/client/views/app/livechatIntegrations.html +++ b/packages/rocketchat-livechat/client/views/app/livechatIntegrations.html @@ -3,7 +3,7 @@

{{_ "Webhooks"}}

{{_ "You_can_use_webhooks_to_easily_integrate_livechat_with_your_CRM"}} - {{_ "Click_here"}} {{_ "to_see_more_details_on_how_to_integrate"}} + {{_ "Click_here"}} {{_ "to_see_more_details_on_how_to_integrate"}}

@@ -13,6 +13,12 @@ +
+ +
+ +
+