Skip to content

Commit 16b0350

Browse files
authored
Add embedded messaging script for FlightCWC
1 parent 8134ce7 commit 16b0350

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Bhavna/SDB601/FlightCWC

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<script type='text/javascript'>
2+
function initEmbeddedMessaging() {
3+
try {
4+
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'
5+
6+
embeddedservice_bootstrap.init(
7+
'00Dfi800000ByqW',
8+
'FlightCWCAgent',
9+
'https://orgfarm-da76c1237d.demo.test1.my.pc-rnd.site.com/ESWFlightCWCAgent1764025410792',
10+
{
11+
scrt2URL: 'https://orgfarm-da76c1237d.demo.test1.my.pc-rnd.salesforce-scrt.com'
12+
}
13+
);
14+
} catch (err) {
15+
console.error('Error loading Embedded Messaging: ', err);
16+
}
17+
};
18+
</script>
19+
<script type='text/javascript' src='https://orgfarm-da76c1237d.demo.test1.my.pc-rnd.site.com/ESWFlightCWCAgent1764025410792/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>

0 commit comments

Comments
 (0)