forked from Ethix-Xsid/Ethix-MD-V2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a783ce
commit 9a004cc
Showing
1 changed file
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,51 @@ | ||
const _0x266dca=_0x394d;(function(_0x35644c,_0x2bf644){const _0x7b2243=_0x394d,_0xad5d31=_0x35644c();while(!![]){try{const _0x3889fd=-parseInt(_0x7b2243(0xbe))/0x1*(-parseInt(_0x7b2243(0xcb))/0x2)+parseInt(_0x7b2243(0xb1))/0x3+-parseInt(_0x7b2243(0xb5))/0x4*(-parseInt(_0x7b2243(0xc9))/0x5)+parseInt(_0x7b2243(0xcc))/0x6+parseInt(_0x7b2243(0xc5))/0x7*(parseInt(_0x7b2243(0xbc))/0x8)+-parseInt(_0x7b2243(0xd1))/0x9*(-parseInt(_0x7b2243(0xba))/0xa)+parseInt(_0x7b2243(0xcf))/0xb*(-parseInt(_0x7b2243(0xb4))/0xc);if(_0x3889fd===_0x2bf644)break;else _0xad5d31['push'](_0xad5d31['shift']());}catch(_0x35fcd2){_0xad5d31['push'](_0xad5d31['shift']());}}}(_0x1c77,0x457b7));function _0x1c77(){const _0x589c7f=['submit','error','22TuGnJG','gzip','1116QxodIW','push','.ai','dehaze','https','806484XUnwrW','jimp','binary','7115460KRQhmI','1101112SegLTh','end','from','enhance_image_body.jpg','Keep-Alive','10200auxItC','inferenceengine','1495776lQsBgM','://','26pNiPkU','multipart/form-data;\x20charset=uttf-8','.ai/','recolor','.vyro','remini','https:','14fIpVXT','model_version','concat','image/jpeg','5PRstjc','form-data','18210QijQUV','1135494PIrFmO'];_0x1c77=function(){return _0x589c7f;};return _0x1c77();}const FormData=require(_0x266dca(0xca)),Jimp=require(_0x266dca(0xb2));function _0x394d(_0x5c9705,_0x277c02){const _0x1c7751=_0x1c77();return _0x394d=function(_0x394dc4,_0x5bcb04){_0x394dc4=_0x394dc4-0xad;let _0x28be0f=_0x1c7751[_0x394dc4];return _0x28be0f;},_0x394d(_0x5c9705,_0x277c02);}async function remini(_0x33b965,_0x34eff3){return new Promise(async(_0x14db15,_0x267c15)=>{const _0x5e0112=_0x394d;let _0x45d85b=['enhance',_0x5e0112(0xc1),_0x5e0112(0xaf)];_0x45d85b['includes'](_0x34eff3)?_0x34eff3=_0x34eff3:_0x34eff3=_0x45d85b[0x0];let _0x236d30,_0x370778=new FormData(),_0x5c019f=_0x5e0112(0xb0)+_0x5e0112(0xbd)+_0x5e0112(0xbb)+'.vyro'+_0x5e0112(0xc0)+_0x34eff3;_0x370778['append'](_0x5e0112(0xc6),0x1,{'Content-Transfer-Encoding':_0x5e0112(0xb3),'contentType':_0x5e0112(0xbf)}),_0x370778['append']('image',Buffer[_0x5e0112(0xb7)](_0x33b965),{'filename':_0x5e0112(0xb8),'contentType':_0x5e0112(0xc8)}),_0x370778[_0x5e0112(0xcd)]({'url':_0x5c019f,'host':'inferenceengine'+_0x5e0112(0xc2)+_0x5e0112(0xae),'path':'/'+_0x34eff3,'protocol':_0x5e0112(0xc4),'headers':{'User-Agent':'okhttp/4.9.3','Connection':_0x5e0112(0xb9),'Accept-Encoding':_0x5e0112(0xd0)}},function(_0x319120,_0x175e8d){const _0xe7b13c=_0x5e0112;if(_0x319120)_0x267c15();let _0x15e24d=[];_0x175e8d['on']('data',function(_0x2918a5,_0x2d4e53){const _0x1e12ae=_0x394d;_0x15e24d[_0x1e12ae(0xad)](_0x2918a5);})['on'](_0xe7b13c(0xb6),()=>{const _0x3eb77e=_0xe7b13c;_0x14db15(Buffer[_0x3eb77e(0xc7)](_0x15e24d));}),_0x175e8d['on'](_0xe7b13c(0xce),_0x90e19c=>{_0x267c15();});});});}module['exports'][_0x266dca(0xc3)]=remini; | ||
//Ethix-MD-V2 | ||
|
||
const FormData = require("form-data"); | ||
async function remini(_0x33b965, _0x34eff3) { | ||
return new Promise(async (_0x14db15, _0x267c15) => { | ||
let _0x45d85b = ['enhance', "recolor", "dehaze"]; | ||
if (_0x45d85b.includes(_0x34eff3)) { | ||
_0x34eff3 = _0x34eff3; | ||
} else { | ||
_0x34eff3 = _0x45d85b[0x0]; | ||
} | ||
let _0x370778 = new FormData(); | ||
let _0x5c019f = "https://inferenceengine.vyro.ai/" + _0x34eff3; | ||
_0x370778.append("model_version", 0x1, { | ||
'Content-Transfer-Encoding': "binary", | ||
'contentType': "multipart/form-data; charset=uttf-8" | ||
}); | ||
_0x370778.append('image', Buffer.from(_0x33b965), { | ||
'filename': "enhance_image_body.jpg", | ||
'contentType': "image/jpeg" | ||
}); | ||
_0x370778.submit({ | ||
'url': _0x5c019f, | ||
'host': "inferenceengine.vyro.ai", | ||
'path': '/' + _0x34eff3, | ||
'protocol': "https:", | ||
'headers': { | ||
'User-Agent': 'okhttp/4.9.3', | ||
'Connection': "Keep-Alive", | ||
'Accept-Encoding': "gzip" | ||
} | ||
}, function (_0x319120, _0x175e8d) { | ||
if (_0x319120) { | ||
_0x267c15(); | ||
} | ||
let _0x15e24d = []; | ||
_0x175e8d.on('data', function (_0x2918a5, _0x2d4e53) { | ||
_0x15e24d.push(_0x2918a5); | ||
}).on("end", () => { | ||
_0x14db15(Buffer.concat(_0x15e24d)); | ||
}); | ||
_0x175e8d.on("error", _0x90e19c => { | ||
_0x267c15(); | ||
}); | ||
}); | ||
}); | ||
} | ||
module.exports.remini = remini; | ||
|
||
|
||
|