smssakutoko
Version:
MPWA Multi device beta
1 lines • 4 kB
JavaScript
const _0x3da56c = _0x5046; function _0x5a63() { const _0xe9808e = ['log', 'open', '890536nRmEhB', 'silent', './Querydb', 'Connected', '3355038lhvdWl', '10.0', 'Pro`ccess', 'error', 'output', 'MPWA', 'logout', 'message', '516984UruVmG', '773196JIKQLK', 'Authenticated', 'pino', 'emit', '2378730LCCRle', 'exports', 'loggedOut', './sessions/session-', '7SzScho', 'qrcode', 'Desktop', 'messages.upsert', '.json', 'toDataURL', 'connection.update', '3848280RbeHqE', 'unlinkSync', '30OKlmBC', 'creds.update', 'Disconnect', 'QrGenerated', '12GHtoRs', 'then', 'Unauthorized', '154447JJlCuw']; _0x5a63 = function () { return _0xe9808e; }; return _0x5a63(); } (function (_0x54b0c8, _0x47af78) { const _0x1fcb5b = _0x5046, _0x415908 = _0x54b0c8(); while (!![]) { try { const _0x56b366 = -parseInt(_0x1fcb5b(0x1c3)) / 0x1 * (parseInt(_0x1fcb5b(0x1c0)) / 0x2) + parseInt(_0x1fcb5b(0x1d3)) / 0x3 + -parseInt(_0x1fcb5b(0x1c6)) / 0x4 + parseInt(_0x1fcb5b(0x1e2)) / 0x5 + -parseInt(_0x1fcb5b(0x1d7)) / 0x6 + parseInt(_0x1fcb5b(0x1db)) / 0x7 * (-parseInt(_0x1fcb5b(0x1d2)) / 0x8) + -parseInt(_0x1fcb5b(0x1ca)) / 0x9 * (-parseInt(_0x1fcb5b(0x1bc)) / 0xa); if (_0x56b366 === _0x47af78) break; else _0x415908['push'](_0x415908['shift']()); } catch (_0x54781d) { _0x415908['push'](_0x415908['shift']()); } } }(_0x5a63, 0x82b2c)); function _0x5046(_0x51ea86, _0x2337de) { const _0x5a63ff = _0x5a63(); return _0x5046 = function (_0x5046c5, _0x1ad5ad) { _0x5046c5 = _0x5046c5 - 0x1bc; let _0x42110d = _0x5a63ff[_0x5046c5]; return _0x42110d; }, _0x5046(_0x51ea86, _0x2337de); } const P = require(_0x3da56c(0x1d5)), axios = require('axios'), { default: makeWASocket, useSingleFileAuthState, DisconnectReason, downloadContentFromMessage } = require('@adiwajshing/baileys'), fs = require('fs'), qrcode = require(_0x3da56c(0x1dc)), { setStatus, dbQuery } = require(_0x3da56c(0x1c8)), { autoReply } = require('./Autoreply'), startCon = async (_0x1aaee2, _0x4d86d3 = undefined, _0x3aba57 = undefined) => { const _0x19309f = _0x3da56c, { state: _0x41eb07, saveState: _0x5a2326 } = useSingleFileAuthState(_0x19309f(0x1da) + _0x1aaee2 + '.json'), _0x3e9744 = makeWASocket({ 'auth': _0x41eb07, 'version': [0x2, 0x89e, 0x9], 'logger': P({ 'level': _0x19309f(0x1c7) }), 'printQRInTerminal': ![], 'browser': [_0x19309f(0x1cf), _0x19309f(0x1dd), _0x19309f(0x1cb)] }); return _0x3e9744['ev']['on'](_0x19309f(0x1e1), async _0x27e9dd => { const _0x2225df = _0x19309f, { qr: _0x383279, connection: _0x1d54c2, lastDisconnect: _0x503d17 } = _0x27e9dd; if (_0x1d54c2 === 'close') { if (_0x503d17['error']?.['output']?.['statusCode'] !== DisconnectReason[_0x2225df(0x1d9)]) _0x503d17[_0x2225df(0x1cd)]?.[_0x2225df(0x1ce)]?.[_0x2225df(0x1d1)] === 'Restart\x20Required' && startCon(_0x1aaee2), _0x4d86d3 !== undefined ? _0x4d86d3[_0x2225df(0x1d6)]('Proccess') : ''; else _0x503d17[_0x2225df(0x1cd)]?.[_0x2225df(0x1ce)]?.['statusCode'] === 0x191 && (_0x4d86d3[_0x2225df(0x1d6)](_0x2225df(0x1c2)), setStatus(_0x1aaee2, _0x2225df(0x1be)), fs['existsSync'](_0x2225df(0x1da) + _0x1aaee2 + '.json') && fs[_0x2225df(0x1e3)](_0x2225df(0x1da) + _0x1aaee2 + _0x2225df(0x1df))); } else { if (_0x1d54c2 === _0x2225df(0x1c5)) { _0x4d86d3 !== undefined ? _0x4d86d3[_0x2225df(0x1d6)](_0x2225df(0x1d4), _0x3e9744['user']) : ''; if (_0x3aba57) { _0x3e9744[_0x2225df(0x1d0)]()[_0x2225df(0x1c1)](() => { const _0x2f7fdc = _0x2225df; setStatus(_0x1aaee2, _0x2f7fdc(0x1be)), _0x4d86d3[_0x2f7fdc(0x1d6)](_0x2f7fdc(0x1cc)); }); return; } setStatus(_0x1aaee2, _0x2225df(0x1c9)); } } _0x383279 && qrcode[_0x2225df(0x1e0)](_0x383279, (_0x10f0dd, _0x48463b) => { const _0x1820e8 = _0x2225df; if (_0x10f0dd) console[_0x1820e8(0x1c4)](_0x10f0dd); _0x4d86d3 !== undefined ? _0x4d86d3[_0x1820e8(0x1d6)](_0x1820e8(0x1bf), _0x48463b) : ''; }); }), _0x3e9744['ev']['on'](_0x19309f(0x1de), _0x36dd9c => autoReply(_0x36dd9c, _0x3e9744)), _0x3e9744['ev']['on'](_0x19309f(0x1bd), _0x5a2326), { 'conn': _0x3e9744, 'state': _0x41eb07 }; }; module[_0x3da56c(0x1d8)] = { 'startCon': startCon };