diff --git a/MeshCentralServer.njsproj b/MeshCentralServer.njsproj index 37271d96..ce5b9555 100644 --- a/MeshCentralServer.njsproj +++ b/MeshCentralServer.njsproj @@ -228,6 +228,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -241,181 +406,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -588,13 +578,13 @@ + + - - diff --git a/emails/mesh-invite.html b/emails/mesh-invite.html index a50f42c5..073a1f16 100644 --- a/emails/mesh-invite.html +++ b/emails/mesh-invite.html @@ -24,7 +24,7 @@

-

Click here to download the MeshAgent for Apple OSX.

+

Click here to download the MeshAgent for Apple OSX.

diff --git a/emails/mesh-invite.txt b/emails/mesh-invite.txt index ac8ad99b..7775c4b4 100644 --- a/emails/mesh-invite.txt +++ b/emails/mesh-invite.txt @@ -17,7 +17,7 @@ For Windows, nagivate to the following link to complete the process: ~ For Apple OSX, nagivate to the following link to complete the process: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_cs.html b/emails/translations/mesh-invite_cs.html index f6b26e85..32c53ec0 100644 --- a/emails/translations/mesh-invite_cs.html +++ b/emails/translations/mesh-invite_cs.html @@ -24,7 +24,7 @@

-

Kliknutím sem stáhnete MeshAgent pro Apple OSX.

+

Kliknutím sem stáhnete MeshAgent pro Apple OSX.

diff --git a/emails/translations/mesh-invite_cs.txt b/emails/translations/mesh-invite_cs.txt index 253dcb9e..26a276d8 100644 --- a/emails/translations/mesh-invite_cs.txt +++ b/emails/translations/mesh-invite_cs.txt @@ -17,7 +17,7 @@ V případě systému Windows dokončete proces pomocí následujícího odkazu: ~ V případě systému Apple OSX dokončete proces pomocí následujícího odkazu: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_de.html b/emails/translations/mesh-invite_de.html index 191cd45b..30d6a601 100644 --- a/emails/translations/mesh-invite_de.html +++ b/emails/translations/mesh-invite_de.html @@ -24,7 +24,7 @@

-

Klicken Sie hier, um den MeshAgent für Apple OSX herunterzuladen.

+

Klicken Sie hier, um den MeshAgent für Apple OSX herunterzuladen.

diff --git a/emails/translations/mesh-invite_de.txt b/emails/translations/mesh-invite_de.txt index 5727e1bd..657da2e0 100644 --- a/emails/translations/mesh-invite_de.txt +++ b/emails/translations/mesh-invite_de.txt @@ -17,7 +17,7 @@ Nagivieren Sie unter Windows den folgenden Link, um den Vorgang abzuschließen: ~ Nagivieren Sie unter Apple OSX den folgenden Link, um den Vorgang abzuschließen: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_es.html b/emails/translations/mesh-invite_es.html index 894ba58c..2a377bb5 100644 --- a/emails/translations/mesh-invite_es.html +++ b/emails/translations/mesh-invite_es.html @@ -24,7 +24,7 @@

-

Haga clic aquí para descargar el Agente Mesh para Apple OSX.

+

Haga clic aquí para descargar el Agente Mesh para Apple OSX.

diff --git a/emails/translations/mesh-invite_es.txt b/emails/translations/mesh-invite_es.txt index 949c8ad5..9dde814d 100644 --- a/emails/translations/mesh-invite_es.txt +++ b/emails/translations/mesh-invite_es.txt @@ -17,7 +17,7 @@ Para Windows, navegue al siguiente enlace para completar el proceso: ~ Para Apple OSX, navegue hasta el siguiente enlace para completar el proceso: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_fi.html b/emails/translations/mesh-invite_fi.html index aff50c0a..256982bf 100644 --- a/emails/translations/mesh-invite_fi.html +++ b/emails/translations/mesh-invite_fi.html @@ -24,7 +24,7 @@

-

Napsauta tätä ladataksesi MeshAgent Apple OSX:lle.

+

Napsauta tätä ladataksesi MeshAgent Apple OSX:lle.

diff --git a/emails/translations/mesh-invite_fi.txt b/emails/translations/mesh-invite_fi.txt index 3c3ff266..05cb2ae5 100644 --- a/emails/translations/mesh-invite_fi.txt +++ b/emails/translations/mesh-invite_fi.txt @@ -17,7 +17,7 @@ Jos kyseessä on Windows, suorita prosessi loppuun avaamalla seuraava linkki: ~ Apple OSX -käyttöjärjestelmässä prosessin loppuun saattamiseksi napsauta seuraavaa linkkiä: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_fr.html b/emails/translations/mesh-invite_fr.html index f1415af5..fb8e85a9 100644 --- a/emails/translations/mesh-invite_fr.html +++ b/emails/translations/mesh-invite_fr.html @@ -24,7 +24,7 @@

-

Cliquez ici pour télécharger le MeshAgent pour Apple OSX.

+

Cliquez ici pour télécharger le MeshAgent pour Apple OSX.

diff --git a/emails/translations/mesh-invite_fr.txt b/emails/translations/mesh-invite_fr.txt index 9625b4c4..406bf565 100644 --- a/emails/translations/mesh-invite_fr.txt +++ b/emails/translations/mesh-invite_fr.txt @@ -17,7 +17,7 @@ Pour Windows, accédez au lien suivant pour terminer le processus: ~ Pour Apple OSX, accédez au lien suivant pour terminer le processus: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_hi.html b/emails/translations/mesh-invite_hi.html index 36986005..a6e65386 100644 --- a/emails/translations/mesh-invite_hi.html +++ b/emails/translations/mesh-invite_hi.html @@ -24,7 +24,7 @@

-

Apple OSX के लिए मेशजेंट को डाउनलोड करने के लिए यहां क्लिक करें।

+

Apple OSX के लिए मेशजेंट को डाउनलोड करने के लिए यहां क्लिक करें।

diff --git a/emails/translations/mesh-invite_hi.txt b/emails/translations/mesh-invite_hi.txt index 2ede656b..4be40455 100644 --- a/emails/translations/mesh-invite_hi.txt +++ b/emails/translations/mesh-invite_hi.txt @@ -17,7 +17,7 @@ ~ Apple OSX के लिए, इस प्रक्रिया को पूरा करने के लिए निम्नलिखित लिंक पर जाएं: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_ja.html b/emails/translations/mesh-invite_ja.html index 81713f9c..43706b52 100644 --- a/emails/translations/mesh-invite_ja.html +++ b/emails/translations/mesh-invite_ja.html @@ -24,7 +24,7 @@

-

ここをクリックして、Apple OSX用のMeshAgentをダウンロードしてください。

+

ここをクリックして、Apple OSX用のMeshAgentをダウンロードしてください。

diff --git a/emails/translations/mesh-invite_ja.txt b/emails/translations/mesh-invite_ja.txt index ff86e0b2..6256abff 100644 --- a/emails/translations/mesh-invite_ja.txt +++ b/emails/translations/mesh-invite_ja.txt @@ -17,7 +17,7 @@ Windowsの場合、次のリンクに移動してプロセスを完了します ~ Apple OSXの場合、次のリンクに移動してプロセスを完了します。 ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_ko.html b/emails/translations/mesh-invite_ko.html index 1292aa96..4d5a2c84 100644 --- a/emails/translations/mesh-invite_ko.html +++ b/emails/translations/mesh-invite_ko.html @@ -24,7 +24,7 @@

-

Apple OSX를 위한 MeshAgent를 다운로드 하려면 여기를 클릭하십시오.

+

Apple OSX를 위한 MeshAgent를 다운로드 하려면 여기를 클릭하십시오.

