_tl9.js 3.0 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function _tl9(){};_tl9.prototype._9im=false;_tl9.prototype._jlj='';_tl9.prototype._etl='';_tl9.prototype._vv4="rns1:";_tl9.prototype._me3=_ylh._y9;_tl9.prototype._k34=_ylh._nc;_tl9.prototype._dk8=function(_u35,_bya,_cjc){this._vv4=_u35;this._me3=_bya;this._k34=_cjc;};_tl9.prototype._aeg=function(_6fk){this._jlj=_6fk||'';};_tl9.prototype._i3g=function(){return this._jlj;};_tl9.prototype._6fm=function(_6ma){var _nrf=null;var _wam='';var _1gf=null;var _lrm=null;if(_6ma){_1gf=_6ma.selectSingleNode('/SOAP-ENV:Envelope/SOAP-ENV:Header/bus:biBusHeader/bus:tracking');_lrm=_6ma.selectSingleNode('/SOAP-ENV:Envelope/SOAP-ENV:Body/SOAP-ENV:Fault');}if(_1gf&&!_lrm){_nrf=_7hn._3em(_1gf);var _m3m=_1gf.selectSingleNode('bus:conversationContext/bus:status');if(_m3m){_wam=_m3m.text;}}this._aeg(_nrf);this._etl=_wam;};_tl9.prototype._hzm=function(){return this._9im;};_tl9.prototype._tg8=function(){var _h9m;switch(this._etl){case '':case 'conversationComplete':_h9m='';break;case 'working':case 'stillWorking':_h9m=this._vv4+'cancel';break;default:_h9m=this._vv4+'release';break;}return _h9m;};_tl9.prototype._ill=function(_l44,_b6k){if(this._l34){this._9im=false;if(!_l44){console.log("Shared conversation release for reuse:" + this._l34);return false;}_tl9._pb5(this._l34);}var _h9m=this._tg8();if(_h9m==''||!this._jlj){this._jlj='';this._etl='';return false;}var _0gl ="<" + _h9m + ">" +'<bus:conversation xsi:type="bus:asynchRequest">' +'</bus:conversation>'+"</" + _h9m + ">";var _yal=new _ylh(_b6k||null, this._k34, _0gl);_yal._7u9(this);_yal._ign();this._jlj='';this._etl='';return true;};_tl9._3v4={};_tl9._rn3=function(_p94){return this._3v4[_p94];};_tl9._555=function(_p94){var _z0e;if(_p94){_z0e=this._3v4[_p94];if(_z0e){if(_z0e._9im){console.log("Shared conversation unable to reuse, currently in use:" + _p94);_z0e=new _tl9();}else{console.log("Shared conversation reusing:" + _p94);}}else{console.log("Shared conversation created:" + _p94);_z0e=this._3v4[_p94]=new _tl9();_z0e._l34=_p94;}}else{_z0e=new _tl9();}_z0e._9im=true;return _z0e;};_tl9._pb5=function(_p94){var _z0e=this._3v4[_p94];if(_z0e){_z0e._l34=null;delete this._3v4[_p94];}};_tl9._k9=function(_p94){var _z0e=this._3v4[_p94];if(_z0e){_z0e._ill(true);}};_tl9._9e1=function(){var _rmm=false;var _nnj=[];for(var _55e in this._3v4){var _z0e=this._3v4[_55e];_z0e._l34=null;var _h9m=_z0e._tg8();if(_h9m!=''){var _r1b ="<" + _h9m + ">" +'<bus:conversation xsi:type="bus:asynchRequest">' +'</bus:conversation>'+"</" + _h9m + ">";var _fxa=new _ylh(null, _ylh._nc, _r1b);_fxa._2im=_rmm;_fxa._7u9(_z0e);_nnj.push(_fxa); }}this._3v4={};return _nnj;};_tl9._d12=function(_l44,_5za){var _g5k=Q.defer();var _z0e=_tl9._555(_5za);var _cv5=_z0e._ill(_l44, {_996:function(){ _g5k.resolve(true); }});if(!_cv5){_g5k.resolve(true);}return _g5k.promise;};