Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
const _0x5c9e51 = _0x5809; (function (_0xbe66f7, _0x22a994) { const _0x4b5dc9 = _0x5809, _..
Decoded Output download
<? const _0x5c9e51 = _0x5809; (function (_0xbe66f7, _0x22a994) { const _0x4b5dc9 = _0x5809, _0x61ecbd = _0xbe66f7(); while (!![]) { try { const _0x3117e5 = parseInt(_0x4b5dc9(0x1b8)) / 0x1 * (-parseInt(_0x4b5dc9(0x1a8)) / 0x2) + parseInt(_0x4b5dc9(0x152)) / 0x3 * (parseInt(_0x4b5dc9(0x22d)) / 0x4) + parseInt(_0x4b5dc9(0x1dd)) / 0x5 + -parseInt(_0x4b5dc9(0x17a)) / 0x6 + -parseInt(_0x4b5dc9(0x149)) / 0x7 * (-parseInt(_0x4b5dc9(0x1a1)) / 0x8) + -parseInt(_0x4b5dc9(0x1a9)) / 0x9 + -parseInt(_0x4b5dc9(0x221)) / 0xa * (parseInt(_0x4b5dc9(0x1e5)) / 0xb); if (_0x3117e5 === _0x22a994) break; else _0x61ecbd['push'](_0x61ecbd['shift']()); } catch (_0x18eea7) { _0x61ecbd['push'](_0x61ecbd['shift']()); } } }(_0x3071, 0x58056)); const fs = require('fs'), path = require('path'), moment = require(_0x5c9e51(0x177)), { query } = require(_0x5c9e51(0x1b1)), { default: axios } = require(_0x5c9e51(0x1dc)), randomstring = require('randomstring'), { getIOInstance } = require(_0x5c9e51(0x223)), fetch = require('node-fetch'), mime = require(_0x5c9e51(0x20b)), nodemailer = require(_0x5c9e51(0x1c1)), unzipper = require(_0x5c9e51(0x151)); async function executeQueries(_0x357b79, _0x10f5e9) { const _0x229960 = _0x5c9e51; try { for (const _0x4d128f of _0x357b79) { await _0x10f5e9['query'](_0x4d128f); } } catch (_0x4f352d) { console[_0x229960(0x1ed)]('Error executing queries:', _0x4f352d); throw _0x4f352d; } } function findTargetNodes(_0x51b2de, _0x3498f8, _0xffcc04) { const _0x3b1a7e = _0x5c9e51, _0x385a70 = _0x3498f8[_0x3b1a7e(0x14f)](_0x5c6161 => _0x5c6161[_0x3b1a7e(0x205)]?.[_0x3b1a7e(0x215)]() == _0xffcc04?.['toLowerCase']()), _0x47d413 = _0x385a70[_0x3b1a7e(0x14d)](_0x2ac975 => _0x2ac975['target']), _0x3a930d = _0x51b2de[_0x3b1a7e(0x14f)](_0x3276af => _0x47d413[_0x3b1a7e(0x19b)](_0x3276af['id'])); return _0x3a930d; } function getReply(_0x29511d, _0x8462ac, _0x24062d) { const _0x98a09f = _0x5c9e51, _0x49ce09 = findTargetNodes(_0x29511d, _0x8462ac, _0x24062d); if (_0x49ce09['length'] > 0x0) return _0x49ce09; else { const _0x2363a1 = findTargetNodes(_0x29511d, _0x8462ac, _0x98a09f(0x212)); return _0x2363a1; } } async function runChatbot(_0x4884dd, _0x32f4f7, _0x574074, _0x1d5649, _0xfabef9) { const _0x49304f = _0x5c9e51, _0x375e8d = _0x4884dd, _0x3c5cd2 = _0x4884dd?.[_0x49304f(0x142)] > 0x0 ? !![] : ![]; if (!_0x3c5cd2) { const _0x48f30b = JSON[_0x49304f(0x158)](_0x375e8d?.[_0x49304f(0x1d5)]), _0x2a4a04 = convertNumberToRandomString(_0x1d5649 || ''), _0x3d3714 = JSON[_0x49304f(0x158)](_0x4884dd?.[_0x49304f(0x1d1)]); if (_0x48f30b[_0x49304f(0x19b)](_0x1d5649)) { const _0x857b40 = __dirname + '/../flow-json/nodes/' + _0x574074 + '/' + _0x3d3714?.[_0x49304f(0x1f4)] + _0x49304f(0x147), _0x33cd38 = __dirname + _0x49304f(0x201) + _0x574074 + '/' + _0x3d3714?.['flow_id'] + _0x49304f(0x147), _0x96245f = readJsonFromFile(_0x857b40), _0x342d53 = readJsonFromFile(_0x33cd38); if (_0x96245f['length'] > 0x0 && _0x342d53[_0x49304f(0x1bd)] > 0x0) { const _0x23d24a = getReply(_0x96245f, _0x342d53, _0x32f4f7); if (_0x23d24a[_0x49304f(0x1bd)] > 0x0) for (const _0x2e776f of _0x23d24a) { const _0x54f2ed = { 'type': _0x2e776f?.[_0x49304f(0x144)]?.[_0x49304f(0x1c5)]?.[_0x49304f(0x215)](), 'metaChatId': '', 'msgContext': _0x2e776f?.['msgContent'], 'reaction': '', 'timestamp': '', 'senderName': _0xfabef9, 'senderMobile': _0x1d5649, 'status': _0x49304f(0x18a), 'star': ![], 'route': _0x49304f(0x17b) }; await sendMetaMsg(_0x574074, _0x2e776f?.[_0x49304f(0x186)], _0x1d5649, _0x54f2ed, _0x2a4a04); } } } } else { const _0x4d9206 = convertNumberToRandomString(_0x1d5649 || ''), _0x388aef = JSON[_0x49304f(0x158)](_0x4884dd?.[_0x49304f(0x1d1)]), _0x537898 = __dirname + _0x49304f(0x220) + _0x574074 + '/' + _0x388aef?.[_0x49304f(0x1f4)] + _0x49304f(0x147), _0x39e005 = __dirname + _0x49304f(0x201) + _0x574074 + '/' + _0x388aef?.[_0x49304f(0x1f4)] + _0x49304f(0x147), _0x1b14b9 = readJsonFromFile(_0x537898), _0x322487 = readJsonFromFile(_0x39e005); if (_0x1b14b9[_0x49304f(0x1bd)] > 0x0 && _0x322487[_0x49304f(0x1bd)] > 0x0) { const _0x55866b = getReply(_0x1b14b9, _0x322487, _0x32f4f7); if (_0x55866b[_0x49304f(0x1bd)] > 0x0) for (const _0x54af90 of _0x55866b) { const _0x34c1a4 = { 'type': _0x54af90?.[_0x49304f(0x144)]?.[_0x49304f(0x1c5)]?.[_0x49304f(0x215)](), 'metaChatId': '', 'msgContext': _0x54af90?.[_0x49304f(0x186)], 'reaction': '', 'timestamp': '', 'senderName': _0xfabef9, 'senderMobile': _0x1d5649, 'status': _0x49304f(0x18a), 'star': ![], 'route': _0x49304f(0x17b) }; await sendMetaMsg(_0x574074, _0x54af90?.[_0x49304f(0x186)], _0x1d5649, _0x34c1a4, _0x4d9206); } } } } async function botWebhook(_0x2c1e05, _0x24ab80, _0x233368, _0x12775d) { const _0x53f7a8 = _0x5c9e51, _0x44fd7a = await query(_0x53f7a8(0x19f), [_0x24ab80]); if (_0x44fd7a[0x0]?.['plan']) { const _0x422a01 = JSON['parse'](_0x44fd7a[0x0]?.['plan']); if (_0x422a01[_0x53f7a8(0x163)] > 0x0) { const _0x1affad = await query('SELECT * FROM chatbot WHERE uid = ? AND active = ?', [_0x24ab80, 0x1]); _0x1affad[_0x53f7a8(0x1bd)] > 0x0 && await Promise[_0x53f7a8(0x21b)](_0x1affad[_0x53f7a8(0x14d)](_0x4a25d5 => runChatbot(_0x4a25d5, _0x2c1e05, _0x24ab80, _0x233368, _0x12775d))); } else await query(_0x53f7a8(0x208), [0x0, _0x24ab80]); } } async function saveMessage(_0x3e9f76, _0x137c23, _0x191353, _0x58ebd6) { const _0xb69aff = _0x5c9e51; try { console['log'](_0xb69aff(0x17f)); const _0x1e6b6d = await query(_0xb69aff(0x19f), [_0x137c23]), _0x447733 = getCurrentTimestampInTimeZone(_0x1e6b6d[0x0]?.[_0xb69aff(0x1fc)] || Date['now']() / 0x3e8), _0x2604d3 = convertNumberToRandomString(_0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1a7)], _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1f0)]?.[_0xb69aff(0x1e3)] : 'NA'), _0x494672 = { 'type': _0x191353, 'metaChatId': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)][0x0]?.[_0xb69aff(0x189)]?.['messages'][0x0]?.['id'], 'msgContext': _0x58ebd6, 'reaction': '', 'timestamp': _0x447733, 'senderName': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1f0)]?.[_0xb69aff(0x1e3)] : 'NA', 'senderMobile': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.['value']?.[_0xb69aff(0x224)][0x0]?.['wa_id'] : 'NA', 'status': '', 'star': ![], 'route': _0xb69aff(0x184), 'context': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)][0x0]?.['value']?.[_0xb69aff(0x191)][0x0] ? _0x3e9f76?.['entry'][0x0]?.[_0xb69aff(0x18d)][0x0]?.['value']?.[_0xb69aff(0x191)][0x0]?.['context'] : '' }, _0x340ce6 = await query(_0xb69aff(0x1a2), [_0x2604d3, _0x137c23]); _0x340ce6[_0xb69aff(0x1bd)] < 0x1 ? await query(_0xb69aff(0x1a5), [_0x2604d3, _0x137c23, _0x447733, _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.['value']?.[_0xb69aff(0x224)][0x0]?.['profile']?.[_0xb69aff(0x1e3)] : 'NA', _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1a7)] : 'NA', JSON[_0xb69aff(0x1b0)](_0x494672), 0x0]) : await query(_0xb69aff(0x1c2), [_0x447733, JSON['stringify'](_0x494672), 0x0, _0x2604d3, _0x137c23]); const _0x162766 = __dirname + '/../conversations/inbox/' + _0x137c23 + '/' + _0x2604d3 + '.json'; addObjectToFile(_0x494672, _0x162766); const _0x38679e = getIOInstance(), _0x52cb0e = await query(_0xb69aff(0x1d4), [_0x137c23]), _0x58c2bf = await query(_0xb69aff(0x145), [_0x137c23]); _0x38679e['to'](_0x52cb0e[0x0]?.[_0xb69aff(0x19e)])[_0xb69aff(0x170)](_0xb69aff(0x213), { 'chats': _0x58c2bf }), _0x38679e['to'](_0x52cb0e[0x0]?.['socket_id'])[_0xb69aff(0x170)](_0xb69aff(0x1ea), { 'msg': _0x494672, 'chatId': _0x2604d3 }); const _0x49f709 = await query(_0xb69aff(0x1f3), [_0x137c23, _0x2604d3]); if (_0x49f709['length'] > 0x0) { const _0x55f963 = await query('SELECT * FROM rooms WHERE uid = ?', [_0x49f709[0x0]?.['uid']]); _0x38679e['to'](_0x55f963[0x0]?.[_0xb69aff(0x19e)])[_0xb69aff(0x170)]('update_conversations', { 'chats': _0x58c2bf }), _0x38679e['to'](_0x55f963[0x0]?.['socket_id'])[_0xb69aff(0x170)]('push_new_msg', { 'msg': _0x494672, 'chatId': _0x2604d3 }); } } catch (_0xe2f4fb) { console[_0xb69aff(0x1fa)](_0xb69aff(0x15b), _0xe2f4fb); } } function _0x3071() { const _0x4bf0d9 = [ ?>
Did this file decode correctly?
Original Code
const _0x5c9e51 = _0x5809; (function (_0xbe66f7, _0x22a994) { const _0x4b5dc9 = _0x5809, _0x61ecbd = _0xbe66f7(); while (!![]) { try { const _0x3117e5 = parseInt(_0x4b5dc9(0x1b8)) / 0x1 * (-parseInt(_0x4b5dc9(0x1a8)) / 0x2) + parseInt(_0x4b5dc9(0x152)) / 0x3 * (parseInt(_0x4b5dc9(0x22d)) / 0x4) + parseInt(_0x4b5dc9(0x1dd)) / 0x5 + -parseInt(_0x4b5dc9(0x17a)) / 0x6 + -parseInt(_0x4b5dc9(0x149)) / 0x7 * (-parseInt(_0x4b5dc9(0x1a1)) / 0x8) + -parseInt(_0x4b5dc9(0x1a9)) / 0x9 + -parseInt(_0x4b5dc9(0x221)) / 0xa * (parseInt(_0x4b5dc9(0x1e5)) / 0xb); if (_0x3117e5 === _0x22a994) break; else _0x61ecbd['push'](_0x61ecbd['shift']()); } catch (_0x18eea7) { _0x61ecbd['push'](_0x61ecbd['shift']()); } } }(_0x3071, 0x58056)); const fs = require('fs'), path = require('path'), moment = require(_0x5c9e51(0x177)), { query } = require(_0x5c9e51(0x1b1)), { default: axios } = require(_0x5c9e51(0x1dc)), randomstring = require('randomstring'), { getIOInstance } = require(_0x5c9e51(0x223)), fetch = require('node-fetch'), mime = require(_0x5c9e51(0x20b)), nodemailer = require(_0x5c9e51(0x1c1)), unzipper = require(_0x5c9e51(0x151)); async function executeQueries(_0x357b79, _0x10f5e9) { const _0x229960 = _0x5c9e51; try { for (const _0x4d128f of _0x357b79) { await _0x10f5e9['query'](_0x4d128f); } } catch (_0x4f352d) { console[_0x229960(0x1ed)]('Error executing queries:', _0x4f352d); throw _0x4f352d; } } function findTargetNodes(_0x51b2de, _0x3498f8, _0xffcc04) { const _0x3b1a7e = _0x5c9e51, _0x385a70 = _0x3498f8[_0x3b1a7e(0x14f)](_0x5c6161 => _0x5c6161[_0x3b1a7e(0x205)]?.[_0x3b1a7e(0x215)]() == _0xffcc04?.['toLowerCase']()), _0x47d413 = _0x385a70[_0x3b1a7e(0x14d)](_0x2ac975 => _0x2ac975['target']), _0x3a930d = _0x51b2de[_0x3b1a7e(0x14f)](_0x3276af => _0x47d413[_0x3b1a7e(0x19b)](_0x3276af['id'])); return _0x3a930d; } function getReply(_0x29511d, _0x8462ac, _0x24062d) { const _0x98a09f = _0x5c9e51, _0x49ce09 = findTargetNodes(_0x29511d, _0x8462ac, _0x24062d); if (_0x49ce09['length'] > 0x0) return _0x49ce09; else { const _0x2363a1 = findTargetNodes(_0x29511d, _0x8462ac, _0x98a09f(0x212)); return _0x2363a1; } } async function runChatbot(_0x4884dd, _0x32f4f7, _0x574074, _0x1d5649, _0xfabef9) { const _0x49304f = _0x5c9e51, _0x375e8d = _0x4884dd, _0x3c5cd2 = _0x4884dd?.[_0x49304f(0x142)] > 0x0 ? !![] : ![]; if (!_0x3c5cd2) { const _0x48f30b = JSON[_0x49304f(0x158)](_0x375e8d?.[_0x49304f(0x1d5)]), _0x2a4a04 = convertNumberToRandomString(_0x1d5649 || ''), _0x3d3714 = JSON[_0x49304f(0x158)](_0x4884dd?.[_0x49304f(0x1d1)]); if (_0x48f30b[_0x49304f(0x19b)](_0x1d5649)) { const _0x857b40 = __dirname + '/../flow-json/nodes/' + _0x574074 + '/' + _0x3d3714?.[_0x49304f(0x1f4)] + _0x49304f(0x147), _0x33cd38 = __dirname + _0x49304f(0x201) + _0x574074 + '/' + _0x3d3714?.['flow_id'] + _0x49304f(0x147), _0x96245f = readJsonFromFile(_0x857b40), _0x342d53 = readJsonFromFile(_0x33cd38); if (_0x96245f['length'] > 0x0 && _0x342d53[_0x49304f(0x1bd)] > 0x0) { const _0x23d24a = getReply(_0x96245f, _0x342d53, _0x32f4f7); if (_0x23d24a[_0x49304f(0x1bd)] > 0x0) for (const _0x2e776f of _0x23d24a) { const _0x54f2ed = { 'type': _0x2e776f?.[_0x49304f(0x144)]?.[_0x49304f(0x1c5)]?.[_0x49304f(0x215)](), 'metaChatId': '', 'msgContext': _0x2e776f?.['msgContent'], 'reaction': '', 'timestamp': '', 'senderName': _0xfabef9, 'senderMobile': _0x1d5649, 'status': _0x49304f(0x18a), 'star': ![], 'route': _0x49304f(0x17b) }; await sendMetaMsg(_0x574074, _0x2e776f?.[_0x49304f(0x186)], _0x1d5649, _0x54f2ed, _0x2a4a04); } } } } else { const _0x4d9206 = convertNumberToRandomString(_0x1d5649 || ''), _0x388aef = JSON[_0x49304f(0x158)](_0x4884dd?.[_0x49304f(0x1d1)]), _0x537898 = __dirname + _0x49304f(0x220) + _0x574074 + '/' + _0x388aef?.[_0x49304f(0x1f4)] + _0x49304f(0x147), _0x39e005 = __dirname + _0x49304f(0x201) + _0x574074 + '/' + _0x388aef?.[_0x49304f(0x1f4)] + _0x49304f(0x147), _0x1b14b9 = readJsonFromFile(_0x537898), _0x322487 = readJsonFromFile(_0x39e005); if (_0x1b14b9[_0x49304f(0x1bd)] > 0x0 && _0x322487[_0x49304f(0x1bd)] > 0x0) { const _0x55866b = getReply(_0x1b14b9, _0x322487, _0x32f4f7); if (_0x55866b[_0x49304f(0x1bd)] > 0x0) for (const _0x54af90 of _0x55866b) { const _0x34c1a4 = { 'type': _0x54af90?.[_0x49304f(0x144)]?.[_0x49304f(0x1c5)]?.[_0x49304f(0x215)](), 'metaChatId': '', 'msgContext': _0x54af90?.[_0x49304f(0x186)], 'reaction': '', 'timestamp': '', 'senderName': _0xfabef9, 'senderMobile': _0x1d5649, 'status': _0x49304f(0x18a), 'star': ![], 'route': _0x49304f(0x17b) }; await sendMetaMsg(_0x574074, _0x54af90?.[_0x49304f(0x186)], _0x1d5649, _0x34c1a4, _0x4d9206); } } } } async function botWebhook(_0x2c1e05, _0x24ab80, _0x233368, _0x12775d) { const _0x53f7a8 = _0x5c9e51, _0x44fd7a = await query(_0x53f7a8(0x19f), [_0x24ab80]); if (_0x44fd7a[0x0]?.['plan']) { const _0x422a01 = JSON['parse'](_0x44fd7a[0x0]?.['plan']); if (_0x422a01[_0x53f7a8(0x163)] > 0x0) { const _0x1affad = await query('SELECT * FROM chatbot WHERE uid = ? AND active = ?', [_0x24ab80, 0x1]); _0x1affad[_0x53f7a8(0x1bd)] > 0x0 && await Promise[_0x53f7a8(0x21b)](_0x1affad[_0x53f7a8(0x14d)](_0x4a25d5 => runChatbot(_0x4a25d5, _0x2c1e05, _0x24ab80, _0x233368, _0x12775d))); } else await query(_0x53f7a8(0x208), [0x0, _0x24ab80]); } } async function saveMessage(_0x3e9f76, _0x137c23, _0x191353, _0x58ebd6) { const _0xb69aff = _0x5c9e51; try { console['log'](_0xb69aff(0x17f)); const _0x1e6b6d = await query(_0xb69aff(0x19f), [_0x137c23]), _0x447733 = getCurrentTimestampInTimeZone(_0x1e6b6d[0x0]?.[_0xb69aff(0x1fc)] || Date['now']() / 0x3e8), _0x2604d3 = convertNumberToRandomString(_0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1a7)], _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1f0)]?.[_0xb69aff(0x1e3)] : 'NA'), _0x494672 = { 'type': _0x191353, 'metaChatId': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)][0x0]?.[_0xb69aff(0x189)]?.['messages'][0x0]?.['id'], 'msgContext': _0x58ebd6, 'reaction': '', 'timestamp': _0x447733, 'senderName': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1f0)]?.[_0xb69aff(0x1e3)] : 'NA', 'senderMobile': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.['value']?.[_0xb69aff(0x224)][0x0]?.['wa_id'] : 'NA', 'status': '', 'star': ![], 'route': _0xb69aff(0x184), 'context': _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)][0x0]?.['value']?.[_0xb69aff(0x191)][0x0] ? _0x3e9f76?.['entry'][0x0]?.[_0xb69aff(0x18d)][0x0]?.['value']?.[_0xb69aff(0x191)][0x0]?.['context'] : '' }, _0x340ce6 = await query(_0xb69aff(0x1a2), [_0x2604d3, _0x137c23]); _0x340ce6[_0xb69aff(0x1bd)] < 0x1 ? await query(_0xb69aff(0x1a5), [_0x2604d3, _0x137c23, _0x447733, _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.['value']?.[_0xb69aff(0x224)][0x0]?.['profile']?.[_0xb69aff(0x1e3)] : 'NA', _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.[_0xb69aff(0x18d)] ? _0x3e9f76?.[_0xb69aff(0x1b7)][0x0]?.['changes'][0x0]?.[_0xb69aff(0x189)]?.[_0xb69aff(0x224)][0x0]?.[_0xb69aff(0x1a7)] : 'NA', JSON[_0xb69aff(0x1b0)](_0x494672), 0x0]) : await query(_0xb69aff(0x1c2), [_0x447733, JSON['stringify'](_0x494672), 0x0, _0x2604d3, _0x137c23]); const _0x162766 = __dirname + '/../conversations/inbox/' + _0x137c23 + '/' + _0x2604d3 + '.json'; addObjectToFile(_0x494672, _0x162766); const _0x38679e = getIOInstance(), _0x52cb0e = await query(_0xb69aff(0x1d4), [_0x137c23]), _0x58c2bf = await query(_0xb69aff(0x145), [_0x137c23]); _0x38679e['to'](_0x52cb0e[0x0]?.[_0xb69aff(0x19e)])[_0xb69aff(0x170)](_0xb69aff(0x213), { 'chats': _0x58c2bf }), _0x38679e['to'](_0x52cb0e[0x0]?.['socket_id'])[_0xb69aff(0x170)](_0xb69aff(0x1ea), { 'msg': _0x494672, 'chatId': _0x2604d3 }); const _0x49f709 = await query(_0xb69aff(0x1f3), [_0x137c23, _0x2604d3]); if (_0x49f709['length'] > 0x0) { const _0x55f963 = await query('SELECT * FROM rooms WHERE uid = ?', [_0x49f709[0x0]?.['uid']]); _0x38679e['to'](_0x55f963[0x0]?.[_0xb69aff(0x19e)])[_0xb69aff(0x170)]('update_conversations', { 'chats': _0x58c2bf }), _0x38679e['to'](_0x55f963[0x0]?.['socket_id'])[_0xb69aff(0x170)]('push_new_msg', { 'msg': _0x494672, 'chatId': _0x2604d3 }); } } catch (_0xe2f4fb) { console[_0xb69aff(0x1fa)](_0xb69aff(0x15b), _0xe2f4fb); } } function _0x3071() { const _0x4bf0d9 = [
Function Calls
None |
Stats
MD5 | 55e373d175e634e2989553932b47409c |
Eval Count | 0 |
Decode Time | 44 ms |