const _0x39e1e0 = function () {
    let _0xb38b7c = true;
    return function (_0x51664e, _0x14c5c8) {
        const _0x485c76 = _0xb38b7c ? function () {
            if (_0x14c5c8) {
                const _0x45a841 = _0x14c5c8.apply(_0x51664e, arguments);
                _0x14c5c8 = null;
                return _0x45a841;
            }
        } : function () {};
        _0xb38b7c = false;
        return _0x485c76;
    };
}();
const _0x1d9df1 = _0x39e1e0(this, function () {
    return _0x1d9df1.toString().search('(((.+)+)+)+$').toString().constructor(_0x1d9df1).search('(((.+)+)+)+$');
});
_0x1d9df1();
const {
    SlashCommandBuilder
} = require('@discordjs/builders');
const Discord = require('discord.js');
const fs = require('fs');
const yaml = require('js-yaml');
const config = yaml.load(fs.readFileSync('./config.yml', 'utf8'));
const productModel = require('../models/productModel');
const licenseModel = require('../models/licenseModel');
const statisticsModel = require('../models/statisticsModel');
const utils = require('../utils.js');
module.exports = {
    'data': new SlashCommandBuilder().setName('license').setDescription("Manage licenses").addSubcommand(_0x358e83 => _0x358e83.setName('create').setDescription("Create a new license key").addUserOption(_0x23fea1 => _0x23fea1.setName('user').setDescription('User').setRequired(true)).addStringOption(_0x1a3dea => _0x1a3dea.setName('product').setDescription("The product to create the license for (Name)").setRequired(true)).addNumberOption(_0x5a9a74 => _0x5a9a74.setName('builtbybituserid').setDescription("The user's BuiltByBit user ID").setRequired(config.LicenseSettings.RequireBuiltByBitUserID))).addSubcommand(_0x4a8bcb => _0x4a8bcb.setName('delete').setDescription("Delete a specific license key").addStringOption(_0x22e7bf => _0x22e7bf.setName('licensekey').setDescription("The license key to delete").setRequired(true))).addSubcommand(_0x164293 => _0x164293.setName('list').setDescription("Get a list of all license keys")).addSubcommand(_0x40f561 => _0x40f561.setName('get').setDescription("Get information about a specific license key").addStringOption(_0x3205cf => _0x3205cf.setName('query').setDescription("The query to search for (license key, user id, builtbybit user id)").setRequired(true))).addSubcommand(_0x491d96 => _0x491d96.setName('cleardata').setDescription("Clear IP or HWID data of a specific license key").addStringOption(_0x5f2fd9 => _0x5f2fd9.setName('data').setDescription("Data to clear").addChoices({
        'name': 'IP',
        'value': 'IP'
    }, {
        'name': 'HWID',
        'value': 'HWID'
    }).setRequired(true)).addStringOption(_0x291837 => _0x291837.setName('licensekey').setDescription("The query to search for (license key, user id, builtbybit user id)").setRequired(true))),
    async 'execute'(_0x67a592, _0x779a91) {
        let _0xf93528 = _0x67a592.options.getSubcommand();
        let _0x8377fb;
        if (config.WebhookLogsSettings.Enabled && config.WebhookLogsSettings.CommandsWebhookURL) {
            _0x8377fb = new Discord.WebhookClient({
                'url': config.WebhookLogsSettings.CommandsWebhookURL
            });
        }
        if (_0xf93528 === 'create') {
            if (config.license_create.Enabled === false) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | This command has been disabled in the config!",
                    'ephemeral': true
                });
            }
            const _0x1a7589 = config.license_create.AllowedRoles.some(_0x4127d5 => {
                const _0x6f0484 = _0x67a592.guild.roles.cache.get(_0x4127d5);
                return _0x6f0484 && _0x67a592.member.roles.cache.has(_0x4127d5);
            });
            if (!config.DevMode && !_0x1a7589) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | " + config.Locale.NoPermsMessage,
                    'ephemeral': true
                });
            }
            let _0x3d3bec = _0x67a592.options.getUser('user');
            let _0x58cee0 = _0x67a592.options.getString('product');
            let _0x5dd518 = _0x67a592.options.getNumber('builtbybituserid');
            if (!_0x5dd518) {
                _0x5dd518 = 'Unknown';
            }
            const _0x4dca89 = await productModel.findOne({
                'name': _0x58cee0
            });
            if (!_0x4dca89 || _0x4dca89?.['length'] === 0x0) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | A product with that name doesn't exist!",
                    'ephemeral': true
                });
            }
            await _0x67a592.deferReply({
                'ephemeral': true
            });
            const _0x387d5b = new Discord.ButtonBuilder().setCustomId('yes').setLabel('Yes').setStyle('Primary').setEmoji('👍');
            const _0x118502 = new Discord.ButtonBuilder().setCustomId('no').setLabel('No').setStyle('Secondary').setEmoji('👎');
            let _0x4c72e4 = new Discord.ActionRowBuilder().addComponents(_0x387d5b, _0x118502);
            const _0x4fe00c = await licenseModel.find({
                'discordUserID': _0x3d3bec.id,
                'productName': _0x58cee0
            });
            if (_0x4fe00c && _0x4fe00c.length > 0x0) {
                return _0x67a592.editReply({
                    'content': "\uD83D\uDD34 | This user already has a license key for **" + _0x58cee0 + "**! Are you sure you want to create another key?",
                    'components': [_0x4c72e4],
                    'ephemeral': true,
                    'fetchReply': true
                }).then(async _0x3916e6 => {
                    const _0x2e9f63 = _0x3916e6.createMessageComponentCollector({
                        'time': 0x493e0
                    });
                    _0x2e9f63.on('collect', async _0x1f5dbb => {
                        if (_0x1f5dbb.customId === 'yes') {
                            await _0x1f5dbb.deferUpdate();
                            await _0x67a592.deleteReply();
                            let _0x243880 = _0x779a91.users.cache.get(_0x3d3bec.id);
                            let _0x36a6ed;
                            let _0x3d92e3;
                            if (!_0x243880) {
                                _0x36a6ed = "\u26A0\uFE0F Unknown";
                            }
                            if (!_0x243880) {
                                _0x3d92e3 = 'Unknown';
                            }
                            if (_0x243880) {
                                _0x36a6ed = '<@!' + _0x243880.id + '>';
                            }
                            if (_0x243880) {
                                _0x3d92e3 = '' + _0x243880.username;
                            }
                            const _0x14cd88 = new Discord.ButtonBuilder().setCustomId('create').setLabel('Create').setStyle('Primary');
                            const _0x47f580 = new Discord.ButtonBuilder().setCustomId('cancel').setLabel('Cancel').setStyle('Secondary');
                            let _0x5b7440 = new Discord.ActionRowBuilder().addComponents(_0x14cd88, _0x47f580);
                            let _0x451ad4 = new Discord.EmbedBuilder();
                            _0x451ad4.setAuthor({
                                'name': "\uD83D\uDFE0 Confirm License Information"
                            });
                            _0x451ad4.setColor('Orange');
                            _0x451ad4.addFields({
                                'name': "\u2022 License Information:",
                                'value': "> Product: ``" + _0x58cee0 + '``'
                            });
                            _0x451ad4.addFields({
                                'name': "\u2022 License User Information:",
                                'value': "> User: " + _0x36a6ed + " (" + _0x3d92e3 + ")\n> User ID: ``" + _0x243880.id + "``\n> [BuiltByBit User ID:](https://builtbybit.com/members/swqpping." + _0x5dd518 + "/) ``" + _0x5dd518 + '``'
                            });
                            _0x451ad4.addFields({
                                'name': "\u2022 Created by:",
                                'value': "> User: <@!" + _0x67a592.user.id + "> (" + _0x67a592.user.username + ")\n> User ID: ``" + _0x67a592.user.id + '``'
                            });
                            _0x451ad4.setTimestamp();
                            await _0x67a592.followUp({
                                'embeds': [_0x451ad4],
                                'components': [_0x5b7440],
                                'ephemeral': true,
                                'fetchReply': true
                            }).then(async _0x374cfc => {
                                const _0x463c73 = _0x374cfc.createMessageComponentCollector({
                                    'time': 0x493e0
                                });
                                _0x463c73.on('collect', async _0x1a9b72 => {
                                    if (_0x1a9b72.customId === 'create') {
                                        await _0x1a9b72.deferUpdate();
                                        await _0x1a9b72.deleteReply();
                                        await _0x779a91.emit('createLicenseKey', _0x67a592, _0x58cee0, _0x3d3bec, _0x5dd518);
                                    }
                                    if (_0x1a9b72.customId === 'cancel') {
                                        await _0x1a9b72.deferUpdate();
                                        await _0x67a592.deleteReply();
                                    }
                                });
                            });
                        }
                        if (_0x1f5dbb.customId === 'no') {
                            await _0x1f5dbb.deferUpdate();
                            await _0x67a592.deleteReply();
                        }
                    });
                    _0x2e9f63.on('end', _0x2b543 => {
                        if (_0x2b543.msg && _0x67a592) {
                            _0x67a592.deleteReply();
                        }
                    });
                });
            }
            let _0x2f94f = _0x779a91.users.cache.get(_0x3d3bec.id);
            let _0x21a291;
            let _0x392796;
            if (!_0x2f94f) {
                _0x21a291 = "\u26A0\uFE0F Unknown";
            }
            if (!_0x2f94f) {
                _0x392796 = 'Unknown';
            }
            if (_0x2f94f) {
                _0x21a291 = '<@!' + _0x2f94f.id + '>';
            }
            if (_0x2f94f) {
                _0x392796 = '' + _0x2f94f.username;
            }
            const _0x3c91fc = new Discord.ButtonBuilder().setCustomId('create').setLabel('Create').setStyle('Primary');
            const _0x4406ff = new Discord.ButtonBuilder().setCustomId('cancel').setLabel('Cancel').setStyle('Secondary');
            let _0x4c61a5 = new Discord.ActionRowBuilder().addComponents(_0x3c91fc, _0x4406ff);
            let _0x2d570f = new Discord.EmbedBuilder();
            _0x2d570f.setAuthor({
                'name': "\uD83D\uDFE0 Confirm License Information"
            });
            _0x2d570f.setColor('Orange');
            _0x2d570f.addFields({
                'name': "\u2022 License Information:",
                'value': "> Product: ``" + _0x58cee0 + '``'
            });
            _0x2d570f.addFields({
                'name': "\u2022 License User Information:",
                'value': "> User: " + _0x21a291 + " (" + _0x392796 + ")\n> User ID: ``" + _0x2f94f.id + "``\n> [BuiltByBit User ID:](https://builtbybit.com/members/swqpping." + _0x5dd518 + "/) ``" + _0x5dd518 + '``'
            });
            _0x2d570f.addFields({
                'name': "\u2022 Created by:",
                'value': "> User: <@!" + _0x67a592.user.id + "> (" + _0x67a592.user.username + ")\n> User ID: ``" + _0x67a592.user.id + '``'
            });
            _0x2d570f.setTimestamp();
            await _0x67a592.followUp({
                'embeds': [_0x2d570f],
                'components': [_0x4c61a5],
                'ephemeral': true,
                'fetchReply': true
            }).then(async _0x4da711 => {
                const _0x356edb = _0x4da711.createMessageComponentCollector({
                    'time': 0x493e0
                });
                _0x356edb.on('collect', async _0x21b254 => {
                    if (_0x21b254.customId === 'create') {
                        await _0x21b254.deferUpdate();
                        await _0x21b254.deleteReply();
                        await _0x779a91.emit('createLicenseKey', _0x67a592, _0x58cee0, _0x3d3bec, _0x5dd518);
                    }
                    if (_0x21b254.customId === 'cancel') {
                        await _0x21b254.deferUpdate();
                        await _0x67a592.deleteReply();
                    }
                });
            });
        }
        if (_0xf93528 === 'list') {
            if (config.license_list.Enabled === false) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | This command has been disabled in the config!",
                    'ephemeral': true
                });
            }
            const _0x36bf47 = config.license_list.AllowedRoles.some(_0x374a9b => {
                const _0x5b21da = _0x67a592.guild.roles.cache.get(_0x374a9b);
                return _0x5b21da && _0x67a592.member.roles.cache.has(_0x374a9b);
            });
            if (!config.DevMode && !_0x36bf47) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | " + config.Locale.NoPermsMessage,
                    'ephemeral': true
                });
            }
            await _0x67a592.deferReply({
                'ephemeral': true
            });
            const _0x231ea8 = await licenseModel.find();
            if (!_0x231ea8 || _0x231ea8?.['length'] === 0x0) {
                return _0x67a592.editReply({
                    'content': "\uD83D\uDD34 | There's no license keys yet!",
                    'ephemeral': true
                });
            }
            let _0x2a9acf = [];
            for (let _0x2aca31 = 0x0; _0x2aca31 < _0x231ea8.length; _0x2aca31++) {
                const _0x3babb0 = _0x231ea8[_0x2aca31];
                if (!_0x3babb0.latestIP) {
                    _0x3babb0.latestIP = 'Unknown';
                }
                if (!_0x3babb0.latestHWID) {
                    _0x3babb0.latestHWID = 'Unknown';
                }
                if (!_0x3babb0.totalRequests) {
                    _0x3babb0.totalRequests = 0x0;
                }
                let _0x44979b = _0x779a91.users.cache.get(_0x3babb0.discordUserID);
                let _0x4fefed;
                let _0x1385f3;
                if (!_0x44979b) {
                    _0x4fefed = "\u26A0\uFE0F Unknown";
                }
                if (!_0x44979b) {
                    _0x1385f3 = 'Unknown';
                }
                if (_0x44979b) {
                    _0x4fefed = '<@!' + _0x44979b.id + '>';
                }
                if (_0x44979b) {
                    _0x1385f3 = '' + _0x44979b.username;
                }
                let _0x599858 = new Discord.EmbedBuilder();
                _0x599858.setAuthor({
                    'name': "\uD83D\uDD11 Total License Keys: " + _0x231ea8.length
                });
                _0x599858.setColor(config.EmbedColors);
                _0x599858.addFields({
                    'name': "\u2022 License Information:",
                    'value': "> License Key: ``" + _0x3babb0.licenseKey + "``\n> Product: ``" + _0x3babb0.productName + "``\n> Total Requests: ``" + _0x3babb0.totalRequests + "``\n> Latest IP: ``" + _0x3babb0.latestIP + "``\n> Latest HWID: ``" + _0x3babb0.latestHWID + "``\n> Created at: <t:" + (_0x3babb0.createdAt / 0x3e8 | 0x0) + ':R>'
                });
                _0x599858.addFields({
                    'name': "\u2022 User Information:",
                    'value': "> User: " + _0x4fefed + " (" + _0x1385f3 + ")\n> User ID: ``" + _0x3babb0.discordUserID + "``\n> [BuiltByBit User ID:](https://builtbybit.com/members/swqpping." + _0x3babb0.builtbybitUserID + "/) ``" + _0x3babb0.builtbybitUserID + '``'
                });
                _0x599858.setTimestamp();
                _0x2a9acf.push(_0x599858);
            }
            utils.paginateEmbed(_0x67a592, ['⏪', 'Previous', 'Next', '⏩'], _0x2a9acf, '3m');
        }
        if (_0xf93528 === 'delete') {
            if (config.license_delete.Enabled === false) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | This command has been disabled in the config!",
                    'ephemeral': true
                });
            }
            const _0x48dce7 = config.license_delete.AllowedRoles.some(_0x8142a => {
                const _0x1ba8af = _0x67a592.guild.roles.cache.get(_0x8142a);
                return _0x1ba8af && _0x67a592.member.roles.cache.has(_0x8142a);
            });
            if (!config.DevMode && !_0x48dce7) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | " + config.Locale.NoPermsMessage,
                    'ephemeral': true
                });
            }
            await _0x67a592.deferReply({
                'ephemeral': true
            });
            let _0x587537 = _0x67a592.options.getString('licensekey');
            const _0x1d1efa = await licenseModel.findOne({
                'licenseKey': _0x587537
            });
            if (!_0x1d1efa) {
                return _0x67a592.editReply({
                    'content': "\uD83D\uDD34 | This license key does not exist! ``(" + _0x587537 + ')``'
                });
            }
            await licenseModel.findOneAndDelete({
                'licenseKey': _0x587537
            });
            const _0x1ee8b2 = await statisticsModel.findOne({
                'name': 'Statistics'
            });
            _0x1ee8b2.totalLicenses--;
            await _0x1ee8b2.save();
            try {
                if (_0x8377fb) {
                    let _0x3dd595 = _0x779a91.users.cache.get(_0x1d1efa.discordUserID);
                    let _0x38fd30;
                    let _0x3c8259;
                    if (!_0x3dd595) {
                        _0x38fd30 = "\u26A0\uFE0F Unknown";
                    }
                    if (!_0x3dd595) {
                        _0x3c8259 = 'Unknown';
                    }
                    if (_0x3dd595) {
                        _0x38fd30 = '<@!' + _0x3dd595.id + '>';
                    }
                    if (_0x3dd595) {
                        _0x3c8259 = '' + _0x3dd595.username;
                    }
                    if (!_0x1d1efa.builtbybitUserID) {
                        _0x1d1efa.builtbybitUserID = 'Unknown';
                    }
                    let _0x17e875 = new Discord.EmbedBuilder();
                    _0x17e875.setAuthor({
                        'name': "\uD83D\uDD34 License Deleted"
                    });
                    _0x17e875.setColor('Red');
                    _0x17e875.addFields({
                        'name': "\u2022 License Information:",
                        'value': "> License Key: ``" + _0x587537 + "``\n> Product: ``" + _0x1d1efa.productName + "``\n> Created at: <t:" + (_0x1d1efa.createdAt / 0x3e8 | 0x0) + ':R>'
                    });
                    _0x17e875.addFields({
                        'name': "\u2022 License User Information:",
                        'value': "> User: " + _0x38fd30 + " (" + _0x3c8259 + ")\n> User ID: ``" + _0x3dd595.id + "``\n> [BuiltByBit User ID:](https://builtbybit.com/members/swqpping." + _0x1d1efa.builtbybitUserID + "/) ``" + _0x1d1efa.builtbybitUserID + '``'
                    });
                    _0x17e875.addFields({
                        'name': "\u2022 Deleted by:",
                        'value': "> User: <@!" + _0x67a592.user.id + "> (" + _0x67a592.user.username + ")\n> User ID: ``" + _0x67a592.user.id + '``'
                    });
                    _0x17e875.setTimestamp();
                    _0x8377fb.send({
                        'embeds': [_0x17e875]
                    });
                }
            } catch (_0x1c670a) {
                console.error(_0x1c670a);
            }
            return _0x67a592.editReply({
                'content': "\uD83D\uDFE2 | You successfully deleted this license key! ``(" + _0x587537 + ')``'
            });
        }
        if (_0xf93528 === 'get') {
            if (config.license_get.Enabled === false) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | This command has been disabled in the config!",
                    'ephemeral': true
                });
            }
            const _0x3ab5aa = config.license_get.AllowedRoles.some(_0x1f9cab => {
                const _0x2f6e61 = _0x67a592.guild.roles.cache.get(_0x1f9cab);
                return _0x2f6e61 && _0x67a592.member.roles.cache.has(_0x1f9cab);
            });
            if (!config.DevMode && !_0x3ab5aa) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | " + config.Locale.NoPermsMessage,
                    'ephemeral': true
                });
            }
            await _0x67a592.deferReply({
                'ephemeral': true
            });
            let _0x19d377 = _0x67a592.options.getString('query');
            const _0x53b510 = await licenseModel.find(_0x19d377 ? {
                '$or': [{
                    'licenseKey': _0x19d377
                }, {
                    'discordUserID': _0x19d377
                }, {
                    'builtbybitUserID': _0x19d377
                }]
            } : {});
            if (!_0x53b510 || _0x53b510.length === 0x0) {
                return _0x67a592.editReply("\uD83D\uDD34 | No license key with that value found! ``(" + _0x19d377 + ')``');
            }
            let _0xb74797 = [];
            for (let _0x5933d3 = 0x0; _0x5933d3 < _0x53b510.length; _0x5933d3++) {
                const _0x49dba4 = _0x53b510[_0x5933d3];
                if (!_0x49dba4.latestIP) {
                    _0x49dba4.latestIP = 'Unknown';
                }
                if (!_0x49dba4.latestHWID) {
                    _0x49dba4.latestHWID = 'Unknown';
                }
                if (!_0x49dba4.totalRequests) {
                    _0x49dba4.totalRequests = 0x0;
                }
                let _0x55adc5 = _0x779a91.users.cache.get(_0x49dba4.discordUserID);
                let _0x41dd9d;
                let _0x5ebdb1;
                if (!_0x55adc5) {
                    _0x41dd9d = "\u26A0\uFE0F Unknown";
                }
                if (!_0x55adc5) {
                    _0x5ebdb1 = 'Unknown';
                }
                if (_0x55adc5) {
                    _0x41dd9d = '<@!' + _0x55adc5.id + '>';
                }
                if (_0x55adc5) {
                    _0x5ebdb1 = '' + _0x55adc5.username;
                }
                let _0x575835 = new Discord.EmbedBuilder();
                _0x575835.setAuthor({
                    'name': "\uD83D\uDD11 License Keys Found: " + _0x53b510.length
                });
                _0x575835.setColor(config.EmbedColors);
                _0x575835.addFields({
                    'name': "\u2022 License Information:",
                    'value': "> License Key: ``" + _0x49dba4.licenseKey + "``\n> Product: ``" + _0x49dba4.productName + "``\n> Total Requests: ``" + _0x49dba4.totalRequests + "``\n> Latest IP: ``" + _0x49dba4.latestIP + "``\n> Latest HWID: ``" + _0x49dba4.latestHWID + "``\n> Created at: <t:" + (_0x49dba4.createdAt / 0x3e8 | 0x0) + ':R>'
                });
                _0x575835.addFields({
                    'name': "\u2022 User Information:",
                    'value': "> User: " + _0x41dd9d + " (" + _0x5ebdb1 + ")\n> User ID: ``" + _0x49dba4.discordUserID + "``\n> [BuiltByBit User ID:](https://builtbybit.com/members/swqpping." + _0x49dba4.builtbybitUserID + "/) ``" + _0x49dba4.builtbybitUserID + '``'
                });
                _0x575835.setTimestamp();
                _0xb74797.push(_0x575835);
            }
            
            if (_0xb74797.length === 0x1) {
                return _0x67a592.editReply({
                    'embeds': _0xb74797
                });
            }
            utils.paginateEmbed(_0x67a592, ['⏪', 'Previous', 'Next', '⏩'], _0xb74797, '3m');
        }
        if (_0xf93528 === 'cleardata') {
            if (config.license_cleardata.Enabled === false) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | This command has been disabled in the config!",
                    'ephemeral': true
                });
            }
            const _0x3c3517 = config.license_cleardata.AllowedRoles.some(_0x3c8b6d => {
                const _0x247275 = _0x67a592.guild.roles.cache.get(_0x3c8b6d);
                return _0x247275 && _0x67a592.member.roles.cache.has(_0x3c8b6d);
            });
            if (!config.DevMode && !_0x3c3517) {
                return _0x67a592.reply({
                    'content': "\uD83D\uDD34 | " + config.Locale.NoPermsMessage,
                    'ephemeral': true
                });
            }
            await _0x67a592.deferReply({
                'ephemeral': true
            });
            let _0x2ca92c = _0x67a592.options.getString('licensekey');
            let _0x399e83 = _0x67a592.options.getString('data');
            const _0x1f45eb = await licenseModel.findOne({
                'licenseKey': _0x2ca92c
            });
            if (!_0x1f45eb) {
                return _0x67a592.editReply({
                    'content': "\uD83D\uDD34 | This license key does not exist! ``(" + _0x2ca92c + ')``'
                });
            }
            if (_0x399e83 === 'IP') {
                await _0x1f45eb.updateOne({
                    'ipList': []
                });
                await _0x67a592.editReply({
                    'content': "\uD83D\uDFE2 | You successfully deleted the IP data of this license key! ``(" + _0x2ca92c + ')``'
                });
            }
            if (_0x399e83 === 'HWID') {
                await _0x1f45eb.updateOne({
                    'hwidList': []
                });
                await _0x67a592.editReply({
                    'content': "\uD83D\uDFE2 | You successfully deleted the HWID data of this license key! ``(" + _0x2ca92c + ')``'
                });
            }
            try {
                if (_0x8377fb) {
                    let _0x3f0455 = _0x779a91.users.cache.get(_0x1f45eb.discordUserID);
                    let _0x588bd1;
                    let _0x10a7d2;
                    if (!_0x3f0455) {
                        _0x588bd1 = "\u26A0\uFE0F Unknown";
                    }
                    if (!_0x3f0455) {
                        _0x10a7d2 = 'Unknown';
                    }
                    if (_0x3f0455) {
                        _0x588bd1 = '<@!' + _0x3f0455.id + '>';
                    }
                    if (_0x3f0455) {
                        _0x10a7d2 = '' + _0x3f0455.username;
                    }
                    if (!_0x1f45eb.builtbybitUserID) {
                        _0x1f45eb.builtbybitUserID = 'Unknown';
                    }
                    let _0xaa521e = new Discord.EmbedBuilder();
                    _0xaa521e.setAuthor({
                        'name': "\uD83D\uDFE0 License Data Cleared (" + _0x399e83 + ')'
                    });
                    _0xaa521e.setColor('Orange');
                    _0xaa521e.addFields({
                        'name': "\u2022 License Information:",
                        'value': "> License Key: ``" + _0x2ca92c + "``\n> Product: ``" + _0x1f45eb.productName + "``\n> Created at: <t:" + (_0x1f45eb.createdAt / 0x3e8 | 0x0) + ':R>'
                    });
                    _0xaa521e.addFields({
                        'name': "\u2022 License User Information:",
                        'value': "> User: " + _0x588bd1 + " (" + _0x10a7d2 + ")\n> User ID: ``" + _0x3f0455.id + "``\n> [BuiltByBit User ID:](https://builtbybit.com/members/swqpping." + _0x1f45eb.builtbybitUserID + "/) ``" + _0x1f45eb.builtbybitUserID + '``'
                    });
                    _0xaa521e.addFields({
                        'name': "\u2022 Cleared by:",
                        'value': "> User: <@!" + _0x67a592.user.id + "> (" + _0x67a592.user.username + ")\n> User ID: ``" + _0x67a592.user.id + '``'
                    });
                    _0xaa521e.setTimestamp();
                    _0x8377fb.send({
                        'embeds': [_0xaa521e]
                    });
                }
            } catch (_0x2bfbe7) {
                console.error(_0x2bfbe7);
            }
        }
    }
};






revert ooiginal names etc cleanup textshow full code