(function(){u8.Crm.ExpandReader=function(e){$.extend(this,u8.Crm.ExpandReader.defaults,e)};u8.Crm.ExpandReader.makeClass({name:"ExpandReader"});u8.Crm.ExpandReader.defaults={endPoint:"ExpandChannel.Get",endPointExport:"ExpandChannel.Export"};$.extend(u8.Crm.ExpandReader.prototype,{execute:function(e,n){var t=this;if(typeof e=="function"){n=e;e={}}var r=this.report||e&&e.report;if(r){var s=$.extend({},this.options);var d=new u8.Base.Request({endPoint:this.endPointExport,arguments:{options:s}});r.setRequestArguments(d,s);d.executeExport(i)}else{u8.request(this.endPoint,{options:this.options},i)}function i(e,r){return n&&n(t,r.error?r:r.response)}},readItem:function(e,n){var t=this;u8.services.crud.read({uid:e.businessObject.uid,fields:e.fieldIds},function(e,r){return n&&n(t,r)})}})})();