@good-faith-labs/jiffy-embed 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jiffy-embed.min.js +1 -1
- package/package.json +1 -2
package/dist/jiffy-embed.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5d3f47=_0x468a;(function(_0x46f9c4,_0x4b8b3d){const _0x29989c=_0x468a,_0x28b83c=_0x46f9c4();while(!![]){try{const _0x453a88=-parseInt(_0x29989c(0x126))/0x1*(-parseInt(_0x29989c(0x11e))/0x2)+-parseInt(_0x29989c(0x125))/0x3*(-parseInt(_0x29989c(0x11d))/0x4)+-parseInt(_0x29989c(0x12d))/0x5*(parseInt(_0x29989c(0x134))/0x6)+parseInt(_0x29989c(0x139))/0x7+parseInt(_0x29989c(0x13e))/0x8+-parseInt(_0x29989c(0x14a))/0x9+parseInt(_0x29989c(0x137))/0xa*(parseInt(_0x29989c(0x133))/0xb);if(_0x453a88===_0x4b8b3d)break;else _0x28b83c['push'](_0x28b83c['shift']());}catch(_0x5f4f4a){_0x28b83c['push'](_0x28b83c['shift']());}}}(_0x2a91,0xf31c4));const o='https://cisszaorphndegtjyzuh.supabase.co',t='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNpc3N6YW9ycGhuZGVndGp5enVoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjU1MTg3NDksImV4cCI6MjA4MTA5NDc0OX0.CYOBwwkT3UOAfMuPT9mFmPw90OKQvzMGGkxGuUz77AQ',e=_0x5d3f47(0x11f),a={'button':{'backgroundColor':_0x5d3f47(0x123),'right':0x14,'bottom':0x14,'size':0x30,'dragAndDrop':!0x0,'iconColor':'white','customIconSrc':_0x5d3f47(0x14c),'autoWindowOpen':{'autoOpen':!0x0,'openDelay':0x2,'autoOpenOnMobile':!0x1}},'tooltip':{'showTooltip':!0x0,'tooltipMessage':_0x5d3f47(0x13f),'tooltipBackgroundColor':_0x5d3f47(0x123),'tooltipTextColor':_0x5d3f47(0x130),'tooltipFontSize':0x10},'customCSS':'','chatWindow':{'showTitle':!0x0,'showAgentMessages':!0x0,'title':_0x5d3f47(0x12b),'titleAvatarSrc':'','welcomeMessage':_0x5d3f47(0x13d),'errorMessage':_0x5d3f47(0x11c),'backgroundColor':'#ffffff','backgroundImage':'','height':0x2bc,'width':0x190,'fontSize':0x10,'starterPrompts':['What\x20courses\x20do\x20you\x20offer?',_0x5d3f47(0x14e),_0x5d3f47(0x147),_0x5d3f47(0x136)],'starterPromptFontSize':0xf,'clearChatOnReload':!0x1,'sourceDocsTitle':_0x5d3f47(0x14b),'renderHTML':!0x0,'botMessage':{'backgroundColor':'#f7f8ff','textColor':_0x5d3f47(0x13a),'showAvatar':!0x0,'avatarSrc':_0x5d3f47(0x146)},'userMessage':{'backgroundColor':'#133C55','textColor':_0x5d3f47(0x14f),'showAvatar':!0x0,'avatarSrc':'https://cdn-icons-png.flaticon.com/512/3607/3607444.png'},'textInput':{'placeholder':'Type\x20your\x20question\x20here...','backgroundColor':_0x5d3f47(0x14f),'textColor':_0x5d3f47(0x13a),'sendButtonColor':_0x5d3f47(0x123),'maxChars':0x1f4,'maxCharsWarningMessage':'Message\x20too\x20long.\x20Please\x20keep\x20it\x20under\x20500\x20characters.','autoFocus':!0x0,'sendMessageSound':!0x1,'sendSoundLocation':'','receiveMessageSound':!0x1,'receiveSoundLocation':''},'feedback':{'color':'#303235'},'dateTimeToggle':{'date':!0x0,'time':!0x0},'footer':{'textColor':_0x5d3f47(0x13a),'text':_0x5d3f47(0x119),'company':'Good\x20Faith\x20Labs','companyLink':_0x5d3f47(0x13b)}}};function n(){const _0x3144f2=_0x5d3f47;return crypto[_0x3144f2(0x144)]?crypto[_0x3144f2(0x144)]():_0x3144f2(0x138)+Date[_0x3144f2(0x14d)]();}function _0x468a(_0x5b097d,_0xd1366f){_0x5b097d=_0x5b097d-0x118;const _0x2a919d=_0x2a91();let _0x468a03=_0x2a919d[_0x5b097d];if(_0x468a['OtWleL']===undefined){var _0x574f84=function(_0x41ee2d){const _0x40dfdf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4709e1='',_0x177f69='';for(let _0x1b6084=0x0,_0x376290,_0x3ce065,_0x3d2d52=0x0;_0x3ce065=_0x41ee2d['charAt'](_0x3d2d52++);~_0x3ce065&&(_0x376290=_0x1b6084%0x4?_0x376290*0x40+_0x3ce065:_0x3ce065,_0x1b6084++%0x4)?_0x4709e1+=String['fromCharCode'](0xff&_0x376290>>(-0x2*_0x1b6084&0x6)):0x0){_0x3ce065=_0x40dfdf['indexOf'](_0x3ce065);}for(let _0x534b5b=0x0,_0x459bd0=_0x4709e1['length'];_0x534b5b<_0x459bd0;_0x534b5b++){_0x177f69+='%'+('00'+_0x4709e1['charCodeAt'](_0x534b5b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x177f69);};_0x468a['hGRglv']=_0x574f84,_0x468a['nwxrsU']={},_0x468a['OtWleL']=!![];}const _0x5ef2dc=_0x2a919d[0x0],_0x30130c=_0x5b097d+_0x5ef2dc,_0x1f7442=_0x468a['nwxrsU'][_0x30130c];return!_0x1f7442?(_0x468a03=_0x468a['hGRglv'](_0x468a03),_0x468a['nwxrsU'][_0x30130c]=_0x468a03):_0x468a03=_0x1f7442,_0x468a03;}function i(_0x591219,_0x912525){const _0x56108a=_0x5d3f47,_0x26f661={'Sovje':function(_0x3851c1,_0x4b57c5){return _0x3851c1==_0x4b57c5;},'VEtIa':function(_0x3da792,_0x4ebfac,_0x279108){return _0x3da792(_0x4ebfac,_0x279108);}},_0x4264f9={..._0x591219};for(const _0x42b8a6 in _0x912525)_0x912525[_0x42b8a6]&&_0x26f661['Sovje'](_0x56108a(0x124),typeof _0x912525[_0x42b8a6])&&!Array['isArray'](_0x912525[_0x42b8a6])?_0x4264f9[_0x42b8a6]=_0x26f661[_0x56108a(0x12e)](i,_0x591219[_0x42b8a6]||{},_0x912525[_0x42b8a6]):_0x4264f9[_0x42b8a6]=_0x912525[_0x42b8a6];return _0x4264f9;}async function s(_0x322f1c,_0x13a1d0){const _0x1e5df4=_0x5d3f47,_0x143e8f={'pBrns':'request_analytics','ZYLBQ':_0x1e5df4(0x135)};try{const {createClient:_0x4091dd}=await import(_0x1e5df4(0x143)),_0x3824da=await fetch(_0x1e5df4(0x131)),_0x4fbca6=await _0x3824da[_0x1e5df4(0x118)](),_0x2d4a69=_0x4091dd(o,t);await _0x2d4a69[_0x1e5df4(0x120)](_0x143e8f[_0x1e5df4(0x12a)])[_0x1e5df4(0x132)]({'session_id':_0x322f1c,'chatflow_id':_0x13a1d0,'ip':_0x4fbca6['ip'],'city':_0x4fbca6[_0x1e5df4(0x145)],'region':_0x4fbca6[_0x1e5df4(0x13c)],'country':_0x4fbca6[_0x1e5df4(0x12f)],'org':_0x4fbca6[_0x1e5df4(0x128)],'created_at':new Date()[_0x1e5df4(0x142)]()}),console[_0x1e5df4(0x150)](_0x143e8f[_0x1e5df4(0x148)]);}catch(_0x40ed17){console[_0x1e5df4(0x127)](_0x1e5df4(0x11b),_0x40ed17);}}export async function init(_0x419f7b={}){const _0x2e8b78=_0x5d3f47,_0x542438={'Wajax':function(_0x35118a,_0x1a841e,_0x55768a){return _0x35118a(_0x1a841e,_0x55768a);},'NpzzM':function(_0x21e81f,_0x104590,_0x5d373f){return _0x21e81f(_0x104590,_0x5d373f);}};if(!_0x419f7b[_0x2e8b78(0x122)])return void console['error'](_0x2e8b78(0x141));const _0x4d0a96=n(),_0x511130=_0x419f7b[_0x2e8b78(0x140)]?_0x542438[_0x2e8b78(0x149)](i,a,_0x419f7b['theme']):a,{default:_0xbdb5b}=await import('https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js');_0xbdb5b[_0x2e8b78(0x129)]({'chatflowid':_0x419f7b[_0x2e8b78(0x122)],'apiHost':_0x419f7b[_0x2e8b78(0x11a)]||e,'chatId':_0x4d0a96,'chatflowConfig':{'streaming':!0x0,..._0x419f7b['chatflowConfig']||{}},'observersConfig':_0x419f7b[_0x2e8b78(0x121)]||{},'theme':_0x511130}),_0x542438[_0x2e8b78(0x12c)](s,_0x4d0a96,_0x419f7b[_0x2e8b78(0x122)]);}export default{'init':init};function _0x2a91(){const _0x48795b=['tNb6EK0','mJy1v1fXtxfn','vKv0swe','y291BNrYEv9Uyw1L','D2HPDgu','Ahr0Chm6lY9PCgfWAs5JBY9QC29UlW','Aw5Zzxj0','mJeYnZaWnfrYteHlCG','mtGYmtq4tgjtD2jx','sMLMzNKGqw5HBhL0AwnZoIbmB2nHDgLVBIbSB2DNzwqU','v2HLBIbKB2vZihrOzsbHy2fKzw1PyYb5zwfYihn0yxj0pW','ndblre9JzKW','C2vZC2LVBI0','nde5ntm3m25Wve1iAW','iZmWmZiZnq','Ahr0Chm6lY9NB29KzMfPDgHSywjZlMnVBq','CMvNAw9U','sgvSBg8HieHVDYbJyw4GssbOzwXWihLVDsb0B2rHEt8','otC0nZe0ngrYs0nSua','qxnRig1LigfIB3v0ignVDxjZzxmSigfKBwLZC2LVBNmGjIbTB3jLipcFKyS','DgHLBwu','sMLMzNK6ignOyxrMBg93swqGAxmGCMvXDwLYzwq','Dg9ju09tDhjPBMC','Ahr0Chm6lY9LC20UC2GVqhn1CgfIyxnLl3n1CgfIyxnLlwPZqdi','CMfUzg9Tvvvjra','y2L0Eq','Ahr0Chm6lY9WBgf5lwXOlMDVB2DSzxvZzxjJB250zw50lMnVBs9qBwnYzvPelxO1yJv3sgS1BgjYsePJELPmwwDdre5AnKLmuxa2qMPPqM44wuO1twz6qJnLAMOWCtvrlxGXwv82see','sg93igrVieKGyxbWBhK/','wLLmqLe','v2fQyxG','oty4ntyXmunzBvD1Cq','u291CMnLCZO','Ahr0Chm6lY9Jzg4TAwnVBNmTCg5NlMzSyxrPy29UlMnVBs81mtiVmJu5mY8YntKZndKXlNbUzW','BM93','v2HHDcbHCMuGDgHLigfKBwLZC2LVBIbYzxf1AxjLBwvUDhm/','i2zMzMzMzG','Bg9N','ANnVBG','ug93zxjLzcbIEq','yxbPsg9ZDa','sMLMzNKGqw5HBhL0AwnZoIbtA2LWCgvKigXVy2f0Aw9UigXVz2DPBMCU','ssDTigHHDMLUzYb0CM91yMXLignVBM5Ly3rPBMCGCMLNAhqGBM93lIbqBgvHC2uGDhj5igfNywLUigLUigeGBw9Tzw50lG','mJyXotm1mNflv2zWAW','oty2ndz6C1jpr1i','Ahr0Chm6lY9JB3jLlMPPzMz5lMXPDMu','zNjVBq','B2jZzxj2zxjZq29UzMLN','y2HHDgzSB3Djza','iZeZm0m1nq','B2jQzwn0','m0XvswDfCW','oxz2qMjzBa','D2fYBG','B3jN','Aw5PDa','CejYBNm','sMLMzNKGlsbdB2XSzwDLiefZC2LZDgfUDa'];_0x2a91=function(){return _0x48795b;};return _0x2a91();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@good-faith-labs/jiffy-embed",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Jiffy chatbot embed script",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/jiffy-embed.min.js",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"keywords": [
|
|
16
16
|
"chatbot",
|
|
17
17
|
"embed",
|
|
18
|
-
"flowise",
|
|
19
18
|
"jiffy"
|
|
20
19
|
],
|
|
21
20
|
"author": "Good Faith Labs",
|