123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: irot
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function _4d3(){};_4d3.prototype._cq8=false;_4d3.prototype._rd7='';_4d3.prototype._hd8='';_4d3.prototype._ln1="rns1:";_4d3.prototype._o41=_6i6._p2;_4d3.prototype._dd1=_6i6._g3;_4d3.prototype._qy2=function(_gp1,_9v3,_8h4){this._ln1=_gp1;this._o41=_9v3;this._dd1=_8h4;};_4d3.prototype._o06=function(_pp7){this._rd7=_pp7||'';};_4d3.prototype._rv5=function(){return this._rd7;};_4d3.prototype._uo8=function(_br3){var _eq5=null;var _bm8='';var _4n5=null;var _sv8=null;if(_br3){_4n5=_br3.selectSingleNode('/SOAP-ENV:Envelope/SOAP-ENV:Header/bus:biBusHeader/bus:tracking');_sv8=_br3.selectSingleNode('/SOAP-ENV:Envelope/SOAP-ENV:Body/SOAP-ENV:Fault');}if(_4n5&&!_sv8){_eq5=_999._co8(_4n5);var _oi8=_4n5.selectSingleNode('bus:conversationContext/bus:status');if(_oi8){_bm8=_oi8.text;}}this._o06(_eq5);this._hd8=_bm8;};_4d3.prototype._fz8=function(){return this._cq8;};_4d3.prototype._5x2=function(){var _el8;switch(this._hd8){case '':case 'conversationComplete':_el8='';break;case 'working':case 'stillWorking':_el8=this._ln1+'cancel';break;default:_el8=this._ln1+'release';break;}return _el8;};_4d3.prototype._s98=function(_vd1,_vl7){if(this._ed1){this._cq8=false;if(!_vd1){console.log("Shared conversation release for reuse:" + this._ed1);return false;}_4d3._ls1(this._ed1);}var _el8=this._5x2();if(_el8==''||!this._rd7){this._rd7='';this._hd8='';return false;}var _w68 ="<" + _el8 + ">" +'<bus:conversation xsi:type="bus:asynchRequest">' +'</bus:conversation>'+"</" + _el8 + ">";var _e48=new _6i6(_vl7||null, this._dd1, _w68);_e48._eg3(this);_e48._v89();this._rd7='';this._hd8='';return true;};_4d3._8n1={};_4d3._i71=function(_bf1){return this._8n1[_bf1];};_4d3._3q1=function(_bf1){var _025;if(_bf1){_025=this._8n1[_bf1];if(_025){if(_025._cq8){console.log("Shared conversation unable to reuse, currently in use:" + _bf1);_025=new _4d3();}else{console.log("Shared conversation reusing:" + _bf1);}}else{console.log("Shared conversation created:" + _bf1);_025=this._8n1[_bf1]=new _4d3();_025._ed1=_bf1;}}else{_025=new _4d3();}_025._cq8=true;return _025;};_4d3._ls1=function(_bf1){var _025=this._8n1[_bf1];if(_025){_025._ed1=null;delete this._8n1[_bf1];}};_4d3._h2=function(_bf1){var _025=this._8n1[_bf1];if(_025){_025._s98(true);}};_4d3._se=function(){var _rs8=false;var _oe7=[];for(var _045 in this._8n1){var _025=this._8n1[_045];_025._ed1=null;var _el8=_025._5x2();if(_el8!=''){var _iw3 ="<" + _el8 + ">" +'<bus:conversation xsi:type="bus:asynchRequest">' +'</bus:conversation>'+"</" + _el8 + ">";var _tu3=new _6i6(null, _6i6._g3, _iw3);_tu3._8q8=_rs8;_tu3._eg3(_025);_oe7.push(_tu3); }}this._8n1={};return _oe7;};_4d3._en=function(_vd1,_ov3){var _dl7=Q.defer();var _025=_4d3._3q1(_ov3);var _6z1=_025._s98(_vd1, {_c42:function(){ _dl7.resolve(true); }});if(!_6z1){_dl7.resolve(true);}return _dl7.promise;};
|