(function(){"use strict";u8.Crm.ProcessHelpers=function(e){$.extend(this,e)};$.extend(u8.Crm.ProcessHelpers.prototype,{openPopupProcess:function(e){var s={name:e.processName,width:e.width,height:e.height};for(var o in e){if(e.hasOwnProperty(o)&&o!=="processName"){s[o]=e[o]}}var t=u8.services.navigation.getPageUrl("process",s);var r=new u8.Base.Widgets.Popup(t,{allowClose:true,allowMaximize:true,allowResize:true,allowMove:true,autoClose:false,position:"center",alignTo:"window",defaultTitle:u8.session.commonTexts.loading,disposeOnClose:true,modal:true,size:{width:s.width?s.width:.6,height:s.height?s.height:.6}});r.open();return r}});u8.services.add("processHelpers",u8.Crm.ProcessHelpers)})();