-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit.js
1 lines (1 loc) · 2.61 KB
/
submit.js
1
const _0x54cc=['git\x20commit\x20-m\x20\x22CP\x20commiteado\x20por\x20','statusText','Falló\x20el\x20submit\x0a','Password:','node-fetch','Usuario\x20de\x20github:','Submit\x20OK\x0a','git\x20push\x20https://','\x20a\x20las\x20','stringify','error','https://proxy.soyhenry.com:3000/submit','error:\x20','catch','\x20master','trim','toLowerCase','application/json','message','pop','then','FTM2\x20-\x2012-React-Redux','log','Estas\x20seguro\x20que\x20deseas\x20submitear\x20este\x20resultado?\x20(S/n)\x20','child_process','now','exit','stderr:\x20'];(function(_0x54c019,_0x54cc17){const _0xa2acaf=function(_0x45a8f0){while(--_0x45a8f0){_0x54c019['push'](_0x54c019['shift']());}};_0xa2acaf(++_0x54cc17);}(_0x54cc,0xd7));const _0xa2ac=function(_0x54c019,_0x54cc17){_0x54c019=_0x54c019-0x0;let _0xa2acaf=_0x54cc[_0x54c019];return _0xa2acaf;};const _0x1000b3=_0xa2ac,{exec}=require(_0x1000b3('0x5')),fetch=require(_0x1000b3('0xd'));var prompt=require('prompt-sync')();const fs=require('fs');function ejecutar(_0x45a8f0){return new Promise((_0x55c388,_0x356f67)=>{exec(_0x45a8f0,(_0x48e8ed,_0x4bb953,_0x18c557)=>{const _0x17da5b=_0xa2ac;if(_0x48e8ed)return _0x356f67(_0x17da5b('0x15')+_0x48e8ed[_0x17da5b('0x1b')]);if(_0x18c557)return _0x55c388(_0x17da5b('0x8')+_0x18c557);_0x55c388(_0x4bb953);});});}(async function iniciarProceso(){const _0x453a04=_0x1000b3,_0x5049e2=prompt(_0x453a04('0x4'))[_0x453a04('0x19')]();if(_0x5049e2!=='s')return process[_0x453a04('0x7')](0x0);const _0x312c6c=prompt(_0x453a04('0xe'))[_0x453a04('0x19')](),_0x5c17e1=prompt['hide'](_0x453a04('0xc'));let _0x522e3f;try{const _0x523e0d=await ejecutar('git\x20config\x20--get\x20remote.origin.url');_0x522e3f=_0x523e0d[_0x453a04('0x18')]()['split']('/')[_0x453a04('0x0')](),await ejecutar('git\x20add\x20.'),await ejecutar(_0x453a04('0x9')+_0x312c6c+_0x453a04('0x11')+Date[_0x453a04('0x6')]()+'\x22'),await ejecutar(_0x453a04('0x10')+_0x312c6c+':'+_0x5c17e1+'@github.com/'+_0x312c6c+'/'+_0x522e3f+_0x453a04('0x17'));}catch(_0x37c596){return console[_0x453a04('0x13')](_0x37c596),process[_0x453a04('0x7')](0x0);}fetch(_0x453a04('0x14'),{'method':'post','headers':{'Content-Type':_0x453a04('0x1a')},'body':JSON[_0x453a04('0x12')]({'github':_0x312c6c,'passed':0x0,'total':0x0,'repo':_0x453a04('0x2')})})[_0x453a04('0x1')](function(_0x375062){const _0x3351fa=_0x453a04;if(_0x375062['status']!==0xc8)throw new Error(_0x375062[_0x3351fa('0xa')]);return console[_0x3351fa('0x3')](_0x3351fa('0xf')),process['exit'](0x0);})[_0x453a04('0x16')](function(_0x2847f7){const _0xa0a0f6=_0x453a04;return console['error'](_0x2847f7),console[_0xa0a0f6('0x3')](_0xa0a0f6('0xb')),process[_0xa0a0f6('0x7')](0x1);});}());