MeshCentral/public/scripts/amt-0.2.0-min.js
Ylian Saint-Hilaire 9838b52f8a Version 0.8.49
2021-05-27 15:55:06 -07:00

1 line
40 KiB
JavaScript

function AmtStackCreateService(e){var C=new Object;C.wsman=e,C.pfx=["http://intel.com/wbem/wscim/1/amt-schema/1/","http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/","http://intel.com/wbem/wscim/1/ips-schema/1/"],C.PendingEnums=[],C.PendingBatchOperations=0,C.ActiveEnumsCount=0,C.MaxActiveEnumsCount=1,C.onProcessChanged=null;var t=0,n=0;function A(){var e=C.GetPendingActions();t<e&&(t=e),null!=C.onProcessChanged&&n!=e&&(n=e,C.onProcessChanged(e,t)),0==e&&(t=0)}function _(e){C.ActiveEnumsCount-=e,C.ActiveEnumsCount>=C.MaxActiveEnumsCount||0==C.PendingEnums.length||(e=C.PendingEnums.shift(),C.Enum(e[0],e[1],e[2]),_(0))}function c(r){r.names.length<=r.current?r.callback(C,r.name,r.responses,200,r.tag):(C.wsman.ExecGet(C.CompleteName(r.names[r.current]),function(e,t,n,i){var o;o=r,i=i,null==(n=n)||200!=i?o.callback(C,o.name,null,i,o.tag):(o.responses[n.Header.Method]=n,c(o))},r.pri),r.current++),A()}function i(e,t,n,i,o){200==i&&"0"==n.Body.ReturnValue?C.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,o):o[0](C,null,o[2])}function m(e,t,n,i,o){if(200==i&&"0"==n.Body.ReturnValue){var r,c,a,s,u,d,S,A,_=o[2],l=new Date,E=n.Body.RecordArray;for(r in"string"==typeof E&&(n.Body.RecordArray=[n.Body.RecordArray]),E){s=null;try{s=window.atob(E[r])}catch(e){}if(null!=s&&0<(u=ReadIntX(s,0))&&u<4294967295){for(a={DeviceAddress:s.charCodeAt(4),EventSensorType:s.charCodeAt(5),EventType:s.charCodeAt(6),EventOffset:s.charCodeAt(7),EventSourceType:s.charCodeAt(8),EventSeverity:s.charCodeAt(9),SensorNumber:s.charCodeAt(10),Entity:s.charCodeAt(11),EntityInstance:s.charCodeAt(12),EventData:[],Time:new Date(1e3*(u+60*l.getTimezoneOffset()))},c=13;c<21;c++)a.EventData.push(s.charCodeAt(c));a.EntityStr=I[a.Entity],a.Desc=(d=a.EventSensorType,S=a.EventOffset,A=a.EventData,a.Entity,15!=d?18!=d||170!=A[0]?6==d?"Authentication failed "+(A[1]+(A[2]<<8))+" times. The system may be under attack.":30==d?"No bootable media":32==d?"Operating system lockup or power interrupt":35==d?"System boot failure":37==d?"System firmware started (at least one CPU is properly executing).":"Unknown Sensor Type #"+d:"Agent watchdog "+char2hex(A[4])+char2hex(A[3])+char2hex(A[2])+char2hex(A[1])+"-"+char2hex(A[6])+char2hex(A[5])+"-... changed to "+C.WatchdogCurrentStates[A[7]]:235==A[0]?"Invalid Data":(0==S?g:M)[A[1]]),a.EntityStr||(a.EntityStr="Unknown"),_.push(a)}}1!=n.Body.NoMoreRecords?C.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,[o[0],_,o[2]]):o[0](C,_,o[2])}else o[0](C,null,o[2])}C.GetPendingActions=function(){return 2*C.PendingEnums.length+C.ActiveEnumsCount+C.wsman.comm.PendingAjax.length+C.wsman.comm.ActiveAjaxCount+C.PendingBatchOperations},C.Subscribe=function(o,e,t,r,c,n,i,a,s,u){C.wsman.ExecSubscribe(C.CompleteName(o),e,t,function(e,t,n,i){A(),r(C,o,n,i,c)},0,n,i,a,s,u),A()},C.UnSubscribe=function(o,r,c,e,t){C.wsman.ExecUnSubscribe(C.CompleteName(o),function(e,t,n,i){A(),r(C,o,n,i,c)},0,e,t),A()},C.Get=function(o,r,c,e){C.wsman.ExecGet(C.CompleteName(o),function(e,t,n,i){A(),r(C,o,n,i,c)},0,e),A()},C.Put=function(o,e,r,c,t,n){C.wsman.ExecPut(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t,n),A()},C.Create=function(o,e,r,c,t){C.wsman.ExecCreate(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t),A()},C.Delete=function(o,e,r,c,t){C.wsman.ExecDelete(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t),A()},C.Exec=function(o,e,t,r,c,n,i){C.wsman.ExecMethod(C.CompleteName(o),e,t,function(e,t,n,i){A(),r(C,o,C.CompleteExecResponse(n),i,c)},0,n,i),A()},C.ExecWithXml=function(o,e,t,r,c,n,i){C.wsman.ExecMethodXml(C.CompleteName(o),e,execArgumentsToXml(t),function(e,t,n,i){A(),r(C,o,C.CompleteExecResponse(n),i,c)},0,n,i),A()},C.Enum=function(r,c,e,t){C.ActiveEnumsCount<C.MaxActiveEnumsCount?(C.ActiveEnumsCount++,C.wsman.ExecEnum(C.CompleteName(r),function(e,t,n,i,o){A(),function(o,e,r,t,n,c){if(200!=n)return r(C,o,null,n,c),_(1);if(null==e||"EnumerateResponse"!=e.Header.Method||!e.Body.EnumerationContext)return r(C,o,null,603,c),_(1);e=e.Body.EnumerationContext;C.wsman.ExecPull(t,e,function(e,t,n,i){!function o(r,e,c,t,a,n,s,i){if(200!=n)return c(C,r,null,n,s),void _(1);if(null==e||"PullResponse"!=e.Header.Method)return c(C,r,null,604,s),void _(1);for(var u in e.Body.Items)if(e.Body.Items[u]instanceof Array)for(var d in e.Body.Items[u])a.push(e.Body.Items[u][d]);else a.push(e.Body.Items[u]);{var S;e.Body.EnumerationContext?(S=e.Body.EnumerationContext,C.wsman.ExecPull(t,S,function(e,t,n,i){o(r,n,c,t,a,i,s,1)})):(_(1),c(C,r,a,n,s),A())}}(o,n,r,t,[],i,c)})}(r,n,c,t,i,o)},e,t)):C.PendingEnums.push([r,c,e,t]),A()},C.BatchEnum=function(e,t,n,i,o,r){C.PendingBatchOperations+=2*t.length,function r(c,a,s,u,e,d,S){C.PendingBatchOperations-=2;var t=a.shift(),n=C.Enum;"*"==t[0]&&(n=C.Get,t=t.substring(1));n(t,function(e,t,n,i,o){o[2][t]={response:null==n?null:n.Body,responses:n,status:i},0==o[1].length||401==i||1!=d&&200!=i&&400!=i?(C.PendingBatchOperations-=2*a.length,A(),s(C,c,o[2],i,u)):(A(),r(c,a,s,u,o[2],S))},[c,a,e],S);A()}(e,Clone(t),n,i,{},o,r),A()},C.BatchGet=function(e,t,n,i,o){c({name:e,names:t,callback:n,current:0,responses:{},tag:i,pri:o}),A()},C.CompleteName=function(e){return 0==e.indexOf("AMT_")?C.pfx[0]+e:0==e.indexOf("CIM_")?C.pfx[1]+e:0==e.indexOf("IPS_")?C.pfx[2]+e:void 0},C.CompleteExecResponse=function(e){return e&&null!=e&&e.Body&&e.Body.ReturnValue&&(e.Body.ReturnValueStr=C.AmtStatusToStr(e.Body.ReturnValue)),e},C.RequestPowerStateChange=function(e,t){C.CIM_PowerManagementService_RequestPowerStateChange(e,'<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="CreationClassName">CIM_ComputerSystem</Selector><Selector Name="Name">ManagedSystem</Selector></SelectorSet></ReferenceParameters>',null,null,t)},C.SetBootConfigRole=function(e,t){C.CIM_BootService_SetBootConfigRole('<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="InstanceID">Intel(r) AMT: Boot Configuration 0</Selector></SelectorSet></ReferenceParameters>',e,t)},C.CancelAllQueries=function(e){C.wsman.CancelAllQueries(e)},C.AMT_AgentPresenceWatchdog_RegisterAgent=function(e){C.Exec("AMT_AgentPresenceWatchdog","RegisterAgent",{},e)},C.AMT_AgentPresenceWatchdog_AssertPresence=function(e,t){C.Exec("AMT_AgentPresenceWatchdog","AssertPresence",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdog_AssertShutdown=function(e,t){C.Exec("AMT_AgentPresenceWatchdog","AssertShutdown",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdog_AddAction=function(e,t,n,i,o,r,c,a,s){C.Exec("AMT_AgentPresenceWatchdog","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r,c,a,s)},C.AMT_AgentPresenceWatchdog_DeleteAllActions=function(e,t,n,i){C.Exec("AMT_AgentPresenceWatchdog","DeleteAllActions",{},e,t,n,i)},C.AMT_AgentPresenceWatchdogAction_GetActionEac=function(e){C.Exec("AMT_AgentPresenceWatchdogAction","GetActionEac",{},e)},C.AMT_AgentPresenceWatchdogVA_RegisterAgent=function(e){C.Exec("AMT_AgentPresenceWatchdogVA","RegisterAgent",{},e)},C.AMT_AgentPresenceWatchdogVA_AssertPresence=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","AssertPresence",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdogVA_AssertShutdown=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","AssertShutdown",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdogVA_AddAction=function(e,t,n,i,o,r){C.Exec("AMT_AgentPresenceWatchdogVA","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r)},C.AMT_AgentPresenceWatchdogVA_DeleteAllActions=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","DeleteAllActions",{_method_dummy:e},t)},C.AMT_AuditLog_ClearLog=function(e){C.Exec("AMT_AuditLog","ClearLog",{},e)},C.AMT_AuditLog_RequestStateChange=function(e,t,n){C.Exec("AMT_AuditLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_AuditLog_ReadRecords=function(e,t,n){C.Exec("AMT_AuditLog","ReadRecords",{StartIndex:e},t,n)},C.AMT_AuditLog_SetAuditLock=function(e,t,n,i){C.Exec("AMT_AuditLog","SetAuditLock",{LockTimeoutInSeconds:e,Flag:t,Handle:n},i)},C.AMT_AuditLog_ExportAuditLogSignature=function(e,t){C.Exec("AMT_AuditLog","ExportAuditLogSignature",{SigningMechanism:e},t)},C.AMT_AuditLog_SetSigningKeyMaterial=function(e,t,n,i,o){C.Exec("AMT_AuditLog","SetSigningKeyMaterial",{SigningMechanismType:e,SigningKey:t,LengthOfCertificates:n,Certificates:i},o)},C.AMT_AuditPolicyRule_SetAuditPolicy=function(e,t,n,i,o){C.Exec("AMT_AuditPolicyRule","SetAuditPolicy",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},C.AMT_AuditPolicyRule_SetAuditPolicyBulk=function(e,t,n,i,o){C.Exec("AMT_AuditPolicyRule","SetAuditPolicyBulk",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},C.AMT_AuthorizationService_AddUserAclEntryEx=function(e,t,n,i,o,r){C.Exec("AMT_AuthorizationService","AddUserAclEntryEx",{DigestUsername:e,DigestPassword:t,KerberosUserSid:n,AccessPermission:i,Realms:o},r)},C.AMT_AuthorizationService_EnumerateUserAclEntries=function(e,t){C.Exec("AMT_AuthorizationService","EnumerateUserAclEntries",{StartIndex:e},t)},C.AMT_AuthorizationService_GetUserAclEntryEx=function(e,t,n){C.Exec("AMT_AuthorizationService","GetUserAclEntryEx",{Handle:e},t,n)},C.AMT_AuthorizationService_UpdateUserAclEntryEx=function(e,t,n,i,o,r,c){C.Exec("AMT_AuthorizationService","UpdateUserAclEntryEx",{Handle:e,DigestUsername:t,DigestPassword:n,KerberosUserSid:i,AccessPermission:o,Realms:r},c)},C.AMT_AuthorizationService_RemoveUserAclEntry=function(e,t){C.Exec("AMT_AuthorizationService","RemoveUserAclEntry",{Handle:e},t)},C.AMT_AuthorizationService_SetAdminAclEntryEx=function(e,t,n){C.Exec("AMT_AuthorizationService","SetAdminAclEntryEx",{Username:e,DigestPassword:t},n)},C.AMT_AuthorizationService_GetAdminAclEntry=function(e){C.Exec("AMT_AuthorizationService","GetAdminAclEntry",{},e)},C.AMT_AuthorizationService_GetAdminAclEntryStatus=function(e){C.Exec("AMT_AuthorizationService","GetAdminAclEntryStatus",{},e)},C.AMT_AuthorizationService_GetAdminNetAclEntryStatus=function(e){C.Exec("AMT_AuthorizationService","GetAdminNetAclEntryStatus",{},e)},C.AMT_AuthorizationService_SetAclEnabledState=function(e,t,n,i){C.Exec("AMT_AuthorizationService","SetAclEnabledState",{Handle:e,Enabled:t},n,i)},C.AMT_AuthorizationService_GetAclEnabledState=function(e,t,n){C.Exec("AMT_AuthorizationService","GetAclEnabledState",{Handle:e},t,n)},C.AMT_EndpointAccessControlService_RequestStateChange=function(e,t,n){C.Exec("AMT_EndpointAccessControlService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_EndpointAccessControlService_GetPosture=function(e,t){C.Exec("AMT_EndpointAccessControlService","GetPosture",{PostureType:e},t)},C.AMT_EndpointAccessControlService_GetPostureHash=function(e,t){C.Exec("AMT_EndpointAccessControlService","GetPostureHash",{PostureType:e},t)},C.AMT_EndpointAccessControlService_UpdatePostureState=function(e,t){C.Exec("AMT_EndpointAccessControlService","UpdatePostureState",{UpdateType:e},t)},C.AMT_EndpointAccessControlService_GetEacOptions=function(e){C.Exec("AMT_EndpointAccessControlService","GetEacOptions",{},e)},C.AMT_EndpointAccessControlService_SetEacOptions=function(e,t,n){C.Exec("AMT_EndpointAccessControlService","SetEacOptions",{EacVendors:e,PostureHashAlgorithm:t},n)},C.AMT_EnvironmentDetectionSettingData_SetSystemDefensePolicy=function(e,t){C.Exec("AMT_EnvironmentDetectionSettingData","SetSystemDefensePolicy",{Policy:e},t)},C.AMT_EnvironmentDetectionSettingData_EnableVpnRouting=function(e,t){C.Exec("AMT_EnvironmentDetectionSettingData","EnableVpnRouting",{Enable:e},t)},C.AMT_EthernetPortSettings_SetLinkPreference=function(e,t,n){C.Exec("AMT_EthernetPortSettings","SetLinkPreference",{LinkPreference:e,Timeout:t},n)},C.AMT_HeuristicPacketFilterStatistics_ResetSelectedStats=function(e,t){C.Exec("AMT_HeuristicPacketFilterStatistics","ResetSelectedStats",{SelectedStatistics:e},t)},C.AMT_KerberosSettingData_GetCredentialCacheState=function(e){C.Exec("AMT_KerberosSettingData","GetCredentialCacheState",{},e)},C.AMT_KerberosSettingData_SetCredentialCacheState=function(e,t){C.Exec("AMT_KerberosSettingData","SetCredentialCacheState",{Enable:e},t)},C.AMT_MessageLog_CancelIteration=function(e,t){C.Exec("AMT_MessageLog","CancelIteration",{IterationIdentifier:e},t)},C.AMT_MessageLog_RequestStateChange=function(e,t,n){C.Exec("AMT_MessageLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_MessageLog_ClearLog=function(e){C.Exec("AMT_MessageLog","ClearLog",{},e)},C.AMT_MessageLog_GetRecords=function(e,t,n,i){C.Exec("AMT_MessageLog","GetRecords",{IterationIdentifier:e,MaxReadRecords:t},n,i)},C.AMT_MessageLog_GetRecord=function(e,t,n){C.Exec("AMT_MessageLog","GetRecord",{IterationIdentifier:e,PositionToNext:t},n)},C.AMT_MessageLog_PositionAtRecord=function(e,t,n,i){C.Exec("AMT_MessageLog","PositionAtRecord",{IterationIdentifier:e,MoveAbsolute:t,RecordNumber:n},i)},C.AMT_MessageLog_PositionToFirstRecord=function(e,t){C.Exec("AMT_MessageLog","PositionToFirstRecord",{},e,t)},C.AMT_MessageLog_FreezeLog=function(e,t){C.Exec("AMT_MessageLog","FreezeLog",{Freeze:e},t)},C.AMT_PublicKeyManagementService_AddCRL=function(e,t,n){C.Exec("AMT_PublicKeyManagementService","AddCRL",{Url:e,SerialNumbers:t},n)},C.AMT_PublicKeyManagementService_ResetCRLList=function(e,t){C.Exec("AMT_PublicKeyManagementService","ResetCRLList",{_method_dummy:e},t)},C.AMT_PublicKeyManagementService_AddCertificate=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddCertificate",{CertificateBlob:e},t)},C.AMT_PublicKeyManagementService_AddTrustedRootCertificate=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddTrustedRootCertificate",{CertificateBlob:e},t)},C.AMT_PublicKeyManagementService_AddKey=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddKey",{KeyBlob:e},t)},C.AMT_PublicKeyManagementService_GeneratePKCS10Request=function(e,t,n,i){C.Exec("AMT_PublicKeyManagementService","GeneratePKCS10Request",{KeyPair:e,DNName:t,Usage:n},i)},C.AMT_PublicKeyManagementService_GeneratePKCS10RequestEx=function(e,t,n,i){C.Exec("AMT_PublicKeyManagementService","GeneratePKCS10RequestEx",{KeyPair:e,SigningAlgorithm:t,NullSignedCertificateRequest:n},i)},C.AMT_PublicKeyManagementService_GenerateKeyPair=function(e,t,n){C.Exec("AMT_PublicKeyManagementService","GenerateKeyPair",{KeyAlgorithm:e,KeyLength:t},n)},C.AMT_RedirectionService_RequestStateChange=function(e,t){C.Exec("AMT_RedirectionService","RequestStateChange",{RequestedState:e},t)},C.AMT_RedirectionService_TerminateSession=function(e,t){C.Exec("AMT_RedirectionService","TerminateSession",{SessionType:e},t)},C.AMT_RemoteAccessService_AddMpServer=function(e,t,n,i,o,r,c,a,s){C.Exec("AMT_RemoteAccessService","AddMpServer",{AccessInfo:e,InfoFormat:t,Port:n,AuthMethod:i,Certificate:o,Username:r,Password:c,CN:a},s)},C.AMT_RemoteAccessService_AddRemoteAccessPolicyRule=function(e,t,n,i,o){C.Exec("AMT_RemoteAccessService","AddRemoteAccessPolicyRule",{Trigger:e,TunnelLifeTime:t,ExtendedData:n,MpServer:i},o)},C.AMT_RemoteAccessService_CloseRemoteAccessConnection=function(e,t){C.Exec("AMT_RemoteAccessService","CloseRemoteAccessConnection",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_CommitChanges=function(e,t){C.Exec("AMT_SetupAndConfigurationService","CommitChanges",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_Unprovision=function(e,t){C.Exec("AMT_SetupAndConfigurationService","Unprovision",{ProvisioningMode:e},t)},C.AMT_SetupAndConfigurationService_PartialUnprovision=function(e,t){C.Exec("AMT_SetupAndConfigurationService","PartialUnprovision",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_ResetFlashWearOutProtection=function(e,t){C.Exec("AMT_SetupAndConfigurationService","ResetFlashWearOutProtection",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_ExtendProvisioningPeriod=function(e,t){C.Exec("AMT_SetupAndConfigurationService","ExtendProvisioningPeriod",{Duration:e},t)},C.AMT_SetupAndConfigurationService_SetMEBxPassword=function(e,t){C.Exec("AMT_SetupAndConfigurationService","SetMEBxPassword",{Password:e},t)},C.AMT_SetupAndConfigurationService_SetTLSPSK=function(e,t,n){C.Exec("AMT_SetupAndConfigurationService","SetTLSPSK",{PID:e,PPS:t},n)},C.AMT_SetupAndConfigurationService_GetProvisioningAuditRecord=function(e){C.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecord",{},e)},C.AMT_SetupAndConfigurationService_GetUuid=function(e){C.Exec("AMT_SetupAndConfigurationService","GetUuid",{},e)},C.AMT_SetupAndConfigurationService_GetUnprovisionBlockingComponents=function(e){C.Exec("AMT_SetupAndConfigurationService","GetUnprovisionBlockingComponents",{},e)},C.AMT_SetupAndConfigurationService_GetProvisioningAuditRecordV2=function(e){C.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecordV2",{},e)},C.AMT_SystemDefensePolicy_GetTimeout=function(e){C.Exec("AMT_SystemDefensePolicy","GetTimeout",{},e)},C.AMT_SystemDefensePolicy_SetTimeout=function(e,t){C.Exec("AMT_SystemDefensePolicy","SetTimeout",{Timeout:e},t)},C.AMT_SystemDefensePolicy_UpdateStatistics=function(e,t,n,i,o,r){C.Exec("AMT_SystemDefensePolicy","UpdateStatistics",{NetworkInterface:e,ResetOnRead:t},n,i,o,r)},C.AMT_SystemPowerScheme_SetPowerScheme=function(e,t,n){C.Exec("AMT_SystemPowerScheme","SetPowerScheme",{},e,n,0,{InstanceID:t})},C.AMT_TimeSynchronizationService_GetLowAccuracyTimeSynch=function(e,t){C.Exec("AMT_TimeSynchronizationService","GetLowAccuracyTimeSynch",{},e,t)},C.AMT_TimeSynchronizationService_SetHighAccuracyTimeSynch=function(e,t,n,i,o){C.Exec("AMT_TimeSynchronizationService","SetHighAccuracyTimeSynch",{Ta0:e,Tm1:t,Tm2:n},i,o)},C.AMT_UserInitiatedConnectionService_RequestStateChange=function(e,t,n){C.Exec("AMT_UserInitiatedConnectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_WebUIService_RequestStateChange=function(e,t,n){C.Exec("AMT_WebUIService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_WiFiPortConfigurationService_AddWiFiSettings=function(e,t,n,i,o,r){C.ExecWithXml("AMT_WiFiPortConfigurationService","AddWiFiSettings",{WiFiEndpoint:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},C.AMT_WiFiPortConfigurationService_UpdateWiFiSettings=function(e,t,n,i,o,r){C.ExecWithXml("AMT_WiFiPortConfigurationService","UpdateWiFiSettings",{WiFiEndpointSettings:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},C.AMT_WiFiPortConfigurationService_DeleteAllITProfiles=function(e,t){C.Exec("AMT_WiFiPortConfigurationService","DeleteAllITProfiles",{_method_dummy:e},t)},C.AMT_WiFiPortConfigurationService_DeleteAllUserProfiles=function(e,t){C.Exec("AMT_WiFiPortConfigurationService","DeleteAllUserProfiles",{_method_dummy:e},t)},C.CIM_Account_RequestStateChange=function(e,t,n){C.Exec("CIM_Account","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_AccountManagementService_CreateAccount=function(e,t,n){C.Exec("CIM_AccountManagementService","CreateAccount",{System:e,AccountTemplate:t},n)},C.CIM_BootConfigSetting_ChangeBootOrder=function(e,t){C.Exec("CIM_BootConfigSetting","ChangeBootOrder",{Source:e},t)},C.CIM_BootService_SetBootConfigRole=function(e,t,n){C.Exec("CIM_BootService","SetBootConfigRole",{BootConfigSetting:e,Role:t},n,0,1)},C.CIM_Card_ConnectorPower=function(e,t,n){C.Exec("CIM_Card","ConnectorPower",{Connector:e,PoweredOn:t},n)},C.CIM_Card_IsCompatible=function(e,t){C.Exec("CIM_Card","IsCompatible",{ElementToCheck:e},t)},C.CIM_Chassis_IsCompatible=function(e,t){C.Exec("CIM_Chassis","IsCompatible",{ElementToCheck:e},t)},C.CIM_Fan_SetSpeed=function(e,t){C.Exec("CIM_Fan","SetSpeed",{DesiredSpeed:e},t)},C.CIM_KVMRedirectionSAP_RequestStateChange=function(e,t,n){C.Exec("CIM_KVMRedirectionSAP","RequestStateChange",{RequestedState:e},n)},C.CIM_MediaAccessDevice_LockMedia=function(e,t){C.Exec("CIM_MediaAccessDevice","LockMedia",{Lock:e},t)},C.CIM_MediaAccessDevice_SetPowerState=function(e,t,n){C.Exec("CIM_MediaAccessDevice","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_MediaAccessDevice_Reset=function(e){C.Exec("CIM_MediaAccessDevice","Reset",{},e)},C.CIM_MediaAccessDevice_EnableDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","EnableDevice",{Enabled:e},t)},C.CIM_MediaAccessDevice_OnlineDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","OnlineDevice",{Online:e},t)},C.CIM_MediaAccessDevice_QuiesceDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","QuiesceDevice",{Quiesce:e},t)},C.CIM_MediaAccessDevice_SaveProperties=function(e){C.Exec("CIM_MediaAccessDevice","SaveProperties",{},e)},C.CIM_MediaAccessDevice_RestoreProperties=function(e){C.Exec("CIM_MediaAccessDevice","RestoreProperties",{},e)},C.CIM_MediaAccessDevice_RequestStateChange=function(e,t,n){C.Exec("CIM_MediaAccessDevice","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_PhysicalFrame_IsCompatible=function(e,t){C.Exec("CIM_PhysicalFrame","IsCompatible",{ElementToCheck:e},t)},C.CIM_PhysicalPackage_IsCompatible=function(e,t){C.Exec("CIM_PhysicalPackage","IsCompatible",{ElementToCheck:e},t)},C.CIM_PowerManagementService_RequestPowerStateChange=function(e,t,n,i,o){C.Exec("CIM_PowerManagementService","RequestPowerStateChange",{PowerState:e,ManagedElement:t,Time:n,TimeoutPeriod:i},o,0,1)},C.CIM_PowerSupply_SetPowerState=function(e,t,n){C.Exec("CIM_PowerSupply","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_PowerSupply_Reset=function(e){C.Exec("CIM_PowerSupply","Reset",{},e)},C.CIM_PowerSupply_EnableDevice=function(e,t){C.Exec("CIM_PowerSupply","EnableDevice",{Enabled:e},t)},C.CIM_PowerSupply_OnlineDevice=function(e,t){C.Exec("CIM_PowerSupply","OnlineDevice",{Online:e},t)},C.CIM_PowerSupply_QuiesceDevice=function(e,t){C.Exec("CIM_PowerSupply","QuiesceDevice",{Quiesce:e},t)},C.CIM_PowerSupply_SaveProperties=function(e){C.Exec("CIM_PowerSupply","SaveProperties",{},e)},C.CIM_PowerSupply_RestoreProperties=function(e){C.Exec("CIM_PowerSupply","RestoreProperties",{},e)},C.CIM_PowerSupply_RequestStateChange=function(e,t,n){C.Exec("CIM_PowerSupply","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_Processor_SetPowerState=function(e,t,n){C.Exec("CIM_Processor","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Processor_Reset=function(e){C.Exec("CIM_Processor","Reset",{},e)},C.CIM_Processor_EnableDevice=function(e,t){C.Exec("CIM_Processor","EnableDevice",{Enabled:e},t)},C.CIM_Processor_OnlineDevice=function(e,t){C.Exec("CIM_Processor","OnlineDevice",{Online:e},t)},C.CIM_Processor_QuiesceDevice=function(e,t){C.Exec("CIM_Processor","QuiesceDevice",{Quiesce:e},t)},C.CIM_Processor_SaveProperties=function(e){C.Exec("CIM_Processor","SaveProperties",{},e)},C.CIM_Processor_RestoreProperties=function(e){C.Exec("CIM_Processor","RestoreProperties",{},e)},C.CIM_Processor_RequestStateChange=function(e,t,n){C.Exec("CIM_Processor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_RecordLog_ClearLog=function(e){C.Exec("CIM_RecordLog","ClearLog",{},e)},C.CIM_RecordLog_RequestStateChange=function(e,t,n){C.Exec("CIM_RecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_RedirectionService_RequestStateChange=function(e,t,n){C.Exec("CIM_RedirectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_Sensor_SetPowerState=function(e,t,n){C.Exec("CIM_Sensor","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Sensor_Reset=function(e){C.Exec("CIM_Sensor","Reset",{},e)},C.CIM_Sensor_EnableDevice=function(e,t){C.Exec("CIM_Sensor","EnableDevice",{Enabled:e},t)},C.CIM_Sensor_OnlineDevice=function(e,t){C.Exec("CIM_Sensor","OnlineDevice",{Online:e},t)},C.CIM_Sensor_QuiesceDevice=function(e,t){C.Exec("CIM_Sensor","QuiesceDevice",{Quiesce:e},t)},C.CIM_Sensor_SaveProperties=function(e){C.Exec("CIM_Sensor","SaveProperties",{},e)},C.CIM_Sensor_RestoreProperties=function(e){C.Exec("CIM_Sensor","RestoreProperties",{},e)},C.CIM_Sensor_RequestStateChange=function(e,t,n){C.Exec("CIM_Sensor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_StatisticalData_ResetSelectedStats=function(e,t){C.Exec("CIM_StatisticalData","ResetSelectedStats",{SelectedStatistics:e},t)},C.CIM_Watchdog_KeepAlive=function(e){C.Exec("CIM_Watchdog","KeepAlive",{},e)},C.CIM_Watchdog_SetPowerState=function(e,t,n){C.Exec("CIM_Watchdog","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Watchdog_Reset=function(e){C.Exec("CIM_Watchdog","Reset",{},e)},C.CIM_Watchdog_EnableDevice=function(e,t){C.Exec("CIM_Watchdog","EnableDevice",{Enabled:e},t)},C.CIM_Watchdog_OnlineDevice=function(e,t){C.Exec("CIM_Watchdog","OnlineDevice",{Online:e},t)},C.CIM_Watchdog_QuiesceDevice=function(e,t){C.Exec("CIM_Watchdog","QuiesceDevice",{Quiesce:e},t)},C.CIM_Watchdog_SaveProperties=function(e){C.Exec("CIM_Watchdog","SaveProperties",{},e)},C.CIM_Watchdog_RestoreProperties=function(e){C.Exec("CIM_Watchdog","RestoreProperties",{},e)},C.CIM_Watchdog_RequestStateChange=function(e,t,n){C.Exec("CIM_Watchdog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_WiFiPort_SetPowerState=function(e,t,n){C.Exec("CIM_WiFiPort","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_WiFiPort_Reset=function(e){C.Exec("CIM_WiFiPort","Reset",{},e)},C.CIM_WiFiPort_EnableDevice=function(e,t){C.Exec("CIM_WiFiPort","EnableDevice",{Enabled:e},t)},C.CIM_WiFiPort_OnlineDevice=function(e,t){C.Exec("CIM_WiFiPort","OnlineDevice",{Online:e},t)},C.CIM_WiFiPort_QuiesceDevice=function(e,t){C.Exec("CIM_WiFiPort","QuiesceDevice",{Quiesce:e},t)},C.CIM_WiFiPort_SaveProperties=function(e){C.Exec("CIM_WiFiPort","SaveProperties",{},e)},C.CIM_WiFiPort_RestoreProperties=function(e){C.Exec("CIM_WiFiPort","RestoreProperties",{},e)},C.CIM_WiFiPort_RequestStateChange=function(e,t,n){C.Exec("CIM_WiFiPort","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_HostBasedSetupService_Setup=function(e,t,n,i,o,r,c){C.Exec("IPS_HostBasedSetupService","Setup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,Certificate:i,SigningAlgorithm:o,DigitalSignature:r},c)},C.IPS_HostBasedSetupService_AddNextCertInChain=function(e,t,n,i){C.Exec("IPS_HostBasedSetupService","AddNextCertInChain",{NextCertificate:e,IsLeafCertificate:t,IsRootCertificate:n},i)},C.IPS_HostBasedSetupService_AdminSetup=function(e,t,n,i,o,r){C.Exec("IPS_HostBasedSetupService","AdminSetup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,SigningAlgorithm:i,DigitalSignature:o},r)},C.IPS_HostBasedSetupService_UpgradeClientToAdmin=function(e,t,n,i){C.Exec("IPS_HostBasedSetupService","UpgradeClientToAdmin",{McNonce:e,SigningAlgorithm:t,DigitalSignature:n},i)},C.IPS_HostBasedSetupService_DisableClientControlMode=function(e,t){C.Exec("IPS_HostBasedSetupService","DisableClientControlMode",{_method_dummy:e},t)},C.IPS_KVMRedirectionSettingData_TerminateSession=function(e){C.Exec("IPS_KVMRedirectionSettingData","TerminateSession",{},e)},C.IPS_OptInService_StartOptIn=function(e){C.Exec("IPS_OptInService","StartOptIn",{},e)},C.IPS_OptInService_CancelOptIn=function(e){C.Exec("IPS_OptInService","CancelOptIn",{},e)},C.IPS_OptInService_SendOptInCode=function(e,t){C.Exec("IPS_OptInService","SendOptInCode",{OptInCode:e},t)},C.IPS_OptInService_StartService=function(e){C.Exec("IPS_OptInService","StartService",{},e)},C.IPS_OptInService_StopService=function(e){C.Exec("IPS_OptInService","StopService",{},e)},C.IPS_OptInService_RequestStateChange=function(e,t,n){C.Exec("IPS_OptInService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_ProvisioningRecordLog_RequestStateChange=function(e,t,n){C.Exec("IPS_ProvisioningRecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_ProvisioningRecordLog_ClearLog=function(e,t){C.Exec("IPS_ProvisioningRecordLog","ClearLog",{_method_dummy:e},t)},C.IPS_SecIOService_RequestStateChange=function(e,t,n){C.Exec("IPS_SecIOService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AmtStatusToStr=function(e){return C.AmtStatusCodes[e]||"UNKNOWN_ERROR"},C.AmtStatusCodes={0:"SUCCESS",1:"INTERNAL_ERROR",2:"NOT_READY",3:"INVALID_PT_MODE",4:"INVALID_MESSAGE_LENGTH",5:"TABLE_FINGERPRINT_NOT_AVAILABLE",6:"INTEGRITY_CHECK_FAILED",7:"UNSUPPORTED_ISVS_VERSION",8:"APPLICATION_NOT_REGISTERED",9:"INVALID_REGISTRATION_DATA",10:"APPLICATION_DOES_NOT_EXIST",11:"NOT_ENOUGH_STORAGE",12:"INVALID_NAME",13:"BLOCK_DOES_NOT_EXIST",14:"INVALID_BYTE_OFFSET",15:"INVALID_BYTE_COUNT",16:"NOT_PERMITTED",17:"NOT_OWNER",18:"BLOCK_LOCKED_BY_OTHER",19:"BLOCK_NOT_LOCKED",20:"INVALID_GROUP_PERMISSIONS",21:"GROUP_DOES_NOT_EXIST",22:"INVALID_MEMBER_COUNT",23:"MAX_LIMIT_REACHED",24:"INVALID_AUTH_TYPE",25:"AUTHENTICATION_FAILED",26:"INVALID_DHCP_MODE",27:"INVALID_IP_ADDRESS",28:"INVALID_DOMAIN_NAME",29:"UNSUPPORTED_VERSION",30:"REQUEST_UNEXPECTED",31:"INVALID_TABLE_TYPE",32:"INVALID_PROVISIONING_STATE",33:"UNSUPPORTED_OBJECT",34:"INVALID_TIME",35:"INVALID_INDEX",36:"INVALID_PARAMETER",37:"INVALID_NETMASK",38:"FLASH_WRITE_LIMIT_EXCEEDED",39:"INVALID_IMAGE_LENGTH",40:"INVALID_IMAGE_SIGNATURE",41:"PROPOSE_ANOTHER_VERSION",42:"INVALID_PID_FORMAT",43:"INVALID_PPS_FORMAT",44:"BIST_COMMAND_BLOCKED",45:"CONNECTION_FAILED",46:"CONNECTION_TOO_MANY",47:"RNG_GENERATION_IN_PROGRESS",48:"RNG_NOT_READY",49:"CERTIFICATE_NOT_READY",1024:"DISABLED_BY_POLICY",2048:"NETWORK_IF_ERROR_BASE",2049:"UNSUPPORTED_OEM_NUMBER",2050:"UNSUPPORTED_BOOT_OPTION",2051:"INVALID_COMMAND",2052:"INVALID_SPECIAL_COMMAND",2053:"INVALID_HANDLE",2054:"INVALID_PASSWORD",2055:"INVALID_REALM",2056:"STORAGE_ACL_ENTRY_IN_USE",2057:"DATA_MISSING",2058:"DUPLICATE",2059:"EVENTLOG_FROZEN",2060:"PKI_MISSING_KEYS",2061:"PKI_GENERATING_KEYS",2062:"INVALID_KEY",2063:"INVALID_CERT",2064:"CERT_KEY_NOT_MATCH",2065:"MAX_KERB_DOMAIN_REACHED",2066:"UNSUPPORTED",2067:"INVALID_PRIORITY",2068:"NOT_FOUND",2069:"INVALID_CREDENTIALS",2070:"INVALID_PASSPHRASE",2072:"NO_ASSOCIATION",2075:"AUDIT_FAIL",2076:"BLOCKING_COMPONENT",2081:"USER_CONSENT_REQUIRED",4096:"APP_INTERNAL_ERROR",4097:"NOT_INITIALIZED",4098:"LIB_VERSION_UNSUPPORTED",4099:"INVALID_PARAM",4100:"RESOURCES",4101:"HARDWARE_ACCESS_ERROR",4102:"REQUESTOR_NOT_REGISTERED",4103:"NETWORK_ERROR",4104:"PARAM_BUFFER_TOO_SHORT",4105:"COM_NOT_INITIALIZED_IN_THREAD",4106:"URL_REQUIRED"},C.GetMessageLog=function(e,t){C.AMT_MessageLog_PositionToFirstRecord(i,[e,t,[]])};"Platform firmware (e.g. BIOS)|SMI handler|ISV system management software|Alert ASIC|IPMI|BIOS vendor|System board set vendor|System integrator|Third party add-in|OSV|NIC|System management card".split("|");var g="Unspecified.|No system memory is physically installed in the system.|No usable system memory, all installed memory has experienced an unrecoverable failure.|Unrecoverable hard-disk/ATAPI/IDE device failure.|Unrecoverable system-board failure.|Unrecoverable diskette subsystem failure.|Unrecoverable hard-disk controller failure.|Unrecoverable PS/2 or USB keyboard failure.|Removable boot media not found.|Unrecoverable video controller failure.|No video device detected.|Firmware (BIOS) ROM corruption detected.|CPU voltage mismatch (processors that share same supply have mismatched voltage requirements)|CPU speed matching failure".split("|"),M="Unspecified.|Memory initialization.|Starting hard-disk initialization and test|Secondary processor(s) initialization|User authentication|User-initiated system setup|USB resource configuration|PCI resource configuration|Option ROM initialization|Video initialization|Cache initialization|SM Bus initialization|Keyboard controller initialization|Embedded controller/management controller initialization|Docking station attachment|Enabling docking station|Docking station ejection|Disabling docking station|Calling operating system wake-up vector|Starting operating system boot process|Baseboard or motherboard initialization|reserved|Floppy initialization|Keyboard test|Pointing device test|Primary processor initialization".split("|"),I="Unspecified|Other|Unknown|Processor|Disk|Peripheral|System management module|System board|Memory module|Processor module|Power supply|Add in card|Front panel board|Back panel board|Power system board|Drive backplane|System internal expansion board|Other system board|Processor board|Power unit|Power module|Power management board|Chassis back panel board|System chassis|Sub chassis|Other chassis board|Disk drive bay|Peripheral bay|Device bay|Fan cooling|Cooling unit|Cable interconnect|Memory device|System management software|BIOS|Intel(r) ME|System bus|Group|Intel(r) ME|External environment|Battery|Processing blade|Connectivity switch|Processor/memory module|I/O module|Processor I/O module|Management controller firmware|IPMI channel|PCI bus|PCI express bus|SCSI bus|SATA/SAS bus|Processor front side bus".split("|");C.RealmNames="||Redirection|PT Administration|Hardware Asset|Remote Control|Storage|Event Manager|Storage Admin|Agent Presence Local|Agent Presence Remote|Circuit Breaker|Network Time|General Information|Firmware Update|EIT|LocalUN|Endpoint Access Control|Endpoint Access Control Admin|Event Log Reader|Audit Log|ACL Realm|||Local System".split("|"),C.WatchdogCurrentStates={1:"Not Started",2:"Stopped",4:"Running",8:"Expired",16:"Suspended"};var l={16:"Security Admin",17:"RCO",18:"Redirection Manager",19:"Firmware Update Manager",20:"Security Audit Log",21:"Network Time",22:"Network Administration",23:"Storage Administration",24:"Event Manager",25:"Circuit Breaker Manager",26:"Agent Presence Manager",27:"Wireless Configuration",28:"EAC",29:"KVM",30:"User Opt-In Events",32:"Screen Blanking",33:"Watchdog Events",1600:"Provisioning Started",1601:"Provisioning Completed",1602:"ACL Entry Added",1603:"ACL Entry Modified",1604:"ACL Entry Removed",1605:"ACL Access with Invalid Credentials",1606:"ACL Entry State",1607:"TLS State Changed",1608:"TLS Server Certificate Set",1609:"TLS Server Certificate Remove",1610:"TLS Trusted Root Certificate Added",1611:"TLS Trusted Root Certificate Removed",1612:"TLS Preshared Key Set",1613:"Kerberos Settings Modified",1614:"Kerberos Main Key Modified",1615:"Flash Wear out Counters Reset",1616:"Power Package Modified",1617:"Set Realm Authentication Mode",1618:"Upgrade Client to Admin Control Mode",1619:"Unprovisioning Started",1700:"Performed Power Up",1701:"Performed Power Down",1702:"Performed Power Cycle",1703:"Performed Reset",1704:"Set Boot Options",1800:"IDER Session Opened",1801:"IDER Session Closed",1802:"IDER Enabled",1803:"IDER Disabled",1804:"SoL Session Opened",1805:"SoL Session Closed",1806:"SoL Enabled",1807:"SoL Disabled",1808:"KVM Session Started",1809:"KVM Session Ended",1810:"KVM Enabled",1811:"KVM Disabled",1812:"VNC Password Failed 3 Times",1900:"Firmware Updated",1901:"Firmware Update Failed",2e3:"Security Audit Log Cleared",2001:"Security Audit Policy Modified",2002:"Security Audit Log Disabled",2003:"Security Audit Log Enabled",2004:"Security Audit Log Exported",2005:"Security Audit Log Recovered",2100:"Intel&reg; ME Time Set",2200:"TCPIP Parameters Set",2201:"Host Name Set",2202:"Domain Name Set",2203:"VLAN Parameters Set",2204:"Link Policy Set",2205:"IPv6 Parameters Set",2300:"Global Storage Attributes Set",2301:"Storage EACL Modified",2302:"Storage FPACL Modified",2303:"Storage Write Operation",2400:"Alert Subscribed",2401:"Alert Unsubscribed",2402:"Event Log Cleared",2403:"Event Log Frozen",2500:"CB Filter Added",2501:"CB Filter Removed",2502:"CB Policy Added",2503:"CB Policy Removed",2504:"CB Default Policy Set",2505:"CB Heuristics Option Set",2506:"CB Heuristics State Cleared",2600:"Agent Watchdog Added",2601:"Agent Watchdog Removed",2602:"Agent Watchdog Action Set",2700:"Wireless Profile Added",2701:"Wireless Profile Removed",2702:"Wireless Profile Updated",2800:"EAC Posture Signer SET",2801:"EAC Enabled",2802:"EAC Disabled",2803:"EAC Posture State",2804:"EAC Set Options",2900:"KVM Opt-in Enabled",2901:"KVM Opt-in Disabled",2902:"KVM Password Changed",2903:"KVM Consent Succeeded",2904:"KVM Consent Failed",3e3:"Opt-In Policy Change",3001:"Send Consent Code Event",3002:"Start Opt-In Blocked Event"};function E(e,t,n,i,o){if(200==i){var r,c,a,s,u,d=o[1],S=new Date;if(0<n.Body.RecordsReturned)for(c in n.Body.EventRecords=MakeToArray(n.Body.EventRecords),n.Body.EventRecords){a=null;try{a=window.atob(n.Body.EventRecords[c])}catch(a){console.log(a+" "+n.Body.EventRecords[c])}(u={AuditAppID:ReadShort(a,0),EventID:ReadShort(a,2),InitiatorType:a.charCodeAt(4)}).AuditApp=l[u.AuditAppID],u.Event=l[100*u.AuditAppID+u.EventID],u.Event||(u.Event="#"+u.EventID),0==u.InitiatorType&&(s=a.charCodeAt(5),u.Initiator=a.substring(6,6+s),r=6+s),1==u.InitiatorType&&(u.KerberosUserInDomain=ReadInt(a,5),s=a.charCodeAt(9),u.Initiator=GetSidString(a.substring(10,10+s)),r=10+s),2==u.InitiatorType&&(u.Initiator="<i>Local</i>",r=5),3==u.InitiatorType&&(u.Initiator="<i>KVM Default Port</i>",r=5),A=ReadInt(a,r),u.Time=new Date(1e3*(A+60*S.getTimezoneOffset())),r+=4,u.MCLocationType=a.charCodeAt(r++);var A=a.charCodeAt(r++);u.NetAddress=a.substring(r,r+A),r+=A;A=a.charCodeAt(r++);u.Ex=a.substring(r,r+A),u.ExStr=C.GetAuditLogExtendedDataStr(100*u.AuditAppID+u.EventID,u.Ex),d.push(u)}n.Body.TotalRecordCount>d.length?C.AMT_AuditLog_ReadRecords(d.length+1,E,[o[0],d]):o[0](C,d,i)}else o[0](C,[],i)}return C.GetAuditLogExtendedDataStr=function(e,t){if((1602==e||1604==e)&&0==t.charCodeAt(0))return t.substring(2,2+t.charCodeAt(1));if(1603==e)return 0==t.charCodeAt(1)?t.substring(3):null;if(1605==e)return["Invalid ME access","Invalid MEBx access"][t.charCodeAt(0)];if(1606==e){var n=["Disabled","Enabled"][t.charCodeAt(0)];return 0==t.charCodeAt(1)&&(n+=", "+t.substring(3)),n}if(1607==e)return"Remote "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(0)]+", Local "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(1)];if(1617==e)return C.RealmNames[ReadInt(t,0)]+", "+["NoAuth","Auth","Disabled"][t.charCodeAt(4)];if(1619==e)return["BIOS","MEBx","Local MEI","Local WSMAN","Remote WSAMN"][t.charCodeAt(0)];if(1900==e)return"From "+ReadShort(t,0)+"."+ReadShort(t,2)+"."+ReadShort(t,4)+"."+ReadShort(t,6)+" to "+ReadShort(t,8)+"."+ReadShort(t,10)+"."+ReadShort(t,12)+"."+ReadShort(t,14);if(2100!=e)return 3e3==e?"From "+["None","KVM","All"][t.charCodeAt(0)]+" to "+["None","KVM","All"][t.charCodeAt(1)]:3001==e?["Success","Failed 3 times"][t.charCodeAt(0)]:null;e=new Date;return e.setTime(1e3*ReadInt(t,0)+6e4*(new Date).getTimezoneOffset()),e.toLocaleString()},C.GetAuditLog=function(e){C.AMT_AuditLog_ReadRecords(1,E,[e,[]])},C}function hex_md5(e){return null==e&&(e=""),forge.md.md5.create().update(e).digest().toHex()}for(var md5_k=[],i=0;i<64;)md5_k[i]=0|4294967296*Math.abs(Math.sin(++i));function hex_md5(e){null==e&&(e="");for(var t,n,i,o,r=[],c=unescape(encodeURI(e)),a=c.length,s=[1732584193,-271733879,-1732584194,271733878],u=0;u<=a;)r[u>>2]|=(c.charCodeAt(u)||128)<<u++%4*8;for(r[e=16*(a+8>>6)+14]=8*a,u=0;u<e;u+=16){for(a=s,o=0;o<64;)a=[i=a[3],(t=0|a[1])+((i=a[0]+[t&(n=a[2])|~t&i,i&t|~i&n,t^n^i,n^(t|~i)][a=o>>4]+(md5_k[o]+(0|r[[o,5*o+1,3*o+5,7*o][a]%16+u])))<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>32-a),t,n];for(o=4;o;)s[--o]=s[o]+a[o]}for(e="";o<32;)e+=(s[o>>3]>>4*(1^7&o++)&15).toString(16);return e}function rstr_md5(e){return hex2rstr(hex_md5(e))}function execArgumentsToXml(e){if(null==e)return null;var t,n="";for(t in e){var i=e[t];i&&("reference"===i.__parameterType?n+=referenceToXml(t,i):n+=instanceToXml(t,i))}return n}function instanceToXml(e,t){if(null==t)return null;var n,i=!!t.__namespace,o=i?"<q:":"<",r=i?"</q:":"</",c="<r:"+e+(i?' xmlns:q="'+t.__namespace+'"':"")+">";for(n in t)t.hasOwnProperty(n)&&0!==n.indexOf("__")&&("function"==typeof t[n]||Array.isArray(t[n])||("object"==typeof t[n]?console.error("only convert one level down..."):c+=o+n+">"+t[n].toString()+r+n+">"));return c+="</r:"+e+">"}function referenceToXml(e,t){if(null==t)return null;var n,i="<r:"+e+"><a:Address>/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>"+t.__resourceUri+"</w:ResourceURI><w:SelectorSet>";for(n in t)t.hasOwnProperty(n)&&0!==n.indexOf("__")&&("function"==typeof t[n]||"object"==typeof t[n]||Array.isArray(t[n])||(i+='<w:Selector Name="'+n+'">'+t[n].toString()+"</w:Selector>"));return i+="</w:SelectorSet></a:ReferenceParameters></r:"+e+">"}function GetSidString(e){for(var t="S-"+e.charCodeAt(0)+"-"+e.charCodeAt(7),n=2;n<e.length/4;n++)t+="-"+ReadIntX(e,4*n);return t}function GetSidByteArray(e){if(!e||null==e)return null;var t=e.split("-");if(t.length<4||"s"!=t[0]&&"S"!=t[0])return null;for(var n=1;n<t.length;n++){var i=parseInt(t[n]);if(i!=t[n])return null;t[n]=i}for(var o=String.fromCharCode(t[1])+String.fromCharCode(t.length-3)+ShortToStr(Math.floor(t[2]/Math.pow(2,32)))+IntToStr(65535&t[2]),n=3;n<t.length;n++)o+=IntToStrX(t[n]);return o}