diff --git a/emails/translations/mesh-invite_ko.txt b/emails/translations/mesh-invite_ko.txt index 460a6727..8d16640f 100644 --- a/emails/translations/mesh-invite_ko.txt +++ b/emails/translations/mesh-invite_ko.txt @@ -17,7 +17,7 @@ Windows의 경우, 다음 링크로 이동하여 과정을 완료하십시오. ~ Apple OSX인 경우, 다음 링크로 이동하여 과정을 완료하십시오. ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_nl.html b/emails/translations/mesh-invite_nl.html index 2fa8ec54..4b3e7149 100644 --- a/emails/translations/mesh-invite_nl.html +++ b/emails/translations/mesh-invite_nl.html @@ -24,7 +24,7 @@

-

Klik hier om de MeshAgent te downloaden voor Apple OSX.

+

Klik hier om de MeshAgent te downloaden voor Apple OSX.

diff --git a/emails/translations/mesh-invite_nl.txt b/emails/translations/mesh-invite_nl.txt index b3142aa2..08a11dad 100644 --- a/emails/translations/mesh-invite_nl.txt +++ b/emails/translations/mesh-invite_nl.txt @@ -17,7 +17,7 @@ Voor Windows, ga je naar de volgende link om het proces te voltooien: ~ Voor Apple OSX ga je naar de volgende link om het proces te voltooien: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_pt.html b/emails/translations/mesh-invite_pt.html index 01f4c179..f6498f5b 100644 --- a/emails/translations/mesh-invite_pt.html +++ b/emails/translations/mesh-invite_pt.html @@ -24,7 +24,7 @@

-

Clique aqui para baixar o MeshAgent para Apple OSX.

+

Clique aqui para baixar o MeshAgent para Apple OSX.

diff --git a/emails/translations/mesh-invite_pt.txt b/emails/translations/mesh-invite_pt.txt index b763e232..4f92cdd1 100644 --- a/emails/translations/mesh-invite_pt.txt +++ b/emails/translations/mesh-invite_pt.txt @@ -17,7 +17,7 @@ Para Windows, vá ao seguinte link para concluir o processo: ~ Para Apple OSX, vá ao seguinte link para concluir o processo: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_ru.html b/emails/translations/mesh-invite_ru.html index 95b8634c..ccae6ee3 100644 --- a/emails/translations/mesh-invite_ru.html +++ b/emails/translations/mesh-invite_ru.html @@ -24,7 +24,7 @@

-

Нажмите здесь, чтобы загрузить MeshAgent для Apple OSX.

+

Нажмите здесь, чтобы загрузить MeshAgent для Apple OSX.

diff --git a/emails/translations/mesh-invite_ru.txt b/emails/translations/mesh-invite_ru.txt index 073b9717..7899c36e 100644 --- a/emails/translations/mesh-invite_ru.txt +++ b/emails/translations/mesh-invite_ru.txt @@ -17,7 +17,7 @@ ~ Для Apple OSX перейдите по следующей ссылке, чтобы завершить процесс: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_tr.html b/emails/translations/mesh-invite_tr.html index 33850976..f41861e8 100644 --- a/emails/translations/mesh-invite_tr.html +++ b/emails/translations/mesh-invite_tr.html @@ -24,7 +24,7 @@

-

Apple OSX için MeshAgent'ı indirmek için burayı tıklayın.

+

Apple OSX için MeshAgent'ı indirmek için burayı tıklayın.

diff --git a/emails/translations/mesh-invite_tr.txt b/emails/translations/mesh-invite_tr.txt index bae2f6e8..86ebb894 100644 --- a/emails/translations/mesh-invite_tr.txt +++ b/emails/translations/mesh-invite_tr.txt @@ -17,7 +17,7 @@ Windows için, işlemi tamamlamak için aşağıdaki bağlantıya gidin: ~ Apple OSX için, işlemi tamamlamak için aşağıdaki bağlantıya gidin: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_zh-chs.html b/emails/translations/mesh-invite_zh-chs.html index d9f2238f..bc5b3f80 100644 --- a/emails/translations/mesh-invite_zh-chs.html +++ b/emails/translations/mesh-invite_zh-chs.html @@ -24,7 +24,7 @@

