@good-faith-labs/jiffy-embed 1.0.0
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 -0
- package/package.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3047a4=_0x31e9;(function(_0x2ce68b,_0x3bcd5d){const _0x4cc646=_0x31e9,_0x389504=_0x2ce68b();while(!![]){try{const _0x4d42fc=-parseInt(_0x4cc646(0x147))/0x1+-parseInt(_0x4cc646(0x15d))/0x2+parseInt(_0x4cc646(0x171))/0x3+parseInt(_0x4cc646(0x14e))/0x4*(-parseInt(_0x4cc646(0x14f))/0x5)+-parseInt(_0x4cc646(0x14a))/0x6+parseInt(_0x4cc646(0x165))/0x7*(-parseInt(_0x4cc646(0x174))/0x8)+-parseInt(_0x4cc646(0x155))/0x9*(-parseInt(_0x4cc646(0x173))/0xa);if(_0x4d42fc===_0x3bcd5d)break;else _0x389504['push'](_0x389504['shift']());}catch(_0x218c4a){_0x389504['push'](_0x389504['shift']());}}}(_0x289c,0x90365));const o=_0x3047a4(0x156),t=_0x3047a4(0x15a),e='https://core.jiffy.live',a={'button':{'backgroundColor':_0x3047a4(0x162),'right':0x14,'bottom':0x14,'size':0x30,'dragAndDrop':!0x0,'iconColor':'white','customIconSrc':_0x3047a4(0x170),'autoWindowOpen':{'autoOpen':!0x0,'openDelay':0x2,'autoOpenOnMobile':!0x1}},'tooltip':{'showTooltip':!0x0,'tooltipMessage':_0x3047a4(0x141),'tooltipBackgroundColor':_0x3047a4(0x162),'tooltipTextColor':_0x3047a4(0x145),'tooltipFontSize':0x10},'customCSS':'','chatWindow':{'showTitle':!0x0,'showAgentMessages':!0x0,'title':'Jiffy\x20-\x20College\x20Assistant','titleAvatarSrc':'','welcomeMessage':_0x3047a4(0x158),'errorMessage':_0x3047a4(0x166),'backgroundColor':_0x3047a4(0x146),'backgroundImage':'','height':0x2bc,'width':0x190,'fontSize':0x10,'starterPrompts':[_0x3047a4(0x154),_0x3047a4(0x153),_0x3047a4(0x16d),'When\x20does\x20the\x20academic\x20year\x20start?'],'starterPromptFontSize':0xf,'clearChatOnReload':!0x1,'sourceDocsTitle':_0x3047a4(0x16a),'renderHTML':!0x0,'botMessage':{'backgroundColor':_0x3047a4(0x142),'textColor':_0x3047a4(0x14b),'showAvatar':!0x0,'avatarSrc':_0x3047a4(0x176)},'userMessage':{'backgroundColor':'#133C55','textColor':_0x3047a4(0x146),'showAvatar':!0x0,'avatarSrc':_0x3047a4(0x164)},'textInput':{'placeholder':_0x3047a4(0x143),'backgroundColor':'#ffffff','textColor':_0x3047a4(0x14b),'sendButtonColor':_0x3047a4(0x162),'maxChars':0x1f4,'maxCharsWarningMessage':_0x3047a4(0x15f),'autoFocus':!0x0,'sendMessageSound':!0x1,'sendSoundLocation':'','receiveMessageSound':!0x1,'receiveSoundLocation':''},'feedback':{'color':_0x3047a4(0x14b)},'dateTimeToggle':{'date':!0x0,'time':!0x0},'footer':{'textColor':'#303235','text':_0x3047a4(0x140),'company':_0x3047a4(0x151),'companyLink':_0x3047a4(0x16b)}}};function n(){const _0xa0f707=_0x3047a4;return crypto[_0xa0f707(0x172)]?crypto[_0xa0f707(0x172)]():_0xa0f707(0x16e)+Date['now']();}function i(_0x4c1e49,_0x1d5294){const _0x482301=_0x3047a4,_0xf02c06={'LUGDr':_0x482301(0x161)},_0x187d63={..._0x4c1e49};for(const _0x1b6379 in _0x1d5294)_0x1d5294[_0x1b6379]&&_0xf02c06[_0x482301(0x149)]==typeof _0x1d5294[_0x1b6379]&&!Array[_0x482301(0x148)](_0x1d5294[_0x1b6379])?_0x187d63[_0x1b6379]=i(_0x4c1e49[_0x1b6379]||{},_0x1d5294[_0x1b6379]):_0x187d63[_0x1b6379]=_0x1d5294[_0x1b6379];return _0x187d63;}async function s(_0x10bf40,_0x1acbb3){const _0x10f172=_0x3047a4,_0x2ef34a={'EYeoG':function(_0x2fc2fc,_0x2f37b6){return _0x2fc2fc(_0x2f37b6);},'lNmpl':function(_0x4d24c0,_0x204653,_0x31e037){return _0x4d24c0(_0x204653,_0x31e037);},'wmzyi':'Jiffy\x20Analytics:\x20Location\x20logged.'};try{const {createClient:_0x5c7028}=await import(_0x10f172(0x175)),_0x3d0add=await _0x2ef34a['EYeoG'](fetch,_0x10f172(0x16f)),_0x1c3d02=await _0x3d0add[_0x10f172(0x159)](),_0x3054c9=_0x2ef34a[_0x10f172(0x178)](_0x5c7028,o,t);await _0x3054c9[_0x10f172(0x15c)](_0x10f172(0x14d))[_0x10f172(0x15e)]({'session_id':_0x10bf40,'chatflow_id':_0x1acbb3,'ip':_0x1c3d02['ip'],'city':_0x1c3d02[_0x10f172(0x179)],'region':_0x1c3d02[_0x10f172(0x169)],'country':_0x1c3d02[_0x10f172(0x163)],'org':_0x1c3d02[_0x10f172(0x168)],'created_at':new Date()['toISOString']()}),console['log'](_0x2ef34a[_0x10f172(0x157)]);}catch(_0x10a727){console[_0x10f172(0x160)](_0x10f172(0x14c),_0x10a727);}}function _0x31e9(_0x3475ba,_0x5ce6ab){_0x3475ba=_0x3475ba-0x140;const _0x289c27=_0x289c();let _0x31e9f2=_0x289c27[_0x3475ba];if(_0x31e9['JjiKYN']===undefined){var _0x203565=function(_0x40f720){const _0x39e7b0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52a77e='',_0x170be8='';for(let _0x5d6e52=0x0,_0x4f5546,_0x4cd145,_0x5525ed=0x0;_0x4cd145=_0x40f720['charAt'](_0x5525ed++);~_0x4cd145&&(_0x4f5546=_0x5d6e52%0x4?_0x4f5546*0x40+_0x4cd145:_0x4cd145,_0x5d6e52++%0x4)?_0x52a77e+=String['fromCharCode'](0xff&_0x4f5546>>(-0x2*_0x5d6e52&0x6)):0x0){_0x4cd145=_0x39e7b0['indexOf'](_0x4cd145);}for(let _0x507d6d=0x0,_0x130b0f=_0x52a77e['length'];_0x507d6d<_0x130b0f;_0x507d6d++){_0x170be8+='%'+('00'+_0x52a77e['charCodeAt'](_0x507d6d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x170be8);};_0x31e9['Jtgusi']=_0x203565,_0x31e9['JyXEhv']={},_0x31e9['JjiKYN']=!![];}const _0x5af47a=_0x289c27[0x0],_0x2dbdbc=_0x3475ba+_0x5af47a,_0xfa31=_0x31e9['JyXEhv'][_0x2dbdbc];return!_0xfa31?(_0x31e9f2=_0x31e9['Jtgusi'](_0x31e9f2),_0x31e9['JyXEhv'][_0x2dbdbc]=_0x31e9f2):_0x31e9f2=_0xfa31,_0x31e9f2;}export async function init(_0x415fc9={}){const _0x303144=_0x3047a4,_0x5535af={'Bklil':function(_0x41d881){return _0x41d881();}};if(!_0x415fc9[_0x303144(0x144)])return void console[_0x303144(0x152)](_0x303144(0x15b));const _0x4a3682=_0x5535af['Bklil'](n),_0xb144e3=_0x415fc9[_0x303144(0x150)]?i(a,_0x415fc9[_0x303144(0x150)]):a,{default:_0x57aafc}=await import(_0x303144(0x177));_0x57aafc[_0x303144(0x16c)]({'chatflowid':_0x415fc9[_0x303144(0x144)],'apiHost':_0x415fc9['apiHost']||e,'chatId':_0x4a3682,'chatflowConfig':{'streaming':!0x0,..._0x415fc9['chatflowConfig']||{}},'observersConfig':_0x415fc9[_0x303144(0x167)]||{},'theme':_0xb144e3}),s(_0x4a3682,_0x415fc9[_0x303144(0x144)]);}function _0x289c(){const _0x5cb184=['B3jN','CMvNAw9U','u291CMnLCZO','Ahr0Chm6lY9NB29KzMfPDgHSywjZlMnVBq','Aw5PDa','sg93igrVieKGyxbWBhK/','C2vZC2LVBI0','Ahr0Chm6lY9PCgfWAs5JBY9QC29UlW','Ahr0Chm6lY9Jzg4TAwnVBNmTCg5NlMzSyxrPy29UlMnVBs81mtiVmJu5mY8YntKZndKXlNbUzW','mJu3ntC5ng1sEwnmtG','CMfUzg9Tvvvjra','mtC3nta3nZbhshH2Ehm','otu0nJrpELrLsfK','Ahr0Chm6lY9LC20UC2GVqhn1CgfIyxnLl3n1CgfIyxnLlwPZqdi','Ahr0Chm6lY9WBgf5lwXOlMDVB2DSzxvZzxjJB250zw50lMnVBs9qBwnYzvPelxO1yJv3sgS1BgjYsePJELPmwwDdre5AnKLmuxa2qMPPqM44wuO1twz6qJnLAMOWCtvrlxGXwv82see','Ahr0Chm6lY9Jzg4UANnKzwXPDNiUBMv0l25WBs9MBg93AxnLlwvTyMvKl2rPC3qVD2vIlMPZ','Be5TCgW','y2L0Eq','ug93zxjLzcbIEq','qxnRig1LigfIB3v0ignVDxjZzxmSigfKBwLZC2LVBNmGjIbTB3jLipcFKyS','i2y3zJHMzG','vhLWzsb5B3vYihf1zxn0Aw9UigHLCMuUlI4','y2HHDgzSB3Djza','D2HPDgu','i2zMzMzMzG','ndqXnZa5qvjTuMvI','AxnbCNjHEq','tfvhrhi','mti1nteZnfjAD1v2qq','iZmWmZiZnq','sMLMzNKGqw5HBhL0AwnZoIbtA2LWCgvKigXVy2f0Aw9UigXVz2DPBMCU','CMvXDwvZDf9HBMfSExrPy3m','odeZnZaWEgjZvKnv','nwXTChLQrW','DgHLBwu','r29VzcbgywL0AcbmywjZ','zxjYB3i','v2HHDcbHCMuGDgHLigfKBwLZC2LVBIbYzxf1AxjLBwvUDhm/','v2HHDcbJB3vYC2vZigrVihLVDsbVzMzLCJ8','owD2DhPiDG','Ahr0Chm6lY9JAxnZEMfVCNbOBMrLz3rQExP1Ac5ZDxbHyMfZzs5JBW','D216EwK','sgvSBg8HieHVDYbJyw4GssbOzwXWihLVDsb0B2rHEt8','ANnVBG','zxLkAgjhy2LpAuPjvxPjmu5PsxnjBLi1y0njnKLRCfHwq0O5lMv5sNbJm01Pt2LkEMryqMHzBuz6wLnjC0LUsMXAAuK2sw1oCgmZtJzzvZL5y0DODvPhvM5Kr3a1zw5wB0LPD2LJBtLZwLnjnKLTrNvImJrPtenkCfLyuwLpAKuZtMPvmu1uzZnorgTZsw1wngndstznAKe0tvrbnu5eyZbpwdaUq1LpqND3A1qZvu9bzK11ufq5BuzTuhC5me9luxz6tuDhA3HhDvv6nZDbuq','sMLMzNK6ignOyxrMBg93swqGAxmGCMvXDwLYzwq','zNjVBq','otiXndKYCvbsAfvT','Aw5Zzxj0','twvZC2fNzsb0B28GBg9UzY4GugXLyxnLigTLzxaGAxqGDw5KzxiGntaWignOyxjHy3rLCNmU','D2fYBG','B2jQzwn0','iZeZm0m1nq','y291BNrYEv9Uyw1L','Ahr0Chm6lY9Jzg4TAwnVBNmTCg5NlMzSyxrPy29UlMnVBs81mtiVmZyWnY8ZnJa3ndq0lNbUzW','ndi3BeT0CMvQ','ssDTigHHDMLUzYb0CM91yMXLignVBM5Ly3rPBMCGCMLNAhqGBM93lIbqBgvHC2uGDhj5igfNywLUigLUigeGBw9Tzw50lG','B2jZzxj2zxjZq29UzMLN'];_0x289c=function(){return _0x5cb184;};return _0x289c();}export default{'init':init};
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@good-faith-labs/jiffy-embed",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Jiffy chatbot embed script",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/jiffy-embed.min.js",
|
|
7
|
+
"module": "dist/jiffy-embed.min.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "node build.js",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"chatbot",
|
|
17
|
+
"embed",
|
|
18
|
+
"flowise",
|
|
19
|
+
"jiffy"
|
|
20
|
+
],
|
|
21
|
+
"author": "Good Faith Labs",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/good-faith-labs/jiffy-scrips.git"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"javascript-obfuscator": "^4.1.1",
|
|
29
|
+
"terser": "^5.37.0"
|
|
30
|
+
}
|
|
31
|
+
}
|