Last active
July 1, 2021 14:43
-
-
Save sidneycalebe/ca7f880d0d9ab6b167dddfab0dadd500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// As informações ocultadas neste código podem ser encontradas na tela de configuração do Huggy Chat. | |
let huggyChatLoaded = false; | |
function openChat() { | |
huggyChatLoaded == true ? Huggy.openBox() : alert('Aguarde alguns instantes e tente novamente!'); | |
} | |
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 () { | |
huggyChatLoaded = true; | |
Huggy.hideButton(); | |
Huggy.subscribe('box-closed', function () { | |
Huggy.hideButton(); | |
}) | |
}, | |
}; | |
(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'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment