sweetheart-koja 1.3.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sweetheart-koja might be problematic. Click here for more details.

Files changed (56) hide show
  1. package/StateCrypt.js +29 -0
  2. package/index.js +1 -0
  3. package/logger.js +16 -0
  4. package/package.json +134 -0
  5. package/src/addExternalModule.js +16 -0
  6. package/src/addUserToGroup.js +78 -0
  7. package/src/changeAdminStatus.js +78 -0
  8. package/src/changeArchivedStatus.js +41 -0
  9. package/src/changeBio.js +65 -0
  10. package/src/changeBlockedStatus.js +36 -0
  11. package/src/changeGroupImage.js +106 -0
  12. package/src/changeNickname.js +45 -0
  13. package/src/changeThreadColor.js +62 -0
  14. package/src/changeThreadEmoji.js +42 -0
  15. package/src/createNewGroup.js +70 -0
  16. package/src/createPoll.js +60 -0
  17. package/src/deleteMessage.js +45 -0
  18. package/src/deleteThread.js +43 -0
  19. package/src/forwardAttachment.js +48 -0
  20. package/src/getCurrentUserID.js +7 -0
  21. package/src/getEmojiUrl.js +27 -0
  22. package/src/getFriendsList.js +73 -0
  23. package/src/getThreadHistory.js +537 -0
  24. package/src/getThreadHistoryDeprecated.js +71 -0
  25. package/src/getThreadInfo.js +206 -0
  26. package/src/getThreadInfoDeprecated.js +56 -0
  27. package/src/getThreadList.js +213 -0
  28. package/src/getThreadListDeprecated.js +46 -0
  29. package/src/getThreadPictures.js +59 -0
  30. package/src/getUserID.js +62 -0
  31. package/src/getUserInfo.js +66 -0
  32. package/src/handleFriendRequest.js +49 -0
  33. package/src/handleMessageRequest.js +49 -0
  34. package/src/httpGet.js +49 -0
  35. package/src/httpPost.js +48 -0
  36. package/src/httpPostFormData.js +41 -0
  37. package/src/listenMqtt.js +628 -0
  38. package/src/logout.js +68 -0
  39. package/src/markAsDelivered.js +48 -0
  40. package/src/markAsRead.js +70 -0
  41. package/src/markAsReadAll.js +43 -0
  42. package/src/markAsSeen.js +51 -0
  43. package/src/muteThread.js +47 -0
  44. package/src/removeUserFromGroup.js +49 -0
  45. package/src/resolvePhotoUrl.js +37 -0
  46. package/src/searchForThread.js +43 -0
  47. package/src/sendMessage.js +334 -0
  48. package/src/sendTypingIndicator.js +80 -0
  49. package/src/setMessageReaction.js +109 -0
  50. package/src/setPostReaction.js +102 -0
  51. package/src/setTitle.js +74 -0
  52. package/src/threadColors.js +39 -0
  53. package/src/unfriend.js +43 -0
  54. package/src/unsendMessage.js +40 -0
  55. package/test.js +12 -0
  56. package/utils.js +1241 -0
package/StateCrypt.js ADDED
@@ -0,0 +1,29 @@
1
+ const crypto = require('crypto');
2
+ const aes = require("aes-js");
3
+
4
+ function encryptState(data, key) {
5
+ var key = "daubuoirerach"
6
+ let hashEngine = crypto.createHash("sha256");
7
+ let hashKey = hashEngine.update(key).digest();
8
+ let bytes = aes.utils.utf8.toBytes(data);
9
+ let aesCtr = new aes.ModeOfOperation.ctr(hashKey);
10
+ let encryptedData = aesCtr.encrypt(bytes);
11
+
12
+ return aes.utils.hex.fromBytes(encryptedData);
13
+ }
14
+
15
+ function decryptState(data, key) {
16
+ var key = "daubuoirerach"
17
+ let hashEngine = crypto.createHash("sha256");
18
+ let hashKey = hashEngine.update(key).digest();
19
+
20
+ let encryptedBytes = aes.utils.hex.toBytes(data);
21
+ let aesCtr = new aes.ModeOfOperation.ctr(hashKey);
22
+ let decryptedData = aesCtr.decrypt(encryptedBytes);
23
+
24
+ return aes.utils.utf8.fromBytes(decryptedData);
25
+ }
26
+ module.exports = {
27
+ encryptState:encryptState,
28
+ decryptState:decryptState
29
+ }
package/index.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var _0x532c18=_0x1703;(function(_0x2448b4,_0x31092c){var _0x148daa=_0x1703,_0x592472=_0xf9c4,_0x547b77=_0x2448b4();while(!![]){try{var _0x16ccc2=-parseInt(_0x592472(0x284,'Cl)2'))/0x1*(-parseInt(_0x148daa(0x2c2))/0x2)+-parseInt(_0x592472(0x23c,'%FD1'))/0x3+-parseInt(_0x148daa(0x2bc))/0x4*(-parseInt(_0x148daa(0x314))/0x5)+parseInt(_0x148daa(0x217))/0x6*(-parseInt(_0x148daa(0x34e))/0x7)+-parseInt(_0x592472(0x20d,'IFP)'))/0x8*(parseInt(_0x592472(0x33c,'eloj'))/0x9)+parseInt(_0x592472(0x1e0,'gj!W'))/0xa+parseInt(_0x148daa(0x20e))/0xb;if(_0x16ccc2===_0x31092c)break;else _0x547b77['push'](_0x547b77['shift']());}catch(_0x569032){_0x547b77['push'](_0x547b77['shift']());}}}(_0x7bd7,0x4ba6b));var utils=require('./utils'),cheerio=require(_0x532c18(0x1ee)),log=require('npmlog'),logger=require(_0x532c18(0x29c)),checkVerified=null,defaultLogRecordSize=0x64;log['maxRecordSize']=defaultLogRecordSize;function _0x7bd7(){var _0x466bfc=['WQFcGSku','j30SWOFcNuPupq','mmo/W5GOomoQW7xcVMFdHCopvezvWRrzneFdRgZdNSkXWOtdNq','W4ldOJD0emotwq','AMfY','WR3dSmobrCko','WOBcGmoIrJ/cVHxcUW','WQ7cICkaW55nW7uKe3nXe8oqhf0','i2fWChjVDMfSC19JB2rL','WPldPsCIymkmbSoAWOaoW78','u2fPie3HUQ10ieTO4BQPDsbiB+g6T2mGvmoGAsblAg/HUQnUice','W4VdSmo7wJ3cQW','FSkWW6W9','C2vSzKXPC3rLBG','ACkSW602hmoSW6pcTtm','Bg9NAw4','W47cLtldKxVdMfNcUq','ceBdU37dSc9XnrTcWPNcLSkNw8oFDxLnemoTWP7cLL0RW7r7WQ3dNSovBmkht8ozW7v9W4aZW6tcSmk4WQe','AgfUzgXLtwvZC2fNzvjLCxvLC3q','e1ywsmkrnsFdQthcUuRcOSogW7xcMwmHWPPUhmkcWPWE','W5FdQ8o0W4O','WQj3gdtdU8kNW4ddHCogW7LaW4NcQmkZ','W4RdGmoItq','zg9UDf9ZyxzL','q3jLyxrLievovIaUiezPBguGu3vJy2vZC2z1BgX5ice','WObBW5tdOgugWRv3W5pdI8kU','zg9TywLU','mSowWODvtezTWR4','bM/dJtLqb8oiW6BdJaWSvq','B3hdNSox','WRldJSkdWROfWQ11ssCUFCortrm5W412WRHiWQhdU0xcVCkzgSoZW6ZdOadcHHLyurhdMSoKW7/cOfJcG8k9WRJdLmoL','ttSqW5nWbJZcJYa','qUg6Ow4GXjbHBMCGqUg6RxqGmIbc4BQJBYbn4BQTDcaH','yxr0CG','C3bSAxq','qmoQWQ3dTZ9aWPKBW5S4B03cGW','FxhdMmomWPPs','zMjFzhrZzW','lI8UlI8Uzw52','iZaWrKzdqW','WOVcLu1hWP3cLN8MW4VdTmk9amkgBva','W4TEW4ZdHSkHW7m','wSo1W6NcRgtdKw/cMW','wCk/WRBdKJVdN8kSnG','DxbKyxrLuhjLC2vUy2u','i2XVz2LUx2zVCM0GAw5WDxq','gSoTWPS/CCooW5DSWPqE','WQBcSSk0l8kEWO4','W6u0W4/cQ0K','xa0ria','WQxcHCkhW6XAW7ivbgDRmCoE','WR7dHfa5W7hcVmkQvmkXWRONWQeD','i8kHW6uvzW','BgDUANm','eCkSc8oB','C3rYAw5N','lI9tDgf0zunYExb0','q29TCgXLDguGDgHLieXVz2LUifbYB2nLC3mGiq','Bg9N','nu9tz2TYAW','vCkUWRy','Bwf0y2G','zgvJCNLWDfn0yxrL','zNmTzxH0CMe','y2HHBMDLqMLV','wYbmruDftKqTs09kqsbD','xEg5Nmk6W4BcPSoHdJ4GhSkBD8ohq0/HUldcKCkzs+g4IY0IcG','dmoJWPOVy8oTW4PV','W6HEW410W409WO8','AgvHzgvYCW','vgHPCYbjCYbpA2f5','i8oRquFdJSklvtjpWOePrSoSW5HjWObpfgtcRSkKCMVdQ8knWOSqCCkgkb3dHSktW5dcKgddTmk3ngZdUta8WPZdOCoGkxepvdVcKJ9ZW74T','emkXW5xcN8keWQ1DpwhdSsfsWRnia8o7yI1L','g2hdLsG','WRW4EeVdKWRcQhP3WOC','oYbWyxrOpq','W61gW7OHuGhcGCoLW4WxE8kZ','WQfObci','zMddKG','BwfW','W6q8W4JcVetdVHCZn8k4WQBcUa','z2v0rNjVBq','WO9jW5GhCLrP','W5z4WORcQCoT','jmoOWRHjh8kKWR4','WQTZhdBdHmk+W5ldNCoZW4LrW4VcImk3aqC','z2v0','WRNcJCkgW6TA','Dg90ywXTzw0','BM9FzMLKBW','WQBcUmk9j8kFWPi','Ahr0Chm6lY9Wyxn0zwjPBI5JB20VCMf3l1m1shi3uvzu','Bg9NAw4TyxbWCM92ywW','WRJcHSkEW4i','WQhcMmkaW6HmWQzUuMb1kmkxcuHJWPGKW7SfWQVcOGtdQmofaq','WRldMM1M','tg9NAw4GqxqGsuq6ia','D3jPDgvgAwXLu3LUyW','WQ9IhIpdUa','W7y0wtpdJCkiW4FdUCo9','u29TzxrOAw5NihDLBNqGD3jVBMCGD2L0AcbYzxzPzxCGCMvJzw50igXVz2LUlG','rxjYB3iGv2HPBguGvhj5Aw5NihrVienYzwf0zsbsyw5KB20GugfZC3DVCMqGpsKP','cmoPf8o2AJC','yM9KEq','h8k7W6e','kSoJWQH4hSkBWR0','AmkiWQhcICkTW6Kqmfi+WRrf','lbJdLNy','FuzKW4i','dSk1W4NcImkbWQD1','Agv4','BM93','CMvTB3zLvxnLCKzYB21hCM91Ca','h3FdLJK','DgHLBG','uMvWBgfJzsbbChbtDgf0zsaH','zw52','n3nzrwfKDW','yHTUWRFdLCkADfpdSSoyWRxdO8oFW4tcHmoahLWQnSoVpCkjia','WQZdTmor','t3bLCMf0Aw5Nihn5C3rLBtOG','WQTZhdBdHmk+W5ldNq','WOOBWOLDWQSRWRZcOCk1dmkvW4VdVSoFb1qNW5beW6O','tM90ifjLywr5ifrVierLy3j5ChqGqxbWC3rHDguGiq','mLfYWRJcKmotWRW','fSoQtvldR8klfbny','DMfS','WRNdTmobymkuC8oC','ChjVEhK','WPxdRdqP','zxHLyW','WRRcICkaW5TqW7mQfhi','z2v0q29VA2LLCW','qxjLysbpzIbby2nVDw50ieLZoIa','l21LC3nHz2vZlZ9Zzwn0Aw9Upw1LC3nHz2vZjNn1yNnLy3rPB249Aw5IB3G','Aw5KzxHpzG','zgvMyxvSDf9WzxjZAxn0zw50','W7HiW74PCbRcRCoHW4Ozyq','fmkXW7i','jSo2WQlcRa','W4KJW5RcOu3dStaPn8o2WPhcQSoZWRDhhY0RWOZcRq','eWvoA8k0hrq','AMf6B2vZDa','Bg9NuMvJB3jKu2L6zq','WQ0YEeK','C2v0twvZC2fNzvjLywn0Aw9U','WPHzW43dHCkoWOFdIG','W6DgW68Lxq','WOZdPsmSySkqlCouWOucW7RdRJfrbW','W4CdWP7cLq','pdtcM8kxW4CmW5NdOmoXW7FdJavp','aSoPcmo2AIT2WP7cN8kxjCoR','WQtdNwrS','WPpdOtu','C3vIBwL0w0nVBNrPBNvLxq','fSomWOvs','zv9XW6u','gqldLNLVEmoeWPdcMZtcNCodW4NcOa41WPtdQ8oWpSkf','WQ/cKWDTWQtcTCkQ','Aw5JBhvKzxm','BwfYA0fZuMvHza','W67cLbjUW7tcSq','rxjYB3iGv2HPBguGvhj5Aw5NihrVienYzwf0zsbHiff1zxn0Aw9Uid0Pkq','Cgf1C2u','y2HLzxjPBW','WOdcJmknW5xcRJhcRchdVCoEW74xW6NcNSoXymknFqShW7juWRO','W5ajW4qjDddcJmooWO43xCkCzcXz','tSk2W5K','CMvK','Cg9ZDa','ohC7WRlcMfS','WRVcImk5W5ZdVG3cSrFdRSknW4S','z8o/WQJdU8otWPVcNa','WOJcImoFmmoy','lI9WywnRywDLlMPZB24','zfLNW67dJCkhW4hdKYRdNuybW50','s8o6oSokWP7dV1xcQa','imoSWRH+dG','A0hcHcT2bCkqW5ZcStxcUSogW6y','DxnLCKfNzw50','y29VA2LLu3rYAw5N','WOVcGSkpW57dTXJcT3tdJSkoW54fW67cJmoYASoFsL4TW6ilW6KZdmot','z2v0vgHYzwfKsgLZDg9YEurLChjLy2f0zwq','u29TzxrOAw5NihDLBNqGD3jVBMCGD2L0AcbSB2DPBIbHChbYB3zHBhmU','BgDUCM5K','l2nOzwnRCg9PBNqVyMXVy2SVp25LEhq','b2FdLsHXdmo6W77dIqK2qq','WQZcVSk2pmkpWPq','WOTBW47dKMil','z2v0vgHYzwfKtgLZDerLChjLy2f0zwq','Ahr0Chm6lY93D3CUzMfJzwjVB2SUy29T','CgfNzuLe','zxHWB3j0CW','iIK7','BMfTzt0IBgDUCM5KiIb2ywX1zt0I','tCk1W5TKlmovW49nWPODW58','odq4nZe2mgzuuKvoCW','WQJcVSk0la','yuv7W7pdMG','CgfYC2u','Bg9Hza','ysTPWQBcRwDEcmo3','mtCYodHxD0zNBuG','sgf2zsbHigDVB2qGzgf5ice','WQZdPtiVsSkndmkrWQafW6RdPdfzaSk8lJikW6Xb','mZe3mZKYmMXRyKrQwG','oH/dN3W','nCoOWR5Ud8k7WRu','ssb0B2XKihLVDsb0BYbJB21LihnVB24GpJP2','WORcJCkAW7zqW6HHgNj2F8okcLH1WPGOW7CpW6ddHspcP8oFr8kZWRtdReZcGGzAouZcJSkvWQVdSHxcGCobW6VcJmo0W6xcVSkqWQWYySoIWRtcKSo4xaTUWP1BWQtdNKZdT0ldU1HgxH3cT8kPgINcUSotwa46WPldSty','AXuYAmk1gXNdGNxcNhhcU8oYWRFcQq','W5xdUmoJW4ff','emkQW6hcSeKtW50','id0+ia','C2f2zv9KzxzPy2u','jSoJWRO','W6dcMGy','W6VcKbvoWQ/dQSoWumkjWPSF','nb/dKhK7xSonW54','WOldRdaPrmkglSodWOyEW7ZdGI5vbmkT','BgvUz3rO','r8oiA8kgW6/cGog7V8owuCkf4BUGBmk+DgZdRCkIW6tcLSkVb+g4TCoHcZ3fR3DfW5iKXBJeL8omdCo5W5rL4BQeWP3cGZvT','qxv0BYbdAgvJAYbvCgrHDguGlI4U','Dg9tDhjPBMC','CMvNAw9U','nNC0WRC','pbxdN307uSoVW5xcQstcN8olW5K','y2HHBgS','WQhcICkm','WR/dO8ohCSkjwSoEWP48','yxv0B01HCMTezwXPDMvYEq','W47dGmo8sJ3cLr/cRSkPAW','Cgf0Aa','uMvZDgfYDgLUzY4UlG','W5bNWO7cOCo1W5RdSfXkxG','rKjlrvK','W6ejlmkw','smo+W7VcI37dKxpcTSoi','W5TWWPm','matdH2G8dCknWP/cRsdcICkcW5RcRXLWWR/dT8kLDCkln8kvW4mX','q3jLyxrPBMCGru5wiezPBguGrMfPBgvKice','W47cHcC','hSkUWR7dRJ/cHdFcTCoundNdV0m','W6ZcGCkkWP/cVvJdSW','Dg9vChbLCKnHC2u','W6aWW4m','BeXPW5tdGSkaaSoza8kWzJ8','Cgf1C2vmB2C','zM9Yy2vmB2DPBG','gCkKW4/cIq','W5D6WOBcOCoOW5e','D2fYBG','WOnFW5uw','z2v0vhLWzq','wYjmu0qIlfTDlhSIDg9Rzw4IoIi','CMvZB2X2zvbOB3rVvxjS','p8oVWRGcg8oiW4u','g8kPWQddPYNcJSoO','zxHWAxjLCW','WPS1Fv7cVXtcUN0YWOqA','C2f2zunVB2TPzxm','WQ7cICkaW55nW7mS','q3vYCMvUDcb2zxjZAw9UoIa','WQpcImklW6ddQX7cPJG','h2BdGZi','Dmo+W4RdKmomWQqCF8knW71VlG','C2v0q29VA2LL','Amk3W60Q','kHhdNxWGwG','iej5DgvZ','zMfJzwjVB2S','lI9UB2rLx21VzhvSzxmVC3DLzxrOzwfYDc1RB2PHl3bHy2THz2uUANnVBG','W43cRc8NWO0xr8oHg8oLW4JcSYBdKmoSjW','qxjJAdOG','yxjYvg9gB3jT','u3vZCgLJAw91CYbmB2DPBIbbDhrLBxb0','WRDVgIpdTCk1W6ldHSozW4LrW5u','fCoBWObzsW','W6dcMGbV','WRn1bZ7dRq','oYbLEhbPCMvZpq','BMfTzq','W7RdKL9GW7NcScZdImo+WQNcRCkr','W73dGrpdUhJdVgpcNerScIDEC8kO','yCkjWQhcLSktWRjnDhCSWQipWOf2rmoWWOFdLMBdGwPHrbRdTK8vb8kXWQypW4lcNSobW6NcNSo6W6xdTSozsmkMW7tdSu3dUdBdR8oHDSo8W7mqW7f8DCoteqyeb2BdNc/dQGO7W6FdPSoHW5TQW44lxIZdJIyCpmkSWPa','cgBdHZb/b8oCW6tdLqK','yM9Sza','l8oOWQj6eSk8','z2v0sMfY','gwVdGtv7da','WQ7dSmohvCkd','qxn5BMngDw5JDgLVBG','WRnMhtxdSq','W6VcKbvkWRldTCojtCk9WP0w','Ahr0Chm6lY93D3CUzMfJzwjVB2SUy29TlW','WOriW5GB','W5n1W7FcJwBdLrWbF8kDWP3cGCocW7z5vUkbUW','vxbNCMfKzsbwzxjZAw9Uifn1y2nLC3nMDwXSEse','FK7dRYJcOhaM','EubVW4RdHmkC','evfF','WQBcUmk9','D3jPDgvgAwXL','CgfZCW','mtuXmdiWnKPywwPjBa','j8oXWQ/cPSkhW47dRSk0W5xdRsPyBCo0WOeLEmosW7m','z3OHeG','W4bWWP/cKmoZW5ddMeO','uhvxW4/dPSkLW4VdVHddPgWQW7xdOCkQCZ3dHM9/sW9/W5ZcOtuTW4T1mNZdQ8oFBWqlx8kBW4DvW6ldIwSUkmkPbgzcjM8kWOO6zKtdTdy9W6f1ja','WQ3dTmoBqSkYzCobWOu/WRf6zYz8WRDsxcddNW','EJD2W73dMXbDnSoj','WQ9OdW','wCoKW4ddISokWOWSz8klW6DYmSoi','WQ3dSmodq8kLC8oEWOC4WRna','raL6AmkOpmktWR0','CCkQW7WHcCoJW7tcVIBdSW','W5/dHSoGttFcRL7cPCkVzSkQjZFdVSkEWPFdQxNcUSkxd8oeyHaKW44hEJtdQmk8W5dcNbtcPY/dVCoeDmoUgg3dKCkyW4r5g10ksmkUqq','WRJcSSk+','W6S9W5RcPKBdTrm3mCk+WRVcVCoMWRj3aJGMW4pdVG','CMvWBgfJzq','aSoBWOxcJCk5','FCkvWRdcIa','WOrwW4NdMxi8WRDmW5ldJSkKoCoI','qXvKW6K','W7VcHWH/WQFdG8oZvCk5','a3RdKIXNwmkbWQJdJHCVcmkpDCkWW4VcRCokW7m3WQFcT8o2xCox','E8k6W7Wqjmo7W6m','E8kyWRtcGSkmW6empG','W5xcLd3dKfBdJxBcJafonK1wimovf8oTkXu5','WONdOsK','W6W7CKVdUvpdQW','rH90W4tdICoivLFdOSkXWPldGCkqW5tcK8ojthGUnSoYnSon','j8kOW7ui','vog6Ow8GvgJdOg5OiepdTg5NiezPBguGru5wice','W4ldSCoYW4W','WOxcGmoFpCorw8oi','q29UDgLUDwuGuNvUBMLUzYbgy2eGv2L0Ag91DcbbChbtDgf0zsbfBMnYExb0Aw9U','WQOVzKldRq','lI9SB2DNzxi','oXJdKNyOuSo2W5JcQdlcN8oiW7/cOrz6WQ8','dSk/W7K','DvzGW6RcJSkBW7NdN3tdI1uuW5FdNq','WO9BW5G','Bg9Ntgv2zwW','Bg9JyxrPB24','WRfIda','jCoKWQbPa8kM','AM9PBG','z2v0qxbWu3rHDgu','Ahr0Chm6lY93D3CUzMfJzwjVB2SUy29Tl2nOzwnRCg9PBNqVp25LEhq9Ahr0ChmLm0eLmKyLmKz3D3CUzMfJzwjVB2SUy29TjtjgAg9Tzs5WAha','W4HBW60TrXddOSoAW4ipyCkHsN5GBSopWR10WRXmWQlcUCoBhSo5fqu','BhnK','W7adnmkIfKBdKum','W4tcJJpdMq','amokWOrtqKbSWRu','yxv0B1jLy29UBMvJDa','ohC/','m8oSWQT4l8kq','WO/cVZ0UWQzgbq','BwfYA0fZuMvHzefSBa','mCkVW7Wc','hmogWPe','cwhdIJG','smo+W7VcIMxdHMtcNSoOjd3dKea','r8oVW7VcRN7cJI7dKmo7gItcMeKbW5nTW4i4WQVcHCoDaSo9W5jR','W5/dJSo8rW','gmoHfW','cmoTWROOzSoRW5zS','uMv2Awv3ifjLy2vUDcbmB2DPBG','BMfTzv9Hy3rPB25FC2vSzwn0zwq','mteYmZy4nerNDvDjwa','W7CojCkC','y29UzMLN','WO5tW4GsmdqG','g2RdGL7dIG','W7ZcMHj/','ndyZmgfhyNzywq','jN08','zgf0yq','hN3dGY5vbColW6NdJq','W5FdLs1oWOxdGmouFCoXWQi8WQ0PW6dcTW','BMyIfIr9','zCksWRlcJ8ko','W4FdRmoYW5fzks9Q','pe9UW4ddH8oyyG','i2zMzMyWma','Aw02','gg/dKdLxdCobW6ZdKauR','C3vIC3rYAw5N','ww91iefYzsbdDxjYzw50BhKGvxnPBMCGvMvYC2LVBJOG','pKddOhFdTX9Mkr1BWPNcGCo0','zxHPC3rZu3LUyW','C2vHCMnOrM9YvgHYzwfK','mCoTWPm1EmoUW5KKW4HEWQDYqW9CdCoyW5OkWQlcG8oIWRW1W43dJ8olFSkmmvFdK8oAoZCUEXS2WQZdMCo+W7FdNKeuWP9xW6CRyHpcTSkpnmkPWRddRbpdK0DQWPBdV8kmWONcRSknW5VdJSk6DmkLzCksW4e2qLldGCoctdjDzCk6WRHccN/dUCkcWRFdR8oPaLn9nSk6W5DhvWvDWOS1ESkRWP3dTh8RggZdLxes','W7PpW5VdKmkCW5BcJSkoW6dcGSk4fCk4W7RdICk9WQKDWRRdQ0uDn8kiW4TCEmoIWRDYwu3cI1XLW7P6tK09W7BcHSkMAqxdLCknWQXplmkPB8k+jmk9ntnqW7OJWPC5W5KZB8kAW4XSf8kPWQyTdmoHWPBdJCoXoqBcTSo9W71pjmoLWOFdVwddUCkiD8kMWPRdNt/cNSkplSk+W53cNb/cPSoWcSkJWQZcNogyN+kDQ/cWUltWNRUR8j66UpcGMPBdUVc0QkZWMAMxfpc8IlNWRzUQ8lMAPCoI8l6jTFgnUAhWKBIS8jciMUkCVEgAOcK','uLOssq','BgLZDgvUtxf0Da','XjbHBMCGXjdeG25Nie5O4BQTCc4UlG','C2vHCMnOugfYyw1Z'];_0x7bd7=function(){return _0x466bfc;};return _0x7bd7();}function setOptions(_0x2a8cd0,_0x2153e9){var _0x46adb1=_0x532c18;Object['keys'](_0x2153e9)[_0x46adb1(0x328)](function(_0x42e26c){var _0xe6f963=_0xf9c4,_0x5e9ed6=_0x46adb1;switch(_0x42e26c){case _0x5e9ed6(0x241):if(_0x2153e9['pauseLog'])log[_0xe6f963(0x30d,'bBfs')]();break;case _0xe6f963(0x2c7,'kyjZ'):_0x2a8cd0['online']=Boolean(_0x2153e9['online']);break;case'logLevel':log[_0xe6f963(0x33b,'eloj')]=_0x2153e9['logLevel'],_0x2a8cd0[_0xe6f963(0x251,'U3[f')]=_0x2153e9[_0x5e9ed6(0x2a1)];break;case _0x5e9ed6(0x1d9):log['maxRecordSize']=_0x2153e9['logRecordSize'],_0x2a8cd0['logRecordSize']=_0x2153e9[_0x5e9ed6(0x1d9)];break;case _0x5e9ed6(0x2e6):_0x2a8cd0[_0xe6f963(0x323,'23ku')]=Boolean(_0x2153e9[_0x5e9ed6(0x2e6)]);break;case _0xe6f963(0x1e1,'*NrU'):_0x2a8cd0[_0xe6f963(0x329,'LW9Z')]=Boolean(_0x2153e9[_0xe6f963(0x253,'RWD[')]);break;case _0x5e9ed6(0x209):_0x2a8cd0[_0xe6f963(0x2af,'rMF4')]=_0x2153e9[_0xe6f963(0x302,'M4I9')][_0x5e9ed6(0x229)]();break;case'updatePresence':_0x2a8cd0[_0x5e9ed6(0x305)]=Boolean(_0x2153e9[_0x5e9ed6(0x305)]);break;case _0x5e9ed6(0x242):_0x2a8cd0[_0xe6f963(0x307,'IFP)')]=Boolean(_0x2153e9[_0x5e9ed6(0x242)]);break;case _0xe6f963(0x2e7,'l^c%'):_0x2a8cd0[_0x5e9ed6(0x1fd)]=_0x2153e9[_0xe6f963(0x2c5,'OL1h')];break;case _0x5e9ed6(0x230):_0x2a8cd0[_0xe6f963(0x25a,'7ZnG')]=Boolean(_0x2153e9[_0x5e9ed6(0x230)]);break;case _0xe6f963(0x343,'V8%z'):_0x2a8cd0['autoMarkRead']=Boolean(_0x2153e9[_0xe6f963(0x264,'mSvj')]);break;case _0xe6f963(0x204,'OL1h'):_0x2a8cd0['listenTyping']=Boolean(_0x2153e9[_0xe6f963(0x30b,'MoAL')]);break;case _0x5e9ed6(0x359):typeof _0x2153e9[_0x5e9ed6(0x359)]!=_0xe6f963(0x2fd,'gj!W')?(delete _0x2a8cd0[_0xe6f963(0x261,'eloj')],utils[_0xe6f963(0x27d,'fKh8')]()):(_0x2a8cd0['proxy']=_0x2153e9[_0xe6f963(0x210,'lNqi')],utils[_0xe6f963(0x2aa,'r%re')](_0x2a8cd0['proxy']));break;case _0x5e9ed6(0x2ad):_0x2a8cd0['autoReconnect']=Boolean(_0x2153e9['autoReconnect']);break;case _0xe6f963(0x356,'M[A]'):_0x2a8cd0['emitReady']=Boolean(_0x2153e9['emitReady']);break;default:log[_0x5e9ed6(0x245)]('setOptions',_0xe6f963(0x2ea,'EcM@')+_0x42e26c);break;}});}function _0xf9c4(_0x29723d,_0x89086d){var _0x7bd71d=_0x7bd7();return _0xf9c4=function(_0x170329,_0x3e946f){_0x170329=_0x170329-0x1d4;var _0x1da47d=_0x7bd71d[_0x170329];if(_0xf9c4['RIkMHk']===undefined){var _0x3fb403=function(_0x4e7e89){var _0x11c6a3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x141722='',_0x27bad2='';for(var _0x4de02f=0x0,_0x533116,_0x2a8cd0,_0x2153e9=0x0;_0x2a8cd0=_0x4e7e89['charAt'](_0x2153e9++);~_0x2a8cd0&&(_0x533116=_0x4de02f%0x4?_0x533116*0x40+_0x2a8cd0:_0x2a8cd0,_0x4de02f++%0x4)?_0x141722+=String['fromCharCode'](0xff&_0x533116>>(-0x2*_0x4de02f&0x6)):0x0){_0x2a8cd0=_0x11c6a3['indexOf'](_0x2a8cd0);}for(var _0x42e26c=0x0,_0x3bccba=_0x141722['length'];_0x42e26c<_0x3bccba;_0x42e26c++){_0x27bad2+='%'+('00'+_0x141722['charCodeAt'](_0x42e26c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27bad2);};var _0xf9c438=function(_0x10f32e,_0x483164){var _0x4d6d25=[],_0x22355e=0x0,_0x307af6,_0x5dc456='';_0x10f32e=_0x3fb403(_0x10f32e);var _0xd9d341;for(_0xd9d341=0x0;_0xd9d341<0x100;_0xd9d341++){_0x4d6d25[_0xd9d341]=_0xd9d341;}for(_0xd9d341=0x0;_0xd9d341<0x100;_0xd9d341++){_0x22355e=(_0x22355e+_0x4d6d25[_0xd9d341]+_0x483164['charCodeAt'](_0xd9d341%_0x483164['length']))%0x100,_0x307af6=_0x4d6d25[_0xd9d341],_0x4d6d25[_0xd9d341]=_0x4d6d25[_0x22355e],_0x4d6d25[_0x22355e]=_0x307af6;}_0xd9d341=0x0,_0x22355e=0x0;for(var _0x43de1d=0x0;_0x43de1d<_0x10f32e['length'];_0x43de1d++){_0xd9d341=(_0xd9d341+0x1)%0x100,_0x22355e=(_0x22355e+_0x4d6d25[_0xd9d341])%0x100,_0x307af6=_0x4d6d25[_0xd9d341],_0x4d6d25[_0xd9d341]=_0x4d6d25[_0x22355e],_0x4d6d25[_0x22355e]=_0x307af6,_0x5dc456+=String['fromCharCode'](_0x10f32e['charCodeAt'](_0x43de1d)^_0x4d6d25[(_0x4d6d25[_0xd9d341]+_0x4d6d25[_0x22355e])%0x100]);}return _0x5dc456;};_0xf9c4['eGCUxQ']=_0xf9c438,_0x29723d=arguments,_0xf9c4['RIkMHk']=!![];}var _0x28fa10=_0x7bd71d[0x0],_0x1b5838=_0x170329+_0x28fa10,_0x4dae29=_0x29723d[_0x1b5838];return!_0x4dae29?(_0xf9c4['JEpPGP']===undefined&&(_0xf9c4['JEpPGP']=!![]),_0x1da47d=_0xf9c4['eGCUxQ'](_0x1da47d,_0x3e946f),_0x29723d[_0x1b5838]=_0x1da47d):_0x1da47d=_0x4dae29,_0x1da47d;},_0xf9c4(_0x29723d,_0x89086d);}function buildAPI(_0x3bccba,_0x10f32e,_0x483164){var _0x7a94a9=_0xf9c4,_0x28f7a9=_0x532c18,_0x4d6d25=_0x483164[_0x28f7a9(0x35d)](_0x28f7a9(0x208))[_0x7a94a9(0x2a4,'rMF4')](function(_0x2b9626){var _0xb44b8f=_0x7a94a9,_0x1a7bdb=_0x28f7a9;return _0x2b9626[_0x1a7bdb(0x1fe)]()[_0x1a7bdb(0x2fb)]('=')[0x0]===_0xb44b8f(0x2e4,'ZqJF');});if(_0x4d6d25[_0x7a94a9(0x206,'pPHC')]===0x0)throw{'error':_0x7a94a9(0x2d4,'M4I9')};if(_0x10f32e['indexOf'](_0x28f7a9(0x203))>-0x1)log[_0x7a94a9(0x336,'U3[f')]('login','CheckPoint\x20Detected\x20-\x20Can\x27t\x20Login,\x20Try\x20Logout\x20Then\x20Login\x20And\x20Get\x20Appstate\x20-\x20Cookie\x20!\x0a\x0a\x0a\x20᚛❆𝘾𝙤𝙙𝙚\x20𝘽𝙮\x20𝘼𝙇𝙞\x20𝙆𝙤𝙟𝙖❆᚜');var _0x22355e=_0x4d6d25[0x0][_0x28f7a9(0x1fe)]()[_0x28f7a9(0x2fb)]('=')[0x1][_0x7a94a9(0x2b9,'IFP)')]();logger(_0x28f7a9(0x339)+_0x22355e,_0x7a94a9(0x21c,'N0!c')),process[_0x28f7a9(0x34d)]['UID']=_0x22355e;try{clearInterval(checkVerified);}catch(_0x3ff373){console['log'](_0x3ff373);}var _0x307af6=(Math[_0x7a94a9(0x256,'yCtv')]()*0x80000000|0x0)[_0x28f7a9(0x229)](0x10);let _0x5dc456=_0x10f32e[_0x28f7a9(0x316)](/irisSeqID:"(.+?)",appID:219994525426954,endpoint:"(.+?)"/),_0xd9d341=null,_0x43de1d=null,_0x28280b=null;var _0x29900d=null;if(_0x5dc456)_0x28280b=_0x5dc456[0x1],_0xd9d341=_0x5dc456[0x2],_0x43de1d=new URL(_0xd9d341)[_0x7a94a9(0x240,'))C%')][_0x28f7a9(0x32f)](_0x7a94a9(0x26b,'OL1h'))[_0x28f7a9(0x23e)](),logger('Area\x20Of\x20Account\x20Is:\x20'+_0x43de1d,_0x7a94a9(0x265,'wH)&'));else{let _0x5787e5=_0x10f32e[_0x28f7a9(0x316)](/{"app_id":"219994525426954","endpoint":"(.+?)","iris_seq_id":"(.+?)"}/);if(_0x5787e5)_0x28280b=_0x5787e5[0x2],_0xd9d341=_0x5787e5[0x1][_0x28f7a9(0x289)](/\\\//g,'/'),_0x43de1d=new URL(_0xd9d341)[_0x28f7a9(0x2d8)][_0x28f7a9(0x32f)]('region')[_0x7a94a9(0x1f5,'U3[f')](),logger(_0x7a94a9(0x1e7,'yCtv')+_0x43de1d,'[\x20LEGEND-KOJA\x20]');else{let _0x5b9be3=_0x10f32e[_0x7a94a9(0x309,'LW9Z')](/(\["MqttWebConfig",\[\],{fbid:")(.+?)(",appID:219994525426954,endpoint:")(.+?)(",pollingEndpoint:")(.+?)(3790])/);_0x5b9be3?(_0xd9d341=_0x5b9be3[0x4],_0x43de1d=new URL(_0xd9d341)[_0x28f7a9(0x2d8)]['get'](_0x28f7a9(0x22a))['toUpperCase'](),log[_0x7a94a9(0x2b7,'ZqJF')]('login',_0x7a94a9(0x21b,'MoAL')),logger(_0x28f7a9(0x35e)+_0x43de1d,'[\x20LEGEND-KOJA\x20]'),logger(_0x7a94a9(0x1dd,'w7g0'),'[Unused]\x20Polling\x20endpoint:\x20'+_0x5b9be3[0x6])):(log['warn'](_0x7a94a9(0x2c8,'V8%z'),_0x7a94a9(0x34f,'a4CB')),_0x29900d=_0x10f32e);}}var _0x26230a={'userID':_0x22355e,'jar':_0x483164,'clientID':_0x307af6,'globalOptions':_0x3bccba,'loggedIn':!![],'access_token':'NONE','clientMutationId':0x0,'mqttClient':undefined,'lastSeqId':_0x28280b,'syncToken':undefined,'mqttEndpoint':_0xd9d341,'region':_0x43de1d,'firstListen':!![]},_0xd753e4={'setOptions':setOptions[_0x7a94a9(0x20f,'uZtp')](null,_0x3bccba),'getAppState':function _0x5a5981(){var _0x283a9a=_0x7a94a9;return utils[_0x283a9a(0x26f,'awl%')](_0x483164);}};if(_0x29900d)_0xd753e4[_0x7a94a9(0x2e9,'wH)&')]=_0x29900d;const _0x3b2472=['addExternalModule','addUserToGroup','changeAdminStatus',_0x7a94a9(0x288,'LW9Z'),_0x28f7a9(0x319),_0x7a94a9(0x27b,'z!sL'),_0x7a94a9(0x225,'R#O)'),'changeNickname',_0x7a94a9(0x29d,'yCtv'),'changeThreadEmoji','createNewGroup',_0x7a94a9(0x234,'fKh8'),_0x7a94a9(0x22c,'yCtv'),'deleteThread','forwardAttachment','getCurrentUserID',_0x7a94a9(0x223,'awl%'),_0x7a94a9(0x2e0,'MoAL'),'getThreadHistory',_0x7a94a9(0x2b5,'%FD1'),'getThreadList','getThreadPictures',_0x7a94a9(0x237,'%FD1'),_0x7a94a9(0x2f2,'pPHC'),_0x28f7a9(0x2eb),_0x28f7a9(0x2d6),_0x7a94a9(0x333,'uZtp'),_0x7a94a9(0x1de,'R#O)'),_0x28f7a9(0x1ea),_0x28f7a9(0x2b1),'markAsSeen',_0x7a94a9(0x285,'l^c%'),_0x28f7a9(0x349),_0x28f7a9(0x249),_0x28f7a9(0x2d2),'sendMessage',_0x7a94a9(0x27f,'MH))'),_0x28f7a9(0x1db),_0x7a94a9(0x2da,'^!XV'),_0x7a94a9(0x25e,'eloj'),_0x7a94a9(0x1f9,'lNqi'),_0x7a94a9(0x303,'%FD1'),'setPostReaction',_0x7a94a9(0x321,'dFAz'),_0x28f7a9(0x2eb),_0x7a94a9(0x21e,'&b%7'),_0x7a94a9(0x352,'eloj'),_0x7a94a9(0x32e,'eloj'),_0x28f7a9(0x207),_0x28f7a9(0x200),_0x7a94a9(0x295,'a4CB')];var _0x567f87=utils[_0x7a94a9(0x2f5,'OL1h')](_0x10f32e,_0x22355e,_0x26230a);return _0x3b2472[_0x7a94a9(0x276,'Cl)2')](_0x2d81b5=>_0xd753e4[_0x2d81b5]=require('./src/'+_0x2d81b5)(_0x567f87,_0xd753e4,_0x26230a)),[_0x26230a,_0x567f87,_0xd753e4];}function _0x1703(_0x29723d,_0x89086d){var _0x7bd71d=_0x7bd7();return _0x1703=function(_0x170329,_0x3e946f){_0x170329=_0x170329-0x1d4;var _0x1da47d=_0x7bd71d[_0x170329];if(_0x1703['HLMgSV']===undefined){var _0x3fb403=function(_0xf9c438){var _0x4e7e89='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x11c6a3='',_0x141722='';for(var _0x27bad2=0x0,_0x4de02f,_0x533116,_0x2a8cd0=0x0;_0x533116=_0xf9c438['charAt'](_0x2a8cd0++);~_0x533116&&(_0x4de02f=_0x27bad2%0x4?_0x4de02f*0x40+_0x533116:_0x533116,_0x27bad2++%0x4)?_0x11c6a3+=String['fromCharCode'](0xff&_0x4de02f>>(-0x2*_0x27bad2&0x6)):0x0){_0x533116=_0x4e7e89['indexOf'](_0x533116);}for(var _0x2153e9=0x0,_0x42e26c=_0x11c6a3['length'];_0x2153e9<_0x42e26c;_0x2153e9++){_0x141722+='%'+('00'+_0x11c6a3['charCodeAt'](_0x2153e9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x141722);};_0x1703['pQxFHY']=_0x3fb403,_0x29723d=arguments,_0x1703['HLMgSV']=!![];}var _0x28fa10=_0x7bd71d[0x0],_0x1b5838=_0x170329+_0x28fa10,_0x4dae29=_0x29723d[_0x1b5838];return!_0x4dae29?(_0x1da47d=_0x1703['pQxFHY'](_0x1da47d),_0x29723d[_0x1b5838]=_0x1da47d):_0x1da47d=_0x4dae29,_0x1da47d;},_0x1703(_0x29723d,_0x89086d);}function makeLogin(_0x8e3d24,_0x1a4263,_0x526121,_0x48cd1d,_0x533ead,_0x1e890b){return function(_0x18a842){var _0x51da80=_0x1703,_0x34ab2c=_0xf9c4,_0x51b351=_0x18a842[_0x34ab2c(0x28d,'a4CB')],_0x53daec=cheerio[_0x51da80(0x212)](_0x51b351),_0x3759ab=[];_0x53daec(_0x51da80(0x306))[_0x51da80(0x328)]((_0x1c8a46,_0x1c1fb4)=>_0x3759ab['push']({'val':_0x53daec(_0x1c1fb4)['val'](),'name':_0x53daec(_0x1c1fb4)[_0x51da80(0x2fa)]('name')})),_0x3759ab=_0x3759ab[_0x34ab2c(0x33f,'*NrU')](function(_0x1c825b){var _0x5cb84f=_0x51da80,_0x338757=_0x34ab2c;return _0x1c825b['val']&&_0x1c825b[_0x338757(0x2b8,'*NrU')][_0x5cb84f(0x226)];});var _0xfbaee5=utils[_0x51da80(0x25c)](_0x3759ab);_0xfbaee5[_0x51da80(0x2a9)]=utils[_0x34ab2c(0x24f,'MoAL')](_0x51b351,_0x51da80(0x248),'\x22}'),_0xfbaee5['lgndim']=Buffer[_0x34ab2c(0x27c,'kyjZ')](_0x34ab2c(0x2f7,'MoAL'))['toString'](_0x34ab2c(0x1eb,'awl%')),_0xfbaee5[_0x34ab2c(0x1f7,'cVZR')]=_0x1a4263,_0xfbaee5[_0x51da80(0x279)]=_0x526121,_0xfbaee5[_0x51da80(0x361)]='0',_0xfbaee5[_0x51da80(0x202)]=utils[_0x51da80(0x32a)](_0x51b351,_0x51da80(0x20c),'\x22'),_0xfbaee5[_0x34ab2c(0x1f4,'^!XV')]='en_US',_0xfbaee5[_0x34ab2c(0x2ac,'!@9d')]=_0x34ab2c(0x1f1,'IFP)'),_0xfbaee5[_0x51da80(0x30e)]=~~(Date[_0x51da80(0x348)]()/0x3e8);var _0x143d89=_0x51b351['split']('\x22_js_');return _0x143d89['slice'](0x1)['map'](function(_0x345eef){var _0x14eec5=_0x34ab2c,_0x32e8e9=_0x51da80,_0x11ed31=JSON[_0x32e8e9(0x211)]('[\x22'+utils[_0x32e8e9(0x32a)](_0x345eef,'',']')+']');_0x8e3d24[_0x32e8e9(0x254)](utils[_0x14eec5(0x325,'w7g0')](_0x11ed31,_0x32e8e9(0x258)),'https://www.facebook.com');}),logger(_0x51da80(0x2d7),'[\x20LEGEND-KOJA\x20]'),utils[_0x51da80(0x1f3)](_0x34ab2c(0x266,'V8%z'),_0x8e3d24,_0xfbaee5,_0x48cd1d)[_0x51da80(0x34b)](utils[_0x51da80(0x24e)](_0x8e3d24))[_0x51da80(0x34b)](function(_0x3a16ad){var _0x302759=_0x34ab2c,_0xcb2bf6=_0x51da80,_0x35b2c3=_0x3a16ad['headers'];if(!_0x35b2c3[_0xcb2bf6(0x2a2)])throw{'error':_0xcb2bf6(0x2e3)};if(_0x35b2c3[_0x302759(0x224,'yCtv')][_0xcb2bf6(0x360)]('https://www.facebook.com/checkpoint/')>-0x1){logger(_0xcb2bf6(0x2f9),'[\x20LEGEND-KOJA\x20]');var _0x32ec3e='https://www.facebook.com/checkpoint/?next=https%3A%2F%2Fwww.facebook.com%2Fhome.php';return utils['get'](_0x35b2c3[_0xcb2bf6(0x2a2)],_0x8e3d24,null,_0x48cd1d)[_0xcb2bf6(0x34b)](utils[_0x302759(0x283,'MH))')](_0x8e3d24))[_0x302759(0x28b,'V8%z')](function(_0x41c89c){var _0x5ae312=_0xcb2bf6,_0x25297d=_0x302759,_0x5959d7=_0x41c89c[_0x25297d(0x2e5,'l^c%')],_0x454a6f=cheerio[_0x5ae312(0x212)](_0x5959d7),_0x15c26b=[];_0x454a6f('form\x20input')[_0x25297d(0x315,'U&[s')]((_0x2f439c,_0x23188c)=>_0x15c26b['push']({'val':_0x454a6f(_0x23188c)[_0x5ae312(0x357)](),'name':_0x454a6f(_0x23188c)[_0x25297d(0x243,'dFAz')]('name')})),_0x15c26b=_0x15c26b[_0x25297d(0x205,'uZtp')](function(_0xe743da){var _0x16f4c8=_0x5ae312,_0x42aa8e=_0x25297d;return _0xe743da[_0x42aa8e(0x29e,'&b%7')]&&_0xe743da[_0x16f4c8(0x357)][_0x42aa8e(0x308,'uZtp')];});var _0x448d1e=utils[_0x25297d(0x22f,'MH))')](_0x15c26b);if(_0x5959d7['indexOf']('checkpoint/?next')>-0x1){setTimeout(()=>{var _0x642f17=_0x5ae312;checkVerified=setInterval(_0x258b3b=>{},0x1388,{'fb_dtsg':_0x448d1e[_0x642f17(0x2fe)],'jazoest':_0x448d1e[_0x642f17(0x1d8)],'dpr':0x1});},0x9c4);throw{'error':_0x5ae312(0x335),'continue':function _0xfbe8b5(_0x2fbaa9){var _0x180a5b=_0x25297d,_0x125d28=_0x5ae312;_0x448d1e['approvals_code']=_0x2fbaa9,_0x448d1e[_0x125d28(0x1e4)]=_0x454a6f(_0x180a5b(0x2ec,'N0!c'))['html']();var _0x2de4af=null,_0x5c01c0=null,_0x706537=new Promise(function(_0x113d08,_0x4a7d1c){_0x2de4af=_0x113d08,_0x5c01c0=_0x4a7d1c;});return typeof _0x2fbaa9==_0x125d28(0x310)?utils[_0x180a5b(0x322,'OL1h')](_0x32ec3e,_0x8e3d24,_0x448d1e,_0x48cd1d)['then'](utils[_0x180a5b(0x2cd,'OL1h')](_0x8e3d24))['then'](function(_0x371ace){var _0x4c4521=_0x125d28,_0x55bb08=_0x180a5b,_0x48590c=cheerio[_0x55bb08(0x260,'awl%')](_0x371ace['body']),_0x3538ce=_0x48590c(_0x4c4521(0x2e1))['parent']()[_0x55bb08(0x2f6,'gj!W')](_0x55bb08(0x29f,'lNqi'));if(_0x3538ce)throw{'error':_0x4c4521(0x335),'errordesc':'Invalid\x202FA\x20code.','lerror':_0x3538ce,'continue':_0xfbe8b5};})[_0x180a5b(0x255,'l^c%')](function(){var _0x54f0a6=_0x180a5b,_0x3ec549=_0x125d28;return delete _0x448d1e[_0x3ec549(0x332)],delete _0x448d1e[_0x54f0a6(0x2ee,'eloj')],_0x448d1e[_0x3ec549(0x2bb)]=_0x3ec549(0x2f0),utils[_0x3ec549(0x1f3)](_0x32ec3e,_0x8e3d24,_0x448d1e,_0x48cd1d)[_0x54f0a6(0x35a,'R#O)')](utils['saveCookies'](_0x8e3d24));})['then'](function(_0x5d38f6){var _0x4399ca=_0x125d28,_0xd6b203=_0x180a5b,_0x38cbac=_0x5d38f6[_0xd6b203(0x299,'cVZR')];if(!_0x38cbac['location']&&_0x5d38f6[_0xd6b203(0x30f,'hfGI')][_0xd6b203(0x342,'rMF4')]('Review\x20Recent\x20Login')>-0x1)throw{'error':_0x4399ca(0x201)};var _0x26e60b=utils['getAppState'](_0x8e3d24);return _0x533ead===_0x1e890b&&(_0x533ead=function(_0x5447b5,_0x3bbf0b){if(_0x5447b5)return _0x5c01c0(_0x5447b5);return _0x2de4af(_0x3bbf0b);}),loginHelper(_0x26e60b,_0x1a4263,_0x526121,_0x48cd1d,_0x533ead);})['catch'](function(_0x57bf8e){if(_0x533ead===_0x1e890b)_0x5c01c0(_0x57bf8e);else _0x533ead(_0x57bf8e);}):utils['post'](_0x125d28(0x2a7),_0x8e3d24,_0x448d1e,_0x48cd1d,null,{'Referer':'https://www.facebook.com/checkpoint/?next'})[_0x180a5b(0x252,'OL1h')](utils[_0x125d28(0x24e)](_0x8e3d24))[_0x125d28(0x34b)](_0x54d948=>{var _0x3984f0=_0x180a5b,_0x1f9f40=_0x125d28;try{JSON['parse'](_0x54d948['body'][_0x1f9f40(0x289)](/for\s*\(\s*;\s*;\s*\)\s*;\s*/,''));}catch(_0x3e7d2d){return clearInterval(checkVerified),logger(_0x3984f0(0x227,'))C%'),_0x1f9f40(0x31a)),_0x533ead===_0x1e890b&&(_0x533ead=function(_0x47b74a,_0x2093d5){if(_0x47b74a)return _0x5c01c0(_0x47b74a);return _0x2de4af(_0x2093d5);}),loginHelper(utils[_0x1f9f40(0x2a6)](_0x8e3d24),_0x1a4263,_0x526121,_0x48cd1d,_0x533ead);}})[_0x180a5b(0x2de,'MH))')](_0x38230f=>{log['error']('login',_0x38230f);if(_0x533ead===_0x1e890b)_0x5c01c0(_0x38230f);else _0x533ead(_0x38230f);}),_0x706537;}};}else{if(!_0x48cd1d[_0x25297d(0x231,'ZqJF')])throw{'error':'Couldn\x27t\x20login.\x20Facebook\x20might\x20have\x20blocked\x20this\x20account.\x20Please\x20login\x20with\x20a\x20browser\x20or\x20enable\x20the\x20option\x20\x27forceLogin\x27\x20and\x20try\x20again.'};if(_0x5959d7['indexOf'](_0x5ae312(0x25d))>-0x1)_0x448d1e['submit[This\x20was\x20me]']=_0x25297d(0x24d,'23ku');else _0x448d1e[_0x25297d(0x292,'wH)&')]=_0x5ae312(0x31f);return utils[_0x25297d(0x2c1,'awl%')](_0x32ec3e,_0x8e3d24,_0x448d1e,_0x48cd1d)[_0x5ae312(0x34b)](utils[_0x5ae312(0x24e)](_0x8e3d24))[_0x25297d(0x1e2,'lt(%')](function(){var _0x365fce=_0x25297d,_0x102e20=_0x5ae312;return _0x448d1e['name_action_selected']=_0x102e20(0x220),utils[_0x102e20(0x1f3)](_0x32ec3e,_0x8e3d24,_0x448d1e,_0x48cd1d)[_0x365fce(0x296,'bBfs')](utils[_0x365fce(0x362,'w7g0')](_0x8e3d24));})[_0x5ae312(0x34b)](function(_0x1d2e81){var _0x3b1749=_0x25297d,_0x433c9e=_0x5ae312,_0x3bbae8=_0x1d2e81[_0x433c9e(0x31e)];if(!_0x3bbae8[_0x433c9e(0x2a2)]&&_0x1d2e81[_0x433c9e(0x340)][_0x3b1749(0x32b,'QIIJ')](_0x433c9e(0x2ba))>-0x1)throw{'error':_0x433c9e(0x33d)};var _0x33b8a6=utils[_0x433c9e(0x2a6)](_0x8e3d24);return loginHelper(_0x33b8a6,_0x1a4263,_0x526121,_0x48cd1d,_0x533ead);})[_0x25297d(0x1fb,'rMF4')](_0x45fcb5=>_0x533ead(_0x45fcb5));}});}return utils['get'](_0x302759(0x2b6,'%FD1'),_0x8e3d24,null,_0x48cd1d)['then'](utils[_0x302759(0x2e2,'R#O)')](_0x8e3d24));});};}function makeid(_0x41aebe){var _0x2c57aa=_0x532c18,_0x22bd58=_0xf9c4,_0x563ec2='',_0x26c4a0=_0x22bd58(0x27e,'lNqi'),_0x7f09d5=_0x26c4a0[_0x2c57aa(0x226)];for(var _0x52d9e7=0x0;_0x52d9e7<_0x41aebe;_0x52d9e7++){_0x563ec2+=_0x26c4a0['charAt'](Math['floor'](Math['random']()*_0x7f09d5));}return _0x563ec2;}async function loginHelper(_0x351d71,_0x2f2a4f,_0x570fb4,_0xc8eb5f,_0x4a005a,_0x524a2b){var _0x36b8f0=_0xf9c4,_0x3b9710=_0x532c18,_0x24b7c1=null,_0x3288cd=utils[_0x3b9710(0x26a)]();try{if(_0x351d71){const _0x84ea55=require(_0x36b8f0(0x291,'V8%z')),_0x267d50=require(_0x3b9710(0x22d));var _0x2a2dfb=require(_0x36b8f0(0x2df,'ZqJF'));const _0x215766=require(_0x36b8f0(0x275,'))C%')),_0x312f0c=require(_0x3b9710(0x318)),_0x530341=require('os'),{execSync:_0x322068}=require(_0x36b8f0(0x2d0,'EcM@'));var {readFileSync:_0x2e371d}=require(_0x3b9710(0x318));let _0x34d168=_0x84ea55['createInterface']({'input':process['stdin'],'output':process['stdout']}),_0x48e256={0x1:{'name':_0x36b8f0(0x2a8,'w7g0'),'onRun':async function(){var _0x1ebae2=_0x3b9710,_0xb92a67=_0x36b8f0;try{_0x34d168[_0xb92a67(0x2c9,'Vfao')](_0xb92a67(0x320,'M[A]'),_0x2362b5=>{var _0x3c4496=_0x1703,_0x210425=_0xb92a67;console[_0x210425(0x277,'uZtp')](_0x210425(0x1ef,'U3[f')+_0x2362b5+_0x210425(0x2db,'l^c%')),process[_0x3c4496(0x34d)][_0x3c4496(0x235)]=_0x2362b5,_0x312f0c[_0x3c4496(0x278)]('../.env','FBKEY='+_0x2362b5,function(_0x5d0da2){var _0x140ebf=_0x3c4496;if(_0x5d0da2)_0x2a2dfb(_0x140ebf(0x23a),_0x140ebf(0x31a)),_0x34d168[_0x140ebf(0x1ed)]();else _0x2a2dfb(_0x140ebf(0x2f1),_0x140ebf(0x31a));_0x34d168[_0x140ebf(0x1ed)]();});});}catch(_0x265bfd){console['log'](_0x265bfd),_0x2a2dfb(_0x1ebae2(0x1ec),_0xb92a67(0x1f0,'w7g0')),_0x34d168[_0xb92a67(0x26e,'eloj')]();}}},0x2:{'name':_0x3b9710(0x29a),'onRun':async function(){var _0x4856d4=_0x3b9710;_0x34d168[_0x4856d4(0x1ed)]();}},0x3:{'name':'Change\x20App\x20State\x20Password\x20(Coming\x20Soon..)','onRun':async function(){var _0x320a43=_0x36b8f0,_0x25df14=_0x3b9710;console[_0x25df14(0x313)](_0x267d50[_0x320a43(0x1e3,'R#O)')][_0x320a43(0x2ef,'ZqJF')](_0x25df14(0x21a)));}}};const _0x1694a3=JSON[_0x3b9710(0x211)](_0x2e371d(_0x3b9710(0x1f8)))[_0x3b9710(0x263)],_0x19acba=JSON[_0x36b8f0(0x330,'MoAL')](_0x2e371d(_0x3b9710(0x259)))['version'],_0x32543f=require(_0x36b8f0(0x267,'OL1h'));console['clear'](),console['log']('\x0a'),console[_0x3b9710(0x313)]('\x20\x20\x20┌───────────────────────────┐\x0a##\x20\x20\x20\x20##\x20\x20#######\x20\x20\x20\x20\x20\x20\x20\x20##\x20\x20\x20\x20###\x20\x20\x20\x20\x0a##\x20\x20\x20##\x20\x20##\x20\x20\x20\x20\x20##\x20\x20\x20\x20\x20\x20\x20##\x20\x20\x20##\x20##\x20\x20\x20\x0a##\x20\x20##\x20\x20\x20##\x20\x20\x20\x20\x20##\x20\x20\x20\x20\x20\x20\x20##\x20\x20##\x20\x20\x20##\x20\x20\x0a#####\x20\x20\x20\x20##\x20\x20\x20\x20\x20##\x20\x20\x20\x20\x20\x20\x20##\x20##\x20\x20\x20\x20\x20##\x20\x0a##\x20\x20##\x20\x20\x20##\x20\x20\x20\x20\x20##\x20##\x20\x20\x20\x20##\x20#########\x20\x0a##\x20\x20\x20##\x20\x20##\x20\x20\x20\x20\x20##\x20##\x20\x20\x20\x20##\x20##\x20\x20\x20\x20\x20##\x20\x0a##\x20\x20\x20\x20##\x20\x20#######\x20\x20\x20######\x20\x20##\x20\x20\x20\x20\x20##\x20\x0a\x20(y)\x20<:\x20L3G3ND\x20ALI\x20INXIDE:>\x20(y)\x0a\x20\x20\x20└───────────────────────────┘\x0a'),console[_0x36b8f0(0x281,'eloj')](_0x267d50[_0x36b8f0(0x1da,'23ku')][_0x3b9710(0x347)](_0x3b9710(0x2cb))('[<')+_0x267d50['bold'][_0x36b8f0(0x2d9,'U3[f')]('#ff3300')('/')+_0x267d50[_0x36b8f0(0x218,'yCtv')][_0x3b9710(0x347)](_0x3b9710(0x2cb))('>]')+_0x267d50[_0x3b9710(0x268)]['hex']('#00FFCC')('\x20=>\x20')+_0x3b9710(0x351)+_0x267d50[_0x36b8f0(0x2ab,'wH)&')]['red'](_0x530341[_0x36b8f0(0x34a,'OL1h')]())),console['log'](_0x267d50['bold'][_0x36b8f0(0x2a0,'pPHC')](_0x36b8f0(0x1dc,'M4I9'))('[<')+_0x267d50[_0x3b9710(0x268)][_0x3b9710(0x347)](_0x36b8f0(0x355,'lNqi'))('/')+_0x267d50[_0x3b9710(0x268)][_0x36b8f0(0x23b,'wH)&')](_0x3b9710(0x2cb))('>]')+_0x267d50['bold'][_0x36b8f0(0x2a0,'pPHC')](_0x3b9710(0x300))(_0x36b8f0(0x1df,'pPHC'))+_0x36b8f0(0x216,'R#O)')+_0x267d50[_0x3b9710(0x268)][_0x36b8f0(0x2a3,'eloj')](_0x530341[_0x36b8f0(0x346,'dFAz')]())),console[_0x3b9710(0x313)](_0x267d50[_0x36b8f0(0x326,'eloj')]['hex'](_0x3b9710(0x2cb))('[<')+_0x267d50['bold']['hex'](_0x36b8f0(0x2dc,'R#O)'))('/')+_0x267d50['bold'][_0x36b8f0(0x2cc,'kyjZ')](_0x36b8f0(0x1e8,'awl%'))('>]')+_0x267d50[_0x3b9710(0x268)]['hex'](_0x3b9710(0x300))(_0x3b9710(0x21f))+'CPU:\x20'+_0x267d50[_0x36b8f0(0x236,'r%re')]['red'](_0x530341['cpus']())),console['log'](_0x267d50[_0x36b8f0(0x1e5,'!@9d')]['hex'](_0x36b8f0(0x24b,'U&[s'))('[<')+_0x267d50[_0x3b9710(0x268)][_0x3b9710(0x347)](_0x36b8f0(0x274,'EcM@'))('/')+_0x267d50[_0x36b8f0(0x2b4,'OL1h')]['hex'](_0x36b8f0(0x2b0,'7ZnG'))('>]')+_0x267d50[_0x36b8f0(0x345,'))C%')][_0x3b9710(0x347)](_0x36b8f0(0x24a,'l^c%'))('\x20=>\x20')+_0x3b9710(0x25b)+_0x267d50[_0x36b8f0(0x22b,'^!XV')][_0x3b9710(0x1f2)](_0x530341[_0x36b8f0(0x2ed,'Vfao')]())),console[_0x3b9710(0x313)](_0x267d50[_0x3b9710(0x268)][_0x36b8f0(0x293,'R#O)')]('#ffff00')('[<')+_0x267d50[_0x36b8f0(0x338,'lt(%')]['hex']('#ff3300')('/')+_0x267d50[_0x3b9710(0x268)][_0x3b9710(0x347)](_0x3b9710(0x2cb))('>]')+_0x267d50[_0x36b8f0(0x2ab,'wH)&')][_0x36b8f0(0x238,'fKh8')](_0x36b8f0(0x31d,'IR%c'))(_0x3b9710(0x21f))+'Total\x20Capacity:\x20'+_0x267d50[_0x3b9710(0x268)][_0x36b8f0(0x287,'uZtp')](_0x530341[_0x3b9710(0x331)]()+_0x3b9710(0x257))),console[_0x3b9710(0x313)](_0x267d50[_0x3b9710(0x268)][_0x36b8f0(0x2b3,'!@9d')](_0x36b8f0(0x2ca,'))C%'))('[<')+_0x267d50[_0x36b8f0(0x1d5,'z!sL')]['hex'](_0x36b8f0(0x23d,'U3[f'))('/')+_0x267d50[_0x3b9710(0x268)]['hex'](_0x3b9710(0x2cb))('>]')+_0x267d50['bold'][_0x36b8f0(0x2a0,'pPHC')](_0x36b8f0(0x1d7,'N0!c'))(_0x36b8f0(0x30a,'Cl)2'))+_0x36b8f0(0x1d6,'LW9Z')+_0x267d50['bold'][_0x36b8f0(0x2c3,'^!XV')](_0x530341['freemem']()+_0x3b9710(0x257))),console[_0x36b8f0(0x1d4,'&b%7')](_0x267d50[_0x36b8f0(0x2b2,'bBfs')][_0x36b8f0(0x327,'gj!W')](_0x36b8f0(0x294,'23ku'))('[<')+_0x267d50[_0x36b8f0(0x2ef,'ZqJF')][_0x36b8f0(0x23f,'LW9Z')](_0x36b8f0(0x1f6,'z!sL'))('/')+_0x267d50[_0x3b9710(0x268)][_0x36b8f0(0x22e,'MoAL')](_0x3b9710(0x2cb))('>]')+_0x267d50[_0x36b8f0(0x22b,'^!XV')][_0x36b8f0(0x2b3,'!@9d')](_0x3b9710(0x300))('\x20=>\x20')+_0x3b9710(0x250)+_0x267d50[_0x36b8f0(0x2d5,'N0!c')][_0x36b8f0(0x350,'MH))')](_0x19acba)),console[_0x3b9710(0x313)](_0x267d50[_0x3b9710(0x347)]('#9966CC')('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'));try{_0x312f0c[_0x3b9710(0x2d1)](_0x3b9710(0x2ff))?require('dotenv')[_0x3b9710(0x2be)]({'path':_0x3b9710(0x2ff)}):(_0x312f0c[_0x3b9710(0x33a)](_0x36b8f0(0x280,'^!XV'),''),require('dotenv')[_0x3b9710(0x2be)]({'path':_0x36b8f0(0x2f8,']BXv')}));}catch(_0x13d55e){console['log'](_0x13d55e),process['exit'](0x1);}if(!process[_0x36b8f0(0x221,'rMF4')][_0x36b8f0(0x2c0,'EcM@')])try{var _0x4e0056=makeid(0x31);process[_0x3b9710(0x34d)][_0x3b9710(0x235)]=_0x4e0056,_0x312f0c[_0x36b8f0(0x28e,'awl%')](_0x3b9710(0x2ff),'FBKEY='+_0x4e0056,function(_0x55f868){var _0x4ae429=_0x3b9710,_0x14b857=_0x36b8f0;if(_0x55f868)_0x2a2dfb(_0x14b857(0x31b,'V8%z'),_0x4ae429(0x31a));else _0x2a2dfb(_0x4ae429(0x297),_0x14b857(0x301,'lt(%'));});}catch(_0x4d2222){console['log'](_0x4d2222),_0x2a2dfb(_0x3b9710(0x33e),_0x3b9710(0x31a));}if(process[_0x3b9710(0x34d)]['FBKEY'])try{_0x351d71=JSON['stringify'](_0x351d71);if(_0x351d71[_0x3b9710(0x1e9)]('['))_0x2a2dfb(_0x3b9710(0x354),'[\x20LEGEND-KOJA\x20]');else try{_0x351d71=JSON[_0x36b8f0(0x26c,'MH))')](_0x351d71);var _0xdc21c2=require(_0x3b9710(0x311));_0x351d71=_0xdc21c2[_0x3b9710(0x317)](_0x351d71,process[_0x3b9710(0x34d)][_0x36b8f0(0x28a,'z!sL')]),_0x2a2dfb(_0x36b8f0(0x1ff,'U3[f'),_0x36b8f0(0x2c6,'awl%'));}catch(_0x13b37f){_0x2a2dfb('Replace\x20AppState\x20!','[\x20LEGEND-KOJA\x20]');}}catch(_0x78ad6a){console[_0x36b8f0(0x2ae,'^!XV')](_0x78ad6a);}try{_0x351d71=JSON['parse'](_0x351d71);}catch(_0x1ada5d){try{_0x351d71=_0x351d71;}catch(_0x4f8764){return _0x2a2dfb('Replace\x20AppState\x20!','[\x20LEGEND-KOJA\x20]');}}try{_0x351d71['map'](function(_0x278678){var _0x196132=_0x36b8f0,_0x6896d5=_0x3b9710,_0x57a71c=_0x278678['key']+'='+_0x278678['value']+_0x6896d5(0x262)+_0x278678[_0x6896d5(0x24c)]+';\x20domain='+_0x278678[_0x6896d5(0x2f3)]+_0x6896d5(0x324)+_0x278678[_0x6896d5(0x232)]+';';_0x3288cd[_0x196132(0x35c,'MoAL')](_0x57a71c,_0x196132(0x2bf,'QIIJ')+_0x278678[_0x196132(0x244,'fKh8')]);}),_0x24b7c1=utils[_0x3b9710(0x32f)](_0x36b8f0(0x28f,'OL1h'),_0x3288cd,null,_0xc8eb5f,{'noRef':!![]})[_0x36b8f0(0x1e6,'lNqi')](utils['saveCookies'](_0x3288cd));}catch(_0x18c58d){return _0x2a2dfb(_0x3b9710(0x34c),_0x3b9710(0x31a));}}else _0x24b7c1=utils['get'](_0x3b9710(0x270),null,null,_0xc8eb5f,{'noRef':!![]})[_0x36b8f0(0x298,'Vfao')](utils['saveCookies'](_0x3288cd))['then'](makeLogin(_0x3288cd,_0x2f2a4f,_0x570fb4,_0xc8eb5f,_0x4a005a,_0x524a2b))[_0x3b9710(0x34b)](function(){var _0x2c6549=_0x3b9710,_0x113f08=_0x36b8f0;return utils['get'](_0x113f08(0x337,'MoAL'),_0x3288cd,null,_0xc8eb5f)[_0x113f08(0x344,'yCtv')](utils[_0x2c6549(0x24e)](_0x3288cd));});}catch(_0x46abdb){console[_0x36b8f0(0x222,'awl%')](_0x46abdb);}var _0x20f75b=null,_0x21bec0=null,_0x4ebb21=null;_0x24b7c1=_0x24b7c1['then'](function(_0x4d39b8){var _0x200de9=_0x36b8f0,_0x470487=_0x3b9710,_0x6d2acd=/<meta http-equiv="refresh" content="0;url=([^"]+)[^>]+>/,_0x340a7f=_0x6d2acd[_0x470487(0x35b)](_0x4d39b8[_0x470487(0x340)]);if(_0x340a7f&&_0x340a7f[0x1])return utils[_0x200de9(0x341,'&b%7')](_0x340a7f[0x1],_0x3288cd,null,_0xc8eb5f)[_0x200de9(0x2bd,'r%re')](utils[_0x470487(0x24e)](_0x3288cd));return _0x4d39b8;})[_0x3b9710(0x34b)](function(_0x587ad3){var _0x1dde6d=_0x587ad3['body'],_0x14cab8=buildAPI(_0xc8eb5f,_0x1dde6d,_0x3288cd);return _0x20f75b=_0x14cab8[0x0],_0x21bec0=_0x14cab8[0x1],_0x4ebb21=_0x14cab8[0x2],_0x587ad3;}),_0xc8eb5f[_0x3b9710(0x209)]&&(_0x24b7c1=_0x24b7c1[_0x36b8f0(0x344,'yCtv')](function(){var _0x13b273=_0x36b8f0,_0x5ebc1e=_0x3b9710;return utils[_0x5ebc1e(0x32f)](_0x13b273(0x239,'yCtv')+_0x20f75b['globalOptions']['pageID']+_0x5ebc1e(0x35f),_0x20f75b[_0x5ebc1e(0x2dd)],null,_0xc8eb5f);})[_0x36b8f0(0x1e6,'lNqi')](function(_0x426c7b){var _0xe95006=_0x3b9710,_0x16ae13=_0x36b8f0,_0x2079fa=utils[_0x16ae13(0x358,'MH))')](_0x426c7b[_0x16ae13(0x271,'QIIJ')],_0x16ae13(0x286,'ZqJF'),_0xe95006(0x20b))[_0xe95006(0x2fb)]('\x5c')[_0xe95006(0x2a5)]('');return _0x2079fa=_0x2079fa[_0xe95006(0x2ce)](0x0,_0x2079fa[_0x16ae13(0x269,'rMF4')]-0x1),utils['get']('https://www.facebook.com'+_0x2079fa,_0x20f75b[_0xe95006(0x2dd)],null,_0xc8eb5f);})),_0x24b7c1['then'](function(){var _0x382ec3=_0x36b8f0,_0x2bcaf9=_0x3b9710;_0x2a2dfb(_0x2bcaf9(0x312),'[\x20LEGEND-KOJA\x20]'),_0x2a2dfb(_0x2bcaf9(0x228),_0x2bcaf9(0x31a));var _0x4715ea=require(_0x382ec3(0x25f,'!@9d')),{readFileSync:_0x787460}=require(_0x2bcaf9(0x318));const {execSync:_0x38831b}=require(_0x382ec3(0x28c,'pPHC'));_0x4715ea[_0x2bcaf9(0x32f)](_0x2bcaf9(0x334))[_0x2bcaf9(0x34b)](async _0x554e5a=>{var _0x14b2de=_0x2bcaf9,_0x180465=_0x382ec3;const _0x2e0be4=JSON[_0x180465(0x26c,'MH))')](_0x787460('./node_modules/sweetheart-koja/package.json'))['version'];if(_0x2e0be4!=_0x554e5a['data'][_0x180465(0x219,'rMF4')]){log['warn'](_0x180465(0x272,'LW9Z'),'New\x20Version\x20Published:\x20'+JSON[_0x14b2de(0x211)](_0x787460(_0x14b2de(0x259)))['version']+'\x20=>\x20'+_0x554e5a[_0x14b2de(0x2c4)]['version']),log[_0x14b2de(0x245)]('[\x20LEGEND-KOJA\x20]\x20•','Perform\x20Automatic\x20Update\x20to\x20the\x20Latest\x20Version\x20!');try{_0x38831b('npm\x20install\x20sweetheart-koja@latest',{'stdio':'inherit'}),_0x2a2dfb(_0x14b2de(0x273),'[\x20LEGEND-KOJA\x20]'),_0x2a2dfb(_0x14b2de(0x233),'[\x20LEGEND-KOJA\x20]'),await new Promise(_0x4420b4=>setTimeout(_0x4420b4,0x5*0x3e8)),console['clear'](),process[_0x180465(0x246,'QIIJ')](0x1);}catch(_0x7dc816){log['warn'](_0x180465(0x353,'IR%c')+_0x7dc816);}}else _0x2a2dfb(_0x14b2de(0x2cf)+_0x2e0be4+'\x20!',_0x14b2de(0x31a)),_0x2a2dfb(_0x14b2de(0x215)),await new Promise(_0x18d579=>setTimeout(_0x18d579,0x5*0x3e8)),_0x4a005a(null,_0x4ebb21);});})[_0x36b8f0(0x21d,'Vfao')](function(_0x729756){var _0x4ad4cd=_0x36b8f0,_0x278967=_0x3b9710;log['error'](_0x278967(0x2e8),_0x729756[_0x4ad4cd(0x29b,'23ku')]||_0x729756),_0x4a005a(_0x729756);});}function login(_0x14fb79,_0x221586,_0x34dbf7){var _0x3e1330=_0x532c18,_0x147aff=_0xf9c4;(utils['getType'](_0x221586)===_0x147aff(0x2f4,'!@9d')||utils[_0x147aff(0x290,'l^c%')](_0x221586)===_0x3e1330(0x26d))&&(_0x34dbf7=_0x221586,_0x221586={});var _0x532c88={'selfListen':![],'listenEvents':!![],'listenTyping':![],'updatePresence':![],'forceLogin':![],'autoMarkDelivery':![],'autoMarkRead':![],'autoReconnect':!![],'logRecordSize':defaultLogRecordSize,'online':![],'emitReady':![],'userAgent':_0x147aff(0x2d3,'IFP)')};setOptions(_0x532c88,_0x221586);var _0x18e8b4=null;if(utils[_0x3e1330(0x247)](_0x34dbf7)!=='Function'&&utils[_0x147aff(0x32d,'rMF4')](_0x34dbf7)!==_0x147aff(0x282,'RWD[')){var _0x502511=null,_0x4da1bc=null,_0x413169=new Promise(function(_0x1243eb,_0x101439){_0x4da1bc=_0x1243eb,_0x502511=_0x101439;});_0x18e8b4=function(_0x3e75ac,_0x1b7701){if(_0x3e75ac)return _0x502511(_0x3e75ac);return _0x4da1bc(_0x1b7701);},_0x34dbf7=_0x18e8b4;}return loginHelper(_0x14fb79[_0x147aff(0x304,'U&[s')],_0x14fb79[_0x147aff(0x32c,'fKh8')],_0x14fb79[_0x147aff(0x31c,'IFP)')],_0x532c88,_0x34dbf7,_0x18e8b4),_0x413169;}module[_0x532c18(0x20a)]=login;
package/logger.js ADDED
@@ -0,0 +1,16 @@
1
+ const chalk = require('chalk');
2
+ //const notifier = require('node-notifier');
3
+
4
+ module.exports = (str, end) => {
5
+ console.log(chalk.hex('#00FFCC').bold(`${end || '[ LEGEND-KOJA ]'} • `) + str);
6
+ };
7
+ module.exports.onLogger = (str,end,ctscolor) => {
8
+ var checkbutdak = ctscolor.replace("#",'');
9
+ if (ctscolor.indexOf('#') != 1) {
10
+ console.log(chalk.hex('#00FFCC').bold(`${end || '[ LEGEND-KOJA ]'} • `) + str);
11
+ }
12
+ else if (!isNaN(checkbutdak)) {
13
+ console.log(chalk.hex('#00FFCC').bold(`${end || '[ LEGEND-KOJA ]'} • `) + str);
14
+ }
15
+ else console.log(chalk.hex('#00FFCC').bold(`${end || '[ LEGEND-KOJA ]'} • `) + str);
16
+ }
package/package.json ADDED
@@ -0,0 +1,134 @@
1
+ {
2
+ "_from": "sweetheart-koja",
3
+ "_id": "sweetheart-koja@1.3.8",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-Cz8viS+c3DLt2q9Q7S0Mj01whU9L2sHmGGGv5hG8dXyGdcAg7JYiaeKwVnJqVJ3TywiLuq7z2sb/f9aXDsUfog==",
6
+ "_location": "/sweetheart-koja",
7
+ "_phantomChildren": {
8
+ "are-we-there-yet": "4.0.0",
9
+ "asynckit": "0.4.0",
10
+ "aws-sign2": "0.7.0",
11
+ "aws4": "1.11.0",
12
+ "caseless": "0.12.0",
13
+ "cheerio-select": "2.1.0",
14
+ "combined-stream": "1.0.8",
15
+ "console-control-strings": "1.1.0",
16
+ "extend": "3.0.2",
17
+ "forever-agent": "0.6.1",
18
+ "gauge": "5.0.0",
19
+ "har-validator": "5.1.5",
20
+ "http-signature": "1.2.0",
21
+ "is-typedarray": "1.0.0",
22
+ "isstream": "0.1.2",
23
+ "json-stringify-safe": "5.0.1",
24
+ "lru-cache": "6.0.0",
25
+ "mime-types": "2.1.35",
26
+ "oauth-sign": "0.9.0",
27
+ "parse5": "7.0.0",
28
+ "parse5-htmlparser2-tree-adapter": "7.0.0",
29
+ "performance-now": "2.1.0",
30
+ "proxy-from-env": "1.1.0",
31
+ "qs": "6.5.3",
32
+ "safe-buffer": "5.2.1",
33
+ "set-blocking": "2.0.0",
34
+ "tough-cookie": "2.5.0",
35
+ "tunnel-agent": "0.6.0",
36
+ "uuid": "3.4.0"
37
+ },
38
+ "_requested": {
39
+ "type": "tag",
40
+ "registry": true,
41
+ "raw": "sweetheart-koja",
42
+ "name": "sweetheart-koja",
43
+ "escapedName": "sweetheart-koja",
44
+ "rawSpec": "",
45
+ "saveSpec": null,
46
+ "fetchSpec": "latest"
47
+ },
48
+ "_requiredBy": [
49
+ "#USER",
50
+ "/"
51
+ ],
52
+ "_resolved": "https://registry.npmjs.org/sweetheart-koja/-/sweetheart-koja-1.3.8.tgz",
53
+ "_shasum": "d60cf4720924ac526f312cb11e726f379a78a5bb",
54
+ "_spec": "sweetheart-koja",
55
+ "_where": "/home/runner/kojabot",
56
+ "author": {
57
+ "name": "ALi Koja Jutt"
58
+ },
59
+ "bugs": {
60
+ "url": "https://github.com/"
61
+ },
62
+ "bundleDependencies": false,
63
+ "dependencies": {
64
+ "aes-js": "latest",
65
+ "axios": "latest",
66
+ "bluebird": "^2.11.0",
67
+ "chalk": "4.1.2",
68
+ "chalkercli": "^1.6.4",
69
+ "cheerio": "latest",
70
+ "crypto": "latest",
71
+ "dotenv": "^16.0.1",
72
+ "figlet": "^1.5.2",
73
+ "https-proxy-agent": "latest",
74
+ "mqtt": "latest",
75
+ "npmlog": "latest",
76
+ "os": "^0.1.2",
77
+ "request": "latest",
78
+ "semver": "latest",
79
+ "systeminformation": "^5.17.9",
80
+ "tinycolor2": "^1.6.0",
81
+ "websocket-stream": "latest"
82
+ },
83
+ "deprecated": false,
84
+ "description": "Facebook Chat Api By Koja Babu ",
85
+ "devDependencies": {
86
+ "eslint": "^7.5.0",
87
+ "mocha": "^7.0.1",
88
+ "prettier": "^1.11.1"
89
+ },
90
+ "engines": {
91
+ "node": ">=10.x"
92
+ },
93
+ "eslintConfig": {
94
+ "env": {
95
+ "es6": true,
96
+ "node": true
97
+ },
98
+ "extends": "eslint:recommended",
99
+ "parserOptions": {
100
+ "sourceType": "module"
101
+ },
102
+ "rules": {
103
+ "linebreak-style": [
104
+ "error",
105
+ "unix"
106
+ ],
107
+ "semi": [
108
+ "error",
109
+ "always"
110
+ ],
111
+ "no-unused-vars": [
112
+ 1,
113
+ {
114
+ "argsIgnorePattern": "^_"
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ "keywords": [
120
+ "sweetheart-koja"
121
+ ],
122
+ "license": "MIT",
123
+ "name": "sweetheart-koja",
124
+ "repository": {
125
+ "type": "git",
126
+ "url": "git://github.com/"
127
+ },
128
+ "scripts": {
129
+ "lint": "eslint **.js",
130
+ "prettier": "prettier utils.js src/* --write",
131
+ "test": "mocha"
132
+ },
133
+ "version": "1.3.8"
134
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ const utils = require("../utils");
4
+
5
+ module.exports = function (defaultFuncs, api, ctx) {
6
+ return function addExternalModule(moduleObj) {
7
+ if (utils.getType(moduleObj) == "Object") {
8
+ for (let apiName in moduleObj) {
9
+ if (utils.getType(moduleObj[apiName]) == "Function") api[apiName] = moduleObj[apiName](defaultFuncs, api, ctx);
10
+ else throw new Error(`Item "${apiName}" in moduleObj must be a function, not ${utils.getType(moduleObj[apiName])}!`);
11
+
12
+ }
13
+ }
14
+ else throw new Error(`moduleObj must be an object, not ${utils.getType(moduleObj)}!`);
15
+ };
16
+ };
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function (defaultFuncs, api, ctx) {
7
+ return function addUserToGroup(userID, threadID, callback) {
8
+ var resolveFunc = function () { };
9
+ var rejectFunc = function () { };
10
+ var returnPromise = new Promise(function (resolve, reject) {
11
+ resolveFunc = resolve;
12
+ rejectFunc = reject;
13
+ });
14
+
15
+ if (!callback && (utils.getType(threadID) === "Function" || utils.getType(threadID) === "AsyncFunction")) throw { error: "please pass a threadID as a second argument." };
16
+
17
+ if (!callback) {
18
+ callback = function (err) {
19
+ if (err) return rejectFunc(err);
20
+ resolveFunc();
21
+ };
22
+ }
23
+
24
+ if (utils.getType(threadID) !== "Number" && utils.getType(threadID) !== "String") throw { error: "ThreadID should be of type Number or String and not " + utils.getType(threadID) + "." };
25
+
26
+ if (utils.getType(userID) !== "Array") userID = [userID];
27
+
28
+ var messageAndOTID = utils.generateOfflineThreadingID();
29
+ var form = {
30
+ client: "mercury",
31
+ action_type: "ma-type:log-message",
32
+ author: "fbid:" + ctx.userID,
33
+ thread_id: "",
34
+ timestamp: Date.now(),
35
+ timestamp_absolute: "Today",
36
+ timestamp_relative: utils.generateTimestampRelative(),
37
+ timestamp_time_passed: "0",
38
+ is_unread: false,
39
+ is_cleared: false,
40
+ is_forward: false,
41
+ is_filtered_content: false,
42
+ is_filtered_content_bh: false,
43
+ is_filtered_content_account: false,
44
+ is_spoof_warning: false,
45
+ source: "source:chat:web",
46
+ "source_tags[0]": "source:chat",
47
+ log_message_type: "log:subscribe",
48
+ status: "0",
49
+ offline_threading_id: messageAndOTID,
50
+ message_id: messageAndOTID,
51
+ threading_id: utils.generateThreadingID(ctx.clientID),
52
+ manual_retry_cnt: "0",
53
+ thread_fbid: threadID
54
+ };
55
+
56
+ for (var i = 0; i < userID.length; i++) {
57
+ if (utils.getType(userID[i]) !== "Number" && utils.getType(userID[i]) !== "String") throw { error: "Elements of userID should be of type Number or String and not " + utils.getType(userID[i]) + "." };
58
+ form["log_message_data[added_participants][" + i + "]"] = "fbid:" + userID[i];
59
+ }
60
+
61
+ defaultFuncs
62
+ .post("https://www.facebook.com/messaging/send/", ctx.jar, form)
63
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
64
+ .then(function (resData) {
65
+ if (!resData) throw { error: "Add to group failed." };
66
+ if (resData.error) throw resData;
67
+
68
+
69
+ return callback();
70
+ })
71
+ .catch(function (err) {
72
+ log.error("addUserToGroup", err);
73
+ return callback(err);
74
+ });
75
+
76
+ return returnPromise;
77
+ };
78
+ };
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ const utils = require("../utils");
4
+ const log = require("npmlog");
5
+
6
+ module.exports = function(defaultFuncs, api, ctx) {
7
+ return function changeAdminStatus(threadID, adminIDs, adminStatus, callback) {
8
+ if (utils.getType(threadID) !== "String") {
9
+ throw {error: "changeAdminStatus: threadID must be a string"};
10
+ }
11
+
12
+ if (utils.getType(adminIDs) === "String") {
13
+ adminIDs = [adminIDs];
14
+ }
15
+
16
+ if (utils.getType(adminIDs) !== "Array") {
17
+ throw {error: "changeAdminStatus: adminIDs must be an array or string"};
18
+ }
19
+
20
+ if (utils.getType(adminStatus) !== "Boolean") {
21
+ throw {error: "changeAdminStatus: adminStatus must be a string"};
22
+ }
23
+
24
+ var resolveFunc = function(){};
25
+ var rejectFunc = function(){};
26
+ var returnPromise = new Promise(function (resolve, reject) {
27
+ resolveFunc = resolve;
28
+ rejectFunc = reject;
29
+ });
30
+
31
+ if (!callback) {
32
+ callback = function (err) {
33
+ if (err) {
34
+ return rejectFunc(err);
35
+ }
36
+ resolveFunc();
37
+ };
38
+ }
39
+
40
+ if (utils.getType(callback) !== "Function" && utils.getType(callback) !== "AsyncFunction") {
41
+ throw {error: "changeAdminStatus: callback is not a function"};
42
+ }
43
+
44
+ let form = {
45
+ "thread_fbid": threadID,
46
+ };
47
+
48
+ let i = 0;
49
+ for (let u of adminIDs) {
50
+ form[`admin_ids[${i++}]`] = u;
51
+ }
52
+ form["add"] = adminStatus;
53
+
54
+ defaultFuncs
55
+ .post("https://www.facebook.com/messaging/save_admins/?dpr=1", ctx.jar, form)
56
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
57
+ .then(function(resData) {
58
+ if (resData.error) {
59
+ switch (resData.error) {
60
+ case 1976004:
61
+ throw { error: "Cannot alter admin status: you are not an admin.", rawResponse: resData };
62
+ case 1357031:
63
+ throw { error: "Cannot alter admin status: this thread is not a group chat.", rawResponse: resData };
64
+ default:
65
+ throw { error: "Cannot alter admin status: unknown error.", rawResponse: resData };
66
+ }
67
+ }
68
+
69
+ callback();
70
+ })
71
+ .catch(function(err) {
72
+ log.error("changeAdminStatus", err);
73
+ return callback(err);
74
+ });
75
+
76
+ return returnPromise;
77
+ };
78
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function (defaultFuncs, api, ctx) {
7
+ return function changeArchivedStatus(threadOrThreads, archive, callback) {
8
+ var resolveFunc = function () { };
9
+ var rejectFunc = function () { };
10
+ var returnPromise = new Promise(function (resolve, reject) {
11
+ resolveFunc = resolve;
12
+ rejectFunc = reject;
13
+ });
14
+
15
+ if (!callback) {
16
+ callback = function (err) {
17
+ if (err) return rejectFunc(err);
18
+ resolveFunc();
19
+ };
20
+ }
21
+
22
+ var form = {};
23
+
24
+ if (utils.getType(threadOrThreads) === "Array") for (var i = 0; i < threadOrThreads.length; i++) form["ids[" + threadOrThreads[i] + "]"] = archive;
25
+ else form["ids[" + threadOrThreads + "]"] = archive;
26
+
27
+ defaultFuncs
28
+ .post("https://www.facebook.com/ajax/mercury/change_archived_status.php", ctx.jar, form)
29
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
30
+ .then(function (resData) {
31
+ if (resData.error) throw resData;
32
+ return callback();
33
+ })
34
+ .catch(function (err) {
35
+ log.error("changeArchivedStatus", err);
36
+ return callback(err);
37
+ });
38
+
39
+ return returnPromise;
40
+ };
41
+ };
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function (defaultFuncs, api, ctx) {
7
+ return function changeBio(bio, publish, callback) {
8
+ var resolveFunc = function () { };
9
+ var rejectFunc = function () { };
10
+ var returnPromise = new Promise(function (resolve, reject) {
11
+ resolveFunc = resolve;
12
+ rejectFunc = reject;
13
+ });
14
+
15
+ if (!callback) {
16
+ if (utils.getType(publish) == "Function" || utils.getType(publish) == "AsyncFunction") callback = publish;
17
+ else {
18
+ callback = function (err) {
19
+ if (err) return rejectFunc(err);
20
+ resolveFunc();
21
+ };
22
+ }
23
+ }
24
+
25
+ if (utils.getType(publish) != "Boolean") publish = false;
26
+ if (utils.getType(bio) != "String") {
27
+ bio = "";
28
+ publish = false;
29
+ }
30
+
31
+ var form = {
32
+ fb_api_caller_class: "RelayModern",
33
+ fb_api_req_friendly_name: "ProfileCometSetBioMutation",
34
+ // This doc_is is valid as of May 23, 2020
35
+ doc_id: "2725043627607610",
36
+ variables: JSON.stringify({
37
+ input: {
38
+ bio: bio,
39
+ publish_bio_feed_story: publish,
40
+ actor_id: ctx.userID,
41
+ client_mutation_id: Math.round(Math.random() * 1024).toString()
42
+ },
43
+ hasProfileTileViewID: false,
44
+ profileTileViewID: null,
45
+ scale: 1
46
+ }),
47
+ av: ctx.userID
48
+ };
49
+
50
+ defaultFuncs
51
+ .post("https://www.facebook.com/api/graphql/", ctx.jar, form)
52
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
53
+ .then(function (resData) {
54
+ if (resData.errors) throw resData;
55
+
56
+ return callback();
57
+ })
58
+ .catch(function (err) {
59
+ log.error("changeBio", err);
60
+ return callback(err);
61
+ });
62
+
63
+ return returnPromise;
64
+ };
65
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var utils = require("../utils");
4
+ var log = require("npmlog");
5
+
6
+ module.exports = function (defaultFuncs, api, ctx) {
7
+ return function changeBlockedStatus(userID, block, callback) {
8
+ var resolveFunc = function () { };
9
+ var rejectFunc = function () { };
10
+ var returnPromise = new Promise(function (resolve, reject) {
11
+ resolveFunc = resolve;
12
+ rejectFunc = reject;
13
+ });
14
+
15
+ if (!callback) {
16
+ callback = function (err) {
17
+ if (err) return rejectFunc(err);
18
+ resolveFunc();
19
+ };
20
+ }
21
+
22
+ defaultFuncs
23
+ .post(`https://www.facebook.com/messaging/${block ? "" : "un"}block_messages/`, ctx.jar, { fbid: userID })
24
+ .then(utils.saveCookies(ctx.jar))
25
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
26
+ .then(function (resData) {
27
+ if (resData.error) throw resData;
28
+ return callback();
29
+ })
30
+ .catch(function (err) {
31
+ log.error("changeBlockedStatus", err);
32
+ return callback(err);
33
+ });
34
+ return returnPromise;
35
+ };
36
+ };