Skip to content

Instantly share code, notes, and snippets.

@sidneycalebe
Last active July 14, 2021 13:01
Show Gist options
  • Save sidneycalebe/88155f519ee8337726208c7c3e732c23 to your computer and use it in GitHub Desktop.
Save sidneycalebe/88155f519ee8337726208c7c3e732c23 to your computer and use it in GitHub Desktop.
// As informações ocultadas neste código podem ser encontradas na tela de configuração do Huggy Chat.
var $_Huggy = {
defaultCountry: '+55',
uuid: '---', // este campo foi ocultado por conter informação sigilosa.
company: '---', // este campo foi ocultado por conter informação sigilosa.
afterLoad: function () {
startButtons()
Huggy.subscribe('box-closed', function () {
chatBoxOpened = false
startButtons()
})
Huggy.subscribe('box-opened', function () {
chatBoxOpened = true
})
}
};
(function (i, s, o, g, r, a, m) {
i[r] = { context: { id: '---' } }; // este campo foi ocultado por conter informação sigilosa.
a = o; o = s.createElement(o); o.async = 1;
o.src = g; m = s.getElementsByTagName(a)[0];
m.parentNode.insertBefore(o, m);
})(window, document, 'script', 'https://js.huggy.chat/widget.min.js', 'pwz');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment