-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGenerateCSV.js
1 lines (1 loc) · 12 KB
/
GenerateCSV.js
1
(function(_0x260fa7,_0xc995ea){const _0x2e9faf=_0x260fa7();function _0x4c7797(_0x161039,_0xbea859,_0xbbe766,_0x83aa75){return _0x2ef3(_0x161039- -0x1fd,_0x83aa75);}function _0x2a82a3(_0x1eb3d8,_0x5a3f08,_0x36d695,_0x2d15b1){return _0x2ef3(_0x1eb3d8- -0x3c,_0x36d695);}while(!![]){try{const _0x16e738=parseInt(_0x4c7797(0x18,0xb,0x13,0x16))/(0x82*-0x8+-0x159f+0x890*0x3)*(-parseInt(_0x2a82a3(0x1ed,0x1f4,0x1e1,0x201))/(-0x9*-0x1b+0x1*-0xac9+0x9d8))+-parseInt(_0x4c7797(0x16,0x17,0x1d,0x13))/(-0x1924+0x4bd*0x5+-0x1*-0x176)*(parseInt(_0x4c7797(0x20,0x7,-0x3,0x2))/(0xd85*-0x2+0x6a1*-0x1+-0x1*-0x21af))+parseInt(_0x4c7797(0x25,-0x1,0xe,0x44))/(-0xd87+0x1387*0x2+-0x1982)*(parseInt(_0x2a82a3(0x1ec,0x1ee,0x1f1,0x1e6))/(0x832*-0x1+-0x118+0x950))+parseInt(_0x4c7797(0x12,0x12,-0xd,0x16))/(-0x3df*0x4+-0x131b*-0x1+-0x398)+parseInt(_0x4c7797(0x26,0x0,0x11,0x27))/(0x1c0*0x1+-0x2f2+0x13a)+parseInt(_0x2a82a3(0x1b3,0x1cd,0x1c0,0x1d0))/(0x426+0x26c3+-0x10*0x2ae)+parseInt(_0x4c7797(0x33,0x56,0x2b,0x33))/(-0x4*0x9ac+-0xe*0x3d+0x2a10);if(_0x16e738===_0xc995ea)break;else _0x2e9faf['push'](_0x2e9faf['shift']());}catch(_0x48136a){_0x2e9faf['push'](_0x2e9faf['shift']());}}}(_0x530d,-0x14ced*-0x4+0x54512+-0x277c7*0x3));function _0x530d(){const _0x20966e=['DAbnK','bind','utf8','LeZRn','119315YsIRPM','__proto__','Successful','ZcfiN','21xZGrDo','hOtGS','16IBfAos','tWIoc','RTjaP','BCD','doBpf','IeQnk','HdJLk','IDnCK','189368EZnJQG','ed\x20','parse','nction()\x20','search','246695gPCoUP','1689240APkscW','uYCip','NCyIK','exit','tSCuF','6RtmyrD','19644ogvMQE','json/','{}.constru','SQDiA','lecNX','prototype','iwpMc','744170oxrgNz','NCD','gpcMs','length','mBDQY','uplHX','tvqYm','pHRFI','YUBeJ','apply','return\x20(fu','3038967KsAdrQ','NLdFq','rn\x20this\x22)(','json-2-csv','.json','MhvZD','BSE','ctor(\x22retu','WdqWI','kVDyn','forEach','csv/','error','constructo','lvqIH','TPycl','sywyi','info','log','YZUJI','NSE','MasterScri','console','QpEQf','slFEx','MCX','toString','NYqxs'];_0x530d=function(){return _0x20966e;};return _0x530d();}const {readFile,writeFile}=require('fs')['promises'],{json2csvAsync}=require(_0x256f08(0x275,0x273,0x266,0x26a)),parseJSONFile=async function(_0x30a3da){function _0x1a338a(_0x2c6028,_0x5dde21,_0x274180,_0x281fb7){return _0x256f08(_0x281fb7,_0x5dde21-0x186,_0x274180-0xe5,_0x281fb7-0x53);}function _0x47770a(_0x15b71d,_0x362e95,_0x554000,_0x297118){return _0x256f08(_0x297118,_0x362e95-0xb,_0x554000-0x267,_0x297118-0x45);}const _0x47e5a9={'tSCuF':function(_0x345dab,_0x58622d){return _0x345dab(_0x58622d);},'iwpMc':function(_0x3e6cf3,_0x3cca0f){return _0x3e6cf3+_0x3cca0f;},'QpEQf':_0x47770a(0x4d9,0x4b5,0x4c9,0x4ed)+_0x1a338a(0x37e,0x380,0x379,0x378),'tvqYm':function(_0x13971e,_0x42e46f){return _0x13971e===_0x42e46f;},'WdqWI':'EOpkl','doBpf':function(_0x5dc90e,_0x714220){return _0x5dc90e(_0x714220);},'ZcfiN':function(_0x42dabe,_0x1aadf0){return _0x42dabe===_0x1aadf0;},'sywyi':'TPycl'};try{if(_0x47e5a9[_0x47770a(0x4c2,0x4d4,0x4c5,0x49f)](_0x47e5a9[_0x47770a(0x4d3,0x4f0,0x4d2,0x4c8)],'EOpkl')){const _0x3e9c59=await _0x47e5a9[_0x1a338a(0x35c,0x367,0x372,0x350)](readFile,_0x30a3da);return JSON[_0x1a338a(0x361,0x39e,0x378,0x35b)](_0x3e9c59);}else{const _0x1af8a7=oEFKhi[_0x47770a(0x4dc,0x4ec,0x502,0x51d)](_0x5e5e70,oEFKhi[_0x1a338a(0x397,0x369,0x388,0x37f)](oEFKhi['iwpMc'](oEFKhi[_0x1a338a(0x368,0x345,0x35f,0x342)],_0x1a338a(0x378,0x371,0x384,0x368)+_0x47770a(0x4b0,0x4d7,0x4d1,0x4c4)+_0x1a338a(0x363,0x353,0x34a,0x362)+'\x20)'),');'));_0x150ce0=_0x1af8a7();}}catch(_0x56f93d){if(_0x47e5a9[_0x1a338a(0x346,0x368,0x36b,0x36e)](_0x1a338a(0x35b,0x35c,0x357,0x335),_0x47e5a9[_0x47770a(0x4e5,0x4d8,0x4da,0x4e0)]))console[_0x47770a(0x4b8,0x4f5,0x4dc,0x4c9)](_0x56f93d),process[_0x1a338a(0x379,0x397,0x37f,0x35b)](-0x200e+-0xa3a+-0x2a49*-0x1);else{const _0x7e4f4=_0x564145[_0x47770a(0x4d9,0x4f2,0x4d7,0x4b1)+'r'][_0x47770a(0x4ec,0x528,0x509,0x512)]['bind'](_0x17f846),_0x5d783e=_0x2c2866[_0x3d8d41],_0x2e21eb=_0x68c846[_0x5d783e]||_0x7e4f4;_0x7e4f4[_0x1a338a(0x385,0x389,0x369,0x350)]=_0x1b25eb[_0x1a338a(0x342,0x35e,0x365,0x369)](_0x5baa8a),_0x7e4f4['toString']=_0x2e21eb[_0x47770a(0x4d0,0x4d5,0x4e4,0x4db)][_0x47770a(0x4ed,0x4e2,0x4e7,0x50b)](_0x2e21eb),_0x165a06[_0x5d783e]=_0x7e4f4;}}};function _0x2ef3(_0x4bcecc,_0x372a2a){const _0x1ed010=_0x530d();return _0x2ef3=function(_0x530dd0,_0x2ef318){_0x530dd0=_0x530dd0-(0x269b+-0x17*-0x107+-0x3c57);let _0x26a576=_0x1ed010[_0x530dd0];return _0x26a576;},_0x2ef3(_0x4bcecc,_0x372a2a);}function _0x256f08(_0xa19adc,_0x1cb3a3,_0x4dc41f,_0x5782cb){return _0x2ef3(_0x4dc41f-0x74,_0xa19adc);}const writeCSV=async function(_0x5331ad,_0x2fece4){function _0x2bc13d(_0x222592,_0x480a36,_0x133fdd,_0xfbd109){return _0x256f08(_0xfbd109,_0x480a36-0x123,_0x222592-0x33e,_0xfbd109-0x106);}function _0x42ab05(_0x95f7be,_0x440e81,_0x2d3f13,_0x80fff7){return _0x256f08(_0x80fff7,_0x440e81-0x1ef,_0x2d3f13- -0x8d,_0x80fff7-0x19b);}const _0xc0b39c={'uplHX':function(_0x238721,_0x529cc0,_0x53ad7a,_0x4e3efb){return _0x238721(_0x529cc0,_0x53ad7a,_0x4e3efb);},'mBDQY':_0x42ab05(0x1fe,0x1fc,0x1f4,0x1eb)};await _0xc0b39c[_0x42ab05(0x1ab,0x1b0,0x1d0,0x1e7)](writeFile,_0x5331ad,_0x2fece4,_0xc0b39c[_0x42ab05(0x1bb,0x1bc,0x1cf,0x1b4)]);},start=async function(){const _0x1d649a={'LeZRn':function(_0x2254b5,_0x19130c){return _0x2254b5===_0x19130c;},'Gxsnf':_0x440918(0x4e7,0x4cc,0x4e5,0x4e4),'slFEx':'(((.+)+)+)'+'+$','SQDiA':function(_0x335670,_0x140c63){return _0x335670!==_0x140c63;},'hOtGS':_0x440918(0x4bd,0x4ba,0x4d4,0x4d7),'SSxGv':function(_0x13fba6,_0xab705){return _0x13fba6!==_0xab705;},'NuwJt':_0x405ea1(-0x1c8,-0x1dd,-0x1e2,-0x1ec),'RTjaP':_0x440918(0x49d,0x4bb,0x4a6,0x49a),'pnAqQ':function(_0x582a13,_0x474501){return _0x582a13(_0x474501);},'Udtoe':function(_0x4960c6,_0x532d68){return _0x4960c6+_0x532d68;},'kVDyn':_0x440918(0x494,0x48d,0x49d,0x49b)+_0x405ea1(-0x1ca,-0x1af,-0x1ad,-0x1bd),'NLdFq':function(_0x54c45b){return _0x54c45b();},'lvqIH':_0x405ea1(-0x1b5,-0x1c3,-0x1cc,-0x1d2),'MhvZD':'exception','uYCip':'table','DAbnK':function(_0x2098e6,_0x4d4a08){return _0x2098e6(_0x4d4a08);},'OkUVB':function(_0x552a1f,_0x15d9ac,_0x7db094){return _0x552a1f(_0x15d9ac,_0x7db094);},'gpcMs':function(_0x3cc92c,_0x5f1eaf,_0x5f10eb){return _0x3cc92c(_0x5f1eaf,_0x5f10eb);},'tWIoc':_0x440918(0x4ab,0x4a2,0x49f,0x4a9),'NCyIK':_0x405ea1(-0x1c1,-0x1df,-0x1c5,-0x1e9)},_0x4ec833=(function(){const _0x3214a1={'NYqxs':function(_0x119757,_0x32576c){function _0x5e17a3(_0x3d81ab,_0x13571e,_0x59a667,_0x274d60){return _0x2ef3(_0x13571e-0x1d7,_0x59a667);}return _0x1d649a[_0x5e17a3(0x3ca,0x3e5,0x3eb,0x400)](_0x119757,_0x32576c);}};let _0x1a1c28=!![];return function(_0xf7fce4,_0x125ecc){const _0x138538=_0x1a1c28?function(){function _0x4b5c64(_0x4f216f,_0x356d7f,_0x41769c,_0x3e6abf){return _0x2ef3(_0x356d7f-0x36d,_0x3e6abf);}function _0x516664(_0x32c56a,_0x2cf08f,_0x584d1d,_0x1fb2d2){return _0x2ef3(_0x32c56a- -0x1d2,_0x2cf08f);}if(_0x3214a1[_0x516664(0x38,0x42,0x3c,0x1e)](_0x4b5c64(0x554,0x559,0x57c,0x578),_0x516664(0x48,0x30,0x6e,0x5c))){const _0x47aa1c=_0x30a707[_0x516664(0x1b,0x3b,0x24,0x3c)](_0xa2324c,arguments);return _0x78178c=null,_0x47aa1c;}else{if(_0x125ecc){const _0x3283d3=_0x125ecc[_0x4b5c64(0x57c,0x55a,0x574,0x53b)](_0xf7fce4,arguments);return _0x125ecc=null,_0x3283d3;}}}:function(){};return _0x1a1c28=![],_0x138538;};}()),_0x64dd63=_0x1d649a['OkUVB'](_0x4ec833,this,function(){function _0x364dd0(_0x3f8ae0,_0x16150a,_0x414f45,_0x5c2609){return _0x405ea1(_0x3f8ae0-0x60,_0x414f45,_0x5c2609-0x767,_0x5c2609-0x13e);}function _0x4c911b(_0x480a94,_0x3a722c,_0x372e35,_0x28fa87){return _0x405ea1(_0x480a94-0x1b5,_0x28fa87,_0x372e35-0xa4,_0x28fa87-0x5e);}if(_0x1d649a['Gxsnf']===_0x4c911b(-0x11a,-0x14b,-0x127,-0x133)){if(_0x146342){const _0x498228=_0x4893e6['apply'](_0x1595ee,arguments);return _0x1baa26=null,_0x498228;}}else return _0x64dd63[_0x4c911b(-0x106,-0x115,-0x120,-0x139)]()[_0x4c911b(-0x12a,-0x111,-0x108,-0xef)](_0x1d649a[_0x4c911b(-0xfc,-0x142,-0x122,-0x13a)])[_0x4c911b(-0x11a,-0x122,-0x120,-0x107)]()[_0x364dd0(0x598,0x58e,0x58c,0x596)+'r'](_0x64dd63)['search']('(((.+)+)+)'+'+$');});function _0x440918(_0x4c2e93,_0x46bdee,_0xd3bf5c,_0x3e89fb){return _0x256f08(_0xd3bf5c,_0x46bdee-0x144,_0x46bdee-0x22b,_0x3e89fb-0x1f1);}function _0x405ea1(_0x127f2c,_0x3ac8e5,_0x1f733c,_0xb48021){return _0x256f08(_0x3ac8e5,_0x3ac8e5-0x13b,_0x1f733c- -0x441,_0xb48021-0x63);}_0x1d649a[_0x440918(0x47e,0x48f,0x499,0x4a8)](_0x64dd63);const _0x331d30=(function(){function _0x3d8667(_0x292894,_0x404c1e,_0x589a16,_0x188d7a){return _0x440918(_0x292894-0x152,_0x188d7a- -0x63e,_0x589a16,_0x188d7a-0xb2);}if(_0x1d649a['SSxGv'](_0x1d649a['NuwJt'],_0x1d649a[_0x3d8667(-0x18e,-0x194,-0x1ab,-0x188)])){let _0x1d937c=!![];return function(_0x4f4615,_0x4bfc41){function _0x4a6f78(_0x26777f,_0x21df3a,_0x530dc2,_0x33067a){return _0x3d8667(_0x26777f-0x168,_0x21df3a-0x16f,_0x21df3a,_0x530dc2-0x71c);}function _0x2cc353(_0x1adf08,_0x1a172c,_0x54188c,_0x14d4db){return _0x3d8667(_0x1adf08-0xa5,_0x1a172c-0x16d,_0x1a172c,_0x54188c-0x470);}if(_0x1d649a[_0x4a6f78(0x5bb,0x5c2,0x5a9,0x596)](_0x1d649a[_0x2cc353(0x2eb,0x2c3,0x2e5,0x2e1)],'HdJLk')){const _0x3ceae2=_0x1c6c7e['apply'](_0x258005,arguments);return _0x48b45e=null,_0x3ceae2;}else{const _0x107908=_0x1d937c?function(){function _0x95ed22(_0x278175,_0x50af40,_0x157b09,_0x31e5c6){return _0x4a6f78(_0x278175-0x4d,_0x157b09,_0x50af40- -0x2ed,_0x31e5c6-0x1a9);}if(_0x4bfc41){const _0x1d5b34=_0x4bfc41[_0x95ed22(0x27e,0x27d,0x25d,0x274)](_0x4f4615,arguments);return _0x4bfc41=null,_0x1d5b34;}}:function(){};return _0x1d937c=![],_0x107908;}};}else _0x552923=_0x47aee8;}()),_0x530e54=_0x1d649a[_0x405ea1(-0x1d7,-0x1e0,-0x1e7,-0x1dc)](_0x331d30,this,function(){function _0x4638a4(_0x2878cc,_0x1c628f,_0x45c0a0,_0xa26a32){return _0x440918(_0x2878cc-0x153,_0x45c0a0- -0x29c,_0xa26a32,_0xa26a32-0x66);}function _0x3ccefa(_0x30ed94,_0x22a148,_0x1ba038,_0x420a7b){return _0x405ea1(_0x30ed94-0x9c,_0x420a7b,_0x30ed94-0x4ea,_0x420a7b-0x140);}let _0x1f5a17;try{const _0x5b0186=_0x1d649a['pnAqQ'](Function,_0x1d649a['Udtoe'](_0x1d649a[_0x3ccefa(0x315,0x2f0,0x304,0x316)],'{}.constru'+_0x3ccefa(0x313,0x32d,0x334,0x307)+_0x4638a4(0x1ed,0x20e,0x1f4,0x1e9)+'\x20)')+');');_0x1f5a17=_0x1d649a['NLdFq'](_0x5b0186);}catch(_0x49f41c){_0x1f5a17=window;}const _0x333c15=_0x1f5a17['console']=_0x1f5a17[_0x4638a4(0x1ec,0x224,0x208,0x1f4)]||{},_0x26f38d=[_0x1d649a[_0x3ccefa(0x31a,0x323,0x303,0x2fe)],'warn',_0x3ccefa(0x31d,0x32e,0x33b,0x322),_0x4638a4(0x21b,0x211,0x1fe,0x1f1),_0x1d649a[_0x4638a4(0x1e7,0x215,0x1f7,0x1f1)],_0x1d649a[_0x4638a4(0x236,0x213,0x227,0x22f)],'trace'];for(let _0x2255c4=-0x10ab*0x1+0xc12+-0x1*-0x499;_0x2255c4<_0x26f38d[_0x4638a4(0x1c5,0x1e3,0x1ea,0x1cd)];_0x2255c4++){const _0xbbef9c=_0x331d30[_0x3ccefa(0x319,0x33e,0x33e,0x30b)+'r'][_0x4638a4(0x250,0x218,0x231,0x230)][_0x4638a4(0x221,0x1fd,0x20f,0x1ec)](_0x331d30),_0x34a804=_0x26f38d[_0x2255c4],_0x3ec472=_0x333c15[_0x34a804]||_0xbbef9c;_0xbbef9c['__proto__']=_0x331d30[_0x3ccefa(0x329,0x312,0x347,0x31e)](_0x331d30),_0xbbef9c['toString']=_0x3ec472['toString'][_0x4638a4(0x20e,0x231,0x20f,0x1ff)](_0x3ec472),_0x333c15[_0x34a804]=_0xbbef9c;}});_0x1d649a[_0x440918(0x498,0x48f,0x49b,0x498)](_0x530e54);const _0x2b3612=[_0x405ea1(-0x1f3,-0x1f3,-0x1d8,-0x1f9),_0x1d649a[_0x405ea1(-0x1da,-0x1d4,-0x1b7,-0x1ae)],_0x440918(0x4d9,0x4b7,0x4d2,0x4cc),_0x405ea1(-0x1cf,-0x1c4,-0x1e8,-0x1d1),_0x1d649a[_0x440918(0x4d7,0x4c4,0x4be,0x4ac)],_0x440918(0x492,0x4a3,0x49e,0x4b0)+'pt'];_0x2b3612[_0x405ea1(-0x1f5,-0x1db,-0x1d4,-0x1d5)](async _0x2c31d8=>{const _0x27f068=await parseJSONFile(_0x268ea8(0x3c0,0x3e4,0x3c3,0x3d5)+_0x2c31d8+_0x268ea8(0x3b9,0x385,0x3bd,0x39e));function _0x268ea8(_0x21dbd4,_0x1325c4,_0x12d365,_0x538da0){return _0x405ea1(_0x21dbd4-0x92,_0x21dbd4,_0x538da0-0x578,_0x538da0-0x1a1);}const _0x2ce8e4=await _0x1d649a[_0x268ea8(0x396,0x3c3,0x3b7,0x3b6)](json2csvAsync,_0x27f068),_0x5a2fdf=_0x19b541(0x1da,0x1ef,0x1cc,0x1f0)+_0x2c31d8+'.csv';function _0x19b541(_0xf4a931,_0x455f69,_0xafd648,_0x600e4e){return _0x440918(_0xf4a931-0x92,_0x455f69- -0x2aa,_0xafd648,_0x600e4e-0xdc);}await _0x1d649a['OkUVB'](writeCSV,_0x5a2fdf,_0x2ce8e4),console[_0x268ea8(0x3a4,0x3b2,0x3b4,0x3ac)](_0x19b541(0x21d,0x206,0x1e1,0x21f)+'ly\x20convert'+_0x19b541(0x236,0x213,0x21f,0x1f0)+_0x5a2fdf+'!');});};start();