forked from franceking1/Flash-Md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
imgur.js
14 lines (1 loc) · 2.11 KB
/
imgur.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const _0x307e39=_0x3adb;(function(_0x4c90a5,_0x47b253){const _0x410707=_0x3adb,_0x26d596=_0x4c90a5();while(!![]){try{const _0xb5b23b=parseInt(_0x410707(0xde))/0x1*(parseInt(_0x410707(0xe4))/0x2)+parseInt(_0x410707(0xe3))/0x3*(parseInt(_0x410707(0xe7))/0x4)+parseInt(_0x410707(0xda))/0x5*(parseInt(_0x410707(0xd3))/0x6)+-parseInt(_0x410707(0xd4))/0x7*(-parseInt(_0x410707(0xd9))/0x8)+parseInt(_0x410707(0xdb))/0x9+parseInt(_0x410707(0xe0))/0xa+-parseInt(_0x410707(0xdc))/0xb*(parseInt(_0x410707(0xd0))/0xc);if(_0xb5b23b===_0x47b253)break;else _0x26d596['push'](_0x26d596['shift']());}catch(_0x35af1e){_0x26d596['push'](_0x26d596['shift']());}}}(_0x16e4,0x1eee8));function _0x3adb(_0xf25886,_0x16da40){const _0x16e426=_0x16e4();return _0x3adb=function(_0x3adb4a,_0x3343cb){_0x3adb4a=_0x3adb4a-0xd0;let _0x3757fa=_0x16e426[_0x3adb4a];return _0x3757fa;},_0x3adb(_0xf25886,_0x16da40);}const axios=require(_0x307e39(0xd8)),fs=require('fs'),FormData=require(_0x307e39(0xdf));function _0x16e4(){const _0x1c0cd4=['link','6IkPOUE','294XMwXnY','exports','Client-ID\x20','post','axios','15360aSebWh','1071135SaYijz','202122OUYopf','19096ywuvnM','data','224134yPvXlt','form-data','38280lNIIdu','error','image','3KHexQn','2RmLVAK','getHeaders','https://api.imgur.com/3/image','61636wiEWIq','3000UjtyLE','An\x20error\x20occurred\x20while\x20uploading\x20to\x20Imgur.'];_0x16e4=function(){return _0x1c0cd4;};return _0x16e4();}async function uploadImageToImgur(_0x341a1e,_0x1148ba){const _0x29490f=_0x307e39;try{const _0x5d0943=new FormData();_0x5d0943['append'](_0x29490f(0xe2),fs['createReadStream'](_0x341a1e));const _0x1d094b={'Authorization':_0x29490f(0xd6)+_0x1148ba,..._0x5d0943[_0x29490f(0xe5)]()},_0xb42c48={'method':_0x29490f(0xd7),'maxBodyLength':Infinity,'url':_0x29490f(0xe6),'headers':_0x1d094b,'data':_0x5d0943},_0x53eb2f=await axios(_0xb42c48),_0x4812f1=_0x53eb2f[_0x29490f(0xdd)][_0x29490f(0xdd)][_0x29490f(0xd2)];return _0x4812f1;}catch(_0x2a3ac2){console[_0x29490f(0xe1)]('Error\x20while\x20uploading\x20to\x20Imgur:',_0x2a3ac2);throw new Error(_0x29490f(0xd1));}}module[_0x307e39(0xd5)]={'uploadImageToImgur':uploadImageToImgur};