Skip to content

Commit

Permalink
adding support chat bubble to accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Dec 19, 2024
1 parent e1cf4e5 commit 8ec6990
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/views/layouts/_chat_support.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script type='text/javascript'>
function initEmbeddedMessaging() {
try {
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'

embeddedservice_bootstrap.init(
'00DU0000000Kwch',
'Web_Messaging_Deployment',
'https://openstax.my.site.com/ESWWebMessagingDeployme1716235390398',
{
scrt2URL: 'https://openstax.my.salesforce-scrt.com'
}
);
} catch (err) {
console.error('Error loading Embedded Messaging: ', err);
}
};
</script>
<script type='text/javascript' src='https://openstax.my.site.com/ESWWebMessagingDeployme1716235390398/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
1 change: 1 addition & 0 deletions app/views/layouts/newflow_layout.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

<%= render partial: 'layouts/newflow_footer' %>
<%= render partial: "layouts/google_analytics" %>
<%= render partial: 'layouts/chat_support' %>

<%= yield :javascript %>
</body>
Expand Down

0 comments on commit 8ec6990

Please sign in to comment.