From 1652603d3992c8a8455eb08d811b4a014864819d Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Wed, 21 Aug 2019 15:55:22 +0200 Subject: [PATCH] Fix uglifyjs conflict --- Makefile | 11 ++++++++++- lemonldap-ng-manager/site/htdocs/static/js/2ndfa.js | 2 +- .../site/htdocs/static/js/2ndfa.min.js | 3 +-- .../site/htdocs/static/js/2ndfa.min.js.map | 2 +- lemonldap-ng-manager/site/htdocs/static/js/manager.js | 2 +- .../site/htdocs/static/js/manager.min.js | 2 +- .../site/htdocs/static/js/sessions.js | 2 +- .../site/htdocs/static/js/sessions.min.js | 3 +-- .../site/htdocs/static/js/sessions.min.js.map | 2 +- lemonldap-ng-manager/site/htdocs/static/js/viewer.js | 2 +- .../site/htdocs/static/js/viewer.min.js | 3 +-- .../site/htdocs/static/js/viewer.min.js.map | 2 +- .../site/htdocs/static/common/js/redirect.js | 2 +- 13 files changed, 22 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 4df71e9e9..9f3a0e34f 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ UNCOMPRESS=tar xzf LISTCOMPRESSED=tar tzf COMPRESSSUFFIX=tar.gz NGINX=/usr/sbin/nginx +UGLIFYJSVERSION:=$(shell uglifyjs --version|perl -pe 's/^[^\d]*(\d).*$$/$$1/') # Default directories install # --------------------------- @@ -308,9 +309,17 @@ $(SRCMANAGERDIR)/site/htdocs/static/js/%.js: $(SRCMANAGERDIR)/site/coffee/%.coff @echo "Compressing $*.css" @yui-compressor $*.css > $*.min.css +xx: + echo $(UGLIFYJSVERSION) + echo $(UGLIFYJSVERSION) + %.min.js: %.js @echo "Compressing $*.js" - @uglifyjs $*.js --compress --mangle --comments='/Copyr/i' --source-map $*.min.js.map -o $*.min.js + if test "$(UGLIFYJSVERSION)" = 2; then \ + uglifyjs $*.js --compress --mangle --comments='/Copyr/i' --source-map $*.min.js.map -o $*.min.js; \ + else \ + uglifyjs $*.js --compress --mangle --comments='/Copyr/i' --source-map -o $*.min.js; \ + fi fastcgi-server/man/llng-fastcgi-server.1p: fastcgi-server/sbin/llng-fastcgi-server @echo Update FastCGI server man page diff --git a/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.js b/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.js index 9c86640b5..8ad08f61b 100644 --- a/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.js +++ b/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 1.12.7 +// Generated by CoffeeScript 1.12.8 /* * 2ndFA Session explorer diff --git a/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.min.js b/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.min.js index 9b65d0356..f5b155d2c 100644 --- a/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.min.js +++ b/lemonldap-ng-manager/site/htdocs/static/js/2ndfa.min.js @@ -1,2 +1 @@ -(function(){var e,t,n,a,r,i,o,s;s=function(e,t){return $("#msg").html(window.translate(e)),$("#color").removeClass("message-positive message-warning alert-success alert-warning"),$("#color").addClass("message-"+t),"positive"===t&&(t="success"),$("#color").addClass("alert-"+t)},a=25,o={_whatToTrace:[function(e,t){return"groupBy=substr("+e+",1)"},function(e,t){return e+"="+t+"*"}]},i={_whatToTrace:function(e,t,n,a){return console.log("overSchema => level",n,"over",a),1===n&&t.length>a?e+"="+t+"*&groupBy=substr("+e+","+(n+a+1)+")":null}},t="_password",e={dateTitle:["_utime","_startTime","_updateTime"],sfaTitle:["_2fDevices"]},r={home:[]},n=angular.module("llngSessionsExplorer",["ui.tree","ui.bootstrap","llApp"]),n.controller("SessionsExplorerCtrl",["$scope","$translator","$location","$q","$http",function(n,s,l,u,c){var h,p,d,g;return n.links=links,n.menulinks=menulinks,n.staticPrefix=staticPrefix,n.scriptname=scriptname,n.formPrefix=formPrefix,n.availableLanguages=availableLanguages,n.waiting=!0,n.showM=!1,n.showT=!0,n.data=[],n.currentScope=null,n.currentSession=null,n.menu=r,n.searchString="",n.U2FCheck="1",n.TOTPCheck="1",n.UBKCheck="1",n.translateP=s.translateP,n.translate=s.translate,n.translateTitle=function(e){return s.translateField(e,"title")},g="persistent",n.menuClick=function(e){if(e.popup)window.open(e.popup);else switch(e.action||(e.action=e.title),typeof e.action){case"function":e.action(n.currentNode,n),n[e.action]();break;case"string":n[e.action]();break;default:console.log(typeof e.action)}return n.showM=!1},n.search2FA=function(e){return e&&(n.searchString=""),n.currentSession=null,n.data=[],n.updateTree2("",n.data,0,0)},n.delete2FA=function(e,t){var a;return a=angular.element(".data-"+t),a.remove(),n.waiting=!0,c.delete(scriptname+"sfa/"+g+"/"+n.currentSession.id+"?type="+e+"&epoch="+t).then(function(e){return n.waiting=!1},function(e){return n.waiting=!1}),n.showT=!1},n.stoggle=function(e){var t;return t=e.$modelValue,0===t.nodes.length&&n.updateTree(t.value,t.nodes,t.level,t.over,t.query,t.count),e.toggle()},n.displaySession=function(a){var r,i;return i=function(a){var r,i,o,s,l,u,c,h,p,d,g,f,m,T,w,v,y,_,k,C,S;r=function(e){return e},k=a._utime,p=a._session_id;for(g in a)S=a[g],S?("string"==typeof a&&S.match(/; /)&&(a[g]=S.split("; ")),"object"!=typeof a[g]&&(t.match(new RegExp("\b"+g+"\b"))?a[g]="********":g.match(/^(_utime|_lastAuthnUTime|_lastSeen|notification)$/)?a[g]=n.localeDate(S):g.match(/^(_startTime|_updateTime)$/)&&(S=r(S),w=/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})$/,o=S.match(w),a[g]=o[3]+"/"+o[2]+"/"+o[1]+" à "+o[4]+":"+o[5]+":"+o[6]))):delete a[g];v=[];for(u in e){for(l=e[u],_=[],h=0,f=l.length;h0&&v.push({title:"__"+u+"__",nodes:_})}return{_utime:k,id:p,nodes:v}},n.currentScope=a,r=a.$modelValue.session,c.get(scriptname+"sfa/"+g+"/"+r).then(function(e){return n.currentSession=i(e.data)}),n.showT=!1},n.localeDate=function(e){var t;return t=new Date(1e3*e),t.toLocaleString()},n.getLanguage=function(e){return n.lang=e,n.form="white",n.init(),n.showM=!1},d=function(e,t,a){var r;return r=t.match(/#!?\/(\w+)/),(null===r||r[1].match(/^(persistent)$/))&&(n.type="_session_uid"),n.init()},n.$on("$locationChangeSuccess",d),h=0,n.updateTree=function(e,t,r,s,l,u){var p,d,f;return n.waiting=!0,d=o[n.type]?o[n.type]:o._whatToTrace,p=d[r](n.type,e,l),u>a&&i[n.type]&&(f=i[n.type](n.type,e,r,s,l))?(s++,p=f,r-=1):s=0,c.get(scriptname+"sfa/"+g+"?"+p+"&U2FCheck="+n.U2FCheck+"&TOTPCheck="+n.TOTPCheck+"&UBKCheck="+n.UBKCheck).then(function(a){var i,o,l,u,c;if(i=a.data,i.result){for(c=i.values,o=0,l=c.length;oa&&i[n.type]&&(f=i[n.type](n.type,e,r,s,l))?(s++,p=f,r-=1):s=0,c.get(scriptname+"sfa/"+g+"?_session_uid="+n.searchString+"*&groupBy=substr(_session_uid,"+n.searchString.length+")&U2FCheck="+n.U2FCheck+"&TOTPCheck="+n.TOTPCheck+"&UBKCheck="+n.UBKCheck).then(function(a){var i,o,l,u,c;if(i=a.data,i.result){for(c=i.values,o=0,l=c.length;o level",n,"over",a),1===n&&t.length>a?e+"="+t+"*&groupBy=substr("+e+","+(n+a+1)+")":null}},C={dateTitle:["_utime","_startTime","_updateTime"],sfaTitle:["_2fDevices"]},o={home:[]},angular.module("llngSessionsExplorer",["ui.tree","ui.bootstrap","llApp"]).controller("SessionsExplorerCtrl",["$scope","$translator","$location","$q","$http",function(k,t,e,n,a){var p,r,i,d;return k.links=links,k.menulinks=menulinks,k.staticPrefix=staticPrefix,k.scriptname=scriptname,k.formPrefix=formPrefix,k.availableLanguages=availableLanguages,k.waiting=!0,k.showM=!1,k.showT=!0,k.data=[],k.currentScope=null,k.currentSession=null,k.menu=o,k.searchString="",k.U2FCheck="1",k.TOTPCheck="1",k.UBKCheck="1",k.translateP=t.translateP,k.translate=t.translate,k.translateTitle=function(e){return t.translateField(e,"title")},d="persistent",k.menuClick=function(e){if(e.popup)window.open(e.popup);else switch(e.action||(e.action=e.title),typeof e.action){case"function":e.action(k.currentNode,k),k[e.action]();break;case"string":k[e.action]();break;default:console.log(typeof e.action)}return k.showM=!1},k.search2FA=function(e){return e&&(k.searchString=""),k.currentSession=null,k.data=[],k.updateTree2("",k.data,0,0)},k.delete2FA=function(e,t){return angular.element(".data-"+t).remove(),k.waiting=!0,a.delete(scriptname+"sfa/"+d+"/"+k.currentSession.id+"?type="+e+"&epoch="+t).then(function(e){return k.waiting=!1},function(e){return k.waiting=!1}),k.showT=!1},k.stoggle=function(e){var t;return 0===(t=e.$modelValue).nodes.length&&k.updateTree(t.value,t.nodes,t.level,t.over,t.query,t.count),e.toggle()},k.displaySession=function(e){var t,n;return n=function(o){var e,t,n,a,r,i,s,u,l,c,h,p,d,f,g,m,T,w,v,y,_;for(h in e=function(e){return e},function(e,t){var n,a,r,i;for(n in r=[],a=new RegExp(e),o)i=o[n],n.match(a)&&i&&(r.push({title:n,value:i}),delete o[n]);if(00?{title:"badRequest",message:r,items:[]}:{title:"networkProblem",message:"",items:[]},e.showModal("message.html")},e.showModal=function(t,n){var o,i;return i=a.open({templateUrl:t,controller:"ModalInstanceCtrl",size:"lg",resolve:{elem:function(){return function(t){return e[t]}},set:function(){return function(t,n){return e[t]=n}},init:function(){return n}}}),o=r.defer(),i.result.then(function(t){return e.message={title:"",message:"",items:[]},o.resolve(t)},function(t){return e.message={title:"",message:"",items:[]},o.reject(t)}),o.promise},e.menuClick=function(t){if(t.popup)window.open(t.popup);else switch(t.action||(t.action=t.title),typeof t.action){case"function":t.action(e.currentNode,e);break;case"string":e[t.action]();break;default:console.log(typeof t.action)}return e.showM=!1},e.home=function(){return e.form="home",e.showM=!1},u=function(t){var r;if(e.message={title:"",message:"",items:[],itemsE:[],itemsNC:[],itemsW:[]},t.needConfirm&&(e.confirmNeeded=!0),t.message&&(e.message.message=t.message),t.details){for(r in t.details)"__changes__"!==r&&("__needConfirmation__"===r?(e.message.itemsNC.push({message:r,items:t.details[r]}),console.log("NeedConfirmation:",e.message.itemsNC)):"__warnings__"===r?(e.message.itemsW.push({message:r,items:t.details[r]}),console.log("Warnings:",e.message.itemsW)):(e.message.itemsE.push({message:r,items:t.details[r]}),console.log("Errors:",e.message.itemsE)));e.message.items=e.message.itemsE.concat(e.message.itemsNC.concat(e.message.itemsW))}return e.waiting=!1,1===t.result?(n.path("/confs/"),e.message.title="successfullySaved"):e.message.title="saveReport",e.showModal("message.html")},e.downloadConf=function(){return window.open(e.confPrefix+e.currentCfg.cfgNum+"?full=1")},e.save=function(){return e.showModal("save.html").then(function(){return e.waiting=!0,e.data.push({id:"cfgLog",title:"cfgLog",data:e.result?e.result:""}),t.post(window.confPrefix+"?cfgNum="+e.currentCfg.cfgNum+(e.forceSave?"&force=1":""),e.data).then(function(t){return e.data.pop(),u(t.data)},function(t){return g(t),e.data.pop()})},function(){return console.log("Saving canceled")}),e.showM=!1},e.saveRawConf=function(n){return e.waiting=!0,t.post(window.confPrefix+"/raw",n).then(function(e){return u(e.data)},g)},e.restore=function(){return e.currentNode=null,e.form="restore"},e.cancel=function(){return e.currentNode.data=null,e.getKey(e.currentNode)},p=1,e._findContainer=function(){return e._findScopeContainer().$modelValue},e._findScopeContainer=function(){var t;for(t=e.currentScope;!t.$modelValue.type.match(/Container$/);)t=t.$parentNodeScope;return t},e._findScopeByKey=function(t){var n;for(n=e.currentScope;n.$modelValue.title!==t;)n=n.$parentNodeScope;return n},e.newGrantRule=function(){var t,n;return n=e._findContainer(),t=n.nodes.length,t>0?t-1:0,n.nodes.push({id:n.id+"/n"+p++,title:"New rule",re:"Message",comment:"New rule",data:"1",type:"grant"})},e.newRule=function(){var t,n,r;return r=e._findContainer(),t=r.nodes.length,n=t>0?t-1:0,r.nodes.splice(n,0,{id:r.id+"/n"+p++,title:"New rule",re:"^/new",comment:"New rule",data:"accept",type:"rule"})},e.newPost=function(){var t;return t=e._findContainer(),t.nodes.push({id:t.id+"/n"+p++,title:"/absolute/path/to/form",data:{},type:"post"})},e.newPostVar=function(){return null==e.currentNode.data.vars&&(e.currentNode.data.vars=[]),e.currentNode.data.vars.push(["var1","$uid"])},e.newAuthChoice=function(){var t;return t=e._findContainer(),t.nodes.push({id:t.id+"/n"+p++,title:"1_Key",data:["Null","Null","Null"],type:"authChoice"}),e.execFilters(e._findScopeByKey("authParams"))},e.newHashEntry=function(){var t;return t=e._findContainer(),t.nodes.push({id:t.id+"/n"+p++,title:"new",data:"",type:"keyText"})},e.newCat=function(){var t;return t=e.currentScope,"menuApp"===t.$modelValue.type&&(t=t.$parentNodeScope),t.$modelValue.nodes.push({id:t.$modelValue.id+"/n"+p++,title:"New category",type:"menuCat",nodes:[]})},e.newApp=function(){var t;return t=e.currentScope,"menuApp"===t.$modelValue.type&&(t=t.$parentNodeScope),t.$modelValue.nodes.push({id:t.$modelValue.id+"/n"+p++,title:"New application",type:"menuApp",data:{description:"New app description",uri:"https://test.example.com/",logo:"network.png",display:"auto"}})},e.newCmbMod=function(){var t;return t=e._findContainer(),t.nodes.push({id:t.id+"/n"+p++,title:"new",type:"cmbModule",data:{type:"LDAP",for:"0",over:[]}}),e.execFilters(e._findScopeByKey("authParams"))},e.newSfExtra=function(){var t;return t=e._findContainer(),t.nodes.push({id:t.id+"/n"+p++,title:"new",type:"sfExtra",data:{type:"",rule:"",logo:"",label:"",over:[]}})},e.newSfOver=function(){var t;return t=e.currentNode.data,t.over||(t.over=[]),t.over.push(["new"+p++,""])},e.newCmbOver=function(){var t;return t=e.currentNode.data,t.over||(t.over=[]),t.over.push(["new"+p++,""])},e.newChoiceOver=function(){var t;return t=e.currentNode.data,console.log("data",t),t[5]||(t[5]=[]),t[5].push(["new"+p++,""])},e.addHost=function(){var t;return t=e.currentNode,t.data||(t.data=[]),t.data.push({k:"newHost",h:[{k:"key",v:"uid"}]})},e.addSamlAttribute=function(){var t;return t=e._findContainer(),t.nodes.push({id:t.id+"/n"+p++,title:"new",type:"samlAttribute",data:["0","New","",""]})},e.addVhost=function(){var t;return t=e.domain?"."+e.domain.data:".example.com",e.message={title:"virtualHostName",field:"hostname"},e.showModal("prompt.html",t).then(function(){var t;if(t=e.result)return e.addTemplateNode(t,"virtualHost")})},e.duplicateVhost=function(){var t;return t=e.domain?"."+e.domain.data:".example.com",e.message={title:"virtualHostName",field:"hostname"},e.showModal("prompt.html",t).then(function(){var t;return t=e.result,e.duplicateNode(t,"virtualHost",e.currentNode.title)})},e.addSamlIDP=function(){return e.newTemplateNode("samlIDPMetaDataNode","samlPartnerName","idp-example")},e.addSamlSP=function(){return e.newTemplateNode("samlSPMetaDataNode","samlPartnerName","sp-example")},e.addOidcOp=function(){return e.newTemplateNode("oidcOPMetaDataNode","oidcOPName","op-example")},e.addOidcRp=function(){return e.newTemplateNode("oidcRPMetaDataNode","oidcRPName","rp-example")},e.addCasSrv=function(){return e.newTemplateNode("casSrvMetaDataNode","casPartnerName","srv-example")},e.addCasApp=function(){return e.newTemplateNode("casAppMetaDataNode","casPartnerName","app-example")},e.newTemplateNode=function(t,n,r){return e.message={title:n,field:"name"},e.showModal("prompt.html",r).then(function(){var n;if(n=e.result)return e.addTemplateNode(n,t)})},e.addTemplateNode=function(t,n){var r,a;for(r=e.currentScope;r.$modelValue.title!==n+"s";)r=r.$parentNodeScope;return a={id:n+"s/new__"+t,title:t,type:n,nodes:templates(n,"new__"+t)},h(a.nodes),r.$modelValue.nodes.push(a),r.expand(),a},h=function(e){var t,n,r;for(r=0,t=e.length;r0&&(u=i.nodes[n],i.nodes[n]=i.nodes[n-1],i.nodes[n-1]=u),n},e.inSelect=function(t){var n,r,a,o;for(o=e.currentNode.select,a=0,n=o.length;a0?e.comment:e.re},e.filters={},e.execFilters=function(t){var n,a,o;t=t||e,o=e.filters;for(n in o)if(a=o[n],e.filters.hasOwnProperty(n))return window.filterFunctions[n](t,r,a);return!1},e.stoggle=function(e){var t;return t=e.$modelValue,c(t),e.toggle()},c=function(t){var n,r,a,o,i,s,u,l,d,c,f;for(d=["nodes","nodes_cond"],s=0,r=d.length;s level",n,"over",o),1===n&&t.length>o?e+"="+t+"*&groupBy=substr("+e+","+(n+o+1)+")":null},ipAddr:function(e,t,n,o){return console.log("overSchema => level",n,"over",o),n>0&&n<4&&!t.match(/^\d+\.\d/)&&o<2?e+"="+t+"*&groupBy=net("+e+","+(16*n+4*(o+1))+","+(1+n+o)+")":null},_startTime:function(e,t,n,o){return console.log("overSchema => level",n,"over",o),n>3?e+"="+t+"*&groupBy=substr("+e+","+(10+n+o)+")":null}},t="_password",e={dateTitle:["_utime","_startTime","_updateTime","_lastAuthnUTime","_lastSeen"],connectionTitle:["ipAddr","_timezone","_url"],authenticationTitle:["_session_id","_user","_password","authenticationLevel"],modulesTitle:["_auth","_userDB","_passwordDB","_issuerDB","_authChoice","_authMulti","_userDBMulti"],saml:["_idp","_idpConfKey","_samlToken","_lassoSessionDump","_lassoIdentityDump"],groups:["groups","hGroups"],ldap:["dn"],BrowserID:["_browserIdAnswer","_browserIdAnswerRaw"],OpenIDConnect:["_oidc_id_token","_oidc_OP","_oidc_access_token"],sfaTitle:["_2fDevices"],oidcConsents:["_oidcConsents"]},r={session:[{title:"deleteSession",icon:"trash"}],home:[]},n=angular.module("llngSessionsExplorer",["ui.tree","ui.bootstrap","llApp"]),n.controller("SessionsExplorerCtrl",["$scope","$translator","$location","$q","$http",function(n,u,a,l,c){var p,d,g,h;return n.links=links,n.menulinks=menulinks,n.staticPrefix=staticPrefix,n.scriptname=scriptname,n.formPrefix=formPrefix,n.impPrefix=impPrefix,n.sessionTTL=sessionTTL,n.availableLanguages=availableLanguages,n.waiting=!0,n.showM=!1,n.showT=!0,n.data=[],n.currentScope=null,n.currentSession=null,n.menu=r,n.translateP=u.translateP,n.translate=u.translate,n.translateTitle=function(e){return u.translateField(e,"title")},h="global",n.menuClick=function(e){if(e.popup)window.open(e.popup);else switch(e.action||(e.action=e.title),typeof e.action){case"function":e.action(n.currentNode,n);break;case"string":n[e.action]();break;default:console.log(typeof e.action)}return n.showM=!1},n.deleteOIDCConsent=function(e,t){var o;return o=angular.element(".data-"+t),o.remove(),n.waiting=!0,c.delete(scriptname+"sessions/OIDCConsent/"+h+"/"+n.currentSession.id+"?rp="+e+"&epoch="+t).then(function(e){return n.waiting=!1},function(e){return n.waiting=!1}),n.showT=!1},n.deleteSession=function(){return n.waiting=!0,c.delete(scriptname+"sessions/"+h+"/"+n.currentSession.id).then(function(e){return n.currentSession=null,n.currentScope.remove(),n.waiting=!1},function(e){return n.currentSession=null,n.currentScope.remove(),n.waiting=!1})},n.stoggle=function(e){var t;return t=e.$modelValue,0===t.nodes.length&&n.updateTree(t.value,t.nodes,t.level,t.over,t.query,t.count),e.toggle()},n.displaySession=function(o){var r,i;return i=function(o){var r,i,s,u,a,l,c,p,d,g,h,f,_,m,T,y,w,v,S,$,B,b,D,L,A,P,x,C,I,k,O,R,E,H,M,U;r=function(e,t){var n,r,i,s;i=[],r=new RegExp(e);for(n in o)s=o[n],n.match(r)&&s&&(i.push({title:n,value:s}),delete o[n]);if(i.length>0)return I.push({title:t,nodes:i})},E=o._utime,g=o._session_id;for(_ in o)U=o[_],U?("string"==typeof o&&U.match(/; /)&&(o[_]=U.split("; ")),"object"!=typeof o[_]&&(t.match(new RegExp("\b"+_+"\b"))?o[_]="********":_.match(/^(_utime|_lastAuthnUTime|_lastSeen|notification)$/)?o[_]=n.localeDate(U):_.match(/^(_startTime|_updateTime)$/)&&(o[_]=n.strToLocaleDate(U)))):delete o[_];I=[];for(a in e){for(u=e[a],R=[],d=0,T=u.length;d0&&I.push({title:"__"+a+"__",nodes:R})}if(r("^openid","OpenID"),r("^notification_(.+)","__notificationsDone__"),o._loginHistory){if(M=[],o._loginHistory.successLogin)for(x=o._loginHistory.successLogin,B=0,v=x.length;Bt.title?1:e.title real attribute"),P.push(c)):O.push(c);return M=O.concat(P),I.push({title:"__attributesAndMacros__",nodes:M}),{_utime:E,id:g,nodes:I}},n.currentScope=o,r=o.$modelValue.session,c.get(scriptname+"sessions/"+h+"/"+r).then(function(e){return n.currentSession=i(e.data)}),n.showT=!1},n.localeDate=function(e){var t;return t=new Date(1e3*e),t.toLocaleString()},n.isValid=function(e,t){var n,o,r;return r=a.path(),o=Date.now()/1e3,console.log("Path",r),console.log("Session epoch",e),console.log("Current date",o),console.log("Session TTL",sessionTTL),n=o-eo&&i[n.type]&&(f=i[n.type](n.type,e,r,u,a))?(u++,d=f,r-=1):u=0,c.get(scriptname+"sessions/"+h+"?"+d).then(function(o){var i,s,a,l,c;if(i=o.data,i.result){for(c=i.values,s=0,a=c.length;s level",n,"over",o),1===n&&t.length>o?e+"="+t+"*&groupBy=substr("+e+","+(n+o+1)+")":null},ipAddr:function(e,t,n,o){return console.log("overSchema => level",n,"over",o),0 level",n,"over",o),3t.title?1:e.title real attribute"),D.push(u)):C.push(u);return R=C.concat(D),P.push({title:"__attributesAndMacros__",nodes:R}),{_utime:k,id:c,nodes:P}},t=(H.currentScope=e).$modelValue.session,o.get(scriptname+"sessions/"+g+"/"+t).then(function(e){return H.currentSession=n(e.data)}),H.showT=!1},H.localeDate=function(e){return new Date(1e3*e).toLocaleString()},H.isValid=function(e,t){var n,o,r;return r=i.path(),o=Date.now()/1e3,console.log("Path",r),console.log("Session epoch",e),console.log("Current date",o),console.log("Session TTL",sessionTTL),n=o-e0?{title:"badRequest",message:r,items:[]}:{title:"networkProblem",message:"",items:[]},e.showModal("message.html")},e.showModal=function(t,n){var a,i;return i=o.open({templateUrl:t,controller:"ModalInstanceCtrl",size:"lg",resolve:{elem:function(){return function(t){return e[t]}},set:function(){return function(t,n){return e[t]=n}},init:function(){return n}}}),a=r.defer(),i.result.then(function(t){return e.message={title:"",message:"",items:[]},a.resolve(t)},function(t){return e.message={title:"",message:"",items:[]},a.reject(t)}),a.promise},e.menuClick=function(t){if(t.popup)window.open(t.popup);else switch(t.action||(t.action=t.title),typeof t.action){case"function":t.action(e.currentNode,e);break;case"string":e[t.action]();break;default:console.log(typeof t.action)}return e.showM=!1},e.home=function(){return e.form="homeViewer",e.showM=!1},e.downloadConf=function(){return window.open(e.viewPrefix+e.currentCfg.cfgNum+"?full=1")},d=1,e._findContainer=function(){return e._findScopeContainer().$modelValue},e._findScopeContainer=function(){var t;for(t=e.currentScope;!t.$modelValue.type.match(/Container$/);)t=t.$parentNodeScope;return t},e._findScopeByKey=function(t){var n;for(n=e.currentScope;n.$modelValue.title!==t;)n=n.$parentNodeScope;return n},u=function(t){var n,o;return n=r.defer(),o=r.defer(),t._nodes?(c(t),n.resolve()):t.cnodes?s(t).then(function(){return n.resolve()}):t.nodes||t.data?n.resolve():e.getKey(t).then(function(){return n.resolve()}),n.promise.then(function(){var e,n,a,i,l;if(l=[],t.nodes)for(i=t.nodes,e=0,n=i.length;e0&&(s=i.nodes[n],i.nodes[n]=i.nodes[n-1],i.nodes[n-1]=s),n},e.inSelect=function(t){var n,r,o,a;for(a=e.currentNode.select,n=0,r=a.length;n0?e.comment:e.re},e.filters={},e.execFilters=function(t){var n,o,a;t=t||e,a=e.filters;for(n in a)if(o=a[n],e.filters.hasOwnProperty(n))return window.filterFunctions[n](t,r,o);return!1},e.stoggle=function(e){var t;return t=e.$modelValue,c(t),e.toggle()},c=function(t){var n,r,o,a,i,l,s,u,c,d,f;for(c=["nodes","nodes_cond"],r=0,o=c.length;r