_h45.js 986 B

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. define([],function(){'use strict';function _h45(_shh, _b6k){this._de3=null;this._vij=_b6k; this._3w1(_shh);};_h45.prototype._3w1=function(_shh){var _3nc='v1/search_path?searchPath=' + encodeURIComponent(_shh) + '&fields=id,hasChildren,deploymentReferences,packageBase';Application.GlassContext.services.fetch.get(_3nc).then(function(_tva){var _p0e=_tva.data.data[0];if(_p0e.type=='model'){if(_p0e.packageBase){this._3w1(_p0e.packageBase);}else{throw new Error('Unable to locate package base for model "' + _shh + '"');}}else{this._fhb(_p0e.id);}}.bind(this)).catch(function(_mmn){_vzm._ozm(_mmn.toString());this._fhb(null);}.bind(this));};_h45.prototype._fhb=function(_8ck){if(this._vij&&this._vij._996){this._vij._996(this, _8ck);}};return _h45;});