(function(){"use strict";u8.Crm.ListDataProvider=function(e){$.extend(this,u8.Crm.ListDataProvider.defaults,e)};u8.Crm.ListDataProvider.defaults={_xsiNoSerialize:true};$.extend(u8.Crm.ListDataProvider.prototype,{load:function(e,t){var r=new u8.Crm.ListReader(this.reader);$.extend(r.arguments,this.list.getReaderArguments(),{skipRows:e.from,maxRows:Math.max(e.to-e.from+1,this.maxRowsMin||0)});var i=this;r.execute(function(e,r){var n={};var o=r.resultSet;if(r.error||!o){n.error=r.error}else{n.resultSet=o;if(i&&i.list&&i.list.link&&o.query&&o.query.links==null){return}if(!i.list.infoAreaId&&o.infoAreaId){i.list.infoAreaId=o.infoAreaId}}i.unitInfo=r.unitInfo;if(t){t(i,n)}})},countRows:function(e){var t=new u8.Crm.ListReader(this.reader);$.extend(t.arguments,this.list.getReaderArguments());var r=this;t.countRows(function(t,i){if(e){e(r,i)}})},dispose:function(){},"DataProvider.onPreUpload":function(e){e.fieldGroupname=this.list.fieldGroupName;e.fieldControlType=this.list.fieldControlType}})})();