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.
- 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/ZaloChatHistory.properties.js.map +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/ZaloGroup.properties.js.map +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/ZaloUser/ZaloUserDescription.js.map +1 -1
- package/dist/nodes/shared/bak_image.svg +1 -0
- package/dist/nodes/shared/branding.js +1 -1
- package/dist/nodes/shared/image.svg +1 -1
- package/dist/nodes/utils/helper.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x46d724(t,n,r,e){return _0x2c64(e- -247,r)}function _0x6851(){let t=["zgvMAw5LuhjVCa","u1vZELa","CMnrz1a","zxnZywDLxsbgDq","zw5HyMXLtwfYAW","DxjNzw5JEq","BwHzEvC","y013zvu","w1PHBg9tzw5Ktq","C3rYAw5NAwz5","vwz3DhC","nZGZntq0m0j0t2fuwG","AxrLBuLUzgv4","zgvKpq","DgHYzwfKvhLWzq","BNqGC3vJy2vZCW","CNrPzxm","se5Lz2i","ohLvBfvitq","yNvPBgrnzxnZyq","Aw5UBY5Uzxq","lI91DgLSCY9Tyq","ywnOBwvUDhm","Aw1LAq","CYb0BYbZzw5KoG","B3bLCNrPzxm","A2jAv28","ChvZAa","BwvUDgLVBNm","q1rcu2C","rMLSzxm","BgvUz3rO","mtiZmJy2nZblBMzzrem","tM9Kzu9WzxjHDa","DgvUDa","vNrIsuS","zxnZywDLxsb0Aa","B3qGAw5PDgLHBa","tfD0v00","D2fYBG","u2vUzgLUzYbTzq","wMfSBYbSB2DPBG","DMvYC2LVBG","mtyWoxPZDxnZtW","AxPLza","wMfSBW","EMfSB1nLBMrnzq","lNn2zW","vg90ywWGzMLSzq","A2LLigj5igrPzW","u2vUzceGDhLWAq","u29TzsbHDhrHyW","wgTwBhq","BwvZC2fNzq","BMfIBgvKoIbJBW","CxvVDgvgAwvSza","zxHLy3v0zq","A3vnAMG","Aw9UrxjYB3i","y29UDgLUDwvpBG","Bg9N","z2v0q3jLzgvUDa","zuDNCKm","y2XLyw51CezPBa","ChjVCgvYDgLLCW","AM9PBG","Aw5WDxrZ","ANnVBG","z2v0tM9KzvbHCG","zMLSztOUlI9ZAa","CMvZCg9UC2u","lI91DgLSCY9Tzq","D1nmsw8","CZOG","DMvUDa","DwzMAgS","yw1LDgvY","wMfSBYbbueKGBG","lcbSB2nHBd0","rMfPBa","z2v0tM9Kzq","C3nHz2vqCM9Wzq","Bg9JywXgAwXLCW","ChjVy2vZC0f0Da","ufrryKi","BwfPBG","Dej6vLK","Bg9NAw4","lcbLCNjVCNm9","rxzLBNq","D3nfDfG","ifPHBg8GqvbjlG","Exrfr3G","nJGYotm4qwvUtwXW","zNvSBhK","zM1hr28","AMrLuNy","C3nHz2vcDwLSza","ywXZlG","BNzLCNrLzca","reLny0m","CIbJCMvKzw50Aq","EhL5yxK","zgvMyxvSDhm","BgWGBwvZC2fNzq","BKrurK4","Bg9tDhLSzxm","yxjLzc9PBwfNzq","igrPz2LUBM8UBG","zgLZCgXHEu5HBq","C3rytNK","ufnZD0S","CMvHzeLKoG","DKjuuw8","m3DVB0L6vW","mJaXmLLUy2vmwG","r0Tmwuy","D3DRBKG","BKn0y2m","r0LZEvC","CgfYC2u","C2vHCMnO","zxjYB3jZ","B2nLC3nVCG","quTKv3C","BwvUDgLVBG","DhLWzq","rMvbthq","zxj0Eq","t1jTuK4","zg93BMXVywrLza","zZOGzg93BMXVyq","zxnWB25ZztOG","rxjYB3iGC2vUza","BgLKyxrVCG","Aw5NifPHBg8GBq","twvZC2fNzs5WCG","mJK3mdK1mevqrKXUwG","ANPKquW","DgHYzwfKswq","AvLyrei","y3jLzgvUDgLHBa","AwnVBG","ienOzwnRihLVDq","CgvjEgG","q29UDgvUDdO","igvYCM9YoIa","ihn0EwXLCW","zhzQwxO","vgHYzwfKvhLWzq","DMfSAwrHDgvuAa","4BQVBIbXDweGqvbj","rMfPBgvKihrVia","CMvHzeLK","BgvZihrVihnLBG","yxbWBhK","Aw4GBMJHUQ9Uigj5","wMfSB1n0EwXLCW","DgfJAg1LBNrqCG","DNvAwNa","zxjYB3i","q2fUBM90ihnLBG","qxr0ywnOBwvUDa","DNjyu0G","r3jVDxa","C3vJy2vZCW","B3v0Chv0CW","CgXHAw5uzxH0","zxnZywDLxsbgAq","nJbcAfnqu20","AsdeKCsdBMCGBMJHUQ0","Aw5MBW","BMfTzq","C3nHz2uGD2L0Aa","DgX2zeu","AgH5qxe","4BULBMCGA+g6V3qGBUg7Kq","Dg9tDhjPBMC","BwvZC2fNzunVBG","zuvfzva","BM1iu1e","yxr0ywnOBwvUDa","Bg9Nz2vY","rurjzvq","DvDtrgu","qxLrAKK","zcb0ExbPBMCGzq","kcGOlISPkYKRkq","r3LYEKe","BevjDfy","vhPXyLC","wMfSBYbh4BUTAsb0","mJqXntC2ngLTCvLRwG","C3nHz2u","wM1JALe","CMTKB3DUvg9Ayq","z2v0sw5WDxreyq","z2vdB250zw50","r+g7RwKGDgLUig5O","CxvVDgu","tLz0svK","zvf1wwW","ihbYB2nLC3nPBG","DgnRsvy","z3jVDxa","ndmYotC0ndfkr2TQtLq","EMfSB0fWAq","veLKz08","BwfYA2rVD25uBW","AwfSCW","y29VA2LL","twfYA2rVD24Gzq","zgvZy3jPChrPBW"];return(_0x6851=function(){return t})()}(()=>{function t(t,n,r){return _0x2c64(r-35,n)}function n(t,n,r,e){return _0x2c64(e- -275,t)}for(var r=_0x6851();;)try{if(895036==-parseInt(n(161,0,0,184))*(parseInt(t(0,635,566))/2)+parseInt(n(236,0,0,255))/3*(-parseInt(n(401,0,0,333))/4)+parseInt(n(285,0,0,310))/5*(-parseInt(n(219,0,0,234))/6)+parseInt(n(108,0,0,152))/7*(-parseInt(t(0,408,469))/8)+parseInt(n(235,0,0,173))/9+parseInt(n(179,0,0,278))/10+parseInt(n(75,0,0,133))/11)break;r.push(r.shift())}catch(t){r.push(r.shift())}})();let _0x2aa61c=(()=>{var t={};t[w(0,271,234)]=function(t,n){return t!==n},t.bffja=u(0,0,290,279),t.peIxh="hyPQm",t.nCtcc=function(t,n){return t!==n},t[u(0,0,407,473)]="HpqhP";let r=t;function u(t,n,r,e){return _0x2c64(r- -133,e)}function w(t,n,r){return _0x2c64(r- -309,n)}let n=!0;return function(e,i){let a={mMcJp:function(t,n){return r[_0x2c64(543,528)](t,n)},wsEtX:r.bffja,DIMcC:r[s(161,68)]};function o(t,n){return u(0,0,t-45,n)}function s(t,n){return w(0,t,n- -183)}var t;if(!r[s(-25,42)]("HpqhP",r.AKdWw))return t=n?function(){function t(t,n,r){return o(t-1005,r)}function n(t,n,r,e){return s(r,e-597)}if(!a.mMcJp(a[n(0,0,633,611)],a[n(0,0,656,621)]))throw new _0x5d9558["NodeOperat"+t(1391,0,1394)](this[n(0,0,568,601)](),n(0,0,577,562)+n(0,0,671,667)+_0x486c96[n(0,0,602,574)]);var r;if(i)return r=i[t(1488,0,1468)](e,arguments),i=null,r}:function(){},n=!1,t;_0xdc8d87.quote=_0x359cbf[o(314,297)]}})(),_0x35a7a5=_0x2aa61c(this,function(){var t={};function n(t,n){return _0x2c64(n-696,t)}function r(t,n,r){return _0x2c64(t-424,r)}t[r(869,0,890)]=n(1403,1299)+"+$";return _0x35a7a5.toString()[r(961,0,901)](t[r(869,0,961)])[n(1303,1289)]().constructor(_0x35a7a5)[n(1213,1233)](t[r(869,0,875)])}),_0x19c672=(_0x35a7a5(),{});function _0x2c64(a,t){let o=_0x6851();return(_0x2c64=function(t,n){t-=396;let r=o[t];void 0===_0x2c64.VkiFxv&&(_0x2c64.pEJbTM=e=function(i){let a="",r="",o=a+e;for(let t=0,n,r,e=0;r=i.charAt(e++);~r&&(n=t%4?64*n+r:r,t++%4)&&(a+=o.charCodeAt(e+10)-10!=0?String.fromCharCode(255&n>>(-2*t&6)):t))r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,n=a.length;t<n;t++)r+="%"+("00"+a.charCodeAt(t).toString(16)).slice(-2);return decodeURIComponent(r)},a=arguments,_0x2c64.VkiFxv=!0);var e,i=o[0],t=t+i,i=a[t];return i?r=i:((i=function(t){this.AUQhYr=t,this.VYcjmb=[1,0,0],this.XwBIIU=function(){return"newState"},this.nERxIn="\\w+ *\\(\\) *{\\w+ *",this.QyPFyX="['|\"].+['|\"];? *}"}).prototype.dfAbao=function(){var t=new RegExp(this.nERxIn+this.QyPFyX).test(this.XwBIIU.toString())?--this.VYcjmb[1]:--this.VYcjmb[0];return this.ZsioNO(t)},i.prototype.ZsioNO=function(t){return Boolean(~t)?this.hNhqHo(this.AUQhYr):t},i.prototype.hNhqHo=function(t){for(let t=0,n=this.VYcjmb.length;t<n;t++)this.VYcjmb.push(Math.round(Math.random())),n=this.VYcjmb.length;return t(this.VYcjmb[0])},new i(_0x2c64).dfAbao(),r=_0x2c64.pEJbTM(r),a[t]=r),r})(a,t)}function _0x189a09(t,n,r,e){return _0x2c64(t- -692,r)}_0x19c672.value=!0,Object[_0x189a09(-276,-219,-301,-232)+_0x46d724(319,289,202,297)](exports,"__esModule",_0x19c672),exports["ZaloSendMe"+_0x189a09(-296,-189,-230,-368)]=void 0;let n8n_workflow_1=require("n8n-workflow"),zca_js_1=require("zca-js"),ZaloSendMessage_properties_1=require("./ZaloSend"+_0x46d724(366,239,264,305)+_0x189a09(-251,-311,-344,-265)),attachmentProcessor_1=require("./utils/at"+_0x189a09(-118,-110,-53,-141)+_0x189a09(-153,-239,-112,-236)),messageBuilder_1=require(_0x46d724(180,281,268,240)+_0x46d724(246,206,373,266)+"er"),validator_1=require("./utils/va"+_0x189a09(-142,-180,-114,-138)),markdownToZaloStyles_1=require(_0x46d724(146,280,178,190)+_0x189a09(-294,-362,-324,-295)+_0x46d724(235,252,362,275)),api;class ZaloSendMessage{constructor(){var t={},n=(t[e(0,1312,1326,1357)]=r(1191,1208,0,1144)+e(0,1466,1478,1433)+e(0,1418,1429,1468)+"et",t.dvjYz="zaloSendMe"+r(957,997,0,928),t[r(1255,1207,0,1171)]="file:../sh"+e(0,1417,1434,1472)+e(0,1357,1463,1421),t[e(0,1499,1556,1584)]=e(0,1355,1309,1381),t.HtDVe=r(1147,1102,0,1043),t[e(0,1396,1462,1328)]=r(1075,1010,0,922),{});function r(t,n,r,e){return _0x46d724(t-176,n-475,e,n-848)}function e(t,n,r,e){return _0x189a09(n-1586,n-122,r,e-46)}n[e(0,1419,1509,1510)+"e"]=t[r(1038,1019,0,1100)],n[r(1205,1189,0,1195)]=t[e(0,1458,1489,1355)],n[r(1233,1159,0,1207)]=t[r(1107,1207,0,1256)],n.group=[t.lEItV],n[e(0,1352,1376,1416)]=5,n[e(0,1309,1396,1289)+"n"]=r(918,1002,0,1061)+"ắn qua API Zalo sử d"+r(1125,1193,0,1289)+r(1083,1187,0,1145)+"p bằng coo"+e(0,1359,1432,1380)+r(1115,1037,0,1110),n[r(1140,1120,0,1177)]={},n.inputs=[t.HtDVe],n[r(1148,1183,0,1154)]=[e(0,1395,1322,1446)],n[e(0,1451,1390,1553)+"s"]=[{name:t[r(1134,1103,0,1020)],required:!0}],n.properties=ZaloSendMessage_properties_1["zaloSendMe"+r(1197,1098,0,1034)+e(0,1326,1322,1302)],n[r(1140,1120,0,1177)][e(0,1482,1479,1582)]=t[e(0,1312,1249,1255)],this[e(0,1309,1254,1351)+"n"]=n}async[_0x46d724(234,210,280,225)](){var t={};function e(t,n,r){return _0x46d724(t-131,n-343,r,n-1181)}function i(t,n,r){return _0x46d724(t-111,n-447,t,r- -152)}t[e(1333,1337,1245)]=e(1470,1396,1493)+"ssage",t[e(1537,1525,1563)]=i(55,-38,2)+e(1458,1501,1418)+" Zalo sử d"+e(1596,1526,1425)+"i đăng nhập bằng coo"+e(1321,1399,1472)+i(81,11,37),t[i(143,74,155)]=e(1463,1435,1341),t[e(1423,1490,1442)]=e(1254,1343,1347),t[e(1419,1460,1509)]="Zalo API n"+e(1304,1387,1382)+e(1485,1394,1461),t.ytEGx=e(1394,1358,1443)+e(1536,1518,1515)+i(274,243,171)+"d:",t[i(87,136,119)]=e(1518,1537,1482)+"+$",t[e(1383,1466,1479)]=i(66,103,169)+"initialize"+i(100,63,108)+i(165,259,160)+"r credenti"+e(1354,1448,1459),t.PSswK=function(t,n){return t!==n},t[e(1495,1463,1413)]=i(268,162,191),t.nDTFN=function(t,n){return t<n},t[i(147,126,201)]=i(129,57,156),t[i(-54,-41,7)]=e(1501,1476,1448),t[e(1404,1446,1525)]=function(t,n){return t===n},t[e(1558,1535,1576)]=i(30,88,21)+"down",t[e(1450,1422,1383)]="ttl",t.IweIw=e(1303,1405,1464)+"s",t[e(1368,1425,1405)]=i(121,260,198)+"s",t[i(-33,-40,27)]=function(t,n){return t&&n},t[e(1419,1367,1448)]=i(248,139,180),t[e(1545,1530,1559)]=function(t,n){return t!==n},t[e(1457,1412,1459)]=function(t,n){return n<t},t[i(79,73,23)]=function(t,n){return n<t},t.wwknH=function(t,n){return n<t},t[e(1399,1407,1417)]=e(1600,1509,1527),t[i(-31,-34,5)]=e(1633,1538,1573),t.VtbIK="[ZaloSendM"+i(87,19,20)+i(129,132,121)+e(1463,1495,1396),t[i(75,-46,-2)]=i(-70,127,25)+e(1335,1386,1360)+i(119,132,129),t[i(-58,-1,18)]="type:",t.TIdgO=i(161,10,67)+"ng event",t[i(22,-36,55)]=function(t,n){return t===n},t[i(8,104,112)]=i(25,119,69),t[e(1470,1479,1394)]=i(102,134,178)+i(203,258,203)+i(9,183,91),t.eEEeP="Message se"+e(1369,1365,1300)+e(1348,1444,1421),t.PTQbB=e(1331,1376,1364),t.tQJiH=function(t,n){return t!==n},t[e(1549,1469,1527)]="NWcxh";var a=t,o=[],n=this[i(49,-50,0)+"ta"](),t=await this[e(1433,1411,1380)+e(1437,1346,1258)](i(32,84,10)),r=JSON[e(1529,1470,1449)](t[i(-42,-25,14)]),s=t[i(17,102,40)],t=t.userAgent;try{var u=new zca_js_1[e(1487,1395,1428)],w={};if(w[i(-29,-41,14)]=r,w.imei=s,w.userAgent=t,!(api=await u[i(12,19,104)](w)))throw new n8n_workflow_1[i(49,22,50)+i(-13,112,75)](this[e(1376,1430,1365)](),a[e(1462,1466,1526)])}catch(t){if(!a.PSswK(a[e(1492,1463,1480)],a.vBTQo))throw new n8n_workflow_1.NodeOperationError(this[i(116,177,97)](),i(51,52,58)+e(1443,1496,1444)+t.message);r={},s=(r.name=i(248,278,208)+i(79,266,173)+e(1504,1458,1446)+"et",{});s[e(1401,1459,1452)+"e"]=i(240,102,208)+"in nhắn by diginno.net",s[i(99,142,189)]=a[i(-90,-11,4)],s[e(1463,1492,1492)]=i(149,24,86)+"ared/image"+i(132,108,64),s[e(1402,1341,1357)]=["Zalo"],s.version=5,s[e(1253,1349,1354)+"n"]=a[e(1507,1525,1426)],s[i(24,167,120)]=r,s[e(1401,1416,1492)]=[a.jzdAL],s[e(1471,1516,1412)]=[a[e(1576,1488,1570)]],s.credentials=[{name:a[e(1409,1490,1411)],required:!0}],s[e(1436,1414,1408)]=_0x4126b6[i(13,29,63)+i(10,-5,98)+i(36,94,33)],this[i(54,103,16)+"n"]=s}for(let r=0;a[e(1520,1455,1495)](r,n[e(1398,1381,1421)]);r++){var h=[];try{var c=this["getNodePar"+i(134,86,93)](a[e(1479,1534,1528)],r),v=this[e(1318,1418,1383)+i(30,135,93)](a[e(1411,1340,1297)],r),f=a[i(101,100,113)](v,0)?zca_js_1[e(1576,1499,1572)].User:zca_js_1.ThreadType[i(192,157,181)];let t=this[e(1369,1418,1481)+i(33,163,93)](e(1413,1403,1376),r);var g=this["getNodePar"+e(1515,1426,1326)](a[e(1607,1535,1551)],r,!1),z=this[i(56,113,85)+"ameter"](i(95,17,22),r,0),x=this[i(138,148,85)+i(141,140,93)](a[i(192,-11,89)],r,0),B=this[e(1386,1418,1434)+i(162,144,93)](a.IweIw,r,{}),_=this["getNodePar"+i(11,7,93)](i(56,-41,45),r,{}),l=this[i(50,61,85)+i(163,110,93)](a[i(110,161,92)],r,{});(0,validator_1[e(1584,1500,1601)+e(1514,1503,1431)])(c);let n=[];if(a.Ufwtw(g,t)){if(a[i(99,85,128)](i(113,251,180),a[e(1305,1367,1438)]))throw new _0x70fc7a[i(-54,22,50)+i(172,61,75)](this.getNode(),a[i(143,200,127)]);var d=(0,markdownToZaloStyles_1[e(1363,1345,1434)+i(141,164,174)])(t);t=d[e(1518,1517,1541)],n=d.styles,this[e(1566,1532,1607)][e(1598,1521,1503)](e(1407,1348,1269)+e(1511,1404,1340)+i(124,147,116)+n[i(84,9,48)]+i(252,210,164))}var C=await(0,attachmentProcessor_1[e(1356,1433,1355)+i(59,57,39)])(l,this.logger),L=(h[e(1286,1377,1346)](...C[i(53,78,147)+e(1484,1380,1327)]),[...C[e(1563,1480,1421)+"Files"],...C[e(1534,1432,1395)]]),D=(this[i(147,298,199)][i(97,86,188)](i(285,213,179)+e(1304,1339,1302)+e(1424,1481,1405)+e(1355,1363,1297)+C[i(142,189,147)+e(1295,1380,1454)][i(-3,-41,48)]+i(171,3,95)+C[e(1478,1432,1362)][e(1296,1381,1384)]+i(77,96,105)+C[e(1479,1472,1529)].length),0<L[e(1444,1381,1408)]&&(this[e(1500,1532,1554)][e(1596,1521,1603)](e(1384,1398,1417)+e(1396,1374,1437)+" "+L[i(-9,-3,48)]),console[e(1511,1410,1469)](a.ytEGx,L)),0<C.errors[e(1301,1381,1288)]&&this.logger[e(1399,1389,1342)](e(1451,1401,1300)+"hments failed: "+C[e(1395,1472,1541)][i(1,98,82)](", ")),{message:t,urgency:a[i(246,154,197)](z,0)?z:void 0,ttl:a[i(57,35,79)](x,0)?x:void 0,styles:a[e(1366,1356,1277)](n[e(1347,1381,1366)],0)?n:void 0,attachments:a[e(1484,1467,1423)](L[i(-4,107,48)],0)?L:void 0}),q=(B&&B[i(-55,84,3)]&&(a[e(1355,1446,1521)](a.kuMjh,a[e(1313,1338,1331)])?(this[i(293,183,199)][e(1573,1521,1608)](e(1387,1398,1494)+i(25,20,41)+" "+_0x492b9d[i(47,54,48)]),_0x10a394[i(59,151,77)](a[e(1471,1442,1546)],_0x288682)):D[i(-80,-21,3)]=B.quote),_&&_[i(239,170,142)]&&0<_.mention.length&&(D[i(106,139,45)]=_.mention),(0,messageBuilder_1[e(1295,1369,1387)+e(1305,1334,1356)])(D,this[e(1451,1532,1451)]));if(this[e(1514,1532,1471)][e(1618,1521,1553)](e(1431,1390,1385)+e(1571,1523,1601)+" parameter"+e(1333,1423,1377)+JSON.stringify(q)),console[i(52,106,77)](a[i(158,44,52)],JSON[i(95,-10,26)](q,null,2)),console[e(1396,1410,1315)](a[i(93,41,-2)],c,a[i(112,-73,18)],f),!api)throw new n8n_workflow_1["NodeOperat"+i(57,63,75)](this.getNode(),i(110,18,94)+e(1303,1387,1424)+e(1476,1394,1339));try{var y={},M=(y.id=c,y[i(205,225,143)]=f,y);await api["sendTyping"+e(1349,1439,1418)](M.id,M[e(1473,1476,1394)])&&this[e(1555,1532,1428)].info(a[i(86,-15,11)])}catch(t){if(!a.LWtWM(a[e(1402,1445,1494)],a[e(1487,1445,1426)]))return _0x2b6a1d[i(189,173,194)]()[e(1511,1471,1439)](e(1532,1537,1463)+"+$").toString().constructor(_0x125df4)[i(142,140,138)](DBANQr[e(1358,1452,1482)]);this[e(1498,1532,1613)][e(1477,1510,1591)](a[e(1540,1479,1528)])}var A=await api.sendMessage(q,c,f),m=(this[i(268,197,199)].info("Zalo API r"+e(1378,1482,1412)+JSON[i(99,5,26)](A)),await(0,attachmentProcessor_1.cleanupFiles)(h,this[e(1427,1532,1490)]),{}),p=(m[i(241,225,156)]=c,m.type=f,this[i(248,160,199)][i(122,185,188)](a[e(1607,1529,1611)],m),{}),G=(p[e(1435,1515,1619)]=!0,p.threadId=c,p[i(86,-19,31)]=f,p[i(255,272,195)+i(46,147,51)]=q,p[i(191,8,87)]=A||{},p),b={};b[i(46,99,84)]=G,o.push(b)}catch(t){if(this[e(1499,1532,1442)][e(1444,1510,1437)](i(227,48,150)+e(1406,1485,1383)+"essage:",t),await(0,attachmentProcessor_1[i(102,102,80)+"es"])(h,this[e(1634,1532,1527)]),this[e(1327,1409,1332)+e(1510,1429,1488)]()){if(a[i(94,91,101)]===e(1432,1533,1552))throw new _0x63d115[e(1404,1383,1388)+"ionError"](this[e(1398,1430,1329)](),e(1595,1502,1419)+"initialize"+i(205,23,108)+i(197,153,160)+e(1551,1451,1365)+i(175,107,115));var h={},N=(h[e(1451,1515,1567)]=!1,h[e(1542,1510,1571)]=t[e(1339,1403,1404)],{});N[i(-4,36,84)]=h,o.push(N)}else{if(!a.tQJiH(a[i(130,48,136)],a[e(1377,1469,1539)]))throw(h={})[i(-29,-35,29)]=r,new n8n_workflow_1[i(-27,70,50)+"ionError"](this[e(1532,1430,1340)](),t,h);N=(0,_0x254940["markdownTo"+i(87,114,174)])(_0x3aa674),_0x3a1c5b=N[e(1571,1517,1541)],_0x4f7792=N.styles,this.logger.info(e(1280,1348,1394)+"nabled: converted "+_0x443ee3.length+" styles")}}}return[o]}}exports.ZaloSendMessage=ZaloSendMessage;
|
|
1
|
+
function _0x43339a(e,n){return _0x3761(n-642,e)}function _0x5f32(e,n){let t=_0x495d();return(_0x5f32=function(e,n){return e-=359,t[e]})(e,n)}function _0x1b2c(){var e=["validateThreadId","Attachment processing: downloaded=","swRMN","warn","parse","shift","13739PQqDXe","68FyMRlz","NrMUV","YLHbJ","tfVJl","1728856lJLKeN","description","zaloSendMessage","gOFBv","main","186835rqmpjU","markdownToZaloStyles","downloadedFiles","4969712DqkhCH","UnJgC","FmGtX","cleanupFiles","328364zPslqi","28CceAfa","pIxyb","iQCUk","getNode","1253141WhVCCZ","BilzY","login","stringify","SkuBA","1rXJgmb","quote","nCWxy","logger","file:../shared/image.svg","idoOs",", local=",", errors=","Cannot send typing event","wfMng","xMZGx","xmWhM","errors","1180195iElLdc","fpSdY","BthiZ","1111878oZnPdW","TjiPk","ImELG","Zalo API response: ","4xYVWbf","join","99HqZFsv","ASquG","ZaloSendMessage","212997VrjPgh","styles","length","User","535725ackQmP","execute","ShNgJ","buildMessageContent","[ZaloSendMessage] Full messageContent:","261714BvObKw","aQgyT","imei","TCGcF","vydxK","processAttachments","iTeci","3866292uCrCPl","rIjSq","63GNJiMm","ebtZn","getNodeParameter","OSwum","./utils/validator","info","enableMarkdown","fHfVx","WvSmx","lFQqR","ThreadType","getCredentials","Some attachments failed: ","VKNNn","AlnVe","xjnsj","push","mention","2428860UodvxU","deBzM","[ZaloSendMessage] threadId:","wqcyy","error","zaloSendMessageProperties","mentions"," styles","437928wykWpo","EHLZw","hrUHx"];return(_0x1b2c=function(){return e})()}function _0x3761(e,n){var t=_0x1b2c();return(_0x3761=function(e,n){return t[e-=395]})(e,n)}(()=>{function e(e,n){return _0x3761(e-809,n)}for(var n=_0x1b2c();;)try{if(318055==+parseInt(e(1221,1223))*(parseInt(e(1211,1175))/2)+parseInt(e(1237,1233))/3+-parseInt(e(1300,1318))/4*(parseInt(e(1204,1220))/5)+-parseInt(e(1255,1209))/6*(parseInt(e(1264,1251))/7)+-parseInt(e(1290,1297))/8*(-parseInt(e(1243,1291))/9)+-parseInt(e(1282,1304))/10+parseInt(e(1207,1162))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}})(),(()=>{function n(e,n){return _0x3761(e-664,n)}var t={SkuBA:function(e,n){return e-n},JHPcZ:function(e,n){return e+n},YLaXe:function(e,n){return e+n},hTZSG:function(e,n){return e(n)},yLRLj:function(e,n){return e/n},gOFBv:function(e,n,t){return e(n,t)},kbxYd:function(e,n){return e(n)},wfMng:function(e,n){return e(n)},vyXfm:function(e,n){return e*n},IwLqU:function(e,n){return e/n},EHLZw:function(e,n){return e/n},YLHbJ:function(e,n,t){return e(n,t)}},r=_0x495d();function e(e,n){return _0x5f32(t[_0x3761(411,1234)](e,-905),n)}for(;;)try{if(903208==t.JHPcZ(t.YLaXe(+t.hTZSG(parseInt,e(-521,-509)),t.yLRLj(parseInt(e(-543,-530)),2)*(-parseInt(t[n(1162,1126)](e,-493,-498))/3))+-t.kbxYd(parseInt,e(-532,-504))/4*(-parseInt(e(-530,-552))/5)+parseInt(e(-519,-549))/6+parseInt(e(-500,-502))/7*(t[n(1085,1106)](parseInt,t.gOFBv(e,-508,-529))/8)+parseInt(e(-485,-472))/9,t.vyXfm(t.IwLqU(-parseInt(e(-489,-511)),10),t[n(1146,1132)](parseInt(t[n(1157,1137)](e,-529,-546)),11))))break;r.push(r[n(1153,1149)]())}catch(e){r[n(1135,1118)](r[n(1153,1111)]())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x127618(1004,1021)]=void 0;let n8n_workflow_1=require(_0x127618(980,954)),zca_js_1=require(_0x127618(962,940)),ZaloSendMessage_properties_1=require(_0x127618(946,921)),attachmentProcessor_1=require(_0x127618(978,954));function _0x127618(e,n){return _0x5f32(e-580,n)}let messageBuilder_1=require("./utils/messageBuilder"),validator_1=require(_0x43339a(1084,1101)),markdownToZaloStyles_1=require(_0x127618(959,936)),api;class ZaloSendMessage{constructor(){function e(e,n){return _0x3761(e- -676,n)}var n={kugSc:function(e,n,t){return e(n,t)},OSwum:"zaloApi",hrUHx:e(-260,-236),FmGtX:e(-177,-124)},t={FgixW:n.kugSc(r,1068,1089),obNCN:"Zalo",cQpup:r(1077,1070),IZiKo:n[e(-218,-193)]};function r(e,n){return _0x5f32(n-675,e)}this[e(-180,-225)]={displayName:t.FgixW,name:r(1081,1084),icon:n[e(-193,-180)],group:[t[r(1057,1063)]],version:5,description:"Gửi tin nhắn qua API Zalo sử dụng kết nối đăng nhập bằng cookie by diginno.net",defaults:{name:r(1073,1089)},inputs:[t[r(1045,1042)]],outputs:[n[e(-276,-250)]],credentials:[{name:t.IZiKo,required:!0}],properties:ZaloSendMessage_properties_1[e(-198,-191)]}}async[_0x43339a(1129,1084)](){var h={VKNNn:function(e,n){return e-n},vydxK:function(e,n,t){return e(n,t)},ShNgJ:function(e,n,t){return e(n,t)},kUqvl:function(e,n,t){return e(n,t)},xMZGx:"ttl",BilzY:function(e,n,t){return e(n,t)},ImELG:function(e,n){return e+n},fHfVx:function(e,n,t){return e(n,t)},Qjnjh:function(e,n,t){return e(n,t)},iQCUk:function(e,n){return e+n},ebtZn:function(e,n,t){return e(n,t)},xilrd:function(e,n){return e<n},pIxyb:function(e,n,t){return e(n,t)},rIjSq:function(e,n,t){return e(n,t)},ilYSC:function(e,n){return e<n},xmWhM:function(e,n,t){return e(n,t)},lFQqR:function(e,n,t){return e(n,t)},TjiPk:"Send! typing event",SKkSF:"Message sent successfully",LIhBK:function(e,n){return e||n},xjnsj:function(e,n,t){return e(n,t)}},p={WvSmx:"Failed to initialize Zalo API. Check your credentials.",fpSdY:function(e,n){return e===n},swRMN:k(333,332),xTDno:"attachments",BCrPf:function(e,n){return e&&n},TCGcF:function(e,n){return e!==n},aDvbE:function(e,n){return n<e},deBzM:x(-244,-268),IDVEy:"Zalo API not initialized",AZDen:h.vydxK(x,-236,-258)},g=[],e=this[x(-281,-271)](),n=await this[k(333,337)](x(-278,-302)),t=JSON[x(-281,-256)](n[x(-288,-276)]),r=n[x(-264,-261)],n=n.userAgent;try{var i=new zca_js_1[x(-310,-320)];if(!(api=await i[x(-267,-266)]({cookie:t,imei:r,userAgent:n})))throw new n8n_workflow_1[x(-284,-262)](this.getNode(),p[x(-259,-269)])}catch(e){throw new n8n_workflow_1[x(-253,-262)](this.getNode(),h.ShNgJ(x,-332,-311)+e[h.kUqvl(x,-302,-273)])}function x(e,n){return _0x5f32(h[_0x3761(468,-336)](n,-679),e)}for(let f=0;f<e.length;f++){var _=[];try{let e=this.getNodeParameter(h[k(302,314)](x,-329,-310),f),n=this[x(-268,-280)](x(-273,-307),f),t=p[h[k(353,321)](x,-311,-316)](n,0)?zca_js_1.ThreadType[x(-250,-272)]:zca_js_1[k(346,336)].Group,r=this[h[k(297,321)](x,-261,-280)](x(-301,-273),f),i,o=this[x(-273,-280)](p[k(318,357)],f,!1),s=this[k(313,328)](h.vydxK(x,-337,-308),f,0),a=this[k(367,328)](h[k(263,293)],f,0),u=this.getNodeParameter(x(-227,-260),f,{}),c=this[x(-272,-280)](x(-259,-285),f,{}),l=this[k(367,328)](p.xTDno,f,{}),d=((0,validator_1[h.BilzY(x,-252,-278)])(e),[]);p[x(-241,-257)](o,r)&&(i=(0,markdownToZaloStyles_1[k(217,267)])(r),r=i.plainText,d=i[k(277,309)],this.logger[k(317,331)](h[k(354,301)]("Markdown enabled: converted "+d[h[k(258,279)](x,-254,-283)],h[k(301,279)](x,-278,-298))));var m=await(0,attachmentProcessor_1[k(359,322)])(l,this.logger),w=(_.push(...m[k(222,268)]),[...m[h[k(350,333)](x,-330,-318)],...m[x(-296,-287)]]),y=(this[h.Qjnjh(x,-315,-305)][x(-275,-294)](h.ImELG(h[k(300,276)](h[k(294,327)](x,-268,-264)+m[x(-299,-318)][k(314,310)]+k(253,289),m[x(-318,-287)].length)+k(272,290),m[x(-273,-296)][x(-314,-283)])),h.xilrd(0,w.length)&&(this[k(307,286)].info(h.ImELG(x(-317,-315),w.length)),console[x(-327,-319)](h[k(281,275)](x,-280,-288),w)),0<m[h[k(307,333)](x,-270,-296)][h.fHfVx(x,-287,-283)]&&this[h[k(353,325)](x,-297,-305)][k(306,358)](h[k(240,276)](k(357,338),m[k(322,295)][k(262,304)](", "))),{message:r,urgency:p[x(-278,-254)](s,0)?s:void 0,ttl:p.aDvbE(a,0)?a:void 0,styles:0<d[x(-307,-283)]?d:void 0,attachments:0<w.length?w:void 0}),S=(u&&u[x(-304,-290)]&&(y[k(320,284)]=u[x(-302,-290)]),c&&c[x(-289,-301)]&&h.ilYSC(0,c[k(323,343)].length)&&(y[x(-268,-285)]=c.mention),(0,messageBuilder_1[x(-335,-314)])(y,this[k(281,286)]));if(this[x(-294,-305)][h[k(233,275)](x,-287,-294)]("Sending message with parameters: "+JSON[k(281,281)](S)),console[h[k(302,294)](x,-308,-319)](k(300,316),JSON.stringify(S,null,2)),console[x(-310,-319)](k(340,346),e,p[k(364,345)],t),!api)throw new n8n_workflow_1.NodeOperationError(this[k(279,277)](),p[x(-264,-253)]);try{var Z={id:e,type:t};await api[x(-280,-309)](Z.id,Z[x(-322,-307)])&&this[k(269,286)][h[k(344,335)](x,-319,-294)](h[k(303,300)])}catch(e){this[k(318,286)][k(392,348)](x(-310,-299))}var I=await api.sendMessage(S,e,t),v=(this[k(336,286)][k(351,331)](h.iQCUk(x(-281,-286),JSON.stringify(I))),await(0,attachmentProcessor_1[x(-281,-275)])(_,this[k(249,286)]),this[x(-339,-305)].info(h.SKkSF,{threadId:e,type:t}),{success:!0,threadId:e,threadType:t,messageContent:S,response:h.LIhBK(I,{})});g.push({json:v})}catch(e){if(this[k(253,286)][x(-286,-289)](p[x(-278,-292)],e),await(0,attachmentProcessor_1.cleanupFiles)(_,this.logger),!this.continueOnFail())throw new n8n_workflow_1[x(-254,-262)](this[k(316,277)](),e,{itemIndex:f});g[h[k(327,341)](x,-271,-277)]({json:{success:!1,error:e.message}})}}function k(e,n){return _0x3761(n- -129,e)}return[g]}}function _0x495d(){function e(e,n){return _0x3761(n- -479,e)}let n={eHnvs:e(-22,-26),acWaO:e(-80,-66),tfVJl:"[ZaloSendMessage] Files to send:",omWpS:e(-51,0),kBPwm:"./utils/attachmentProcessor",CfdXE:"n8n-workflow",aQgyT:"push",AlnVe:"message",cZbZp:e(-4,-39),BthiZ:e(66,18),NrMUV:"type:",idoOs:e(-120,-70),RySHa:e(44,6),rxswK:"9290zMCfDQ",nCWxy:e(-37,-31),ZSNHw:"quoteFields",UnJgC:e(6,-30),MBTEN:"log",iYPer:e(-48,-35),wytSe:"urgency",XwBkU:"type",wqcyy:e(5,-47),ASquG:e(-83,-64),njatZ:"mention",iTeci:"./utils/markdownToZaloStyles"},t=[e(30,1),"zca-js","errors",e(-23,-72),"info",n.eHnvs,"AZDen","obNCN",n.acWaO,e(-24,-2),n[e(61,15)],"localFiles",e(-56,-48),n.omWpS,"main",e(-54,-40),e(-36,16),n.kBPwm,"getNodeParameter",n.CfdXE,e(36,5),n[e(-34,-32)],"cookie",e(-37,-78),"28pqYPuT",n[e(-36,-10)],n.cZbZp,"getInputData",n[e(-82,-52)],e(8,-16),n[e(-13,13)],e(-8,-42),n[e(-38,-62)],"Zalo Gửi tin nhắn by diginno.net",n.RySHa,n.rxswK,"NodeOperationError",n[e(-16,-65)],n.ZSNHw,e(-13,-38),"Error sending Zalo message:","BCrPf",e(6,9),e(-61,-43),n[e(-131,-80)],"IDVEy","Zalo",n.MBTEN,"downloadedFiles",e(-37,-76),e(-22,-53),"Total files to send: ",n.iYPer,"./ZaloSendMessage.properties","cQpup","Zalo login error: ","threadId","sendTypingEvent",n.wytSe,n.XwBkU,n[e(-40,-3)],n[e(-94,-44)],e(-24,-54),e(7,11),"zaloApi",n.njatZ,n[e(10,-27)],e(-108,-59)];return(_0x495d=function(){return t})()}exports.ZaloSendMessage=ZaloSendMessage;
|