n8n-nodes-zalo-nnt 1.0.5 → 1.0.6
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/credentials/N8nZaloApi.credentials.js +1 -1
- package/dist/credentials/ZaloApi.credentials.js +1 -1
- package/dist/nodes/ZaloChatHistory/ZaloChatHistory.node.js +1 -1
- package/dist/nodes/ZaloChatHistory/ZaloChatHistory.properties.js +1 -1
- package/dist/nodes/ZaloChatHistory/utils/historyProcessor.js +1 -1
- package/dist/nodes/ZaloChatHistory/utils/index.js +1 -1
- package/dist/nodes/ZaloChatHistory/utils/messageParser.js +1 -1
- package/dist/nodes/ZaloChatHistory/utils/types.js +1 -1
- package/dist/nodes/ZaloChatHistory/utils/validator.js +1 -1
- package/dist/nodes/ZaloGroup/ZaloGroup.node.js +1 -1
- package/dist/nodes/ZaloGroup/ZaloGroup.properties.js +1 -1
- package/dist/nodes/ZaloGroup/utils/groupProcessor.js +1 -1
- package/dist/nodes/ZaloGroup/utils/index.js +1 -1
- package/dist/nodes/ZaloGroup/utils/types.js +1 -1
- package/dist/nodes/ZaloGroup/utils/validator.js +1 -1
- package/dist/nodes/ZaloLoginByQr/ZaloLoginByQr.node.js +1 -1
- package/dist/nodes/ZaloMessageTrigger/EventFilter.js +1 -1
- package/dist/nodes/ZaloMessageTrigger/EventListenerRegistry.js +1 -1
- package/dist/nodes/ZaloMessageTrigger/ZaloConnectionManager.js +1 -1
- package/dist/nodes/ZaloMessageTrigger/ZaloMessageTrigger.node.js +1 -1
- package/dist/nodes/ZaloMessageTrigger/constants.js +1 -1
- package/dist/nodes/ZaloMessageTrigger/types.js +1 -1
- package/dist/nodes/ZaloMessageTrigger/utils.js +1 -1
- package/dist/nodes/ZaloPoll/ZaloPoll.node.js +1 -1
- package/dist/nodes/ZaloPoll/ZaloPollDescription.js +1 -1
- package/dist/nodes/ZaloReminder/ZaloReminder.node.js +1 -1
- package/dist/nodes/ZaloReminder/ZaloReminder.properties.js +1 -1
- package/dist/nodes/ZaloReminder/utils/index.js +1 -1
- package/dist/nodes/ZaloReminder/utils/reminderProcessor.js +1 -1
- package/dist/nodes/ZaloReminder/utils/types.js +1 -1
- package/dist/nodes/ZaloReminder/utils/validator.js +1 -1
- package/dist/nodes/ZaloSendMessage/ZaloSendMessage.node.js +1 -1
- package/dist/nodes/ZaloSendMessage/ZaloSendMessage.properties.js +1 -1
- package/dist/nodes/ZaloSendMessage/utils/attachmentProcessor.js +1 -1
- package/dist/nodes/ZaloSendMessage/utils/index.js +1 -1
- package/dist/nodes/ZaloSendMessage/utils/markdownToZaloStyles.js +1 -1
- package/dist/nodes/ZaloSendMessage/utils/messageBuilder.js +1 -1
- package/dist/nodes/ZaloSendMessage/utils/types.js +1 -1
- package/dist/nodes/ZaloSendMessage/utils/validator.js +1 -1
- package/dist/nodes/ZaloTag/ZaloTag.node.js +1 -1
- package/dist/nodes/ZaloUser/ZaloUser.node.js +1 -1
- package/dist/nodes/ZaloUser/ZaloUserDescription.js +1 -1
- package/dist/nodes/shared/branding.js +1 -1
- package/dist/nodes/utils/helper.js +1 -1
- 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 _0x412a(e,r){let t=_0x3fc4();return(_0x412a=function(e,r){return e-=462,t[e]})(e,r)}function _0x129589(e,r){return _0x412a({qGWTF:function(e,r){return e-r}}[_0x199f(293,648)](e,344),r)}(()=>{var r=_0x5974();function e(e,r){return _0x199f(r-574,e)}for(;;)try{if(251183==+parseInt(e(866,838))+parseInt(e(919,895))/2*(-parseInt(e(893,870))/3)+parseInt(e(847,816))/4+-parseInt(e(777,827))/5*(parseInt(e(885,853))/6)+parseInt(e(845,841))/7+-parseInt(e(751,790))/8*(parseInt(e(851,864))/9)+-parseInt(e(912,862))/10*(parseInt(e(881,844))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),(()=>{function e(e,r){return _0x199f(e-195,r)}var r={ddTQb:function(e){return e()},QANEs:function(e,r){return e+r},ExIwo:function(e,r){return e+r},dGahS:function(e,r){return e*r},ILKIQ:function(e,r){return e/r},aLLUV:function(e,r){return e(r)},sGiPu:function(e,r,t){return e(r,t)},suHwX:function(e,r,t){return e(r,t)},mOBoC:function(e,r){return e/r},mYmGY:function(e,r){return e/r},LJPPy:function(e,r){return e/r}},t=r.ddTQb(_0x3fc4);function n(e,r){return _0x412a(r- -833,e)}for(;;)try{if(929138==r.QANEs(r[e(489,471)](+parseInt(n(-345,-346)),r.dGahS(r.ILKIQ(-parseInt(n(-374,-344)),2),-r[e(472,464)](parseInt,n(-380,-358))/3))+parseInt(r.sGiPu(n,-367,-361))/4+r[e(432,428)](-r.aLLUV(parseInt,r[e(420,430)](n,-313,-349))/5,-parseInt(n(-376,-365))/6),-parseInt(n(-395,-364))/7)+r.mOBoC(-parseInt(r[e(417,383)](n,-337,-298)),8)*r[e(418,442)](r.aLLUV(parseInt,n(-284,-312)),9)+r[e(439,479)](parseInt(n(-290,-301)),10))break;t.push(t[e(507,467)]())}catch(e){t.push(t.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x129589(854,879)]=void 0;let n8n_workflow_1=require(_0x129589(814,833)),ZaloGroup_properties_1=require("./ZaloGroup.properties"),zca_js_1=require(_0x129589(847,881)),utils_1=require(_0x2049e6(-529,-563)),api;function _0x5974(){let e=["VFzUC","action","DgizC","479314AydsGy","processGetGroupInfo","Yilje","2551332rFfAiR","rpyUY"," for resource: ","705782CkIKjV","YsfeQ","gxZlS","create","QwuVv","updateName","wFIJK","aLLUV","wxUJa","503808DGvexr","7175650kOPULk","imei","NodeOperationError","eIOIp","KFpLG","getCredentials","length","lOJCf","30sypvhi","eghVc","9lwpomD","45rAmLdY","processReviewPendingRequest","qGWTF","ExIwo","main","1014RJseus","lnBkh","moderation","9WvbenD","getNodeParameter","Unknown operation: ","login","group","SEyPC","OErVv","JKAxq","remove","DvxxD","11219264LXRFKn","uLaVS","operation","shift","MKzTN","NTsrh","json","count","qVsrk","zaloGroup","page","zaloApi","1236IBYDCC","memberIds","OviPb","mZBVV","add","find","groupName","userId","yBaYq","2850608BZrzgE","KPAqb","parse","OguHy",'={{$parameter["operation"] + ": " + $parameter["resource"]}}',"rKoPU","sGiPu","mYmGY","ybKcm","suHwX","newName","wxYdQ","execute","getNode","push","tzmFx","tsnGg","processGetPendingRequests","AMUqT","YRkeQ","groupLink","dGahS","groupIds","WMRSQ","ZaloGroup","groupId","1332100dyyOjm","processInviteUsers","LJPPy","userAgent","TxHfd","gVBVF","fNnPT","unblock","FQjkV","resource","388822aYnRam","10AeTbSi","continueOnFail","DlJEn","getInputData","review","join","./utils","n8n-workflow"];return(_0x5974=function(){return e})()}function _0x199f(e,r){let t=_0x5974();return(_0x199f=function(e,r){return e-=215,t[e]})(e,r)}function _0x2049e6(e,r){return _0x199f(r- -822,e)}class ZaloGroup{constructor(){var e={lnBkh:function(e,r,t){return e(r,t)},aRkkd:function(e,r,t){return e(r,t)}};function r(e,r){return _0x412a(e- -745,r)}var t={AMUqT:r(-248,-248),VFzUC:r(-222,-201),sKIcs:n(-462,-511)};function n(e,r){return _0x199f(e- -757,r)}this[r(-281,-311)]={displayName:t[e.lnBkh(r,-280,-260)],name:e[n(-460,-483)](r,-220,-192),icon:e.aRkkd(r,-219,-183),group:[r(-231,-205)],version:1,subtitle:t[r(-243,-214)],description:e.lnBkh(r,-206,-169),defaults:{name:t[n(-523,-471)]},inputs:[r(-254,-272)],outputs:[t[r(-217,-202)]],credentials:[{name:e.lnBkh(r,-208,-235),required:!0,displayName:e.lnBkh(r,-262,-261)}],properties:ZaloGroup_properties_1.zaloGroupProperties}}async[_0x2049e6(-606,-594)](){let t={mZBVV:function(e,r){return e-r},JKAxq:function(e,r,t){return e(r,t)},DgizC:function(e,r,t){return e(r,t)},DsgQr:"content",avKIX:"pinAct",Yilje:function(e,r,t){return e(r,t)},PoYjQ:function(e,r){return e!=r},wxUJa:function(e,r,t){return e(r,t)},wxYdQ:p(-125,-127),NvxSM:p(-157,-136),bAksf:function(e,r,t){return e(r,t)},wFIJK:function(e,r){return e+r},yBaYq:p(-97,-60),YsfeQ:function(e,r,t){return e(r,t)},rpyUY:function(e,r){return e===r},NVEIS:"member",eIOIp:function(e,r,t){return e(r,t)},exVyg:function(e,r,t){return e(r,t)},OviPb:"promoteDeputy",mBhHj:function(e,r,t){return e(r,t)},YRkeQ:function(e,r,t){return e(r,t)},OkSPM:function(e,r,t){return e(r,t)},QhQms:function(e,r,t){return e(r,t)},Puodr:function(e,r,t){return e(r,t)},rgHZs:function(e,r){return e+r},ybKcm:function(e,r){return e+r},FQjkV:function(e,r,t){return e(r,t)},QEVgu:function(e,r,t){return e(r,t)}},n={fuEPi:t.JKAxq(i,964,963),YtlRx:i(1019,1044),UIRpK:function(e,r){return e===r},gVBVF:function(e,r){return e!==r},OguHy:function(e,r){return e!==r},tzmFx:function(e,r){return e<r},HnerI:function(e,r){return e===r},DPHWI:i(982,987),QwuVv:i(1012,997),SEyPC:"getMany",rKoPU:i(962,967),DJjPd:t.DgizC(i,1015,995),eghVc:i(1013,1002),KFpLG:"inviteToMany",fNnPT:p(-70,-48),gxZlS:i(991,956),xKZig:i(967,985),tsnGg:t.DsgQr,GQbuC:t.avKIX},e=this[i(1006,1037)]();function i(e,r){return _0x412a(t[_0x199f(324,-348)](e,482),r)}var o=[],s=this[i(997,1037)](n[i(944,950)],0),a=this[i(997,991)](i(994,1032),0),r=await this[p(-113,-104)](n[i(949,964)]),u=JSON[p(-180,-213)](r.cookie),c=r[p(-117,-127)],r=r[p(-153,-104)],u=null!=u?u:null===(u=e[t[p(-132,-147)](i,1011,1032)](e=>e[p(-83,-82)].cookie))||n.UIRpK(u,void 0)?void 0:u[p(-83,-60)][i(1e3,1002)],c=t.PoYjQ(null,c)?c:n[i(1009,1014)](c=e[i(1011,1e3)](e=>e[i(1022,1016)][p(-117,-84)]),null)||void 0===c?void 0:c.json[i(993,958)],r=n[p(-151,-183)](r,null)&&n[p(-179,-147)](r,void 0)?r:null==(r=e[t.wxUJa(i,1011,1048)](e=>e.json.userAgent))?void 0:r.json.userAgent,u=await(new zca_js_1.Zalo)[p(-96,-42)]({cookie:u,imei:c,userAgent:r});function p(e,r){return _0x199f(e- -398,r)}if(!(api=u))throw new n8n_workflow_1[p(-116,-84)](this[i(955,991)](),t.wxUJa(i,998,988));for(let r=0;n[t[p(-135,-176)](i,970,994)](r,e[p(-112,-66)]);r++)try{let e;if(n[i(980,1e3)](s,p(-95,-60)))switch(a){case t[p(-171,-155)]:e=await(0,utils_1.processCreateGroup)(api,{groupName:this.getNodeParameter(i(959,988),r),userIds:this[i(997,998)](n[i(977,995)],r)});break;case n[p(-124,-99)]:e=await(0,utils_1[i(963,961)])(api,{groupId:this[t[p(-120,-86)](i,997,1022)](t.NvxSM,r)});break;case n[p(-94,-125)]:e=await(0,utils_1.processGetAllGroups)(api,{limit:this.getNodeParameter(t[p(-132,-168)](i,999,968),r)});break;case p(-140,-91):e=await(0,utils_1[t.bAksf(i,960,942)])(api,{groupLink:this.getNodeParameter(p(-162,-122),r)});break;case i(953,921):e=await(0,utils_1[t[p(-135,-150)](i,958,967)])(api,{groupId:this[p(-98,-49)](n[p(-177,-228)],r),silent:this.getNodeParameter(n.DJjPd,r)});break;default:throw new n8n_workflow_1[i(956,919)](this[i(955,948)](),t.wFIJK(t[p(-183,-156)]+a,t[p(-127,-108)](i,968,956))+s,{itemIndex:r})}else if(t[p(-130,-166)](t.NVEIS,s))switch(a){case i(983,994):e=await(0,utils_1.processAddUserToGroup)(api,{groupId:this[t[p(-115,-80)](i,997,1024)](n[p(-177,-171)],r),userIds:this[i(997,1023)]("userIds",r)});break;case n[i(1004,1012)]:e=await(0,utils_1[i(987,947)])(api,{groupId:this[i(997,1008)](i(962,931),r),userIds:this[i(997,1031)](i(982,1017),r)});break;case n[p(-114,-73)]:e=await(0,utils_1[t.exVyg(i,1016,1018)])(api,{userId:this.getNodeParameter(n[p(-150,-160)],r),groupIds:this[p(-98,-148)](p(-160,-184),r)});break;case t[p(-75,-19)]:e=await(0,utils_1[i(1018,1034)])(api,{groupId:this[t.mBhHj(i,997,999)](n[t[p(-132,-161)](i,972,950)],r),userId:this[i(997,972)](n[i(990,997)],r)});break;default:throw new n8n_workflow_1.NodeOperationError(this.getNode(),i(948,909)+a+i(968,930)+s,{itemIndex:r})}else if(n[t[p(-163,-190)](i,980,967)](s,n[p(-126,-95)]))switch(a){case p(-123,-100):e=await(0,utils_1[t.exVyg(i,1020,1020)])(api,{groupId:this[p(-98,-136)](n[p(-177,-222)],r),newName:this[i(997,978)](i(961,951),r)});break;case t.mBhHj(i,945,928):e=await(0,utils_1.processChangeGroupAvatar)(api,{groupId:this[t.OkSPM(i,997,987)](i(962,971),r),imageUrl:this[i(997,1016)]("imageUrl",r)});break;default:throw new n8n_workflow_1[i(956,942)](this[p(-169,-183)](),t[p(-122,-100)](t.wFIJK(i(948,930),a)+i(968,1003),s),{itemIndex:r})}else if(s===t.QhQms(i,989,1005))switch(a){case t.YRkeQ(i,978,993):e=await(0,utils_1.processGetBlockedMembers)(api,{groupId:this[t[p(-92,-146)](i,997,972)](i(962,966),r),page:this[t.wxUJa(i,997,970)](p(-79,-105),r),count:this[p(-98,-119)](t[p(-115,-73)](i,986,1008),r)});break;case"block":e=await(0,utils_1.processBlockMember)(api,{groupId:this.getNodeParameter(p(-157,-180),r),memberIds:this[i(997,1003)](i(1001,1013),r)});break;case n.xKZig:e=await(0,utils_1.processUnblockMember)(api,{groupId:this[p(-98,-143)](n[t.Puodr(i,972,980)],r),memberIds:this[t.wxUJa(i,997,981)](t.mBhHj(i,1001,1027),r)});break;case i(975,1014):e=await(0,utils_1[p(-165,-152)])(api,{groupId:this.getNodeParameter(n.rKoPU,r)});break;case p(-141,-95):e=await(0,utils_1[p(-106,-99)])(api,{groupId:this[p(-98,-121)](n[i(972,992)],r),memberIds:this[i(997,964)](p(-76,-48),r),action:this.getNodeParameter(i(976,1014),r)});break;default:throw new n8n_workflow_1.NodeOperationError(this[i(955,950)](),t.rgHZs(t[p(-174,-153)](t[p(-122,-167)](t[p(-148,-160)](i,948,986),a),i(968,958)),s),{itemIndex:r})}else{if(s!==i(988,985))throw new n8n_workflow_1[i(956,934)](this[i(955,986)](),t.ybKcm(i(1002,1016),s),{itemIndex:r});if("createNote"!==a)throw new n8n_workflow_1[p(-116,-144)](this.getNode(),t.wFIJK(i(948,925)+a,i(968,931))+s,{itemIndex:r});e=await(0,utils_1[i(981,986)])(api,{groupId:this.getNodeParameter(i(962,967),r),content:this[i(997,1008)](n[p(-166,-119)],r),pinAct:this.getNodeParameter(n.GQbuC,r)})}o[p(-168,-137)]({json:e,pairedItem:{item:r}})}catch(e){if(!this[i(974,958)]())throw new n8n_workflow_1.NodeOperationError(this[t.QEVgu(i,955,958)](),e,{itemIndex:r});o[p(-168,-150)]({json:{error:e[i(995,1e3)]},pairedItem:{item:r}})}return[o]}}function _0x3fc4(){function e(e,r){return _0x199f(r- -602,e)}var r={jzKvM:"UIRpK",qVsrk:e(-320,-295),lOJCf:e(-287,-322),ozYKM:"description",vmnsz:"5778148hvtWyn",DocxZ:e(-355,-320),uLaVS:"processJoinGroupLink",DvxxD:e(-296,-337),KPAqb:"Zalo Credential to connect with",TxHfd:e(-262,-311),MKzTN:e(-300,-350),NjkEu:"HnerI",UVhEk:"userIds",DlJEn:e(-355,-341),OErVv:"zca-js",NTsrh:"content",WMRSQ:e(-336,-304),GkAjK:"limit",fGIsg:"file:../shared/image.svg"};let t=[r.jzKvM,"sKIcs",e(-260,-276),"get",r[e(-273,-285)],r[e(-300,-315)],"silent",e(-398,-359),"9534088PQOdBb","processAddGroupDeputy",e(-253,-282),"processChangeGroupName","Quản lý nhóm Zalo by diginno.net","json","fuEPi","updateAvatar",r.ozYKM,e(-337,-368),e(-350,-301),"YtlRx","668142StyPyX",e(-249,-293),e(-374,-342),"leave",r.vmnsz,"getNode",r.DocxZ,"27BMPsma","processLeaveGroup",e(-325,-275),r[e(-278,-292)],e(-342,-376),"groupId",r[e(-315,-294)],e(-331,-351),r[e(-346,-385)],r[e(-323,-356)],e(-309,-353),e(-370,-333),r[e(-299,-289)],e(-349,-371),"37892dYNJFC",e(-355,-381),e(-333,-307),e(-310,-348),"getPending",e(-309,-340),"DPHWI","getBlocked","Zalo Nhóm by diginno.net",r.NjkEu,"processCreateNote",r.UVhEk,e(-239,-277),r[e(-400,-347)],r[e(-291,-297)],e(-242,-286),"processRemoveUserFromGroup",r[e(-244,-288)],r[e(-321,-363)],"fNnPT","settings",e(-382,-362),e(-314,-321),e(-319,-291),"message","Zalo","getNodeParameter","No API instance found. Please make sure to provide valid credentials.",r.GkAjK,"cookie","memberIds","Unknown resource: ",e(-294,-303),e(-312,-313),e(-363,-382),e(-357,-346),e(-307,-284),r.fGIsg];return(_0x3fc4=function(){return t})()}exports[_0x129589(854,884)]=ZaloGroup;
|