Untitled

mail@pastecode.io avatar
unknown
javascript
a month ago
5.3 kB
3
Indexable
Never
if (!hideoptions['vendo']) {
      setTimeout(function () {
        socketIO['emit'](_0x29dfb5['getKeys']()[0xe], function (_0x2c8756) {
          for (var _0x589d22 in _0x2c8756['vendoList']) {
            if (!_0x2c8756['vendoList'][_0x589d22]['insertbtn']) {
              delete _0x2c8756['vendoList'][_0x589d22];
            }
          }
          var _0xe9dfa9 = Object['keys'](_0x2c8756['vendoList']);
          if (_0xe9dfa9['length'] <= 0x0) {
            _0x3d8747('#select-box')['hide']();
            _0x3d8747('#select-box')['remove']();
            _0x3d8747('#insert-btn-parent')['remove']();
            return;
          }
          for (var _0x589d22 in _0x2c8756['vendoList']) {
            if (_0x2c8756['vendoList'][_0x589d22]['insertbtn']) {
              _0x3d8747('#select-box-dropdown')['prop']('disabled', false);
              var _0x229a36 = _0x3d8747(insertboxoption['prop']('outerHTML'));
              _0x229a36['attr']('name', _0x589d22);
              _0x229a36['html'](_0x2c8756['vendoList'][_0x589d22]['name']);
              _0x229a36['off']('click');
              _0x229a36.on('click', function () {
                _0x3d8747('#select-box-dropdown')['html'](this['innerHTML']);
                var _0x1b0168 = _0x3d8747(this)['attr']('name');
                _0x3d8747('#select-box-dropdown')['attr']('name', _0x1b0168);
                _0x2c05e7(_0x1b0168, _0x2c8756['vendoList'][_0x1b0168]['name']);
              });
              _0x3d8747('#select-box-dropdown')['html'](_0x2c8756['vendoList'][_0x589d22]['name']);
              _0x3d8747('#select-box-dropdown')['attr']('name', _0x589d22);
              _0x3d8747('#select-dropdown-options')['append'](_0x229a36);
              _0x3d8747('#select-box')['show']();
            }
          }
          socketIO['emit'](_0x29dfb5['getKeys']()[0x2], function (_0x26d8c1) {
            function _0x336efa() {
              var _0xf08a28 = _0x3d8747('#select-box-dropdown')['attr']('name');
              _0x2c05e7(_0x2c8756['vendoList'][_0xf08a28].id, _0x2c8756['vendoList'][_0xf08a28]['name']);
            }
            if (_0x26d8c1['lastinsertedvendo'] === 'main' && _0x2c8756['vendoList']['main']['insertbtn']) {
              _0x3d8747('#select-box-dropdown')['attr']('name', 'main');
              _0x3d8747('#select-box-dropdown')['html'](_0x2c8756['vendoList']['main']['name']);
              _0x336efa();
              return;
            }
            if (_0x26d8c1['lastinsertedvendo'] && _0x2c8756['vendoList'][_0x26d8c1['lastinsertedvendo']] && _0x2c8756['vendoList'][_0x26d8c1['lastinsertedvendo']]['insertbtn']) {
              _0x3d8747('#select-box-dropdown')['attr']('name', _0x26d8c1['lastinsertedvendo']);
              _0x3d8747('#select-box-dropdown')['html'](_0x2c8756['vendoList'][_0x26d8c1['lastinsertedvendo']]['name']);
              // missing return here
            } else if (_0x2c8756['vendoList'][_0x26d8c1['lastinsertedvendo']] && _0x2c8756['vendoList'][_0x26d8c1['lastinsertedvendo']]['insertbtn']) {
              _0x3d8747('#select-box-dropdown')['attr']('name', 'main');
              _0x3d8747('#select-box-dropdown')['html'](_0x2c8756['vendoList']['main']['name']);
              _0x336efa();
              return;
            }
            socketIO['emit'](_0x29dfb5['getKeys']()[0x11], _0x26d8c1['interface'], function (_0x1e7831) {
              if (_0x1e7831 && _0x1e7831['length'] > 0x0) {
                var _0x4499fe; // unused var
                for (var _0x40496c in _0x1e7831) {
                  var _0x4b6134 = _0x1e7831[_0x40496c];
                  if (_0x26d8c1['lastinsertedvendo'] && _0x26d8c1['lastinsertedvendo'] === _0x4b6134 && _0x2c8756['vendoList'][_0x4b6134]['insertbtn']) {
                    _0x3d8747('#select-box-dropdown')['attr']('name', _0x4b6134);
                    _0x3d8747('#select-box-dropdown')['html'](_0x2c8756['vendoList'][_0x4b6134]['name']);
                    var _0x41c5dc = { // unused var
                      'id': _0x4b6134,
                      ['name']: _0x2c8756['vendoList'][_0x4b6134]['name']
                    };
                    _0x4499fe = _0x41c5dc;
                    break;
                  } else if (_0x2c8756['vendoList'][_0x4b6134]['insertbtn']) {
                    _0x3d8747('#select-box-dropdown')['attr']('name', _0x4b6134);
                    _0x3d8747('#select-box-dropdown')['html'](_0x2c8756['vendoList'][_0x4b6134]['name']);
                    var _0x410c96 = { // unused var
                      'id': _0x4b6134,
                      ['name']: _0x2c8756['vendoList'][_0x4b6134]['name']
                    };
                    _0x4499fe = _0x410c96;
                    // missing break here
                  }
                }
              } else {
                if (_0x2c8756['vendoList']['main'] && _0x2c8756['vendoList']['main']['insertbtn']) {
                  _0x3d8747('#select-box-dropdown')['attr']('name', 'main');
                  _0x3d8747('#select-box-dropdown')['html'](_0x2c8756['vendoList']['main']['name']);
                }
              }
              _0x336efa();
            });
          });
        });
      }, 0x3e8);
    } else {
      _0x2c05e7();
    }
Leave a Comment