n8n-nodes-zalo-nnt 1.0.5 → 1.0.7

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.
Files changed (51) hide show
  1. package/dist/credentials/N8nZaloApi.credentials.js +1 -1
  2. package/dist/credentials/ZaloApi.credentials.js +1 -1
  3. package/dist/nodes/ZaloChatHistory/ZaloChatHistory.node.js +1 -1
  4. package/dist/nodes/ZaloChatHistory/ZaloChatHistory.properties.js +1 -1
  5. package/dist/nodes/ZaloChatHistory/ZaloChatHistory.properties.js.map +1 -1
  6. package/dist/nodes/ZaloChatHistory/utils/historyProcessor.js +1 -1
  7. package/dist/nodes/ZaloChatHistory/utils/index.js +1 -1
  8. package/dist/nodes/ZaloChatHistory/utils/messageParser.js +1 -1
  9. package/dist/nodes/ZaloChatHistory/utils/types.js +1 -1
  10. package/dist/nodes/ZaloChatHistory/utils/validator.js +1 -1
  11. package/dist/nodes/ZaloGroup/ZaloGroup.node.js +1 -1
  12. package/dist/nodes/ZaloGroup/ZaloGroup.properties.js +1 -1
  13. package/dist/nodes/ZaloGroup/ZaloGroup.properties.js.map +1 -1
  14. package/dist/nodes/ZaloGroup/utils/groupProcessor.js +1 -1
  15. package/dist/nodes/ZaloGroup/utils/index.js +1 -1
  16. package/dist/nodes/ZaloGroup/utils/types.js +1 -1
  17. package/dist/nodes/ZaloGroup/utils/validator.js +1 -1
  18. package/dist/nodes/ZaloLoginByQr/ZaloLoginByQr.node.js +1 -1
  19. package/dist/nodes/ZaloMessageTrigger/EventFilter.js +1 -1
  20. package/dist/nodes/ZaloMessageTrigger/EventListenerRegistry.js +1 -1
  21. package/dist/nodes/ZaloMessageTrigger/ZaloConnectionManager.js +1 -1
  22. package/dist/nodes/ZaloMessageTrigger/ZaloMessageTrigger.node.js +1 -1
  23. package/dist/nodes/ZaloMessageTrigger/constants.js +1 -1
  24. package/dist/nodes/ZaloMessageTrigger/types.js +1 -1
  25. package/dist/nodes/ZaloMessageTrigger/utils.js +1 -1
  26. package/dist/nodes/ZaloPoll/ZaloPoll.node.js +1 -1
  27. package/dist/nodes/ZaloPoll/ZaloPollDescription.js +1 -1
  28. package/dist/nodes/ZaloReminder/ZaloReminder.node.js +1 -1
  29. package/dist/nodes/ZaloReminder/ZaloReminder.properties.js +1 -1
  30. package/dist/nodes/ZaloReminder/utils/index.js +1 -1
  31. package/dist/nodes/ZaloReminder/utils/reminderProcessor.js +1 -1
  32. package/dist/nodes/ZaloReminder/utils/types.js +1 -1
  33. package/dist/nodes/ZaloReminder/utils/validator.js +1 -1
  34. package/dist/nodes/ZaloSendMessage/ZaloSendMessage.node.js +1 -1
  35. package/dist/nodes/ZaloSendMessage/ZaloSendMessage.properties.js +1 -1
  36. package/dist/nodes/ZaloSendMessage/utils/attachmentProcessor.js +1 -1
  37. package/dist/nodes/ZaloSendMessage/utils/index.js +1 -1
  38. package/dist/nodes/ZaloSendMessage/utils/markdownToZaloStyles.js +1 -1
  39. package/dist/nodes/ZaloSendMessage/utils/messageBuilder.js +1 -1
  40. package/dist/nodes/ZaloSendMessage/utils/types.js +1 -1
  41. package/dist/nodes/ZaloSendMessage/utils/validator.js +1 -1
  42. package/dist/nodes/ZaloTag/ZaloTag.node.js +1 -1
  43. package/dist/nodes/ZaloUser/ZaloUser.node.js +1 -1
  44. package/dist/nodes/ZaloUser/ZaloUserDescription.js +1 -1
  45. package/dist/nodes/ZaloUser/ZaloUserDescription.js.map +1 -1
  46. package/dist/nodes/shared/bak_image.svg +1 -0
  47. package/dist/nodes/shared/branding.js +1 -1
  48. package/dist/nodes/shared/image.svg +1 -1
  49. package/dist/nodes/utils/helper.js +1 -1
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +2 -2
@@ -1 +1 @@
1
- (()=>{function t(t,r,e){return _0x2959(t- -824,e)}var r=_0x437c();function e(t,r,e,n){return _0x2959(n-69,e)}for(;;)try{if(101380==+parseInt(t(-351,0,-313))+parseInt(e(0,0,468,471))/2*(-parseInt(t(-476,0,-501))/3)+-parseInt(t(-431,0,-334))/4*(-parseInt(e(0,0,540,512))/5)+-parseInt(e(0,0,381,479))/6+parseInt(e(0,0,445,421))/7*(-parseInt(t(-362,0,-348))/8)+parseInt(e(0,0,421,405))/9*(parseInt(t(-482,0,-509))/10)+-parseInt(t(-364,0,-328))/11*(-parseInt(t(-389,0,-449))/12))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();let _0x54b8df=(()=>{var t={};function r(t,r,e,n){return _0x2959(e-426,n)}t[r(0,0,926,884)]=function(t,r){return t!==r},t[r(0,0,746,671)]="SRxCY",t[r(0,0,731,735)]=_0x2959(354,1102);let i=t,a=!0;return function(e,n){var t=a?function(){function r(t,r,e){return _0x2959(e-84,t)}var t;if(n)return i[r(555,0,584)](i.ryByh,i[r(452,0,389)])?(t=n[_0x2959(434,543)](e,arguments),n=null,t):(t=_0x591eed?function(){var t;if(_0x3a6135)return t=_0x55276b[r(167,0,216- -302)](_0x496c6f,arguments),_0x15d095=null,t}:function(){},_0x1950ea=!1,t)}:function(){};return a=!1,t}})(),_0x372454=_0x54b8df(this,function(){var t={};function r(t,r,e){return _0x2959(e- -663,r)}function e(t,r,e){return _0x2959(r-5,e)}t[r(0,-191,-234)]=r(0,-223,-273)+"+$";return _0x372454[e(0,383,417)]()[r(0,-384,-307)](t[e(0,434,350)])[e(0,383,393)]().constructor(_0x372454)[r(0,-378,-307)](t[r(0,-219,-234)])}),_0x421070=(_0x372454(),{});function _0x437c(){let t=["B25Uzwn0ihDPDa","ywrK","Ae1lr2m","ihzHBgLKignYzq","uMvXDwvZDa","z3jVDxbjzhm","pxT7jhbHCMfTzq","yxbWBhK","nJbnsfrSvxG","z3jVDxboyw1L","DhnOrLy","z2v0tM9Kzq","vfjNCMW","vw5RBM93BIbVCa","zxjHDgLVBJOG","yNKGzgLNAw5UBW","nJa1DgHqB2fS","ChjVBw90zurLCa","tw1iyKy","DxnLCKfNzw50","BMv3tMfTzq","AMHvvu8","ugvUzgLUz1jLCq","z2v0tM9KzvbHCG","v0zyAeu","Aw9UrxjYB3i","zxzTqvG","vxnLCLrVr3jVDq","zvLusva","CwDmsxK","zenqA0C","DMvhCM91Ca","vwjUB0W","ntm3mtnwwLr1Dfe","zgLZCgXHEu5HBq","mti4oty3mLvKtwjHua","wMfSBYbdCMvKzq","DwvZDhm","A2LZBK4","B3bLCMf0Aw9U","qML4vgu","s0rpCNy","r3jVDxbezxb1Da","zgvMyxvSDhm","zxj0Eq","ChjVy2vZC1jLDG","mtqXotaYDM9xuxnO","yMvYCW","BMDLr3jVDxboyq","DxnLCKLKCW","yxjLzc9PBwfNzq","wMfSB0DYB3vW","yxrLtM90zq","r3jVDxbjBMzV","z2P6u1e","yw1LDgvY","CgfYC2u","BwfRzsbZDxjLia","ywn0Aw9U","qNH5D1K","z2v0","wMfSBYboAmoZBsa","t2HdwhK","AxrLvxnLCNm","ugjKt24","r2nOqwS","EKLYuhK","ChjVy2vZC0PVAq","BxHtEfC","Aw1LAq","qwXSr3jVDxbZ","quvpAK4","ANnVBG","AhHZEue","CgfPCMvKsxrLBq","BwvTyMvYswrZ","sgHMrhi","Bw9KzxjHDgLVBG","BMDLr3jVDxbbDG","EMfSB0DYB3vWua","DxnLCKLK","DfLcsfO","CMvTB3zL","CMv2Awv3","tM8GqvbjigLUCW","ChvZAa","BwfPBG","C2v0DgLUz3m","qxvZDeS","ChjVy2vZC0DLDa","tM9Kzu9WzxjHDa","ChjVy2vZC1jLBq","BMfTzq","Eg5mDMq","qMXVy2TLze1LBq","BuDYB3vW","CNLcEwG","Dw5IBg9JAW","EfnetLy","BKDYB3vWtgLUAW","surQCM0","DMvYC2LVBG","Cc5WCM9Wzxj0Aq","igrPz2LUBM8UBG","ChjVy2vZC0nYzq","BNrPywWGDg8GyW","vuryuhK","BLHZs04","Du5hueO","BvbiBg0","CMnLoIa","vgD4sM4","ou9VqKjTsa","Aw52AxrLvg9nyq","W7nTifPHBg8GyNK","DgLVBIjDicSGiG","BgvUz3rO","zgvZy3jPChrPBW","mtm5nJmZmhnywwf4Dq","DxbKyxrLtMfTzq","EMnHlwPZ","AwnVBG","z3jVDxbjza","zMLUza","m2LYBNn2tq","C291CMnLoIa","AxrLBuLUzgv4","DMXmzwm","n1znrgf3Bq","CKHZB2i","tLjQBhu","yxrLr3jVDxa","C2vHCMnO","z2v0qMXVy2TLza","BuX2rhG","CfPeuxi","sMP3EuC","lM5LDa","AM9PBG","wNvsC2K","lNn2zW","y3jLzgvUDgLHBa","zevSCem","Aw5WDxrZ","A3jRyw4","sLbuq0C","lI91DgLSCW","CM9Wzxj0AwvZ","ChjVy2vZC0XLyq","zw9osM0","z3jVDxbmAw5R","uK55rum","EMfSB0fWAq","ChjVy2vZC1vUyG","Dg9tDhjPBMC","igzVCIbYzxnVDq","BJHUlxDVCMTMBa","ChjVy2vZC0nOyq","z2v0sw5WDxreyq","wMfSBW","vLLhsw0","CgfNzq","AxrLBq","AefcwwO","zgvMAw5LuhjVCa","z2v0q3jLzgvUDa","kcGOlISPkYKRkq","BgLTAxq","C2LSzw50","mZG4nhbHzuvZDq","rMfPBa","z2v0twfUEq","BwvTyMvY","y29UDgLUDwvpBG","r2zYyuq","BhHJC20","AhbozgG","Awv3ugvUzgLUzW","mZaYmdi0tfHWDu1Q","Aw1Hz2vvCMW","DMfSDwu","y291BNq","ChjVCgvYDgLLCW","ChjVy2vZC0LUDG","ChjVy2vZC0jSBW","DgfUy2uGzM91BG","ntKWndb2ugruDKO","wufQvMW","yMXVy2S","CgLUqwn0","y0Ltufm","vw5RBM93BIbYzq","wKHRtuq","y3jLyxrL","BNjSuxu","z3jVDxa","uxxHUQnUigZdVsbUAa","yw1LDgvYwYjYzq","BgvHDMu","y29VA2LL","DxbKyxrLqxzHDa","DgvYwYjVCgvYyq","y2Tnzw1Izxi"];return(_0x437c=function(){return t})()}function _0x5597b4(t,r,e,n){return _0x2959(t-156,n)}_0x421070[_0x7a9bd8(1123,1152,1076,1062)]=!0,Object[_0x5597b4(544,599,539,526)+_0x7a9bd8(1190,1139,1251,1133)](exports,"__esModule",_0x421070),exports[_0x7a9bd8(1197,1243,1298,1192)]=void 0;let n8n_workflow_1=require(_0x5597b4(536,548,530,452)+"ow"),ZaloGroup_properties_1=require("./ZaloGrou"+_0x5597b4(482,390,476,467)+"es");function _0x2959(a,t){let u=_0x437c();return(_0x2959=function(t,r){t-=303;let e=u[t];void 0===_0x2959.tzXoLn&&(_0x2959.ySXUXo=n=function(i){let a="",e="",u=a+n;for(let t=0,r,e,n=0;e=i.charAt(n++);~e&&(r=t%4?64*r+e:e,t++%4)&&(a+=u.charCodeAt(n+10)-10!=0?String.fromCharCode(255&r>>(-2*t&6)):t))e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(e);for(let t=0,r=a.length;t<r;t++)e+="%"+("00"+a.charCodeAt(t).toString(16)).slice(-2);return decodeURIComponent(e)},a=arguments,_0x2959.tzXoLn=!0);var n,i=u[0],t=t+i,i=a[t];return i?e=i:((i=function(t){this.nxTOkL=t,this.SinlqM=[1,0,0],this.sPRkpM=function(){return"newState"},this.hIwkxK="\\w+ *\\(\\) *{\\w+ *",this.tCUKmj="['|\"].+['|\"];? *}"}).prototype.extouu=function(){var t=new RegExp(this.hIwkxK+this.tCUKmj).test(this.sPRkpM.toString())?--this.SinlqM[1]:--this.SinlqM[0];return this.XmUGSF(t)},i.prototype.XmUGSF=function(t){return Boolean(~t)?this.gMtkKb(this.nxTOkL):t},i.prototype.gMtkKb=function(t){for(let t=0,r=this.SinlqM.length;t<r;t++)this.SinlqM.push(Math.round(Math.random())),r=this.SinlqM.length;return t(this.SinlqM[0])},new i(_0x2959).extouu(),e=_0x2959.ySXUXo(e),a[t]=e),e})(a,t)}function _0x7a9bd8(t,r,e,n){return _0x2959(t-719,e)}let zca_js_1=require(_0x5597b4(500,399,521,498)),utils_1=require(_0x7a9bd8(1089,1169,1119,1156)),api;class ZaloGroup{constructor(){var t={};function r(t,r,e){return _0x5597b4(r-638,r-132,e-322,t)}t[r(1229,1154,1254)]=r(1216,1282,1201)+"by diginno"+i(-79,-152,-21),t[i(46,-50,83)]="file:../sh"+i(37,126,24)+r(1164,1158,1240),t.lxcsm=r(1110,1177,1113),t.khDch=r(1238,1214,1133)+i(-102,-88,-103)+i(-113,-178,-212)+"et",t[i(27,114,-57)]=i(-130,-90,-133),t[r(1128,1118,1162)]="zaloApi",t.evmAX=i(23,54,73)+i(-111,-177,-141)+i(-13,52,54)+"h";var e={},n=(e.name=i(48,136,83)+i(2,9,57)+".net",{});function i(t,r,e){return _0x5597b4(t- -596,r-94,e-24,r)}n[i(21,-28,-49)+"e"]=t[r(1136,1154,1117)],n[r(1032,1110,1141)]="zaloGroup",n[i(-95,-106,-40)]=t[i(46,8,116)],n[r(1138,1213,1203)]=[t[i(-41,2,21)]],n[r(1147,1119,1144)]=1,n.subtitle=i(-7,24,-106)+i(-15,-104,38)+r(1132,1133,1225)+': " + $par'+i(-19,36,-87)+'source"]}}',n[r(1042,1135,1085)+"n"]=t.khDch,n[i(30,17,-70)]=e,n[r(1064,1161,1109)]=["main"],n.outputs=[t.BixTe],n[r(1224,1159,1107)+"s"]=[{name:t.IDjrm,required:!0,displayName:t[i(13,-52,-31)]}],n[r(1256,1200,1251)]=ZaloGroup_properties_1[r(1142,1097,1114)+i(-69,-76,-164)],this[i(-99,-152,-30)+"n"]=n}async["execute"](){var t={};function e(t,r,e,n){return _0x7a9bd8(r-191,r-95,n,n-326)}t[h(1032,996,986)]=e(0,1218,0,1245)+h(973,876,919)+"d. Please "+e(0,1394,0,1309)+"to provide"+h(994,1080,928)+"dentials.",t[e(0,1408,0,1336)]="(((.+)+)+)+$",t.mLvDx=e(0,1376,0,1443),t[e(0,1321,0,1310)]=function(t,r){return t!==r},t[e(0,1222,0,1278)]=function(t,r){return t!==r},t[h(895,882,887)]=function(t,r){return t===r},t[e(0,1261,0,1307)]=function(t,r){return t!==r},t[h(1003,985,969)]=function(t,r){return t===r},t[h(886,853,827)]=function(t,r){return t<r},t[h(1055,981,1104)]=function(t,r){return t!==r},t[h(899,863,998)]=h(1009,941,1022),t[e(0,1365,0,1437)]=e(0,1329,0,1429),t.nrlQu=h(881,933,832),t[h(933,907,846)]=e(0,1327,0,1313),t[e(0,1366,0,1465)]=e(0,1386,0,1461),t[h(1029,1129,954)]=e(0,1397,0,1378),t[e(0,1358,0,1385)]=h(910,845,809),t[e(0,1294,0,1292)]=e(0,1301,0,1215),t[e(0,1413,0,1415)]=e(0,1272,0,1299),t.GfraD=h(960,885,968),t[e(0,1367,0,1307)]=e(0,1216,0,1308),t.tshFV=h(901,987,804)+"ny",t.hpNdh=e(0,1214,0,1160),t[e(0,1399,0,1335)]=h(1008,989,919)+"uty",t[h(1045,1018,1104)]=h(907,972,948),t.cISPS=e(0,1357,0,1291),t[e(0,1240,0,1174)]=h(988,941,930)+"ar",t[e(0,1243,0,1217)]=e(0,1313,0,1246),t[e(0,1273,0,1330)]=function(t,r){return t===r},t[h(980,1050,916)]=e(0,1414,0,1386),t[h(932,871,974)]=e(0,1295,0,1273),t[e(0,1276,0,1254)]=e(0,1322,0,1395),t[e(0,1361,0,1447)]=h(1066,1036,1053),t.mxSxW=h(885,811,838),t[e(0,1283,0,1247)]=e(0,1217,0,1310),t[e(0,1297,0,1347)]="content",t[e(0,1285,0,1213)]="createNote",t.zIrPy=h(977,1036,1060),t[h(896,912,857)]=h(923,877,933),t[h(1023,1067,962)]="sSvzC",t[h(917,972,848)]="gkOFv";var n=t,i=this[e(0,1292,0,1260)+"ta"](),a=[],u=this[h(1014,1080,1113)+h(1046,1119,954)]("resource",0),s=this[h(1014,1072,962)+h(1046,1009,1112)](n[h(922,991,906)],0),t=await this[h(953,932,990)+"ials"](e(0,1286,0,1331)),r=JSON[e(0,1393,0,1379)](t[h(987,1005,928)]),o=t[e(0,1406,0,1500)],t=t.userAgent;function h(t,r,e){return _0x5597b4(t-408,r-264,e-119,r)}var w,x,v,f,c,l,r=n[e(0,1321,0,1393)](r,null)&&n[e(0,1222,0,1215)](r,void 0)?r:null==(r=i[h(911,994,866)](t=>t.json[e(0,1333,0,1403)]))?void 0:r[e(0,1409,0,1364)][e(0,1333,0,1259)],o=null!=o?o:n.nXsKN(o=i[h(911,904,887)](t=>t[h(1063,1119,1061)][e(0,1406,0,1485)]),null)||n[h(895,832,971)](o,void 0)?void 0:o[e(0,1409,0,1459)][e(0,1406,0,1388)],t=n[e(0,1321,0,1283)](t,null)&&n[h(915,988,921)](t,void 0)?t:n.nXsKN(t=i[h(911,957,841)](t=>t[h(1063,1025,1133)][e(0,1356,0,1280)]),null)||n.TRgrl(t,void 0)?void 0:t[h(1063,990,1139)][e(0,1356,0,1265)],g=new zca_js_1[h(947,993,1037)],_={},r=(_[e(0,1333,0,1234)]=r,_[h(1060,966,1040)]=o,_[h(1010,1026,1086)]=t,await g.login(_));if(!(api=r))throw new n8n_workflow_1[h(878,932,893)+"ionError"](this[h(1002,1027,1029)](),n[e(0,1378,0,1407)]);for(let r=0;n.xSDNV(r,i[h(904,1003,855)]);r++){if(!n.PbdOn(n[e(0,1245,0,1307)],h(1056,1100,968)))throw(v={})[h(914,908,833)]=_0x1690ab,new _0x234814["NodeOperat"+h(1016,933,941)](this[h(1002,983,1088)](),e(0,1325,0,1335)+"source: "+_0x41056d,v);try{let t;if(u===n[e(0,1365,0,1365)]){if(!n.TRgrl(n.nrlQu,n[h(982,914,982)]))throw new _0x4a4ac8[h(878,861,808)+"ionError"](this.getNode(),n[h(1032,1100,972)]);switch(s){case n[h(933,899,925)]:t=await(0,utils_1[h(892,961,790)+e(0,1265,0,1180)])(api,{groupName:this[h(1014,944,1114)+h(1046,1034,963)](e(0,1346,0,1258),r),userIds:this[h(1014,1083,1044)+"ameter"](n.qgLIy,r)});break;case n[h(1029,1008,1077)]:t=await(0,utils_1[h(877,854,820)+e(0,1390,0,1430)])(api,{groupId:this[e(0,1360,0,1349)+h(1046,1130,1009)](n[e(0,1358,0,1452)],r)});break;case h(959,1059,927):t=await(0,utils_1["processGet"+h(1061,1094,1157)])(api,{limit:this[e(0,1360,0,1359)+e(0,1392,0,1451)](n[h(948,946,853)],r)});break;case n[e(0,1413,0,1401)]:t=await(0,utils_1[h(1058,1121,1150)+h(887,893,913)])(api,{groupLink:this["getNodePar"+h(1046,1091,1060)](e(0,1284,0,1317),r)});break;case h(986,891,1023):t=await(0,utils_1[h(936,853,868)+e(0,1368,0,1397)])(api,{groupId:this[h(1014,1026,957)+"ameter"](n[e(0,1358,0,1263)],r),silent:this[e(0,1360,0,1289)+e(0,1392,0,1454)](h(956,991,889),r)});break;default:var p={};throw p[e(0,1260,0,1170)]=r,new n8n_workflow_1[h(878,893,782)+h(1016,976,1082)](this[h(1002,967,911)](),e(0,1350,0,1364)+h(1005,949,1080)+s+(e(0,1289,0,1341)+h(898,913,950))+u,p)}}else if(u===n[e(0,1308,0,1228)])switch(s){case e(0,1338,0,1345):t=await(0,utils_1["processAdd"+h(1018,948,1064)+"p"])(api,{groupId:this[h(1014,987,1028)+h(1046,991,1131)](n[e(0,1358,0,1368)],r),userIds:this[e(0,1360,0,1316)+"ameter"](n.qgLIy,r)});break;case n[h(1021,1031,1089)]:t=await(0,utils_1[h(879,861,874)+"oveUserFro"+h(883,918,829)])(api,{groupId:this[e(0,1360,0,1345)+e(0,1392,0,1463)](n[h(1012,967,953)],r),userIds:this[h(1014,1004,1109)+"ameter"](n.qgLIy,r)});break;case n[h(1001,975,949)]:t=await(0,utils_1[h(971,974,960)+e(0,1400,0,1475)])(api,{userId:this[e(0,1360,0,1355)+h(1046,1058,1006)](n[h(964,1053,889)],r),groupIds:this["getNodePar"+h(1046,1092,967)](h(996,1095,928),r)});break;case n[h(1053,1019,1017)]:t=await(0,utils_1["processAdd"+h(1033,938,1036)+"y"])(api,{groupId:this[e(0,1360,0,1408)+e(0,1392,0,1375)](n[e(0,1358,0,1268)],r),userId:this[h(1014,1110,1014)+"ameter"](n[e(0,1310,0,1265)],r)});break;default:var L={};throw L[e(0,1260,0,1208)]=r,new n8n_workflow_1[e(0,1224,0,1257)+e(0,1362,0,1384)](this.getNode(),"Unknown op"+h(1005,1078,917)+s+(h(943,848,898)+e(0,1244,0,1192))+u,L)}else if(n[e(0,1241,0,1324)](u,e(0,1221,0,1172)))switch(s){case n[e(0,1391,0,1421)]:t=await(0,utils_1["processCha"+e(0,1385,0,1449)+"me"])(api,{groupId:this[e(0,1360,0,1348)+h(1046,1031,1088)](e(0,1256,0,1226),r),newName:this[e(0,1360,0,1298)+h(1046,1037,1025)](n[e(0,1324,0,1249)],r)});break;case n[h(894,819,857)]:t=await(0,utils_1[e(0,1291,0,1223)+e(0,1415,0,1435)+"atar"])(api,{groupId:this[h(1014,1014,1012)+"ameter"](h(910,973,949),r),imageUrl:this[h(1014,1115,958)+"ameter"](n[e(0,1243,0,1343)],r)});break;default:var C={};throw C[e(0,1260,0,1269)]=r,new n8n_workflow_1["NodeOperat"+h(1016,930,1087)](this.getNode(),"Unknown operation: "+s+e(0,1289,0,1367)+"rce: "+u,C)}else if(n[h(927,924,969)](u,n[h(980,899,983)]))switch(s){case e(0,1267,0,1288):t=await(0,utils_1[e(0,1223,0,1223)+h(882,874,820)+h(1038,1037,1093)])(api,{groupId:this.getNodeParameter(h(910,841,907),r),page:this[e(0,1360,0,1442)+h(1046,1044,1002)](n[h(932,1008,982)],r),count:this[h(1014,1043,1062)+"ameter"](h(969,1016,943),r)});break;case n[e(0,1276,0,1253)]:t=await(0,utils_1[h(972,990,928)+e(0,1336,0,1354)])(api,{groupId:this[h(1014,1042,939)+e(0,1392,0,1405)](e(0,1256,0,1270),r),memberIds:this["getNodePar"+e(0,1392,0,1403)](n[e(0,1361,0,1364)],r)});break;case n[h(1059,1105,1061)]:t=await(0,utils_1[h(941,930,1002)+"lockMember"])(api,{groupId:this[h(1014,1080,948)+h(1046,1083,1026)](n.jhUUO,r),memberIds:this[e(0,1360,0,1271)+e(0,1392,0,1409)](n[h(1015,1031,1116)],r)});break;case"getPending":t=await(0,utils_1[h(877,965,780)+h(1013,1059,1034)+e(0,1374,0,1430)])(api,{groupId:this[e(0,1360,0,1340)+"ameter"](n[e(0,1358,0,1321)],r)});break;case n[e(0,1283,0,1296)]:t=await(0,utils_1[e(0,1382,0,1423)+h(965,963,942)+h(995,1096,928)])(api,{groupId:this[h(1014,925,1005)+e(0,1392,0,1477)](n.jhUUO,r),memberIds:this["getNodePar"+h(1046,1078,1046)](n[h(1015,1097,1057)],r),action:this[h(1014,946,992)+h(1046,1066,1040)](h(1049,1042,966),r)});break;default:var z={};throw z.itemIndex=r,new n8n_workflow_1["NodeOperat"+h(1016,1020,1094)](this[e(0,1348,0,1415)](),h(1004,1034,1106)+e(0,1351,0,1272)+s+(h(943,933,845)+"rce: ")+u,z)}else{if(!n[h(927,994,831)](u,n[h(951,851,1029)])){if(n[e(0,1349,0,1272)](n[h(896,817,884)],n[h(896,866,995)]))throw(w={})[h(914,814,828)]=r,new n8n_workflow_1[e(0,1224,0,1145)+h(1016,1024,1024)](this.getNode(),h(979,1071,919)+e(0,1259,0,1176)+u,w);return _0x5afa8f[h(942,913,955)]().search(rvkqTH[e(0,1408,0,1328)])[h(942,960,1014)]().constructor(_0x357451).search(rvkqTH[e(0,1408,0,1504)])}if(s!==n[h(939,1025,1025)])throw(x={})[e(0,1260,0,1229)]=r,new n8n_workflow_1[h(878,867,855)+"ionError"](this.getNode(),h(1004,1006,935)+"eration: "+s+e(0,1289,0,1189)+"rce: "+u,x);t=await(0,utils_1[e(0,1238,0,1302)+e(0,1389,0,1323)])(api,{groupId:this[e(0,1360,0,1389)+h(1046,1068,1022)](n[e(0,1358,0,1400)],r),content:this.getNodeParameter(n[e(0,1297,0,1307)],r),pinAct:this[h(1014,1089,955)+"ameter"](n[e(0,1403,0,1452)],r)})}var d={},D=(d.item=r,{});D[h(1063,1149,1142)]=t,D[e(0,1411,0,1468)]=d,a[e(0,1219,0,1117)](D)}catch(t){if(!n[e(0,1401,0,1325)](n[h(1023,1092,1091)],n[h(917,940,964)]))return v=_0x3e74c7.apply(_0x303201,arguments),_0x4e1ad8=null,v;if(!this[e(0,1307,0,1216)+h(958,1008,947)]())throw(l={})[h(914,923,839)]=r,new n8n_workflow_1["NodeOperat"+h(1016,1036,936)](this[e(0,1348,0,1347)](),t,l);(l={}).error=t.message,(f={})[h(950,926,1004)]=r,(c={})[h(1063,1023,1052)]=l,c[e(0,1411,0,1505)]=f,a[e(0,1219,0,1118)](c)}}return[a]}}exports[_0x7a9bd8(1197,1220,1213,1279)]=ZaloGroup;
1
+ function _0x11dc2f(e,t){return _0x81a4(t-335,e)}function _0x48c1(){var e={bwxLo:"push",yynAW:"1289894JRbdpR",xnxai:t(1009,1012),LSlcH:t(1053,1e3),gIUYo:t(989,1033),HBLYL:t(997,1034),jVzNb:t(1074,1132),HeYlI:"promoteDeputy",KoNgu:t(999,985),tCQla:t(1001,950),JRSsC:"inviteToMany",cckWi:t(1060,1055),Jkrae:"groupIds",SIFBn:t(1086,1077),xqPho:"review",uLntv:"puMjE",qmflE:"getNode",hcvtZ:"zaloApi"};function t(e,t){return _0x3946(e-634,t)}let r=["AYnSW","resource",e[t(990,979)],"processRemoveUserFromGroup",t(1041,1046),t(994,1009),e[t(1032,1024)],"leave","processAddGroupDeputy",t(1010,1008),"imageUrl",t(1047,990),"defineProperty",e.xnxai,e[t(1008,987)],e.gIUYo,t(1056,1045),t(1052,1089),"memberIds","zca-js",t(1075,1078),e.HBLYL,e[t(1021,1039)],e.HeYlI,"zaloGroup","laxbb","MJFeD","185pODvoA","find",e.KoNgu,t(1045,1076),t(1037,1032),t(1093,1068),t(1059,1064),t(1071,1062),t(1033,1087),t(1070,1086),t(1027,973),t(1026,1067),t(1073,1080),t(1012,1065),t(1016,1005),e.tCQla,t(1017,1016),t(1003,1014),t(1031,1014),e[t(1024,1041)],e[t(1025,1004)],t(979,1029),t(1038,1066),"NWygV",e[t(1091,1087)],t(984,1010),"mxBSk","userIds","processGetAllGroups","processAddUserToGroup",t(1020,1006),t(1079,1132),t(1072,1067),e[t(1084,1129)],t(1015,972),"parse",t(1022,1019),t(1002,1055),e.xqPho,e[t(1034,1042)],"Zalo","./utils","cookie","processCreateGroup",t(1092,1145),e[t(1063,1053)],e.hcvtZ];return(_0x48c1=function(){return r})()}function _0x3f64(){let e=["processJoinGroupLink","userAgent","__esModule","208060iuiLbK","push","19916138CRRvrx","getNode","RuThc","6078848gGXsFO","HMhnf","UNMKU","XyjUK","count","juIca","bwxLo","HebfI","login","length","get","block","ULBAT","main","settings","getNodeParameter","VOkwO","file:../shared/image.svg","ayrZZ","userId","processGetPendingRequests","processGetGroupInfo","243258qwjomC","moderation","LSlcH","groupLink","XSJzS","Quản lý nhóm Zalo by diginno.net","processGetBlockedMembers","memberIds","DAAcL","groupName","createNote","NodeOperationError","7431830MADDGL","dorqu","2suOyxK","jVzNb","4111317HnKBDE","rySBE","JRSsC","cckWi","message","json","glrWa","BCPZK","find","Zalo Nhóm by diginno.net","yynAW",'={{$parameter["operation"] + ": " + $parameter["resource"]}}',"uLntv","14024540zhfrbA","GTHFK","IkYiv","ZaloGroup","FVLms","248tbyNIP","Unknown operation: ","No API instance found. Please make sure to provide valid credentials.","MrTet","getPending","create","description","updateName","qClII","fAIxj","MrPgz","OBjKr","WWKzP","13458354qTXBYN","nbMey","204966tXGFBb","3475218wzdnJG","JOfXK","Zalo","130818MwRqNo","processReviewPendingRequest","page","3HwqbZj","qmflE","./ZaloGroup.properties","tIeoI","189DJWBMI","mSqdy","BGnmu","6QPJWMv","join","member","imei","add"," for resource: ","newName","processUnblockMember","CcgXA","Uenpk","zaloGroupProperties","UdBBw","userIds","354520jeuElR","ECdHb","SIFBn","fctpP","groupId","processBlockMember","processChangeGroupName","InvwP","3446084hkJAbl","Jkrae"];return(_0x3f64=function(){return e})()}(()=>{function e(e,t){return _0x3946(e- -706,t)}for(var t=_0x3f64();;)try{if(973642==+parseInt(e(-271,-294))*(-parseInt(e(-258,-256))/2)+parseInt(e(-278,-288))/3*(-parseInt(e(-250,-284))/4)+parseInt(e(-322,-300))/5+-parseInt(e(-334,-345))/6*(parseInt(e(-274,-262))/7)+parseInt(e(-300,-244))/8*(-parseInt(e(-285,-315))/9)+parseInt(e(-305,-281))/10+parseInt(e(-359,-312))/11)break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),(()=>{var e={FmfnX:function(e,t){return e+t},yCRsH:function(e,t){return e*t},BCPZK:function(e,t){return e/t},nbMey:function(e,t){return e(t)},EnZZj:function(e,t,r){return e(t,r)},hHKyM:function(e,t){return e/t},ntrIq:function(e,t,r){return e(t,r)},VZPwo:function(e,t,r){return e(t,r)},ULBAT:function(e,t,r){return e(t,r)}},t=_0x48c1();function r(e,t){return _0x81a4(e- -304,t)}function n(e,t){return _0x3946(t- -744,e)}for(;;)try{if(968195==e.FmfnX(e.yCRsH(+parseInt(r(67,48)),parseInt(r(118,109))/2)+e.BCPZK(-parseInt(r(94,107)),3),e[n(-386,-349)](e[n(-343,-324)](parseInt,e.EnZZj(r,109,90)),4)*e.hHKyM(-e.nbMey(parseInt,e.ntrIq(r,88,83)),5))+e.BCPZK(-parseInt(e.VZPwo(r,77,101)),6)+parseInt(e[n(-420,-382)](r,75,38))/7+parseInt(r(113,134))/8+-parseInt(r(124,159))/9)break;t[n(-382,-398)](t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x11dc2f(719,712)](exports,_0x147df8(-218,-213),{value:!0}),exports[_0x11dc2f(758,749)]=void 0;let n8n_workflow_1=require("n8n-workflow"),ZaloGroup_properties_1=require(_0x147df8(-283,-243)),zca_js_1=require(_0x11dc2f(686,719)),utils_1=require(_0x11dc2f(739,768)),api;class ZaloGroup{constructor(){function e(e,t){return _0x3946(t-219,e)}function t(e,t){return _0x81a4(t-344,e)}var r={NWygV:{MrTet:function(e,t,r){return e(t,r)}}[e(662,628)](t,746,776),MJFeD:e(643,616),xPbML:t(761,730)};this[e(616,631)]={displayName:t(741,754),name:t(702,733),icon:t(765,751),group:[r[t(772,759)]],version:1,subtitle:t(764,744),description:e(578,596),defaults:{name:r[t(769,735)]},inputs:[t(701,730)],outputs:[r.xPbML],credentials:[{name:t(753,782),required:!0,displayName:"Zalo Credential to connect with"}],properties:ZaloGroup_properties_1[t(768,767)]}}async["execute"](){let r={UNMKU:function(e,t){return e<t},JOfXK:function(e,t,r){return e(t,r)},APBdU:"remove",UYlNd:p(304,338),MrPgz:function(e,t,r){return e(t,r)},COEZw:function(e,t,r){return e(t,r)},QWcQW:function(e,t){return e!=t},tIeoI:function(e,t,r){return e(t,r)},mSqdy:function(e,t,r){return e(t,r)},xMWNb:function(e,t,r){return e(t,r)},BGnmu:function(e,t){return e+t},HebfI:p(393,391),EUpVx:function(e,t,r){return e(t,r)},ECdHb:p(411,436),glrWa:function(e,t,r){return e(t,r)},LvPDD:function(e,t,r){return e(t,r)},XyjUK:function(e,t,r){return e(t,r)},dorqu:function(e,t){return e+t},RuThc:function(e,t,r){return e(t,r)},duRys:function(e,t,r){return e(t,r)},qClII:function(e,t){return e+t},GTHFK:"getBlocked",rySBE:"unblock",cLIue:p(338,363),Ffeot:function(e,t,r){return e(t,r)},hydHw:function(e,t,r){return e(t,r)},UdBBw:function(e,t,r){return e(t,r)},uhrGi:function(e,t,r){return e(t,r)},fLKrc:function(e,t){return e+t},bryDg:"Unknown resource: ",fAIxj:function(e,t,r){return e(t,r)},OBjKr:function(e,t,r){return e(t,r)},pBOTt:function(e,t,r){return e(t,r)}};var n={puMjE:"operation",juIca:function(e,t){return e===t},FVLms:function(e,t){return e===t},fctpP:function(e,t){return r[_0x3946(352,481)](e,t)},HMhnf:r[p(360,407)](c,780,809),DAAcL:"getMany",InvwP:"limit",CcgXA:c(732,708),WWKzP:c(779,769),Uenpk:function(e,t){return e===t},mJBKI:r[p(416,407)](c,753,734),AYnSW:p(406,431),DXWdo:r.APBdU,ayrZZ:p(346,353),IkYiv:c(770,762),XSJzS:c(739,704),OuTpc:function(e,t){return e===t},mxBSk:p(347,357),VOkwO:p(370,411),laxbb:r.UYlNd},e=this.getInputData(),i=[],o=this[c(748,781)](c(720,684),0),u=this[c(748,763)](n[c(785,794)],0),t=await this.getCredentials(r.MrPgz(c,792,770)),a=JSON[c(781,813)](t[r.COEZw(c,788,804)]),s=t[c(778,804)];function c(e,t){return _0x81a4(e-354,t)}t=t[p(422,443)],a=null!=a?a:null===(a=e[c(747,776)](e=>e[p(346,377)].cookie))||n[r.JOfXK(c,734,738)](a,void 0)?void 0:a[c(756,778)][c(788,810)],s=r.QWcQW(null,s)?s:null===(s=e[c(747,747)](e=>e.json.imei))||n[p(447,389)](s,void 0)?void 0:s[c(756,774)][c(778,802)],t=null!=t?t:null==(t=e[p(366,380)](e=>e.json[c(751,752)]))?void 0:t[r[p(362,415)](c,756,767)].userAgent,a=await(new zca_js_1[p(427,408)])[p(347,342)]({cookie:a,imei:s,userAgent:t});if(!(api=a))throw new n8n_workflow_1[c(762,792)](this[p(367,332)](),p(350,392));for(let t=0;n[p(391,435)](t,e[p(335,343)]);t++)try{let e;if("group"===o)switch(u){case c(749,748):e=await(0,utils_1[c(789,764)])(api,{groupName:this[c(748,785)](n[p(345,335)],t),userIds:this.getNodeParameter(c(773,762),t)});break;case c(724,703):e=await(0,utils_1[p(411,355)])(api,{groupId:this[p(359,349)](r[p(419,417)](c,779,816),t)});break;case n[p(385,364)]:e=await(0,utils_1[c(774,791)])(api,{limit:this[c(748,761)](n[p(444,439)],t)});break;case c(755,767):e=await(0,utils_1[r[p(453,400)](c,790,789)])(api,{groupLink:this[c(748,740)](n[p(448,427)],t)});break;case c(726,725):e=await(0,utils_1.processLeaveGroup)(api,{groupId:this[p(394,349)](n[p(362,402)],t),silent:this.getNodeParameter("silent",t)});break;default:throw new n8n_workflow_1[r.xMWNb(c,762,740)](this[p(293,332)](),r[p(473,418)](r[p(380,341)]+u+p(426,424),o),{itemIndex:t})}else if(n[p(431,428)](o,n.mJBKI))switch(u){case c(758,736):e=await(0,utils_1[r.EUpVx(c,775,779)])(api,{groupId:this[r.EUpVx(c,748,782)](c(779,752),t),userIds:this[c(748,770)](n[c(719,755)],t)});break;case n.DXWdo:e=await(0,utils_1[c(722,737)])(api,{groupId:this[p(323,349)](r[p(479,433)],t),userIds:this[c(748,757)](c(773,753),t)});break;case r[p(465,415)](c,765,744):e=await(0,utils_1.processInviteUsers)(api,{userId:this[p(359,349)](n[c(783,797)],t),groupIds:this[c(748,724)](n[c(750,746)],t)});break;case c(742,723):e=await(0,utils_1[r[p(376,378)](c,727,745)])(api,{groupId:this[r.LvPDD(c,748,743)](c(779,783),t),userId:this[c(748,726)](c(763,770),t)});break;default:throw new n8n_workflow_1[p(376,367)](this[r[p(364,337)](c,791,806)](),r[p(356,369)](r[p(395,418)](r[p(364,333)](c,723,752),u),c(741,710))+o,{itemIndex:t})}else if(p(338,348)===o)switch(u){case r.duRys(c,730,744):e=await(0,utils_1[p(435,438)])(api,{groupId:this[p(363,349)](p(454,436),t),newName:this[c(748,766)](n[c(728,752)],t)});break;case"updateAvatar":e=await(0,utils_1.processChangeGroupAvatar)(api,{groupId:this[c(748,772)](n[p(386,402)],t),imageUrl:this[p(297,349)](c(729,743),t)});break;default:throw new n8n_workflow_1[c(762,738)](this[p(359,332)](),r[p(350,398)](c(723,741),u)+" for resource: "+o,{itemIndex:t})}else if(n.OuTpc(o,n[c(772,805)]))switch(u){case r[p(400,386)]:e=await(0,utils_1[c(759,750)])(api,{groupId:this.getNodeParameter(n.WWKzP,t),page:this[p(319,349)](n[p(391,350)],t),count:this[c(748,762)](n[c(744,744)],t)});break;case p(399,345):e=await(0,utils_1[p(409,437)])(api,{groupId:this[r.tIeoI(c,748,774)](c(779,767),t),memberIds:this[c(748,775)](c(737,753),t)});break;case r[p(360,373)]:e=await(0,utils_1[p(441,426)])(api,{groupId:this[p(400,349)](r.ECdHb,t),memberIds:this.getNodeParameter(r.cLIue,t)});break;case p(401,394):e=await(0,utils_1[p(354,354)])(api,{groupId:this.getNodeParameter("groupId",t)});break;case c(784,801):e=await(0,utils_1[r.Ffeot(c,766,739)])(api,{groupId:this.getNodeParameter(n[r.hydHw(c,736,738)],t),memberIds:this.getNodeParameter(c(737,760),t),action:this[c(748,723)]("action",t)});break;default:throw new n8n_workflow_1[p(348,367)](this[p(383,332)](),r.qClII(r[p(386,398)](r.qClII(r[p(288,341)],u),r[p(395,430)](c,741,756)),o),{itemIndex:t})}else{if("content"!==o)throw new n8n_workflow_1[c(762,748)](this[r.uhrGi(c,791,780)](),r.fLKrc(r.bryDg,o),{itemIndex:t});if(u!==c(760,724))throw new n8n_workflow_1.NodeOperationError(this[c(791,796)](),p(350,391)+u+r.XyjUK(c,741,716)+o,{itemIndex:t});e=await(0,utils_1.processCreateNote)(api,{groupId:this[p(406,349)]("groupId",t),content:this[p(352,349)]("content",t),pinAct:this[r[p(428,399)](c,748,719)]("pinAct",t)})}i[c(721,694)]({json:e,pairedItem:{item:t}})}catch(e){if(!this.continueOnFail())throw new n8n_workflow_1[r.glrWa(c,762,760)](this.getNode(),e,{itemIndex:t});i[r[p(405,401)](c,721,687)]({json:{error:e[r.pBOTt(c,757,736)]},pairedItem:{item:t}})}function p(e,t){return _0x3946(t- -16,e)}return[i]}}function _0x3946(e,t){let r=_0x3f64();return(_0x3946=function(e,t){return e-=345,r[e]})(e,t)}function _0x147df8(e,t){return _0x3946(t- -673,e)}function _0x81a4(e,t){let r=_0x48c1();return(_0x81a4=function(e,t){return e-=365,r[e]})(e,t)}exports[_0x11dc2f(742,749)]=ZaloGroup;