(function(){$.extend(page,{using:{types:["ListView"],schema:["FI","KP","PE"]},commandBindings:$.extend({Select:e},page.commandBindings),onLoad:function(){var e=this.url;var r,d,i;if(e.has("personUids")){r=e.get("personUids").split(",").filterAndMap(u8._.trueish(),[u8.parseRecordUid,u8._.attr("recordId")])}if(e.has("companyUids")){d=e.get("companyUids").split(",").filterAndMap(u8._.trueish(),[u8.parseRecordUid,u8._.attr("recordId")])}if(e.has("humanUids")){i=e.get("humanUids").split(",").filterAndMap(u8._.trueish(),[u8.parseRecordUid,u8._.attr("recordId")])}if(r&&r.length>0){a("persons",{infoAreaId:"KP",recordIds:r,fieldGroupName:"KPPhoneWizard"})}if(d&&d.length>0){a("companies",{infoAreaId:"FI",recordIds:d,fieldGroupName:"FIPhoneWizard"})}if(i&&i.length>0){a("humans",{infoAreaId:"PE",recordIds:i,fieldGroupName:"PEPhoneWizard"})}function a(e,r){if(!r.recordIds||r.recordIds.length<=0){return}var d={parent:page,model:{pageSize:Math.min(15,r.recordIds.length),fieldGroupName:r.fieldGroupName,dataProvider:{reader:{endPoint:"RecordIdListChannel",arguments:{recordIds:r.recordIds}}}},canEdit:false,menu:{model:{menuName:"M_Select"}},grid:{showMiniDetails:false,showDefaultAction:false,defaultAction:"A_Select",selectionMode:"Single",view:{allowColumnResizing:false,allowColumnReordering:false,allowSorting:false}},header:{fixedText:n(r.infoAreaId)}};var i=new u8.Crm.Widgets.ListView($el(e),d);i.model.update()}function n(e){return u8.services.schema.getInfoArea(e).labelPlural}}});function e(e,r,d){page.proceed({command:"Event1",commandArguments:d.uid})}})();