(function(){"use strict";u8.Crm.ItemsModelMixIn=function(e){};$.extend(u8.Crm.ItemsModelMixIn,{deleteSelection:function(e){var t=this.getSelectedItems();if(!t||t.length<1){return e&&e()}if(t.length==1){return this.deleteItem({item:t[0]},e)}var n=this;var r="TXT_search_text_17";var i=t.filter(u8._.eqish(["uid","infoAreaId"],"MA"));if(i.length<1){return s()}var a=i.map(u8._.attr("uid"));u8.request("CollaborationChannel.GetRecurrenceInfoMany",{uids:a},function(e,t){if(!t||t.error){return u8.log.error("GetRecurrenceInfoMany request failed!"+t.error)}var n=t.response;if(n.isSerialContact){if(n.isMasterContact){r="TXT_search_text_25"}else{r="TXT_search_text_24"}}s()});function s(){var i={image:"Warning",buttons:"Ok,Cancel",messageTextId:r,captionTextId:"TXT_standard_header_texts_87",buttonsAlignment:"right"};u8.Base.Widgets.MessageBox.showWarning(i,function(r,i){if(i.command=="Ok"){n.deleteItems({items:t,confirm:false},e)}else if(e){e()}})}}})})();