PageSourceSearch

https://mspbackups.com/Areas/Admin/AngularClientApp/mbs-spa/dist/4545.3535b6a0a2b4fc16.js

js mspbackups.com collected 2026-10-04 16:01:09 UTC 27,074 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmbs_ui=self.webpackChunkmbs_ui||[]).push([[4545],{44650(y,A,i){i.d(A,{C0:()=>e,Q9:()=>l,T5:()=>g,VH:()=>t,WM:()=>c,aY:()=>C,k:()=>u,l2:()=>b,wN:()=>o,wl:()=>h}),i(21215);var c=function(s){return s.Global="global",s.Company="company",s.Computer="computer",s.Custom="custom",s}(c||{}),l=function(s){return s.HighCpuUsage="highCpuUsage",s.HighTemperature="highTemperature",s.HighMemoryUsage="highMemoryUsage",s.WrongSystemTime="wrongSystemTime",s.SmartNotHealthy="smartNotHealthy",s.ConnectionLoss="connectionLoss",s.NoAntivirus="noAntivirus",s.NotUpdated="notUpdated",s.ServiceState="serviceState",s.SoftwareChanges="softwareChanges",s.HardwareChanges="hardwareChanges",s.LowDiskSpace="lowDiskSpace",s.SnmpDevice="snmpDevice",s}(l||{}),h=function(s){return s.Hours="mbs-ui:rmm-custom-alerting.time.hours",s.Minutes="mbs-ui:rmm-custom-alerting.time.minutes",s}(h||{});const t={alertPercent:{ninety:"90",eighty:"80"},duration:{five:"00:05:00",fifteen:"00:15:00",twenty:"00:20:00"},hardwareChanges:{excludedNames:["redirected","Remote Desktop Keyboard Device","Remote Audio","Microsoft Remote Display Adapter","Remote Desktop Mouse Device"],excludedPNPClasses:["AudioEndpoint","DigitalMediaDevices","MEDIA","Miracast","Monitor","Keyboard","Mouse","Ports","Printer","PrintQueue","SoftwareComponent","SoftwareDevice","WSDPrintDevice","Bluetooth","Display","HIDClass","Image","XnaComposite","WPD"],excludedPNPDeviceIDs:["STORAGEVOLUMESNAPSHOT","SWDMSDAS","SWD\\IP_TUNNEL_VBUS","SWD\\SENSORSANDLOCATIONENUM"]}};var e=function(s){return s.None="None",s.Provider="Provider",s.Administrators="Administrators",s.Users="Users",s.SpecifiedEmails="SpecifiedEmails",s.ProviderAndEmails="Provider, SpecifiedEmails",s}(e||{}),o=function(s){return s.Global="Global",s.Company="Company",s.Computer="Computer",s.Custom="Custom",s}(o||{}),u=function(s){return s[s.Global=1]="Global",s[s.Company=2]="Company",s[s.Computer=3]="Computer",s}(u||{});const g=[l.NotUpdated,l.NoAntivirus,l.HardwareChanges],C=[l.HighCpuUsage,l.HighMemoryUsage,l.LowDiskSpace,l.WrongSystemTime,l.SmartNotHealthy,l.ConnectionLoss,l.SnmpDevice,l.ServiceState,l.SoftwareChanges,l.HighTemperature];var b=function(s){return s[s.None=0]="None",s[s.ConnectWise=1]="ConnectWise",s[s.AutoTask=2]="AutoTask",s[s.HaloPSA=3]="HaloPSA",s[s.MBSTickets=4]="MBSTickets",s}(b||{})},14992(y,A,i){i.d(A,{F:()=>m});var d=i(63855),c=i(85240),l=i(57415);let m=(()=>{class f{constructor(){this.http=(0,c.WQX)(d.Qq),this.config=(0,c.WQX)(l.s),this.settingsApiUrl=`${this.config.get("rmmCustomSettings")}/api/custom/provider/profile`,this.getProfileApiUrl=`${this.config.get("rmmCustomSettings")}/api/custom/public`,this.mbsStageKey=this.config.get("mbsStageKey")}getProfileList(t={},e="rmm",o="alertsettings"){return this.mbsStageKey&&(t.mbsStageKey=this.mbsStageKey),this.http.get(`${this.settingsApiUrl}/${e}/${o}/list`,{params:t})}getProfileQuantity(t={},e="rmm",o="alertsettings"){return this.mbsStageKey&&(t.mbsStageKey=this.mbsStageKey),this.http.get(`${this.settingsApiUrl}/${e}/${o}/computers-count`,{params:t})}registerProfileSettings(t,e={},o="rmm",u="alertsettings"){return this.mbsStageKey&&(e.mbsStageKey=this.mbsStageKey),this.http.post(`${this.settingsApiUrl}/${o}/${u}/register`,t,{params:e})}updateProfileSettings(t,e,o={},u="rmm",g="alertsettings"){return this.mbsStageKey&&(o.mbsStageKey=this.mbsStageKey),this.http.put(`${this.settingsApiUrl}/${u}/${g}/${t}`,e,{params:o})}removeProfileSettings(t,e={},o="rmm",u="alertsettings"){return this.mbsStageKey&&(e.mbsStageKey=this.mbsStageKey),this.http.delete(`${this.settingsApiUrl}/${o}/${u}/${t}`,{params:e})}removeProfilesSettings(t,e={},o="rmm",u="alertsettings"){return this.mbsStageKey&&(e.mbsStageKey=this.mbsStageKey),this.http.post(`${this.settingsApiUrl}/${o}/${u}/delete`,t,{params:e})}getProfileSettings(t,e={include:"notifications"},o="rmm",u="alertsettings"){return this.mbsStageKey&&(e.mbsStageKey=this.mbsStageKey),this.http.get(`${this.settingsApiUrl}/${o}/${u}/${t}`,{params:e})}getProfileCounts(t,e={include:"notifications"},o="rmm",u="alertsettings"){return this.mbsStageKey&&(e.mbsStageKey=this.mbsStageKey),this.http.get(`${this.settingsApiUrl}/${o}/${u}/${t}/computers-count`,{params:e})}changeProfileState(t,e,o={},u="rmm",g="alertsettings"){return this.mbsStageKey&&(o.mbsStageKey=this.mbsStageKey),this.http.put(`${this.settingsApiUrl}/${u}/${g}/${t}/disable`,{disabled:e},{params:o})}getIntersectionData(t={},e="rmm",o="alertsettings"){return this.mbsStageKey&&(t.mbsStageKey=this.mbsStageKey),this.http.get(`${this.settingsApiUrl}/${e}/${o}/intersection`,{params:t})}checkIntersectionData(t,e={},o="rmm",u="alertsettings"){return this.mbsStageKey&&(e.mbsStageKey=this.mbsStageKey),this.http.post(`${this.settingsApiUrl}/${o}/${u}/intersection`,t,{params:e})}postResolveIntersection(t,e={},o="rmm",u="alertsettings"){return this.http.post(`${this.settingsApiUrl}/${o}/${u}/resolve-intersections`,t,{params:e})}getUsedProfileForComputer(t,e,o={},u="rmm",g="alertsettings"){return this.mbsStageKey&&(o.mbsStageKey=this.mbsStageKey),this.http.get(`${this.getProfileApiUrl}/${u}/${g}/${t}/${e}/profile`,{params:o})}getProfileStatistic(t={},e="rmm",o="alertsettings"){return this.mbsStageKey&&(t.mbsStageKey=this.mbsStageKey),this.http.get(`${this.settingsApiUrl}/${e}/${o}/statistic`,{params:t})}getCompanyProfileList(t,e={},o="rmm",u="alertsettings"){return this.mbsStageKey&&(e.mbsStageKey=this.mbsStageKey),this.http.get(`${this.settingsApiUrl}/${o}/${u}/company/${t}`,{params:e})}static{this.\u0275fac=function(e){return new(e||f)}}static{this.\u0275prov=c.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},21349(y,A,i){i.d(A,{M:()=>d});var d=function(c){return c.LoadStarted="load started",c.LoadCompletedServer="load completed - server",c.LoadCompletedCache="load completed - cache",c.RightClickAuthorize="Right_click_authorize",c.RightClickBackupPlans="Right_click_backup_plans",c.RightClickBackupHistory="Right_click_backup_history",c.RightClickRestore="Right_click_restore",c.RightClickReportAProblem="Right_click_report_a_problem",c.RmmSidepanelOpenByButtonClick="computers-page-open-rmm-sidepanel-button",c.RmmSidepanelOpenByVersionClick="computers-page-open-rmm-sidepanel-version",c.RmmSidepanelOpenByDiskClick="computers-page-open-rmm-sidepanel-disk",c.RmmSidepanelOpenByCpuClick="computers-page-open-rmm-sidepanel-cpu",c.RmmSidepanelOpenByMemClick="computers-page-open-rmm-sidepanel-mem",c.RmmSidepanelOpenByUpdatesClick="computers-page-open-rmm-sidepanel-updates",c.RmmSidepanelOpenByA
1ntivirusClick="computers-page-open-rmm-sidepanel-antivirus",c.RmmSidepanelOpenByEventsClick="computers-page-open-rmm-sidepanel-events",c}(d||{})},79169(y,A,i){i.d(A,{q:()=>f});var d=i(85240),c=i(64334),l=i(21349),m=i(41307);let f=(()=>{class h{constructor(){this.posthogService=(0,d.WQX)(m.s)}prepareLoadedMetrics(e,o){e.initiallyNotLoaded$.pipe((0,c.s)(1)).subscribe(()=>{this.posthogService.capturePredefinedEvent(l.M.LoadStarted,o)}),e.loadedFromServer$.pipe((0,c.s)(1)).subscribe(()=>{this.posthogService.capturePredefinedEvent(l.M.LoadCompletedServer,o)}),e.initiallyLoaded$.pipe((0,c.s)(1)).subscribe(()=>{this.posthogService.capturePredefinedEvent(l.M.LoadCompletedCache,o)})}capturePredefinedEvent(e,o){this.posthogService.capturePredefinedEvent(e,o)}static{this.\u0275fac=function(o){return new(o||h)}}static{this.\u0275prov=d.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()},93778(y,A,i){i.d(A,{p:()=>r});var d=i(24398),c=i(85240),l=i(4637),m=i(46227),h=i(21215),t=i(38780),e=i(44650),o=i(14992),u=i(75797),g=i(59452),C=i(51567),b=i(70271),s=i(36647),v=i(64334);let r=class P{constructor(){this.profileService=(0,c.WQX)(o.F),this.authFacade=(0,c.WQX)(t.B),this.typeOfSetting=e.WM.Custom,this.profilePostActions=new u.t(null),this.customSettingsWereInheritedButNotSaved=!1,this.usedSettings=new u.t(null),this.DefaultTemplate={...this.getAlertSettingsTemplate(),...this.getRecipientSettingsTemplate()},this.isLoading$=new u.t(!0),this.dataHasBeingChanged=new u.t(!1),this.authFacade.currentUser$.pipe((0,v.s)(1)).subscribe(a=>this.providerId=a?.ProviderInfo?.Id),this.isLoading$.pipe((0,C.p)(a=>!a),(0,l.s)(this)).subscribe(()=>{this.dataHasBeingChanged.next(!1),this.currentSettings=this.notificationSettings?this.updateAlertSettingsValueIfNone(this.notificationSettings):this.DefaultTemplate,this.currentSettings&&this.makeSettingsAddon()})}updateAlertSettingsValueIfNone(a){const p=(0,m.cloneDeep)(a);return Object.keys(this.DefaultTemplate).forEach(S=>{S in p||(p[S]=(0,m.cloneDeep)(this.DefaultTemplate[S]))}),Object.keys(p).forEach(S=>{if(!p[S])return p[S]=(0,m.cloneDeep)(this.DefaultTemplate[S]);S in this.DefaultTemplate&&Object.keys(this.DefaultTemplate[S]).forEach(D=>{D in p[S]||(p[S][D]=(0,m.cloneDeep)(this.DefaultTemplate[S][D]))})}),p}setSettingsType(a,p){this.clearSettings(),this.typeOfSetting=a,this.settingsId=p,this.loadSettings()}clearSettings(){this.notificationSettings=null,this.currentSettings=null,this.typeOfSetting=e.WM.Custom,this.usedSettings.next(null)}makeSettingsAddon(){if([h.kI.All,h.kI.ServersOnly,h.vk.All,h.vk.ServersOnly].includes(this.currentSettings?.connectionLoss?.notifyToPlatform)){const a=this.currentSettings.connectionLoss?.notifyToPlatform;this.currentSettings={...this.currentSettings,connectionLoss:{...this.currentSettings.connectionLoss,notifyToPlatform:this.currentSettings?.connectionLoss?.enabled&&[h.vk.ServersOnly,h.kI.ServersOnly].includes(a)?h.kI.All:h.kI.ServersOnly}}}this.currentSettings?.recipient&&(this.currentSettings={...this.currentSettings,recipient:{...this.currentSettings.recipient,rule:this.currentSettings?.recipient?.type??h.fA.None}}),this.usedSettings.next((0,m.cloneDeep)(this.currentSettings))}getConnectionLossSettings(a){if(void 0!==a?.connectionLoss?.notifyToPlatform){const p=!!a.connectionLoss?.notifyToPlatform;a.connectionLoss.notifyToPlatform=a?.connectionLoss?.enabled&&p?h.kI.ServersOnly:h.kI.All}return a}getFormArrayValueFromString(a){return Array.isArray(a)?a:a&&a?.trim()?a.replaceAll("\r\n",",").replaceAll("\n",",").replaceAll(".",",").split(",").flatMap(p=>""===p.trim()?[]:p.trim()):[]}loadSettings(){switch(this.typeOfSetting){case e.WM.Company:this.settingsId?this.fetchCompanySettingsUseCase(this.settingsId):this.fetchGlobalSettings();break;case e.WM.Computer:this.settingsId?this.fetchComputerSettingsUseCase(this.settingsId):this.fetchGlobalSettings();break;case e.WM.Global:this.fetchGlobalSettings();break;default:this.isLoading$.next(!1)}}fetchGlobalSettings(){this.isLoading$.next(!0),this.profileService.getProfileList({profileType:e.WM.Global,include:"notifications"}).pipe((0,s.n)(a=>a.data.length&&this.typeOfSetting===e.WM.Global?this.profileService.getProfileSettings(a?.data[0].id):(0,g.of)(null)),(0,l.s)(this)).subscribe(a=>{a&&(this.notificationSettings=a.notifications,this.profilePostActions.next(a.postActions)),this.isLoading$.next(!1)})}fetchCompanySettingsUseCase(a){this.isLoading$.next(!0),this.fetchGlobalSettings(),a&&this.profileService.getCompanyProfileList(a).pipe((0,b.T)(p=>p.length?p[0]:null),(0,l.s)(this)).subscribe(p=>{this.notificationSettings=p?.notifications??null,p&&this.profilePostActions.next(p.postActions),this.isLoading$.next(!1)})}fetchComputerSettingsUseCase(a){this.isLoading$.next(!0),this.profileService.getUsedProfileForComputer(this.providerId,a).pipe((0,l.s)(this)).subscribe(p=>{this.profilePostActions.next(p?.postActions),this.profileSettingsName=p?.name,this.notificationSettings=p?.notifications,this.isLoading$.next(!1)})}getAlertSettingsTemplate(){return{[e.Q9.HighCpuUsage]:this.getDefaultParamsByAlertType(e.Q9.HighCpuUsage),[e.Q9.HighMemoryUsage]:this.getDefaultParamsByAlertType(e.Q9.HighMemoryUsage),[e.Q9.LowDiskSpace]:this.getDefaultParamsByAlertType(e.Q9.LowDiskSpace),[e.Q9.NotUpdated]:this.getDefaultParamsByAlertType(e.Q9.NotUpdated),[e.Q9.SmartNotHealthy]:this.getDefaultParamsByAlertType(e.Q9.SmartNotHealthy),[e.Q9.SoftwareChanges]:this.getDefaultParamsByAlertType(e.Q9.SoftwareChanges),[e.Q9.HardwareChanges]:this.getDefaultParamsByAlertType(e.Q9.HardwareChanges),[e.Q9.ConnectionLoss]:this.getDefaultParamsByAlertType(e.Q9.ConnectionLoss),[e.Q9.
1NoAntivirus]:this.getDefaultParamsByAlertType(e.Q9.NoAntivirus),[e.Q9.SnmpDevice]:this.getDefaultParamsByAlertType(e.Q9.SnmpDevice),[e.Q9.ServiceState]:this.getDefaultParamsByAlertType(e.Q9.ServiceState),[e.Q9.HighTemperature]:this.getDefaultParamsByAlertType(e.Q9.HighTemperature),[e.Q9.WrongSystemTime]:this.getDefaultParamsByAlertType(e.Q9.WrongSystemTime)}}getRecipientSettingsTemplate(){return{recipient:{rule:h.fA.None,type:0,emails:[]},pushRecipient:{type:h.fA.None,users:[]},pushNotification:{enabled:!1}}}getDefaultParamsByAlertType(a){switch(a){case e.Q9.HighCpuUsage:case e.Q9.HighMemoryUsage:return{alertPercent:e.VH.alertPercent.ninety,duration:e.VH.duration.five,selectedProcesses:[],enabled:!1};case e.Q9.LowDiskSpace:return{alertPercent:e.VH.alertPercent.ninety,duration:e.VH.duration.five,excludedVolumeLabels:[].join(", "),excludedMountPoints:[].join(", "),excludeBootVolume:!1,excludeRemovableDisks:!1,enabled:!1};case e.Q9.NotUpdated:case e.Q9.SmartNotHealthy:return{duration:e.VH.duration.five,enabled:!1};case e.Q9.SoftwareChanges:return{excludedNames:[].join(", "),excludedVendor:[].join(", "),enabled:!1};case e.Q9.HardwareChanges:return{excludedNames:e.VH.hardwareChanges.excludedNames.join(", "),excludedPNPClasses:e.VH.hardwareChanges.excludedPNPClasses.join(", "),excludedPNPDeviceIDs:e.VH.hardwareChanges.excludedPNPDeviceIDs.join(", "),excludedManufacturer:[].join(", "),enabled:!1};case e.Q9.ConnectionLoss:return{enabled:!1,notifyToPlatform:h.kI.ServersOnly,notifyOnRestore:!1,duration:e.VH.duration.twenty};case e.Q9.NoAntivirus:return{duration:e.VH.duration.fifteen,enabled:!1};case e.Q9.SnmpDevice:return{alerts:[],enabled:!1};case e.Q9.ServiceState:return{duration:e.VH.duration.five,enabled:!1,includeServices:[]};case e.Q9.HighTemperature:return{alertHighTemperature:e.VH.alertPercent.eighty,duration:e.VH.duration.five,enabled:!1};case e.Q9.WrongSystemTime:return{alertWrongSystemTimeDifference:e.VH.duration.five,enabled:!1};default:return{}}}syncCurrentData(a){this.dataHasBeingChanged.next(this.isChanged(a)),this.currentSettings=(0,m.cloneDeep)(a)}isChanged(a){if(!this.currentSettings)return!0;let p=!1;return Object.keys(a).forEach(S=>{Object.keys(a[S]).forEach(D=>{a[S][D]!==this.currentSettings[S][D]&&(p=!0)})}),p}updateRecipients(a){this.dataHasBeingChanged.next(this.isChanged(a)),this.usedSettings.next({...(0,m.cloneDeep)(this.usedSettings.getValue()),recipient:{...a.recipient,type:a.recipient.rule??h.fA.None},pushRecipient:{type:a.pushRecipient.type??h.fA.None,users:a.pushRecipient.users??[]},pushNotification:{enabled:a.pushNotification.enabled}})}resetToDefaultValues(){this.dataHasBeingChanged.next(!0),this.usedSettings.next((0,m.cloneDeep)(this.DefaultTemplate))}setupProfileSettings(a){this.notificationSettings=this.updateAlertSettingsValueIfNone(a),this.isLoading$.next(!1)}loadCustom(a){this.profileService.getProfileSettings(a).pipe((0,v.s)(1)).subscribe(p=>{this.profilePostActions.next(p.postActions),this.setupProfileSettings(p.notifications)})}static{this.\u0275fac=function(p){return new(p||P)}}static{this.\u0275prov=c.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}};r=(0,d.Cg)([(0,l.d)()],r)},29063(y,A,i){i.d(A,{B:()=>s});var d=i(24398),c=i(85240),l=i(93778),m=i(4637),f=i(98497),h=i(21215),t=i(38780),e=i(44650),o=i(39545),u=i.n(o),g=i(75797),C=i(95429),b=i(36647);let s=class _{constructor(){this.modalService=(0,c.WQX)(f.Bg8),this.auth=(0,c.WQX)(t.B),this.customAlertService=(0,c.WQX)(l.p),this.providerEmail=new g.t(""),this.recipientsPayload=new g.t(null),this.onPostActionsReLoaded=new g.t(!1),this.profileActionPayload=new g.t(null),this.notificationsToSave=new g.t(null),this.settingsData=new g.t(null),this.applyTo=new g.t({allCompanies:!1,companies:[],computers:[],computerTags:[]}),this.profileName=new g.t(null),this.showApplyToStep=!1,this.canEditApplyToStep=!0,this.editMode=!1,this.profileId=null,this.showConnectWise=new g.t(!1),this.showHaloPSA=new g.t(!1),this.showMBSTickets=new g.t(!1),this.profileType=null,this.DefaultRecipient={recipient:{type:h.fA.None,emails:[]},pushNotification:{enabled:!1},pushRecipient:{type:h.fA.None,users:[]}},this.DefaultActionPayload={general:{recipient:{type:h.fA.None,emails:[]},pushNotification:{enabled:!1},pushRecipient:{type:h.fA.None,users:[]},connectWise:{enabled:!1},haloPSA:{enabled:!1},mbsPSA:{enabled:!1},windowsScriptGuid:null,linuxScriptGuid:null,macOsScriptGuid:null}},this.auth.currentUser$.pipe((0,m.s)(this)).subscribe(r=>this.providerEmail.next(r?.ProviderInfo?.EmailNotificationsTo))}loadWizardStream(r=null){return this.hids=r?.hids??[],this.totalCount=r?.totalCount??0,this.windowsAlertsEnabled=r?.windowsAlertsEnabled,this.showApplyToStep=!!r?.profileMode,this.editMode=!!r?.profileData?.editMode,this.profileId=r?.profileData?.profileId,this.profileType=r?.profileData?.profileType,this.showConnectWise.next(!!r?.showConnectWise),this.showHaloPSA.next(!!r?.showHaloPSA),this.showMBSTickets.next(!!r?.showM
1BSTickets),this.created=r?.profileData?.created??u()(new Date).toString(),this.profileActionPayload.next(this.canUsePerAlertPostActions(r?.profileData?.notifications)&&r?.profileData?.profileActionPayload?r?.profileData?.profileActionPayload:this.generatePostActionsFromNotifications(r?.profileData?.notifications)),r?.profileData?.profileType&&(this.canEditApplyToStep=!r?.profileData?.profileId),r?.profileData?.profileName&&this.profileName.next(r?.profileData?.profileName),r?.profileData?.applyTo&&this.applyTo.next({...r?.profileData?.applyTo}),this.onPostActionsReLoaded.next(!0),(0,C.H)(Promise.all([i.e(5685),i.e(6126),i.e(11),i.e(3797),i.e(2076),i.e(4370)]).then(i.bind(i,74370))).pipe((0,b.n)(n=>this.modalService.openWizard(n.RMMCustomNotificationWizardComponent)))}canUsePerAlertPostActions(r){return Object.keys(e.Q9).some(n=>r&&e.Q9[n]in r&&r[e.Q9[n]]?.enabled)}generatePostActionsFromNotifications(r){return{general:{recipient:{type:r?.recipient?.type??this.DefaultActionPayload.general.recipient.type,emails:r?.recipient?.emails??this.DefaultActionPayload.general.recipient.emails},pushNotification:{enabled:r?.pushNotification?.enabled??this.DefaultActionPayload.general.pushNotification.enabled},pushRecipient:{type:r?.pushRecipient?.type??this.DefaultActionPayload.general.pushRecipient.type,users:r?.pushRecipient?.users??this.DefaultActionPayload.general.pushRecipient.users},connectWise:{enabled:!1},haloPSA:{enabled:!1},mbsPSA:{enabled:!1},windowsScriptGuid:null,linuxScriptGuid:null,macOsScriptGuid:null}}}resetWizardData(){this.hids=[],this.filter=null,this.totalCount=0,this.windowsAlertsEnabled=!0,this.canEditApplyToStep=!0,this.showApplyToStep=!1,this.editMode=!1,this.profileId=null,this.profileActionPayload.next(this.DefaultActionPayload),this.profileName.next(null),this.applyTo.next({allCompanies:!1,companies:[],computers:[],computerTags:[]})}getFullPayload(r=!1){return{name:this.profileName.getValue(),applyTo:{allCompanies:!!this.showApplyToStep&&this.applyTo.getValue()?.allCompanies,companies:this.showApplyToStep?this.applyTo.getValue()?.companies:[],computerTags:this.showApplyToStep?this.applyTo.getValue()?.computerTags:[],computers:this.showApplyToStep?this.applyTo.getValue()?.computers:this.hids?.map(n=>({hid:n,name:null,disabled:!1}))},postActions:this.profileActionPayload.getValue(),notifications:{...r?this.getPayloadFromNotifications():this.settingsData.getValue(),...this.recipientsPayload.getValue(),...this.DefaultRecipient}}}getProfileType(r){const n=r.applyTo;return!n.allCompanies||n.computerTags.length||n.computers.length?!n.companies.length||n.computerTags.length||n.computers.length?n.allCompanies||n.companies.length||n.computerTags.length||!n.computers.length?e.wN.Custom:e.wN.Computer:e.wN.Company:e.wN.Global}getPayloadFromNotifications(){const r={};return Object.keys(e.Q9).forEach(n=>Object.assign(r,{[e.Q9[n]]:this.getObjectValueFromForm(n)})),this.customAlertService.getConnectionLossSettings(r)}getObjectValueFromForm(r){const n={...this.notificationsToSave.getValue()[e.Q9[r]]};switch(e.Q9[r]){case e.Q9.HighCpuUsage:case e.Q9.HighMemoryUsage:return{alertPercent:Number(n.alertPercent),duration:n.duration,enabled:!!n.enabled,selectedProcesses:n.selectedProcesses};case e.Q9.LowDiskSpace:return{alertPercent:Number(n.alertPercent),duration:n.duration,enabled:!!n.enabled,excludedVolumeLabels:this.getFormArrayValueFromString(n.excludedVolumeLabels),excludedMountPoints:this.getFormArrayValueFromString(n.excludedMountPoints),excludeBootVolume:n.excludeBootVolume,excludeRemovableDisks:n.excludeRemovableDisks};case e.Q9.SmartNotHealthy:case e.Q9.NoAntivirus:case e.Q9.NotUpdated:return{duration:n.duration,enabled:!!n.enabled};case e.Q9.SoftwareChanges:return{excludedNames:this.getFormArrayValueFromString(n.excludedNames),excludedVendor:this.getFormArrayValueFromString(n.excludedVendor),enabled:!!n.enabled};case e.Q9.HardwareChanges:return{excludedNames:this.getFormArrayValueFromString(n.excludedNames),excludedPNPClasses:this.getFormArrayValueFromString(n.excludedPNPClasses),excludedPNPDeviceIDs:this.getFormArrayValueFromString(n.excludedPNPDeviceIDs),excludedManufacturer:this.getFormArrayValueFromString(n.excludedManufacturer),enabled:!!n.enabled};case e.Q9.ConnectionLoss:return{enabled:!!n.enabled,notifyToPlatform:n.enabled?n.notifyToPlatform:h.kI.All,notifyOnRestore:!!n.enabled&&n.notifyOnRestore,duration:n.duration};case e.Q9.SnmpDevice:return{alerts:n.alerts??[],enabled:!!n.enabled};case e.Q9.HighTemperature:return{alertHighTemperature:Number(n.alertHighTemperature),duration:n.duration,enabled:!!n.enabled};case e.Q9.WrongSystemTime:return{alertWrongSystemTimeDifference:n.alertWrongSystemTimeDifference,enabled:!!n.enabled};case e.Q9.ServiceState:return{includeServices:n.includeServices??[],enabled:!!n.enabled};default:return{}}}getFormArrayValueFromString(r){return this.customAlertService.getFormArrayValueFromString(r)}updateIntegrationState(r,n,a){this.showConnectWise.next(r),this.showHaloPSA.next(n),this.showMBSTickets.next(a)}static{this.\u0275fac=function(n){return new(n||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}};s=(0,d.Cg)([(0,m.d)()],s)},77856(y,A,i){i.d(A,{E:()=>m});var d=i(63855),c=i(85240),l=i(57415);let m=(()=>{class f{constructor(){this.config=(0,c.WQX)(l.s),this.http=(0,c.WQX)(d.Qq),this.billingAlert=!0,this.baseApiURL="api/integration/connectWise/",this.integrationApiURL="api/integration/",this.mbsStageKey=this.config.get("mbsStageKey");const t=this.config.get("rmmCustomSettings");this.rmmAlertingAPI=`${t}/api/custom/provider`,this.defaultParams={mbsStageKey:this.mbsStageKey}}getAuthData(){return this.http.get(this.baseApiURL+"authenticate")}saveAuthData(t){return this.http.post(this.baseApiURL+"authenticate",t)}updateAuthData(t){return this.http.put(this.baseApiURL+"authenticate",t)}removeAuthData(){return this.http.delete(this.baseApiURL+"authenticate")}permissionCheck(){return this.http.get(this.baseApiURL+"authorize")}getSettingsTypes(t){return this.http.get(this.baseApiURL+"types",{params:{boardId:t}}
1)}getSettingsSubTypes(t,e){return this.http.get(this.baseApiURL+"subtypes",{params:{boardId:t,typeId:e}})}getSettingsSubTypeItems(t,e){return this.http.get(this.baseApiURL+"items",{params:{boardId:t,subtypeId:e}})}getSettingsStatuses(t){return this.http.get(this.baseApiURL+"statuses",{params:{boardId:t}})}getSettingsForTickets(){return this.http.get(this.baseApiURL+"ticket-settings")}setSettingsForTickets(t){return this.http.post(this.baseApiURL+"ticket-settings",t)}getBackupBoardInfo(){return this.http.get(this.baseApiURL+"backup-ticket-options")}getRmmBoardInfo(){return this.http.get(this.baseApiURL+"rmm-ticket-options")}setBackupBoardInfo(t){return this.http.post(this.baseApiURL+"backup-ticket-options",t)}setRmmBoardInfo(t){return this.http.post(this.baseApiURL+"rmm-ticket-options",t)}getRmmConnectWiseSettings(){return this.http.get(this.rmmAlertingAPI+"/global/rmm/connectwisesettings",{params:this.defaultParams})}saveRmmConnectWiseSettings(t){return this.http.post(this.rmmAlertingAPI+"/global/rmm/connectwisesettings",t,{params:this.defaultParams})}getMBSCompanies(t){return this.http.get(this.baseApiURL+"/mbs-companies",{params:{...t}})}getConnectWiseCompanies(t){return this.http.get(this.baseApiURL+"/connectwise-companies",{params:{...t}})}getConnectWiseCompaniesForSearch(t){return this.http.get(this.baseApiURL+"/cw-companies",{params:{...t}})}syncConnectWiseCompanies(t){return this.http.post(this.baseApiURL+"/import-connectwise-companies",t)}bindConnectWiseCompanyToMbs(t){return this.http.post(this.baseApiURL+"/bind-connectwise-to-mbs-company",t)}unbindConnectWiseCompany(t){return this.http.post(this.baseApiURL+"/unbind-connectWise-company",t)}getBilling(t){return this.http.get(this.baseApiURL+"/billing",{params:{...t}})}setBilling(t){return this.http.post(this.baseApiURL+"/billing",t)}getSendInvoiceDescription(){return this.http.get(this.baseApiURL+"/send-invoice-description")}setSendInvoiceDescription(t){return this.http.post(this.baseApiURL+"/send-invoice-description",{sendInvoiceDescription:t})}getBillingProducts(){return this.http.get(this.baseApiURL+"/connectwise-products")}sendBillingInfo(t){return this.http.post(this.baseApiURL+"/billing/send",t)}getMBSUsers(t){return this.http.get(this.baseApiURL+"/mbs-users",{params:{...t}})}getConnectWiseUsers(t){return this.http.get(this.baseApiURL+"/connectwise-users",{params:{...t}})}bindConnectWiseUserToMbs(t){return this.http.post(this.baseApiURL+"/bind-connectwise-to-mbs-user",t)}unbindConnectWiseUser(t){return this.http.post(this.baseApiURL+"/unbind-connectwise-to-mbs-user",t)}syncConnectWiseUsers(t){return this.http.post(this.baseApiURL+"/import-connectwise-users",t)}getProductsMapping(){return this.http.get(`${this.baseApiURL}mapping/product`)}setProductsMappingProduct(t){return this.http.post(`${this.baseApiURL}mapping/product/bind`,t)}setProductsMappingStorage(t){return this.http.post(`${this.baseApiURL}mapping/storage/bind`,t)}deleteProductsMappingProduct(t){return this.http.delete(`${this.baseApiURL}mapping/product/${t}`)}deleteProductsMappingStorage(t){return this.http.delete(`${this.baseApiURL}mapping/storage/${t}`)}getBillingAgreements(t){return this.http.get(this.baseApiURL+`company/${t}/agreements`)}static{this.\u0275fac=function(e){return new(e||f)}}static{this.\u0275prov=c.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},97170(y,A,i){i.d(A,{w:()=>l});var d=i(63855),c=i(85240);let l=(()=>{class m{constructor(){this.http=(0,c.WQX)(d.Qq),this.baseApiURL="api/integration/"}getIntegrationStatusById(h){return this.http.get(this.baseApiURL+"status",{params:{type:h}})}static{this.\u0275fac=function(t){return new(t||m)}}static{this.\u0275prov=c.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()}}]);
2//# sourceMappingURL=4545.3535b6a0a2b4fc16.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.