-

单击此处下载适用于Apple OSX的MeshAgent。

+

单击此处下载适用于Apple OSX的MeshAgent。

diff --git a/emails/translations/mesh-invite_zh-chs.txt b/emails/translations/mesh-invite_zh-chs.txt index f28d407e..e84f18b5 100644 --- a/emails/translations/mesh-invite_zh-chs.txt +++ b/emails/translations/mesh-invite_zh-chs.txt @@ -17,7 +17,7 @@ ~ 对于Apple OSX,请导航至以下连结以完成该过程: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/emails/translations/mesh-invite_zh-cht.html b/emails/translations/mesh-invite_zh-cht.html index 80133187..cfdbd1a0 100644 --- a/emails/translations/mesh-invite_zh-cht.html +++ b/emails/translations/mesh-invite_zh-cht.html @@ -24,7 +24,7 @@

-

單擊此處下載適用於Apple OSX的MeshAgent。

+

單擊此處下載適用於Apple OSX的MeshAgent。

diff --git a/emails/translations/mesh-invite_zh-cht.txt b/emails/translations/mesh-invite_zh-cht.txt index 0828df01..60dc43d3 100644 --- a/emails/translations/mesh-invite_zh-cht.txt +++ b/emails/translations/mesh-invite_zh-cht.txt @@ -17,7 +17,7 @@ ~ 對於Apple OSX,請導航至以下鏈結以完成該過程: ~ -~[[[SERVERURL]]]/meshagents?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] +~[[[SERVERURL]]]/meshosxagent?id=16&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&installflags=[[[INSTALLFLAGS]]] ~ ~ ~ diff --git a/public/scripts/amt-wsman-0.2.0-min.js b/public/scripts/amt-wsman-0.2.0-min.js index 293387e7..389c6296 100644 --- a/public/scripts/amt-wsman-0.2.0-min.js +++ b/public/scripts/amt-wsman-0.2.0-min.js @@ -1 +1 @@ -var WsmanStackCreateService=function(e,s,r,a,o,t){var p={};function l(e){if(!e)return"";var s=" ";for(var r in e)e.hasOwnProperty(r)&&0===r.indexOf("@")&&(s+=r.substring(1)+'="'+e[r]+'" ');return s}function w(e){if(!e)return"";if("string"==typeof e)return e;if(e.InstanceID)return''+e.InstanceID+"";var s="";for(var r in e)if(e.hasOwnProperty(r)){if(s+='',e[r].ReferenceParameters){s+="",s+=""+e[r].Address+""+e[r].ReferenceParameters.ResourceURI+"";var a=e[r].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(a))for(var o=0;o"+a[o].Value+"";else s+=""+a.Value+"";s+=""}else s+=e[r];s+=""}return s+=""}return p.NextMessageId=1,p.Address="/wsman",p.comm=CreateWsmanComm(e,s,r,a,o,t),p.PerformAjax=function(e,o,s,r,a){null==a&&(a=""),p.comm.PerformAjax('

"+e,function(e,s,r){if(200==s){var a=p.ParseWsman(e);a&&null!=a?o(p,a.Header.ResourceURI,a,200,r):o(p,null,{Header:{HttpError:s}},601,r)}else o(p,null,{Header:{HttpError:s}},s,r)},s,r)},p.CancelAllQueries=function(e){p.comm.CancelAllQueries(e)},p.GetNameFromUrl=function(e){var s=e.lastIndexOf("/");return-1==s?e:e.substring(s+1)},p.ExecSubscribe=function(e,s,r,a,o,t,n,l,d,c){var m="",i="";null!=d&&null!=c&&(m="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken"+d+''+c+"",i=''),l=null!=l&&null!=l?""+l+"":"";var u="http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"+w(n)+m+'
'+r+""+i+"PT0.000000S";p.PerformAjax(u+"",a,o,t,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:se="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:m="http://x.com"')},p.ExecUnSubscribe=function(e,s,r,a,o){var t="http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"+w(o)+"";p.PerformAjax(t+"",s,r,a,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"')},p.ExecPut=function(e,s,r,a,o,t){var n="http://schemas.xmlsoap.org/ws/2004/09/transfer/Put"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60.000S"+w(t)+""+function(e,s){if(!e||null==s)return"";var r=p.GetNameFromUrl(e),a="';for(var o in s)if(s.hasOwnProperty(o)&&0!==o.indexOf("__")&&0!==o.indexOf("@")&&void 0!==s[o]&&null!==s[o]&&"function"!=typeof s[o])if("object"==typeof s[o]&&s[o].ReferenceParameters){a+=""+s[o].Address+""+s[o].ReferenceParameters.ResourceURI+"";var t=s[o].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(t))for(var n=0;n"+t[n].Value+"";else a+=""+t.Value+"";a+=""}else if(Array.isArray(s[o]))for(n=0;n"+s[o][n].toString()+"";else a+=""+s[o].toString()+"";return a+=""}(e,s);p.PerformAjax(n+"",r,a,o)},p.ExecCreate=function(e,s,r,a,o,t){var n=p.GetNameFromUrl(e),l="http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S"+w(t)+"';for(var d in s)l+=""+s[d]+"";p.PerformAjax(l+"",r,a,o)},p.ExecCreateXml=function(e,s,r,a,o){var t=p.GetNameFromUrl(e);p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60.000S'+s+"",r,a,o)},p.ExecDelete=function(e,s,r,a,o){var t="http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S"+w(s)+"";p.PerformAjax(t,r,a,o)},p.ExecGet=function(e,s,r,a){p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Get"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S",s,r,a)},p.ExecMethod=function(e,s,r,a,o,t,n){var l="";for(var d in r)if(null!=r[d])if(Array.isArray(r[d]))for(var c in r[d])l+=""+r[d][c]+"";else l+=""+r[d]+"";p.ExecMethodXml(e,s,l,a,o,t,n)},p.ExecMethodXml=function(e,s,r,a,o,t,n){p.PerformAjax(e+"/"+s+""+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S"+w(n)+"'+r+"",a,o,t)},p.ExecEnum=function(e,s,r,a){p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate"+p.Address+""+e+""+p.NextMessageId+++'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S',s,r,a)},p.ExecPull=function(e,s,r,a,o){p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull"+p.Address+""+e+""+p.NextMessageId+++'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S'+s+"99999999",r,a,o)},p.ParseWsman=function(s){try{s.childNodes||(s=function(e){{if(window.DOMParser)return(new DOMParser).parseFromString(e,"text/xml");var s=new ActiveXObject("Microsoft.XMLDOM");return s.async=!1,s.loadXML(e),s}}(s));var e,r={Header:{}},a=s.getElementsByTagName("Header")[0];if(!(a=a||s.getElementsByTagName("a:Header")[0]))return null;for(var o=0;o'+e.InstanceID+"";var s="";for(var r in e)if(e.hasOwnProperty(r)){if(s+='',e[r].ReferenceParameters){s+="",s+=""+e[r].Address+""+e[r].ReferenceParameters.ResourceURI+"";var a=e[r].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(a))for(var o=0;o"+a[o].Value+"";else s+=""+a.Value+"";s+=""}else s+=e[r];s+=""}return s+=""}return p.NextMessageId=1,p.Address="/wsman",p.comm=CreateWsmanComm(e,s,r,a,o,t),p.PerformAjax=function(e,o,s,r,a){null==a&&(a=""),p.comm.PerformAjax('
"+e,function(e,s,r){if(200==s){var a=p.ParseWsman(e);a&&null!=a?o(p,a.Header.ResourceURI,a,200,r):o(p,null,{Header:{HttpError:s}},601,r)}else o(p,null,{Header:{HttpError:s}},s,r)},s,r)},p.CancelAllQueries=function(e){p.comm.CancelAllQueries(e)},p.GetNameFromUrl=function(e){var s=e.lastIndexOf("/");return-1==s?e:e.substring(s+1)},p.ExecSubscribe=function(e,s,r,a,o,t,n,l,c,d){var m="",i="";null!=c&&null!=d&&(m="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken"+c+''+d+"",i=''),l=null!=l&&null!=l?""+l+"":"";var u="http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"+w(n)+m+'
'+r+""+i+"PT0.000000S";p.PerformAjax(u+"
",a,o,t,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:se="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:m="http://x.com"')},p.ExecUnSubscribe=function(e,s,r,a,o){var t="http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"+w(o)+"";p.PerformAjax(t+"",s,r,a,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"')},p.ExecPut=function(e,s,r,a,o,t){var n="http://schemas.xmlsoap.org/ws/2004/09/transfer/Put"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60.000S"+w(t)+""+function(e,s){if(!e||null==s)return"";var r=p.GetNameFromUrl(e),a="';for(var o in s)if(s.hasOwnProperty(o)&&0!==o.indexOf("__")&&0!==o.indexOf("@")&&void 0!==s[o]&&null!==s[o]&&"function"!=typeof s[o])if("object"==typeof s[o]&&s[o].ReferenceParameters){a+=""+s[o].Address+""+s[o].ReferenceParameters.ResourceURI+"";var t=s[o].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(t))for(var n=0;n"+t[n].Value+"";else a+=""+t.Value+"";a+=""}else if(Array.isArray(s[o]))for(n=0;n"+s[o][n].toString()+"";else a+=""+s[o].toString()+"";return a+=""}(e,s);p.PerformAjax(n+"",r,a,o)},p.ExecCreate=function(e,s,r,a,o,t){var n=p.GetNameFromUrl(e),l="http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S"+w(t)+"';for(var c in s)l+=""+s[c]+"";p.PerformAjax(l+"",r,a,o)},p.ExecCreateXml=function(e,s,r,a,o){var t=p.GetNameFromUrl(e);p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60.000S'+s+"",r,a,o)},p.ExecDelete=function(e,s,r,a,o){var t="http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S"+w(s)+"";p.PerformAjax(t,r,a,o)},p.ExecGet=function(e,s,r,a){p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Get"+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S",s,r,a)},p.ExecMethod=function(e,s,r,a,o,t,n){var l="";for(var c in r)if(null!=r[c])if(Array.isArray(r[c]))for(var d in r[c])l+=""+r[c][d]+"";else l+=""+r[c]+"";p.ExecMethodXml(e,s,l,a,o,t,n)},p.ExecMethodXml=function(e,s,r,a,o,t,n){p.PerformAjax(e+"/"+s+""+p.Address+""+e+""+p.NextMessageId+++"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S"+w(n)+"'+r+"",a,o,t)},p.ExecEnum=function(e,s,r,a){p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate"+p.Address+""+e+""+p.NextMessageId+++'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S',s,r,a)},p.ExecPull=function(e,s,r,a,o){p.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull"+p.Address+""+e+""+p.NextMessageId+++'http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymousPT60S'+s+"99999999",r,a,o)},p.ParseWsman=function(s){try{s.childNodes||(s=function(e){{if(window.DOMParser)return(new DOMParser).parseFromString(e,"text/xml");var s=new ActiveXObject("Microsoft.XMLDOM");return s.async=!1,s.loadXML(e),s}}(s));var e,r={Header:{}},a=s.getElementsByTagName("Header")[0];if(!(a=a||s.getElementsByTagName("a:Header")[0]))return null;for(var o=0;o