meshcentral
Version:
Web based remote computer management server
1 lines • 44.4 kB
JavaScript
function AmtStackCreateService(e){var _=new Object,t=(_._ObjectID="AMT",_.wsman=e,_.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/"],_.PendingEnums=[],_.PendingBatchOperations=0,_.ActiveEnumsCount=0,_.MaxActiveEnumsCount=1,_.onProcessChanged=null,0),n=0;function l(){var e=_.GetPendingActions();t<e&&(t=e),null!=_.onProcessChanged&&n!=e&&(n=e,_.onProcessChanged(e,t)),0==e&&(t=0)}function A(e){_.ActiveEnumsCount-=e,_.ActiveEnumsCount>=_.MaxActiveEnumsCount||0==_.PendingEnums.length||(e=_.PendingEnums.shift(),_.Enum(e[0],e[1],e[2]),A(0))}function c(r){r.names.length<=r.current?r.callback.call(_,_,r.name,r.responses,200,r.tag):(_.wsman.ExecGet(_.CompleteName(r.names[r.current]),function(e,t,n,i){var o;o=r,i=i,null==(n=n)||200!=i?o.callback.call(_,_,o.name,null,i,o.tag):(o.responses[n.Header.Method]=n,c(o))},r.pri),r.current++),l()}function i(e,t,n,i,o){200!=i||"0"!=n.Body.ReturnValue?o[0](_,null,o[2],i):_.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,o)}function m(e,t,n,i,o){if(200!=i||"0"!=n.Body.ReturnValue)o[0](_,null,o[2],i);else{var r,c,a,s,u,d=o[2],S=new Date,l=n.Body.RecordArray;for(r in l="string"==typeof l?[l]:l)if(null!=(s=Buffer.from(l[r],"base64"))&&0<(u=v(s,0))&&u<4294967295){for(a={DeviceAddress:s[4],EventSensorType:s[5],EventType:s[6],EventOffset:s[7],EventSourceType:s[8],EventSeverity:s[9],SensorNumber:s[10],Entity:s[11],EntityInstance:s[12],EventData:[],Time:new Date(1e3*(u+60*S.getTimezoneOffset()))},c=13;c<21;c++)a.EventData.push(s[c]);a.EntityStr=M[a.Entity],a.Desc=function(e,t,n){if(15==e){if(235==n[0])return"Invalid Data";if(0==t)return E[n[1]];if(3==t){if(170==n[0]&&48==n[1])return format("One Click Recovery: {0}",f[n[2]]);if(170!=n[0]||64!=n[1])return"OEM Specific Firmware Error event";if(1==n[2])return"Got an error erasing Device SSD";if(2==n[2])return"Erasing Device TPM is not supported";if(3==n[2])return"Reached Max Counter"}else{if(5!=t)return C[n[1]];if(170==n[0]&&48==n[1])return 1==n[2]?format("One Click Recovery: CSME Boot Option {0}:{1} added successfully",n[3],I[n[3]]):n[2]<7?format("One Click Recovery: {0}",g[n[2]]):format("One Click Recovery: Unknown progress event {0}",n[2]);if(170!=n[0]||64!=n[1])return"OEM Specific Firmware Progress event";if(1==n[2]){if(2==n[3])return"Started erasing Device SSD";if(3==n[3])return"Started erasing Device TPM";if(5==n[3])return"Started erasing Device BIOS Reload of Golden Config"}if(2==n[2]){if(2==n[3])return"Erasing Device SSD ended successfully";if(3==n[3])return"Erasing Device TPM ended successfully";if(5==n[3])return"Erasing Device BIOS Reload of Golden Config ended successfully"}if(3==n[2])return"Beginning Platform Erase";if(4==n[2])return"Clear Reserved Parameters";if(5==n[2])return"All setting decremented"}}if(18==e&&170==n[0])return"Agent watchdog "+char2hex(n[4])+char2hex(n[3])+char2hex(n[2])+char2hex(n[1])+"-"+char2hex(n[6])+char2hex(n[5])+"-... changed to "+_.WatchdogCurrentStates[n[7]];if(5==e&&0==t)return"Case intrusion";if(192==e&&0==t&&170==n[0]&&48==n[1]){if(0==n[2])return"A remote Serial Over LAN session was established.";if(1==n[2])return"Remote Serial Over LAN session finished. User control was restored.";if(2==n[2])return"A remote IDE-Redirection session was established.";if(3==n[2])return"Remote IDE-Redirection session finished. User control was restored."}{var i;if(36==e)return t=(n[1]<<24)+(n[2]<<16)+(n[3]<<8)+n[4],i="#"+n[0],170==n[0]&&(i="wired"),4294967293==t?"All received packet filter was matched on "+i+" interface.":4294967292==t?"All outbound packet filter was matched on "+i+" interface.":4294967290==t?"Spoofed packet filter was matched on "+i+" interface.":"Filter "+t+" was matched on "+i+" interface."}if(192==e)return 0==n[2]?"Security policy invoked. Some or all network traffic (TX) was stopped.":2==n[2]?"Security policy invoked. Some or all network traffic (RX) was stopped.":"Security policy invoked.";if(193==e){if(170==n[0]&&48==n[1]&&0==n[2]&&0==n[3])return"User request for remote connection.";if(170==n[0]&&32==n[1]&&3==n[2]&&1==n[3])return"EAC error: attempt to get posture while NAC in Intel(r) AMT is disabled.";if(170==n[0]&&32==n[1]&&4==n[2]&&0==n[3])return"Certificate revoked. "}return 6==e?"Authentication failed "+(n[1]+(n[2]<<8))+" times. The system may be under attack.":30==e?"No bootable media":32==e?"Operating system lockup or power interrupt":35==e?"System boot failure":37==e?"System firmware started (at least one CPU is properly executing).":"Unknown Sensor Type #"+e}(a.EventSensorType,a.EventOffset,a.EventData),a.EntityStr||(a.EntityStr="Unknown"),d.push(a)}1!=n.Body.NoMoreRecords?_.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,[o[0],d,o[2]]):o[0](_,d,o[2])}}_.GetPendingActions=function(){return 2*_.PendingEnums.length+_.ActiveEnumsCount+_.wsman.comm.PendingAjax.length+_.wsman.comm.ActiveAjaxCount+_.PendingBatchOperations},_.Subscribe=function(o,e,t,r,c,n,i,a,s,u){_.wsman.ExecSubscribe(_.CompleteName(o),e,t,function(e,t,n,i){l(),r.call(_,_,o,n,i,c)},0,n,i,a,s,u),l()},_.UnSubscribe=function(o,r,c,e,t){_.wsman.ExecUnSubscribe(_.CompleteName(o),function(e,t,n,i){l(),r.call(_,_,o,n,i,c)},0,e,t),l()},_.Get=function(o,r,c,e){_.wsman.ExecGet(_.CompleteName(o),function(e,t,n,i){l(),r.call(_,_,o,n,i,c)},0,e),l()},_.Put=function(o,e,r,c,t,n){_.wsman.ExecPut(_.CompleteName(o),e,function(e,t,n,i){l(),r.call(_,_,o,n,i,c)},0,t,n),l()},_.Create=function(o,e,r,c,t){_.wsman.ExecCreate(_.CompleteName(o),e,function(e,t,n,i){l(),r.call(_,_,o,n,i,c)},0,t),l()},_.Delete=function(o,e,r,c,t){_.wsman.ExecDelete(_.CompleteName(o),e,function(e,t,n,i){l(),r.call(_,_,o,n,i,c)},0,t),l()},_.Exec=function(o,e,t,r,c,n,i){_.wsman.ExecMethod(_.CompleteName(o),e,t,function(e,t,n,i){l(),r.call(_,_,o,_.CompleteExecResponse(n),i,c)},0,n,i),l()},_.ExecWithXml=function(o,e,t,r,c,n,i){_.wsman.ExecMethodXml(_.CompleteName(o),e,function(e){if(null==e)return null;var t,n="";for(t in e){var i=e[t];i&&("reference"===i.__parameterType?n+=function(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+">"}(t,i):n+=function(e,t){if(null==t)return null;var n,i=!!t.__namespace,o=i?"<q:":"<",r=i?"</q:":"</",i=i?' xmlns:q="'+t.__namespace+'"':"",c="<r:"+e+i+">";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+">"}(t,i))}return n}(t),function(e,t,n,i){l(),r.call(_,_,o,_.CompleteExecResponse(n),i,c)},0,n,i),l()},_.Enum=function(s,u,e,t){_.ActiveEnumsCount<_.MaxActiveEnumsCount?(_.ActiveEnumsCount++,_.wsman.ExecEnum(_.CompleteName(s),function(e,t,n,i,o){var r,c,a;l(),r=s,n=n,c=u,t=t,a=o,200!=(o=i)?(c.call(_,_,r,null,o,a),A(1)):null!=n&&"EnumerateResponse"==n.Header.Method&&n.Body.EnumerationContext?(o=n.Body.EnumerationContext,_.wsman.ExecPull(t,o,function(e,t,n,i){!function o(r,e,c,t,a,n,s,i){if(200!=n)return c.call(_,_,r,null,n,s),void A(1);if(null==e||"PullResponse"!=e.Header.Method)return c.call(_,_,r,null,604,s),void A(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,_.wsman.ExecPull(t,S,function(e,t,n,i){o(r,n,c,t,a,i,s,1)})):(A(1),c.call(_,_,r,a,n,s),l())}}(r,n,c,t,[],i,a)})):(c.call(_,_,r,null,603,a),A(1))},e,t)):_.PendingEnums.push([s,u,e,t]),l()},_.BatchEnum=function(e,t,n,i,o,r){_.PendingBatchOperations+=2*t.length,function r(c,a,s,u,e,d,S){_.PendingBatchOperations-=2;var t=a.shift(),n=_.Enum;"*"==t[0]&&(n=_.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?(_.PendingBatchOperations-=2*a.length,l(),s.call(_,_,c,o[2],i,u)):(l(),r(c,a,s,u,o[2],S))},[c,a,e],S);l()}(e,JSON.parse(JSON.stringify(t)),n,i,{},o,r),l()},_.BatchGet=function(e,t,n,i,o){c({name:e,names:t,callback:n,current:0,responses:{},tag:i,pri:o}),l()},_.CompleteName=function(e){return 0==e.indexOf("AMT_")?_.pfx[0]+e:0==e.indexOf("CIM_")?_.pfx[1]+e:0==e.indexOf("IPS_")?_.pfx[2]+e:void 0},_.CompleteExecResponse=function(e){return e&&null!=e&&e.Body&&null!=e.Body.ReturnValue&&(e.Body.ReturnValueStr=_.AmtStatusToStr(e.Body.ReturnValue)),e},_.RequestPowerStateChange=function(e,t){_.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)},_.SetBootConfigRole=function(e,t){_.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)},_.CancelAllQueries=function(e){_.wsman.CancelAllQueries(e)},_.AMT_AgentPresenceWatchdog_RegisterAgent=function(e,t,n,i){_.Exec("AMT_AgentPresenceWatchdog","RegisterAgent",{},e,t,n,i)},_.AMT_AgentPresenceWatchdog_AssertPresence=function(e,t,n,i,o){_.Exec("AMT_AgentPresenceWatchdog","AssertPresence",{SequenceNumber:e},t,n,i,o)},_.AMT_AgentPresenceWatchdog_AssertShutdown=function(e,t,n,i,o){_.Exec("AMT_AgentPresenceWatchdog","AssertShutdown",{SequenceNumber:e},t,n,i,o)},_.AMT_AgentPresenceWatchdog_AddAction=function(e,t,n,i,o,r,c,a,s){_.Exec("AMT_AgentPresenceWatchdog","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r,c,a,s)},_.AMT_AgentPresenceWatchdog_DeleteAllActions=function(e,t,n,i){_.Exec("AMT_AgentPresenceWatchdog","DeleteAllActions",{},e,t,n,i)},_.AMT_AgentPresenceWatchdogAction_GetActionEac=function(e){_.Exec("AMT_AgentPresenceWatchdogAction","GetActionEac",{},e)},_.AMT_AgentPresenceWatchdogVA_RegisterAgent=function(e){_.Exec("AMT_AgentPresenceWatchdogVA","RegisterAgent",{},e)},_.AMT_AgentPresenceWatchdogVA_AssertPresence=function(e,t){_.Exec("AMT_AgentPresenceWatchdogVA","AssertPresence",{SequenceNumber:e},t)},_.AMT_AgentPresenceWatchdogVA_AssertShutdown=function(e,t){_.Exec("AMT_AgentPresenceWatchdogVA","AssertShutdown",{SequenceNumber:e},t)},_.AMT_AgentPresenceWatchdogVA_AddAction=function(e,t,n,i,o,r){_.Exec("AMT_AgentPresenceWatchdogVA","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r)},_.AMT_AgentPresenceWatchdogVA_DeleteAllActions=function(e,t){_.Exec("AMT_AgentPresenceWatchdogVA","DeleteAllActions",{_method_dummy:e},t)},_.AMT_AlarmClockService_AddAlarm=function(e,t){var n=e.InstanceID,i=e.ElementName,o=e.StartTime.Datetime,r=e.Interval?e.Interval.Datetime:void 0,n='<d:AlarmTemplate xmlns:d="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AlarmClockService" xmlns:s="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_AlarmClockOccurrence"><s:InstanceID>'+n+"</s:InstanceID><s:ElementName>"+i+'</s:ElementName><s:StartTime><p:Datetime xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/common">'+o+"</p:Datetime></s:StartTime>"+(null!=r?'<s:Interval><p:Interval xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/common">'+r+"</p:Interval></s:Interval>":"")+"<s:DeleteOnCompletion>"+e.DeleteOnCompletion+"</s:DeleteOnCompletion></d:AlarmTemplate>";_.wsman.ExecMethodXml(_.CompleteName("AMT_AlarmClockService"),"AddAlarm",n,t)},_.AMT_AuditLog_ClearLog=function(e){_.Exec("AMT_AuditLog","ClearLog",{},e)},_.AMT_AuditLog_RequestStateChange=function(e,t,n){_.Exec("AMT_AuditLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.AMT_AuditLog_ReadRecords=function(e,t,n){_.Exec("AMT_AuditLog","ReadRecords",{StartIndex:e},t,n)},_.AMT_AuditLog_SetAuditLock=function(e,t,n,i){_.Exec("AMT_AuditLog","SetAuditLock",{LockTimeoutInSeconds:e,Flag:t,Handle:n},i)},_.AMT_AuditLog_ExportAuditLogSignature=function(e,t){_.Exec("AMT_AuditLog","ExportAuditLogSignature",{SigningMechanism:e},t)},_.AMT_AuditLog_SetSigningKeyMaterial=function(e,t,n,i,o){_.Exec("AMT_AuditLog","SetSigningKeyMaterial",{SigningMechanismType:e,SigningKey:t,LengthOfCertificates:n,Certificates:i},o)},_.AMT_AuditPolicyRule_SetAuditPolicy=function(e,t,n,i,o){_.Exec("AMT_AuditPolicyRule","SetAuditPolicy",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},_.AMT_AuditPolicyRule_SetAuditPolicyBulk=function(e,t,n,i,o){_.Exec("AMT_AuditPolicyRule","SetAuditPolicyBulk",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},_.AMT_AuthorizationService_AddUserAclEntryEx=function(e,t,n,i,o,r){_.Exec("AMT_AuthorizationService","AddUserAclEntryEx",{DigestUsername:e,DigestPassword:t,KerberosUserSid:n,AccessPermission:i,Realms:o},r)},_.AMT_AuthorizationService_EnumerateUserAclEntries=function(e,t){_.Exec("AMT_AuthorizationService","EnumerateUserAclEntries",{StartIndex:e},t)},_.AMT_AuthorizationService_GetUserAclEntryEx=function(e,t,n){_.Exec("AMT_AuthorizationService","GetUserAclEntryEx",{Handle:e},t,n)},_.AMT_AuthorizationService_UpdateUserAclEntryEx=function(e,t,n,i,o,r,c){_.Exec("AMT_AuthorizationService","UpdateUserAclEntryEx",{Handle:e,DigestUsername:t,DigestPassword:n,KerberosUserSid:i,AccessPermission:o,Realms:r},c)},_.AMT_AuthorizationService_RemoveUserAclEntry=function(e,t){_.Exec("AMT_AuthorizationService","RemoveUserAclEntry",{Handle:e},t)},_.AMT_AuthorizationService_SetAdminAclEntryEx=function(e,t,n){_.Exec("AMT_AuthorizationService","SetAdminAclEntryEx",{Username:e,DigestPassword:t},n)},_.AMT_AuthorizationService_GetAdminAclEntry=function(e){_.Exec("AMT_AuthorizationService","GetAdminAclEntry",{},e)},_.AMT_AuthorizationService_GetAdminAclEntryStatus=function(e){_.Exec("AMT_AuthorizationService","GetAdminAclEntryStatus",{},e)},_.AMT_AuthorizationService_GetAdminNetAclEntryStatus=function(e){_.Exec("AMT_AuthorizationService","GetAdminNetAclEntryStatus",{},e)},_.AMT_AuthorizationService_SetAclEnabledState=function(e,t,n,i){_.Exec("AMT_AuthorizationService","SetAclEnabledState",{Handle:e,Enabled:t},n,i)},_.AMT_AuthorizationService_GetAclEnabledState=function(e,t,n){_.Exec("AMT_AuthorizationService","GetAclEnabledState",{Handle:e},t,n)},_.AMT_EndpointAccessControlService_RequestStateChange=function(e,t,n){_.Exec("AMT_EndpointAccessControlService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.AMT_EndpointAccessControlService_GetPosture=function(e,t){_.Exec("AMT_EndpointAccessControlService","GetPosture",{PostureType:e},t)},_.AMT_EndpointAccessControlService_GetPostureHash=function(e,t){_.Exec("AMT_EndpointAccessControlService","GetPostureHash",{PostureType:e},t)},_.AMT_EndpointAccessControlService_UpdatePostureState=function(e,t){_.Exec("AMT_EndpointAccessControlService","UpdatePostureState",{UpdateType:e},t)},_.AMT_EndpointAccessControlService_GetEacOptions=function(e){_.Exec("AMT_EndpointAccessControlService","GetEacOptions",{},e)},_.AMT_EndpointAccessControlService_SetEacOptions=function(e,t,n){_.Exec("AMT_EndpointAccessControlService","SetEacOptions",{EacVendors:e,PostureHashAlgorithm:t},n)},_.AMT_EnvironmentDetectionSettingData_SetSystemDefensePolicy=function(e,t){_.Exec("AMT_EnvironmentDetectionSettingData","SetSystemDefensePolicy",{Policy:e},t)},_.AMT_EnvironmentDetectionSettingData_EnableVpnRouting=function(e,t){_.Exec("AMT_EnvironmentDetectionSettingData","EnableVpnRouting",{Enable:e},t)},_.AMT_EthernetPortSettings_SetLinkPreference=function(e,t,n){_.Exec("AMT_EthernetPortSettings","SetLinkPreference",{LinkPreference:e,Timeout:t},n)},_.AMT_HeuristicPacketFilterStatistics_ResetSelectedStats=function(e,t){_.Exec("AMT_HeuristicPacketFilterStatistics","ResetSelectedStats",{SelectedStatistics:e},t)},_.AMT_KerberosSettingData_GetCredentialCacheState=function(e){_.Exec("AMT_KerberosSettingData","GetCredentialCacheState",{},e)},_.AMT_KerberosSettingData_SetCredentialCacheState=function(e,t){_.Exec("AMT_KerberosSettingData","SetCredentialCacheState",{Enable:e},t)},_.AMT_MessageLog_CancelIteration=function(e,t){_.Exec("AMT_MessageLog","CancelIteration",{IterationIdentifier:e},t)},_.AMT_MessageLog_RequestStateChange=function(e,t,n){_.Exec("AMT_MessageLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.AMT_MessageLog_ClearLog=function(e){_.Exec("AMT_MessageLog","ClearLog",{},e)},_.AMT_MessageLog_GetRecords=function(e,t,n,i){_.Exec("AMT_MessageLog","GetRecords",{IterationIdentifier:e,MaxReadRecords:t},n,i)},_.AMT_MessageLog_GetRecord=function(e,t,n){_.Exec("AMT_MessageLog","GetRecord",{IterationIdentifier:e,PositionToNext:t},n)},_.AMT_MessageLog_PositionAtRecord=function(e,t,n,i){_.Exec("AMT_MessageLog","PositionAtRecord",{IterationIdentifier:e,MoveAbsolute:t,RecordNumber:n},i)},_.AMT_MessageLog_PositionToFirstRecord=function(e,t){_.Exec("AMT_MessageLog","PositionToFirstRecord",{},e,t)},_.AMT_MessageLog_FreezeLog=function(e,t){_.Exec("AMT_MessageLog","FreezeLog",{Freeze:e},t)},_.AMT_PublicKeyManagementService_AddCRL=function(e,t,n){_.Exec("AMT_PublicKeyManagementService","AddCRL",{Url:e,SerialNumbers:t},n)},_.AMT_PublicKeyManagementService_ResetCRLList=function(e,t){_.Exec("AMT_PublicKeyManagementService","ResetCRLList",{_method_dummy:e},t)},_.AMT_PublicKeyManagementService_AddCertificate=function(e,t,n){_.Exec("AMT_PublicKeyManagementService","AddCertificate",{CertificateBlob:e},t,n)},_.AMT_PublicKeyManagementService_AddTrustedRootCertificate=function(e,t){_.Exec("AMT_PublicKeyManagementService","AddTrustedRootCertificate",{CertificateBlob:e},t)},_.AMT_PublicKeyManagementService_AddKey=function(e,t){_.Exec("AMT_PublicKeyManagementService","AddKey",{KeyBlob:e},t)},_.AMT_PublicKeyManagementService_GeneratePKCS10Request=function(e,t,n,i){_.Exec("AMT_PublicKeyManagementService","GeneratePKCS10Request",{KeyPair:e,DNName:t,Usage:n},i)},_.AMT_PublicKeyManagementService_GeneratePKCS10RequestEx=function(e,t,n,i){_.Exec("AMT_PublicKeyManagementService","GeneratePKCS10RequestEx",{KeyPair:e,SigningAlgorithm:t,NullSignedCertificateRequest:n},i)},_.AMT_PublicKeyManagementService_GenerateKeyPair=function(e,t,n){_.Exec("AMT_PublicKeyManagementService","GenerateKeyPair",{KeyAlgorithm:e,KeyLength:t},n)},_.AMT_RedirectionService_RequestStateChange=function(e,t){_.Exec("AMT_RedirectionService","RequestStateChange",{RequestedState:e},t)},_.AMT_RedirectionService_TerminateSession=function(e,t){_.Exec("AMT_RedirectionService","TerminateSession",{SessionType:e},t)},_.AMT_RemoteAccessService_AddMpServer=function(e,t,n,i,o,r,c,a,s){_.Exec("AMT_RemoteAccessService","AddMpServer",{AccessInfo:e,InfoFormat:t,Port:n,AuthMethod:i,Certificate:o,Username:r,Password:c,CN:a},s)},_.AMT_RemoteAccessService_AddRemoteAccessPolicyRule=function(e,t,n,i,o){_.Exec("AMT_RemoteAccessService","AddRemoteAccessPolicyRule",{Trigger:e,TunnelLifeTime:t,ExtendedData:n,MpServer:i},o)},_.AMT_RemoteAccessService_CloseRemoteAccessConnection=function(e,t){_.Exec("AMT_RemoteAccessService","CloseRemoteAccessConnection",{_method_dummy:e},t)},_.AMT_SetupAndConfigurationService_CommitChanges=function(e,t,n){_.Exec("AMT_SetupAndConfigurationService","CommitChanges",{_method_dummy:e},t,n)},_.AMT_SetupAndConfigurationService_Unprovision=function(e,t){_.Exec("AMT_SetupAndConfigurationService","Unprovision",{ProvisioningMode:e},t)},_.AMT_SetupAndConfigurationService_PartialUnprovision=function(e,t){_.Exec("AMT_SetupAndConfigurationService","PartialUnprovision",{_method_dummy:e},t)},_.AMT_SetupAndConfigurationService_ResetFlashWearOutProtection=function(e,t){_.Exec("AMT_SetupAndConfigurationService","ResetFlashWearOutProtection",{_method_dummy:e},t)},_.AMT_SetupAndConfigurationService_ExtendProvisioningPeriod=function(e,t){_.Exec("AMT_SetupAndConfigurationService","ExtendProvisioningPeriod",{Duration:e},t)},_.AMT_SetupAndConfigurationService_SetMEBxPassword=function(e,t){_.Exec("AMT_SetupAndConfigurationService","SetMEBxPassword",{Password:e},t)},_.AMT_SetupAndConfigurationService_SetTLSPSK=function(e,t,n){_.Exec("AMT_SetupAndConfigurationService","SetTLSPSK",{PID:e,PPS:t},n)},_.AMT_SetupAndConfigurationService_GetProvisioningAuditRecord=function(e){_.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecord",{},e)},_.AMT_SetupAndConfigurationService_GetUuid=function(e){_.Exec("AMT_SetupAndConfigurationService","GetUuid",{},e)},_.AMT_SetupAndConfigurationService_GetUnprovisionBlockingComponents=function(e){_.Exec("AMT_SetupAndConfigurationService","GetUnprovisionBlockingComponents",{},e)},_.AMT_SetupAndConfigurationService_GetProvisioningAuditRecordV2=function(e){_.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecordV2",{},e)},_.AMT_SystemDefensePolicy_GetTimeout=function(e){_.Exec("AMT_SystemDefensePolicy","GetTimeout",{},e)},_.AMT_SystemDefensePolicy_SetTimeout=function(e,t){_.Exec("AMT_SystemDefensePolicy","SetTimeout",{Timeout:e},t)},_.AMT_SystemDefensePolicy_UpdateStatistics=function(e,t,n,i,o,r){_.Exec("AMT_SystemDefensePolicy","UpdateStatistics",{NetworkInterface:e,ResetOnRead:t},n,i,o,r)},_.AMT_SystemPowerScheme_SetPowerScheme=function(e,t,n){_.Exec("AMT_SystemPowerScheme","SetPowerScheme",{},e,n,0,{InstanceID:t})},_.AMT_TimeSynchronizationService_GetLowAccuracyTimeSynch=function(e,t){_.Exec("AMT_TimeSynchronizationService","GetLowAccuracyTimeSynch",{},e,t)},_.AMT_TimeSynchronizationService_SetHighAccuracyTimeSynch=function(e,t,n,i,o){_.Exec("AMT_TimeSynchronizationService","SetHighAccuracyTimeSynch",{Ta0:e,Tm1:t,Tm2:n},i,o)},_.AMT_TLSCredentialContext_Create=function(e,t,n,i){_.Create("AMT_TLSCredentialContext",{ElementInContext:e,ElementProvidingContext:t},n,i)},_.AMT_UserInitiatedConnectionService_RequestStateChange=function(e,t,n){_.Exec("AMT_UserInitiatedConnectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.AMT_WebUIService_RequestStateChange=function(e,t,n,i){_.Exec("AMT_WebUIService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n,i)},_.AMT_WiFiPortConfigurationService_AddWiFiSettings=function(e,t,n,i,o,r){_.ExecWithXml("AMT_WiFiPortConfigurationService","AddWiFiSettings",{WiFiEndpoint:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},_.AMT_WiFiPortConfigurationService_UpdateWiFiSettings=function(e,t,n,i,o,r){_.ExecWithXml("AMT_WiFiPortConfigurationService","UpdateWiFiSettings",{WiFiEndpointSettings:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},_.AMT_WiFiPortConfigurationService_DeleteAllITProfiles=function(e,t){_.Exec("AMT_WiFiPortConfigurationService","DeleteAllITProfiles",{_method_dummy:e},t)},_.AMT_WiFiPortConfigurationService_DeleteAllUserProfiles=function(e,t){_.Exec("AMT_WiFiPortConfigurationService","DeleteAllUserProfiles",{_method_dummy:e},t)},_.CIM_Account_RequestStateChange=function(e,t,n){_.Exec("CIM_Account","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_AccountManagementService_CreateAccount=function(e,t,n){_.Exec("CIM_AccountManagementService","CreateAccount",{System:e,AccountTemplate:t},n)},_.CIM_BootConfigSetting_ChangeBootOrder=function(e,t){_.Exec("CIM_BootConfigSetting","ChangeBootOrder",{Source:e},t)},_.CIM_BootService_SetBootConfigRole=function(e,t,n){_.Exec("CIM_BootService","SetBootConfigRole",{BootConfigSetting:e,Role:t},n,0,1)},_.CIM_BootService_RequestStateChange=function(e,t,n,i){_.Exec("CIM_BootService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n,i,1)},_.CIM_Card_ConnectorPower=function(e,t,n){_.Exec("CIM_Card","ConnectorPower",{Connector:e,PoweredOn:t},n)},_.CIM_Card_IsCompatible=function(e,t){_.Exec("CIM_Card","IsCompatible",{ElementToCheck:e},t)},_.CIM_Chassis_IsCompatible=function(e,t){_.Exec("CIM_Chassis","IsCompatible",{ElementToCheck:e},t)},_.CIM_Fan_SetSpeed=function(e,t){_.Exec("CIM_Fan","SetSpeed",{DesiredSpeed:e},t)},_.CIM_KVMRedirectionSAP_RequestStateChange=function(e,t,n){_.Exec("CIM_KVMRedirectionSAP","RequestStateChange",{RequestedState:e},n)},_.CIM_MediaAccessDevice_LockMedia=function(e,t){_.Exec("CIM_MediaAccessDevice","LockMedia",{Lock:e},t)},_.CIM_MediaAccessDevice_SetPowerState=function(e,t,n){_.Exec("CIM_MediaAccessDevice","SetPowerState",{PowerState:e,Time:t},n)},_.CIM_MediaAccessDevice_Reset=function(e){_.Exec("CIM_MediaAccessDevice","Reset",{},e)},_.CIM_MediaAccessDevice_EnableDevice=function(e,t){_.Exec("CIM_MediaAccessDevice","EnableDevice",{Enabled:e},t)},_.CIM_MediaAccessDevice_OnlineDevice=function(e,t){_.Exec("CIM_MediaAccessDevice","OnlineDevice",{Online:e},t)},_.CIM_MediaAccessDevice_QuiesceDevice=function(e,t){_.Exec("CIM_MediaAccessDevice","QuiesceDevice",{Quiesce:e},t)},_.CIM_MediaAccessDevice_SaveProperties=function(e){_.Exec("CIM_MediaAccessDevice","SaveProperties",{},e)},_.CIM_MediaAccessDevice_RestoreProperties=function(e){_.Exec("CIM_MediaAccessDevice","RestoreProperties",{},e)},_.CIM_MediaAccessDevice_RequestStateChange=function(e,t,n){_.Exec("CIM_MediaAccessDevice","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_PhysicalFrame_IsCompatible=function(e,t){_.Exec("CIM_PhysicalFrame","IsCompatible",{ElementToCheck:e},t)},_.CIM_PhysicalPackage_IsCompatible=function(e,t){_.Exec("CIM_PhysicalPackage","IsCompatible",{ElementToCheck:e},t)},_.CIM_PowerManagementService_RequestPowerStateChange=function(e,t,n,i,o){_.Exec("CIM_PowerManagementService","RequestPowerStateChange",{PowerState:e,ManagedElement:t,Time:n,TimeoutPeriod:i},o,0,1)},_.CIM_PowerSupply_SetPowerState=function(e,t,n){_.Exec("CIM_PowerSupply","SetPowerState",{PowerState:e,Time:t},n)},_.CIM_PowerSupply_Reset=function(e){_.Exec("CIM_PowerSupply","Reset",{},e)},_.CIM_PowerSupply_EnableDevice=function(e,t){_.Exec("CIM_PowerSupply","EnableDevice",{Enabled:e},t)},_.CIM_PowerSupply_OnlineDevice=function(e,t){_.Exec("CIM_PowerSupply","OnlineDevice",{Online:e},t)},_.CIM_PowerSupply_QuiesceDevice=function(e,t){_.Exec("CIM_PowerSupply","QuiesceDevice",{Quiesce:e},t)},_.CIM_PowerSupply_SaveProperties=function(e){_.Exec("CIM_PowerSupply","SaveProperties",{},e)},_.CIM_PowerSupply_RestoreProperties=function(e){_.Exec("CIM_PowerSupply","RestoreProperties",{},e)},_.CIM_PowerSupply_RequestStateChange=function(e,t,n){_.Exec("CIM_PowerSupply","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_Processor_SetPowerState=function(e,t,n){_.Exec("CIM_Processor","SetPowerState",{PowerState:e,Time:t},n)},_.CIM_Processor_Reset=function(e){_.Exec("CIM_Processor","Reset",{},e)},_.CIM_Processor_EnableDevice=function(e,t){_.Exec("CIM_Processor","EnableDevice",{Enabled:e},t)},_.CIM_Processor_OnlineDevice=function(e,t){_.Exec("CIM_Processor","OnlineDevice",{Online:e},t)},_.CIM_Processor_QuiesceDevice=function(e,t){_.Exec("CIM_Processor","QuiesceDevice",{Quiesce:e},t)},_.CIM_Processor_SaveProperties=function(e){_.Exec("CIM_Processor","SaveProperties",{},e)},_.CIM_Processor_RestoreProperties=function(e){_.Exec("CIM_Processor","RestoreProperties",{},e)},_.CIM_Processor_RequestStateChange=function(e,t,n){_.Exec("CIM_Processor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_RecordLog_ClearLog=function(e){_.Exec("CIM_RecordLog","ClearLog",{},e)},_.CIM_RecordLog_RequestStateChange=function(e,t,n){_.Exec("CIM_RecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_RedirectionService_RequestStateChange=function(e,t,n){_.Exec("CIM_RedirectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_Sensor_SetPowerState=function(e,t,n){_.Exec("CIM_Sensor","SetPowerState",{PowerState:e,Time:t},n)},_.CIM_Sensor_Reset=function(e){_.Exec("CIM_Sensor","Reset",{},e)},_.CIM_Sensor_EnableDevice=function(e,t){_.Exec("CIM_Sensor","EnableDevice",{Enabled:e},t)},_.CIM_Sensor_OnlineDevice=function(e,t){_.Exec("CIM_Sensor","OnlineDevice",{Online:e},t)},_.CIM_Sensor_QuiesceDevice=function(e,t){_.Exec("CIM_Sensor","QuiesceDevice",{Quiesce:e},t)},_.CIM_Sensor_SaveProperties=function(e){_.Exec("CIM_Sensor","SaveProperties",{},e)},_.CIM_Sensor_RestoreProperties=function(e){_.Exec("CIM_Sensor","RestoreProperties",{},e)},_.CIM_Sensor_RequestStateChange=function(e,t,n){_.Exec("CIM_Sensor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_StatisticalData_ResetSelectedStats=function(e,t){_.Exec("CIM_StatisticalData","ResetSelectedStats",{SelectedStatistics:e},t)},_.CIM_Watchdog_KeepAlive=function(e){_.Exec("CIM_Watchdog","KeepAlive",{},e)},_.CIM_Watchdog_SetPowerState=function(e,t,n){_.Exec("CIM_Watchdog","SetPowerState",{PowerState:e,Time:t},n)},_.CIM_Watchdog_Reset=function(e){_.Exec("CIM_Watchdog","Reset",{},e)},_.CIM_Watchdog_EnableDevice=function(e,t){_.Exec("CIM_Watchdog","EnableDevice",{Enabled:e},t)},_.CIM_Watchdog_OnlineDevice=function(e,t){_.Exec("CIM_Watchdog","OnlineDevice",{Online:e},t)},_.CIM_Watchdog_QuiesceDevice=function(e,t){_.Exec("CIM_Watchdog","QuiesceDevice",{Quiesce:e},t)},_.CIM_Watchdog_SaveProperties=function(e){_.Exec("CIM_Watchdog","SaveProperties",{},e)},_.CIM_Watchdog_RestoreProperties=function(e){_.Exec("CIM_Watchdog","RestoreProperties",{},e)},_.CIM_Watchdog_RequestStateChange=function(e,t,n){_.Exec("CIM_Watchdog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.CIM_WiFiPort_SetPowerState=function(e,t,n){_.Exec("CIM_WiFiPort","SetPowerState",{PowerState:e,Time:t},n)},_.CIM_WiFiPort_Reset=function(e){_.Exec("CIM_WiFiPort","Reset",{},e)},_.CIM_WiFiPort_EnableDevice=function(e,t){_.Exec("CIM_WiFiPort","EnableDevice",{Enabled:e},t)},_.CIM_WiFiPort_OnlineDevice=function(e,t){_.Exec("CIM_WiFiPort","OnlineDevice",{Online:e},t)},_.CIM_WiFiPort_QuiesceDevice=function(e,t){_.Exec("CIM_WiFiPort","QuiesceDevice",{Quiesce:e},t)},_.CIM_WiFiPort_SaveProperties=function(e){_.Exec("CIM_WiFiPort","SaveProperties",{},e)},_.CIM_WiFiPort_RestoreProperties=function(e){_.Exec("CIM_WiFiPort","RestoreProperties",{},e)},_.CIM_WiFiPort_RequestStateChange=function(e,t,n){_.Exec("CIM_WiFiPort","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.IPS_HostBasedSetupService_Setup=function(e,t,n,i,o,r,c){_.Exec("IPS_HostBasedSetupService","Setup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,Certificate:i,SigningAlgorithm:o,DigitalSignature:r},c)},_.IPS_HostBasedSetupService_AddNextCertInChain=function(e,t,n,i){_.Exec("IPS_HostBasedSetupService","AddNextCertInChain",{NextCertificate:e,IsLeafCertificate:t,IsRootCertificate:n},i)},_.IPS_HostBasedSetupService_AdminSetup=function(e,t,n,i,o,r){_.Exec("IPS_HostBasedSetupService","AdminSetup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,SigningAlgorithm:i,DigitalSignature:o},r)},_.IPS_HostBasedSetupService_UpgradeClientToAdmin=function(e,t,n,i){_.Exec("IPS_HostBasedSetupService","UpgradeClientToAdmin",{McNonce:e,SigningAlgorithm:t,DigitalSignature:n},i)},_.IPS_HostBasedSetupService_DisableClientControlMode=function(e,t){_.Exec("IPS_HostBasedSetupService","DisableClientControlMode",{_method_dummy:e},t)},_.IPS_KVMRedirectionSettingData_TerminateSession=function(e){_.Exec("IPS_KVMRedirectionSettingData","TerminateSession",{},e)},_.IPS_KVMRedirectionSettingData_DataChannelRead=function(e){_.Exec("IPS_KVMRedirectionSettingData","DataChannelRead",{},e)},_.IPS_KVMRedirectionSettingData_DataChannelWrite=function(e,t){_.Exec("IPS_KVMRedirectionSettingData","DataChannelWrite",{DataMessage:e},t)},_.IPS_OptInService_StartOptIn=function(e){_.Exec("IPS_OptInService","StartOptIn",{},e)},_.IPS_OptInService_CancelOptIn=function(e){_.Exec("IPS_OptInService","CancelOptIn",{},e)},_.IPS_OptInService_SendOptInCode=function(e,t){_.Exec("IPS_OptInService","SendOptInCode",{OptInCode:e},t)},_.IPS_OptInService_StartService=function(e){_.Exec("IPS_OptInService","StartService",{},e)},_.IPS_OptInService_StopService=function(e){_.Exec("IPS_OptInService","StopService",{},e)},_.IPS_OptInService_RequestStateChange=function(e,t,n){_.Exec("IPS_OptInService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.IPS_ProvisioningRecordLog_RequestStateChange=function(e,t,n){_.Exec("IPS_ProvisioningRecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.IPS_ProvisioningRecordLog_ClearLog=function(e,t){_.Exec("IPS_ProvisioningRecordLog","ClearLog",{_method_dummy:e},t)},_.IPS_SecIOService_RequestStateChange=function(e,t,n){_.Exec("IPS_SecIOService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},_.AmtStatusToStr=function(e){return _.AmtStatusCodes[e]||"UNKNOWN_ERROR"},_.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"},_.GetMessageLog=function(e,t){_.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 E="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("|"),C="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("|"),M="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("|"),g=(_.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("|"),_.WatchdogCurrentStates={1:"Not Started",2:"Stopped",4:"Running",8:"Expired",16:"Suspended"},["Boot parameters received from CSME","CSME Boot Option % added successfully","HTTPS URI name resolved","HTTPS connected successfully","HTTPSBoot download is completed","Attempt to boot","Exit boot services"]),f=["","No network connection available","Name resolution of URI failed","Connect to URI failed","OEM app not found at local URI","HTTPS TLS Auth failed","HTTPS Digest Auth failed","Verified boot failed (bad image)","HTTPS Boot File not found"],I={1:"",2:"HTTPS",4:"Local PBA",8:"WinRE"};var P={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(R) 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",2703:"An existing profile sync was modified",2704:"An existing profile link preference was changed",2705:"Wireless profile share with UEFI enabled setting was changed",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 T(e,t){return(e[t]<<8)+e[t+1]}function p(e,t){return 16777216*e[t]+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]}function v(e,t){return 16777216*e[t+3]+(e[t+2]<<16)+(e[t+1]<<8)+e[t]}function o(e){var t,n=[];for(t in e)n.push(e[t]);return n}function R(e,t,n,i,o){if(200!=i)o[0](_,[],i);else{var r,c,a,s,u=o[1],d=new Date;if(0<n.Body.RecordsReturned)for(c in n.Body.EventRecords=(s=n.Body.EventRecords)&&null!=s&&"object"!=typeof s?[s]:s,n.Body.EventRecords){a=null;try{a=Buffer.from(n.Body.EventRecords[c],"base64")}catch(e){console.log(e+" "+n.Body.EventRecords[c])}(l={AuditAppID:T(a,0),EventID:T(a,2),InitiatorType:a[4]}).AuditApp=P[l.AuditAppID],l.Event=P[100*l.AuditAppID+l.EventID],l.Event||(l.Event="#"+l.EventID),0==l.InitiatorType&&(S=a[5],l.Initiator=a.slice(6,6+S).toString(),r=6+S),1==l.InitiatorType&&(l.KerberosUserInDomain=p(a,5),S=a[9],l.Initiator=function(e){for(var t="S-"+e[0]+"-"+e[7],n=2;n<e.length/4;n++)t+="-"+v(e,4*n);return t}(a.slice(10,10+S)),r=10+S),2==l.InitiatorType&&(l.Initiator="Local",r=5),3==l.InitiatorType&&(l.Initiator="KVM Default Port",r=5),A=p(a,r),l.Time=new Date(1e3*(A+60*d.getTimezoneOffset())),r+=4,l.MCLocationType=a[r++];var S,l,A=a[r++],A=(l.NetAddress=a.slice(r,r+A).toString(),r+=A,a[r++]);l.Ex=a.slice(r,r+A),l.ExStr=_.GetAuditLogExtendedDataStr(100*l.AuditAppID+l.EventID,l.Ex),u.push(l)}n.Body.TotalRecordCount>u.length?_.AMT_AuditLog_ReadRecords(u.length+1,R,[o[0],u]):o[0](_,u,i)}}return _.GetAuditLogExtendedDataStr=function(e,t){var n;return 1602!=e&&1604!=e||0!=t[0]?1603==e?0==t[1]?o(t).splice(3).toString():null:1605==e?["Invalid ME access","Invalid MEBx access"][t[0]]:1606==e?(n=["Disabled","Enabled"][t[0]],0==t[1]&&(n+=", "+t[3]),n):1607==e?"Remote "+["NoAuth","ServerAuth","MutualAuth"][t[0]]+", Local "+["NoAuth","ServerAuth","MutualAuth"][t[1]]:1617==e?_.RealmNames[p(t,0)]+", "+["NoAuth","Auth","Disabled"][t[4]]:1619==e?["BIOS","MEBx","Local MEI","Local WSMAN","Remote WSAMN"][t[0]]:1900==e?"From "+T(t,0)+"."+T(t,2)+"."+T(t,4)+"."+T(t,6)+" to "+T(t,8)+"."+T(t,10)+"."+T(t,12)+"."+T(t,14):2100==e?((n=new Date).setTime(1e3*p(t,0)+6e4*(new Date).getTimezoneOffset()),n.toLocaleString()):3e3==e?"From "+["None","KVM","All"][t[0]]+" to "+["None","KVM","All"][t[1]]:3001==e?["Success","Failed 3 times"][t[0]]:null:o(t).splice(2,2+t[1]).toString()},_.GetAuditLog=function(e){_.AMT_AuditLog_ReadRecords(1,R,[e,[]])},_}module.exports=AmtStackCreateService