_rpc.js 2.8 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 _rpc(_b6k, _3en, _qgl, _p0e){_rpc.baseConstructor.call(this, _b6k);if(_qgl){_3en='storeID("' + _qgl + '")';}if(_p0e&&_p0e._meta){this._x5a(_p0e);}this._uq7=window["_qkk"]?_qkk._qik("UseReportService"):_ylh._hg1;var _6qd=this._uq7?_157:_257;this._9sk=new _6qd({_996:this._fp.bind(this, this),_2c7:this._dbj.bind(this, "_2c7")},_3en,_qgl);this._a5a(this._9sk, ["_jm3","_k75","_l75","_566","_dg8","_s22","_y75","_ed4","_qtc","_451","_0o3","_bs9","_le4"]);}_olk._vjl(_rpc, _xzf);_rpc.prototype._ign=function(){this._osb=this._9sk; this._9sk._ign();};_rpc.prototype._7zm=function(){if(this._osb){this._osb._7zm(); }};_rpc.prototype._8ik=function(){return this._pjm||(this._osb&&this._osb._8ik());};_rpc.prototype._kt9=function(){};_rpc.prototype._fp=function(_yal){if(_yal._8ik()){this._ex3();return;}this._osb=null;if(this._uq7&&!this._prl){var _h8k=this._9sk._1ge();var _8jh=_h8k+'?fields=searchPath,base.id,base.type,base.searchPath';this._osb=new _yzf({_996:this._m52.bind(this),_2c7:this._dbj.bind(this, "_2c7")}, 'GET', _8jh);this._osb._ign();}else{this._ex3();}};_rpc.prototype._m52=function(_sec){console.log('_rpc._e12');if(_sec._8ik()){this._ex3();return;}var _5hc=_sec._yfd&&_sec._yfd.data&&_sec._yfd.data.length>0&&_sec._yfd.data[0];if(!_5hc){_sec._b6g('Missing JSON data');this._ex3();return;}this._osb=null;this._x5a(_5hc);this._ex3();};_rpc._by2=function(_5hc){var _dxa=_5hc.base&&_5hc.base.length>0&&_5hc.base[0]; return {modificationTime: _dxa&&_dxa.modificationTime||_5hc.modificationTime,objectURL: _dxa&&_5hc._meta.links.self.url,objectType: _dxa&&_5hc.type,cmSearchPath: _dxa&&_dxa.searchPath||_5hc.searchPath,storeID: _dxa&&_dxa.id||_5hc.id,reportViewCmSearchPath: _dxa?_5hc.searchPath:"",reportViewStoreID: _dxa?_5hc.id:"",reportViewObjectType: _dxa&&_dxa.type||""}; };_rpc.prototype._x5a=function(_5hc){this._prl=_rpc._by2(_5hc);};_rpc.prototype._ex3=function(){this._kt9();this._dbj("_996");};_rpc.prototype._dbj=function(_yvm){if(this._vij&&this._vij[_yvm]){this._vij[_yvm](this);}};_rpc.prototype._a5a=function(_epf,_5vk){for(var i=0; i<_5vk.length;++i){var _h9m=_5vk[i];this[_h9m]=_epf[_h9m].bind(_epf);}};_rpc.prototype._1ge=function(){if(this._uq7){return this._prl.objectURL;}else{return this._9sk._1ge();}};_rpc.prototype._n66=function(){if(this._uq7){return this._prl.cmSearchPath;}else{return this._9sk._n66();} };_rpc.prototype._j03=function(){if(this._uq7){return(this._prl&&this._prl.cmSearchPath)||this._9sk._j03();}else{return this._9sk._j03();}};_rpc.prototype._ar9=function(){if(this._uq7){return this._prl.storeID;}else{return this._9sk._ar9();}};_rpc.prototype._u5j=function(){return this._prl;};