OverviewFilesCommitsIssuesDocsReleasesPeers

keet-cli / deobfuscated / lib / tasks / pairing / response.js

39 lines · javascript ref:
const _0x1d56b6=(function(){let _0x4061ad=!![];return function(_0xf9166d,_0x4a9ba0){const _0x307af4=_0x4061ad?function(){if(_0x4a9ba0){const _0x3c790b=_0x4a9ba0.apply(_0xf9166d,arguments);return _0x4a9ba0=null,_0x3c790b;}}:function(){};return _0x4061ad=![],_0x307af4;};}());
const _0x3040ac=_0x1d56b6(this,function(){_0x273283={_0x22a36e:0x35};return _0x3040ac.toString().search("(((.+)+)+)+$").toString().constructor(_0x3040ac).search("(((.+)+)+)+$");});
_0x3040ac();
const {
  Task}
=require('../task');
module.exports=class JoinResponseTask extends Task{
  constructor(_0xb9f270){
    _0x20fded={
      _0x4e917a:0x1f4,_0x399cfa:0x46f,_0x40d476:0x1c2},_0x28b810={
      _0x1597de:0x1c7,_0x2392b0:0xfd,_0x381f35:0x31}
    ;
    super(_0xb9f270);
    const _0x369dec=this.description.joinRoomResponse;
    this._keyPair=_0x369dec.keyPair;
    this._response=_0x369dec.response,this._mailbox=_0x369dec.mailbox,this._core=null;
  }
async._close(){
  _0x128752={
    _0x5ecb31:0x1a4,_0x3424a8:0x1df,_0xb37193:0x93}
  ;
  if(this._core)await this._core.close();
}
async._run(){
  _0x231be0={
    _0x4030b6:0xac,_0x1c5e25:0x23d,_0x3c0d63:0x1d2},_0x2f952f={
    _0x3d6090:0x29,_0x98d60a:0x391,_0x1f48df:0x187}
  ;
  this._core=this.store.get({'keyPair':this._keyPair}),await this._core.ready();
  if(this._core.length===0x0){
    await this.keet.internalVerifyOptimisticCore(this._core);
    if(this.closing)return;
    this._core.length===0x0&&await this._core.append(this._response,{'maxLength':0x1});
  }
await this.keet.blindPeering.addCore(this._core,this._mailbox,{'referrer':this._mailbox,'priority':0x1}),await new Promise(_0x4f7e2a=>setTimeout(_0x4f7e2a,this.keet.internalPairingTimeout));
}
}
;