var rTBelementClickedId="";var boxElemntClickedId="";Ext.define("RumAppFlow.controller.Main",{extend:"Ext.app.Controller",requires:["RumAppFlow.view.Main","RumAppFlow.view.OverviewDetails","RumAppFlow.view.OverviewWidgets","RumAppFlow.view.AppFlowMenu","RumAppFlow.view.ChartParentPanel","RumAppFlow.view.GeoPanel","RumAppFlow.view.GeoStaticPanel","RumAppFlow.view.ResponseTimePiechart","RumAppFlow.view.GeoMapDetails","RumAppFlow.view.OmniChannelMainPanel","RumAppFlow.view.PageView","RumAppFlow.view.DonutChart","RumAppFlow.view.ErrorView","RumAppFlow.view.GeoMapControls","RumAppFlow.view.ChartPanelNew","RumAppFlow.view.TransactionGridPanel","RumAppFlow.view.TransactionsChartPanel","RumAppFlow.view.Paging","sessionSimulation.view.SessionSimulation","RumAppFlow.view.ConfigWindow"],transactionMeasuresChartURL:"/final/servlet/com.egurkha.TransactionMeasures",refs:[{ref:"main",selector:"main"},{ref:"overviewdetails",selector:"overviewdetails"},{ref:"overviewwidgets",selector:"overviewwidgets"},{ref:"appflowmenu",selector:"appflowmenu"},{ref:"chartpanel",selector:"chartpanel"},{ref:"transactiongridpanel",selector:"transactiongridpanel"},{ref:"transactionschartpanel",selector:"transactionschartpanel"},{ref:"myTimeWindow",selector:"floatingContainer"},{ref:"myTimelinePanel",selector:"floatingContainer > panel"},{ref:"transactionComboMode",selector:'floatingContainer > panel > combo[itemId= "mode"]'},{ref:"transactionComboTimeline",selector:'floatingContainer > panel > combo[itemId= "timeline"]'},{ref:"transactionComboFromhr",selector:'floatingContainer > panel > combo[itemId= "fromhr"]'},{ref:"transactionComboTohr",selector:'floatingContainer > panel > combo[itemId= "tohr"]'},{ref:"transactionComboFrommin",selector:'floatingContainer > panel > combo[itemId= "frommin"]'},{ref:"transactionComboTomin",selector:'floatingContainer > panel > combo[itemId= "tomin"]'},{ref:"transactionFromDate",selector:'floatingContainer > panel > datefield[itemId= "from"]'},{ref:"transactionToDate",selector:'floatingContainer > panel > datefield[itemId= "to"]'},{ref:"transactionsPanelToolbar",selector:"floatingContainer > panel"},{ref:"configWindow",selector:"configwindow"},{ref:"configWindowForm",selector:"configwindow > form"}],init:function(){RumAppFlow.app=this;
setInterval(this.refresh,refreshFrequency);this.control({"overviewdetails":{afterrender:this.overviewdetailsRender,},'button[id="backButton"]':{click:this.backButtonHandler},'button[itemId="overviewtoggle"]':{toggle:this.toggleOverView},'combo[itemId="loadmapcombo"]':{select:this.loadMapDetails},'combo[itemId="appflowBy"]':{select:this.changeView},'geomapcontrols combo[id="countryComboId"]':{"select":this.geoComboOnChange},'geomapcontrols combo[id="regionComboId"]':{"select":this.geoComboOnChange},'generalMeasuresGridPanel combo[id="filterByCombo"]':{"select":this.compFilterByComboOnChange},'generalMeasuresGridPanel combo[id="subFilterCombo"]':{change:this.compSubFilterComboOnChange},'generalMeasuresGridPanel combo[id="componentTypCombo"]':{change:this.componentTypeComboOnChange},'dashboardgeneralmeasuresgridpanel[itemId="system"] > panel > toolbar > combobox':{change:this.systemsComboChange},'dashboardgeneralmeasuresgridpanel[itemId="system"] > toolbar > combobox':{change:this.systemsComboChange},'generalMeasuresGridPanel combo[id="sortByCombo"]':{"select":this.componentsmeasureComboChange},'generalMeasuresGridPanel textfield[id="nickName"]':{specialkey:function(b,a){if(a.getKey()==a.ENTER){this.compSubmitButtonClicked();
}}},'transactionschartpanel button[id= "settingBt"]':{click:this.settingClick},"transactionschartpanel":{"afterrender":this.onChartsPanelRender},'floatingContainer > panel > combo[itemId= "timeline"]':{select:this.timelineChangeHandler},'floatingContainer > panel > button[action = "transactionGraphBtn"]':{click:this.displayGraph},'main button[action="configsetting"]':{scope:this,click:this.openConfigWindow},"configwindow":{"render":this.itemset,"close":this.refreshcall},"configwindow > form > combo":{"select":this.combo},"configwindow > form > radiogroup":{"change":this.radio},'configwindow > toolbar > button[action="submit"]':{click:this.buttonclick}});
},itemset:function(a,b){a.add(a.setData("",""));},combo:function(f,h,c){var n=this.getConfigWindowForm().getForm().getValues()["selectedTab"];var o=this.getConfigWindowForm().getForm().getValues()["perform"];var l=this.getConfigWindowForm().getForm().getValues()["descMeasureUnit"];var j="";j=this.getConfigWindowForm().getForm().getValues()["TestFunc"];
var b=f.getName();var e=f.getValue();var g;if(n=="Component"||n=="Aggregate"||n=="System"){g=this.getConfigWindowForm().getForm().getValues()["serviceComp"];}if(b=="serviceComp"){this.getConfigWindow().setData(n,o,g,"","","",l,j,"",b,e);}if(b=="compLayer"){var d=this.getConfigWindowForm().getForm().findField("compLayer").getValue();
this.getConfigWindow().setData(n,o,g,d,"","",l,j,"",b,e);}else{if(b=="serviceTest"){var d;if(o=="Add"){d=this.getConfigWindowForm().getForm().findField("compLayer").getValue();}else{d="";}var m=this.getConfigWindowForm().getForm().findField("serviceTest").getValue();this.getConfigWindow().setData(n,o,g,d,m,"",l,j,"",b,e);
}else{if(b=="serviceMeasure"){var d;if(o=="Add"){d=this.getConfigWindowForm().getForm().findField("compLayer").getValue();}else{d="";}var m=this.getConfigWindowForm().getForm().findField("serviceTest").getValue();var k=this.getConfigWindowForm().getForm().findField("serviceMeasure").getValue();var a=h[0].data.name;
this.getConfigWindow().setData(n,o,g,d,m,k,l,j,a,b,e);}else{}}}},radio:function(e,h,f,a){var c="";var g="";var d="";var m="";var k="";var b="";var n=this.getConfigWindowForm().getForm().getValues()["selectedTab"];var o=this.getConfigWindowForm().getForm().getValues()["perform"];var l="";var j="";if(o=="Add"){j=this.getConfigWindowForm().getForm().getValues()["TestFunc"];
}if(e.getName()=="Does the Test have Descriptors ?"||e.getName()=="Function"){if(o=="Add"){d=this.getConfigWindowForm().getForm().findField("compLayer").getValue();}if(n=="Component"||n=="Aggregate"){g=this.getConfigWindowForm().getForm().findField("serviceComp").getValue();}m=this.getConfigWindowForm().getForm().findField("serviceTest").getValue();
k=this.getConfigWindowForm().getForm().findField("serviceMeasure").getValue();b=this.getConfigWindowForm().getForm().findField("serviceDispName").getValue();c=e.name;}this.getConfigWindow().setData(n,o,g,d,m,k,l,j,b,c,"");},buttonclick:function(h,k,a){var l=false;var m=this;var d="/final/monitor/serviceDashboardConfigP.jsp";
var f="selectType=Update";var n=this.getConfigWindow().jsonData.Window.fields;var j=this.getConfigWindow().jsonData.Window.screenlabels[0];for(var g=0;g<n.length;g++){if(n[g].type=="combo"){var c=n[g].name;if(this.getConfigWindowForm().getForm().findField(c).getValue()==-1){Ext.Msg.alert("",j[c]);l=true;
break;}else{if(c=="serviceTest"){c="testName";}f+="&"+c+"="+n[g].selected;}}else{if(n[g].type=="textfield"){var b=this.getConfigWindowForm().getForm().findField("serviceDispName").getValue();l=true;while(true){if(b.indexOf("?")!=-1){b=b.replace("?","qqsstt");}if(b.indexOf("'")!=-1){b=b.replace("'","sinCour");
}if(b.indexOf("-")!=-1){b=b.replace("-","minSym");}if(b.indexOf("?")==-1&&b.indexOf("'")==-1&&b.indexOf("'")==-1){break;}}if(b.length<1){Ext.Msg.alert("","Please enter display name");}else{if(this.hasSpecialCharacters(b)){if(this.hasNumbers(b)){f+="&"+n[g].name+"="+b;l=false;}else{Ext.Msg.alert("","Special characters not allowed");
}}else{f+="&"+n[g].name+"="+b;l=false;}}}else{if(n[g].selected=="Component"){n[g].selected="Application";}f+="&"+n[g].name+"="+n[g].selected;}}}if(l==false){Ext.Ajax.request({url:d,params:f,method:"POST",scope:this,success:function(q){var v=this.getConfigWindowForm().getForm().getValues()["selectedTab"];
var w=this.getConfigWindowForm().getForm().getValues()["perform"];var e="";var s=-1;var u=this.getConfigWindowForm().getForm().findField("serviceTest").getValue();var o="";var p="";var t="";var r="";if(w=="Add"){r=this.getConfigWindowForm().getForm().getValues()["TestFunc"];o=this.getConfigWindowForm().getForm().findField("compLayer").getValue();
Ext.Msg.alert("","Measure Added Successfully");}else{if(w=="Delete"){Ext.Msg.alert("","Measure Deleted Successfully");}}if(v=="Component"||v=="Aggregate"){p=this.getConfigWindowForm().getForm().findField("serviceComp").getValue();}this.getConfigWindow().setData(v,w,p,o,u,s,t,r,e,c,"");},failure:function(){window.parent.location.href="/final/servlet/com.egurkha.Logout";
}});}if(l==false){Ext.Function.defer(function(){m.setValues(l);},350);}},setValues:function(a){if(a==false){var c=this.getConfigWindow().jsonData.Window.fields;var d=false;for(var b=0;b<c.length;b++){if(c[b].type=="combo"){if(c[b].selected!="Not Applicable!"){d=true;}if(!d&&this.getConfigWindowForm().getForm().getValues()["perform"]=="Delete"){this.getConfigWindowForm().getForm().findField(c[b].name).setValue(-1);
}}d=false;}}},hasNumbers:function(a){var b=/\d/g;return b.test(a);},hasSpecialCharacters:function(b){var a=b.split("");if(a!=null&&a!=undefined&&a.length>0){for(var d=0;d<a.length;d++){var e=a[d];if(!(e==" "||e==")"||e=="("||e=="_"||e.match(/^[-'a-z\u4e00-\u9eff]{1,20}$/i))){return true;}}return false;
}},openConfigWindow:function(){var a=Ext.Element.getViewportWidth();try{var b=Ext.getCmp("back").hidden;var f="135px";if(b!=undefined&&b!=null&&!b){f="105px";}}catch(d){f="105px";}if(!this.getConfigWindow()){var c=Ext.create("RumAppFlow.view.ConfigWindow");c.show();container=Ext.create("Ext.container.Container",{padding:10,floating:true,frame:true,width:510,hidden:true,floatable:true,cls:"configMode_popup",items:[{xtype:"container",cls:"alarmTooltipArrow1",style:{"top":"-17px","left":f}},{xtype:"container",margin:"-4px 0px 0px 4px",html:'<div class="settingsfont" style="float:left;color:#f7f7f7text-transform:uppercase;margin-top: -5px;">Settings</div><div style="text-align:right;float:right;margin-top:-7px;"><div class="iconClose3"></div></div>',},c]});
Ext.create("Ext.fx.Anim",{target:container,duration:500,from:{left:a-615,top:-500},to:{top:40,left:a-615}});container.showAt(a-615,5000);Ext.select(".iconClose3").on("click",function(){Ext.create("Ext.fx.Anim",{target:container,duration:500,from:{left:a-615,top:40},to:{top:-500,left:a-615},callback:function(){container.hide();
RumAppFlow.app.getController("Main").metricRefresh();}});},this);Ext.getBody().on("click",function(g){var e=g.target.id;if((e!=undefined&&e!=null&&((e.toLowerCase().indexOf("gridview")!=-1)||(e.toLowerCase().indexOf("toolbar")!=-1)||(e.toLowerCase().indexOf("filter")!=-1)||(e.toLowerCase().indexOf("listbutid")!=-1)||(e.toLowerCase().indexOf("centerp")!=-1)))){container.hide();
}});}else{if(container.isHidden()){var c=this.getConfigWindow();Ext.create("Ext.fx.Anim",{target:container,duration:500,from:{left:a-615,top:-500},to:{top:40,left:a-615}});container.showAt(a-615,5000);}else{container.hide();RumAppFlow.app.getController("Main").metricRefresh();}}},metricRefresh:function(){selected_CompType_st="";
var b="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){b=Ext.getCmp("dashListComId").getValue();}var g=Ext.getCmp("rumappmenu_view_id");var h=g.getStore();var l=g.forceClickKey;var a="";for(var d=0;d<h.getCount();d++){var c=h.getAt(d).data.caption;
if(requestParams.activeViewIndex==d){a=h.getAt(d).data.name;break;}}var e=Ext.getCmp("comboValue");SysComponentType="";if(!Ext.isEmpty(e)){SysComponentType=e.getValue();}var f=Ext.getCmp("systemViewMeasuresgridpanel");var j="/final/monitor/serviceSystem.jsp?treeTitle=services&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&componentType="+encodeURI(SysComponentType)+"&currentTab=Systems&isSite=true&aggregateTab=false&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&refresh=true&action=Systems&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&hasRUM=true&dashboard_name=RUM_Dashboard&view_name=systems_View&fromServiceHomePage=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+selectedRum+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
f.loadTab(j,"rumAppFlowSystem");},onChartsPanelRender:function(a){this.displayGraphInitially(a.jsonData);},settingClick:function(c){var b=Ext.getCmp("settingBt").getPosition();var a=Ext.getCmp("timeWindow");a.showAt([b[0]-680,b[1]+20]);},createDivforHighChart:function(c){var a=Ext.getCmp("transactionschartpanelid");
var d="";tmp_div_size_of_td=c;var e=0;var g="",b="";a.removeAll();var f=Ext.create("utilities.ScrollPanel",{layout:{type:"vbox",align:"stretch"},padding:"0 15 15 15",items:[{xtype:"container",id:"legends"},{xtype:"container",border:true,layout:"column",id:"midid",defaults:{columnWidth:0.33,},items:this.getItems(c)}]});
a.add(f);},getItems:function(d){var a="";var c=[];for(var g=1;g<d+1;g++){i=g-1;var f="";var e="";if(strSkin=="Dark"){a="#404040";f="1px solid #515151 !important";e="1px solid #515151 !important";}else{if(strSkin=="Light"){a="#ffffff";f="1px solid #f2f2f2 !important";e="1px solid #f2f2f2 !important";}}var b="transchart"+i;
if(d%2===0){if(g!=0&&g%3===0){f="0px solid #f2f2f2 !important";}}else{if(g!=0&&g===d+1){f="0px solid #f2f2f2 !important";}}c.push({xtype:"panel",ui:"newPlainPanel",height:280,style:{background:a+"!important",borderRight:f,borderBottom:e},frame:true,border:true,padding:"10 0 10 0",title:"",id:b});}return c;
},timelineChangeHandler:function(s){var r=s.getValue();if(r=="Any"){this.enableDisableDateFields(true);}else{this.enableDisableDateFields(false);}var a=this.getTransactionsPanelToolbar();var k=Ext.getCmp("transactionschartpanelid");var m=k.jsonData.HiddenFields.remoteURL;var l=k.jsonData.HiddenFields.currentDateFormat;
var f="";var n=a.getComponent("from");if(!Ext.isEmpty(n)&&!Ext.isEmpty(n.getValue())){f=Ext.Date.format(n.getValue(),mgrDateFormat);}var t="";var p=a.getComponent("to");if(!Ext.isEmpty(p)&&!Ext.isEmpty(p.getValue())){t=Ext.Date.format(p.getValue(),mgrDateFormat);}var q="";var o=a.getComponent("fromhr");
if(!Ext.isEmpty(o)&&!Ext.isEmpty(o.getValue())){q=o.getValue();}var c="";var e=a.getComponent("tohr");if(!Ext.isEmpty(e)&&!Ext.isEmpty(e.getValue())){c=e.getValue();}var g="";var j=a.getComponent("frommin");if(!Ext.isEmpty(j)&&!Ext.isEmpty(j.getValue())){g=j.getValue();}var b="";var d=a.getComponent("tomin");
if(!Ext.isEmpty(d)&&!Ext.isEmpty(d.getValue())){b=d.getValue();}var h="F=getTimeJSON&P0=["+r+"]&P1=["+f+"]&P2=["+t+"]&P3=["+q+"]&P4=["+c+"]&P5=["+l+"]&P6=["+g+"]&P7=["+b+"]&C=1&calljson=true";Ext.Ajax.request({url:m,scope:this,method:"POST",params:h,timeout:280000,success:function(u){if(u.status==200&&!Ext.isEmpty(u.responseText)){var w=u.responseText;
var v=Ext.decode(w);this.setTime(v.getTime,r);}},failure:function(){}});},setTime:function(j,g){var c=j.split("\t");var b="",m="";var l="",e="";time_line_obj=new Object();time_line_obj.starttime=c[0];var d="",f="";if(g=="Any"){d=Ext.Date.format(c[6],mgrDateFormat);f=Ext.Date.format(c[7],mgrDateFormat);
}else{d=new Date(c[6]);f=new Date(c[7]);d=Ext.Date.format(c[6],mgrDateFormat);f=Ext.Date.format(c[7],mgrDateFormat);}if(d=="Invalid Date"||d==""){d=c[6];}if(f=="Invalid Date"||f==""){f=c[7];}var k="",h="";k=Ext.Date.format(d,mgrDateFormat);h=Ext.Date.format(f,mgrDateFormat);d=(k=="")?d:k;f=(h=="")?f:h;
this.getTransactionsPanelToolbar().getComponent("from").setValue(d);time_line_obj.endtime=c[1];this.getTransactionsPanelToolbar().getComponent("to").setValue(f);time_line_obj.starthr=c[2];if(g=="Any"){b=c[8];m=c[9];}else{b=c[8];m=c[9];}l=c[10];e=c[11];this.getTransactionsPanelToolbar().getComponent("frommin").setValue(l);
this.getTransactionsPanelToolbar().getComponent("tomin").setValue(e);this.getTransactionsPanelToolbar().getComponent("fromhr").setValue(b);time_line_obj.endhr=c[3];this.getTransactionsPanelToolbar().getComponent("tohr").setValue(m);var a=this.getTransactionsPanelToolbar();},enableDisableDateFields:function(c){var a=this.getTransactionsPanelToolbar();
var d=a.getComponent("from");var f=a.getComponent("to");var e=a.getComponent("fromhr");var b=a.getComponent("tohr");if(c){d.setDisabled(false);f.setDisabled(false);e.setDisabled(false);b.setDisabled(false);}else{d.setDisabled(true);f.setDisabled(true);e.setDisabled(true);b.setDisabled(true);}},createHighStockChart:function(g,h){var j=[],x=[],q=0;
var B="";var l="";var n="";var f="";var u="";var v="";var t="";var o="";var b="";var z=0;var m=0;var k=[];var a="";var r=Ext.getCmp("transactionschartpanelid");var s=r.jsonData.HiddenFields.measurelst;var c=s.split(",");var d="Web";var e=Ext.getCmp("firstid");var w=Ext.getCmp("midid");var y=Ext.getCmp("lastid");
if(!Ext.isEmpty(errorPanel)&&errorPanel==true){r.update("");if(!Ext.isEmpty(e)){r.remove(e);}if(!Ext.isEmpty(w)){r.remove(w);}if(!Ext.isEmpty(y)){r.remove(y);}}var A=this;var p=Ext.getCmp("transactionschartpanelid");Ext.Ajax.request({url:g,params:h,scope:this,timeout:6000000,success:function(G){if(G.status==200&&!Ext.isEmpty(G)){var L=G.responseText;
if(!Ext.isEmpty(L)){var aq=Ext.decode(L);if(!Ext.isEmpty(aq)){var T=[];var D="";var C="";var V="";var ab=[];var O=new Array();var N=new Array();var H=new Array();var ad=new Array();var J=new Array();var ai=new Array();var P=new Array();var W=new Array();var F=new Array();var ac=new Array();var ah=new Array();
var K=0;var E=0;var al=0;for(var ap in aq){if(ap.indexOf("chart")>-1){K=K+1;}}var aa=Ext.getCmp("transactionschartpanelid");if(aa!=null&&aa!=undefined&&!Ext.isEmpty(aa)){var Z=K%3;var I=Math.floor(K/3);var an=I;if(Z>0){an=I+1;}var ak=an*300;aa.setHeight(ak);}A.createDivforHighChart(K);if(K>0){var Y=new Object();
Y["fontFamily"]="Arial";Y["fontSize"]="11px";Y["axisLabelGridColor"]=(strSkin=="Light")?"#e1e1e1":"#666666";Y["axisLabelColor"]=(strSkin=="Light")?"#969696":"#c6c6c6";Y["axisLabelFontFmy"]="Arial";Y["axisLabelFontSize"]="11px";Y["axisLabelLineColor"]=(strSkin=="Light")?"#e1e1e1":"#666666";Y["axisLabelMinorGrid"]=(strSkin=="Light")?"#e1e1e1":"#666666";
Y["axisLabelTickColor"]=(strSkin=="Light")?"#e1e1e1":"#666666";Y["axisTitleColor"]=(strSkin=="Light")?"#606060":"#c0c0c0";Y["axisTitleFontFmy"]="Arial";Y["axisTitleFontSize"]="11px";Y["TooltipFontFmy"]="Arial";Y["TooltipFontSize"]="11px";Y["TooltipBgColor"]=(strSkin=="Light")?"white":"#161616";Y["TooltipBorderColor"]=(strSkin=="Light")?"black":"#0c0c0c";
Y["legendFontFmy"]="Arial";Y["legendFontSize"]="12px";Y["legendColor"]=(strSkin=="Light")?"#2a292a":"#c6c6c6";Y["titleFontClr"]=(strSkin=="Light")?"#2a292a":"#c6c6c6";Y["titleFontFmy"]="Roboto-Bold";Y["titleFontSize"]="13px";Y["lineThickness"]="2";var S=aq["styles"];for(var am in aq){var ao=aq[am];if(am!="styles"&&am!="chartKey"&&ao.indexOf("^eg^")==-1){for(var R in ao){if(!isNaN(R)){B=ao[R]["title"];
n=ao[R]["fmts"];f=ao[R]["axislabel"];t=ao[R]["xmax"];o=ao[R]["xmin"];v=ao[R]["max"];l=ao[R]["color"],b=ao[R]["lineWidth"],j[R]={name:ao[R]["name"],data:ao[R]["data"],color:ao[R]["color"],dataGrouping:{enabled:false}};}ac.push(l);}ah.push(B);H.push(n);ad.push(t);J.push(o);ai.push(v);P.push(f);W.push(j);
F.push(z);if(z==3||(this.tab=="emulated"&&z==1)){var af=j.length;var aj="<table align='right'style='margin-top:-10px;'><tr>";var M="";if(af!=null&&af!=""){for(var ae=0;ae<af;ae++){console.log("Legend_Total-------------"+ae);if(ae!=(af-1)){M="15px";}else{M="0px";}var U=j[ae].name;if(U!=null&&U.indexOf("^")>-1){var Q=U.substring(0,U.lastIndexOf("^"));
aj=aj+"<td width='10' height='10' align='center'>";aj=aj+"<table cellpadding='0' cellspacing='1' border='0'>";aj=aj+"<tr>";aj=aj+"<td nowrap style='width:40px;padding-right:10px; height:10px' >"+Q+"</td>";}else{aj=aj+"<td width='10' height='10' align='center'>";aj=aj+"<table cellpadding='0' cellspacing='1' border='0'>";
aj=aj+"<tr>";aj=aj+"<td width = '10' style='vetical-align:top' class='linesquare_white' height='5'><div style='background:"+ac[ae]+";height:8px;width:8px' ><div></td></tr></table></td>";aj=aj+"<td nowrap class='font_normal11' style='padding-left:5px;padding-right:"+M+"; height:35px' >"+U+"</td>";}}}aj=aj+"</tr></table>";
var ag=Ext.get("legends");if(!Ext.isEmpty(ag)){Ext.getCmp("legends").update(aj);}}if(!Ext.isEmpty(p.isNotAreaChart)){loadTransHCGrap(j,z,f,n,"",v,t,o,b,Y,true);}else{loadTransHCGrap(j,z,f,n,"",v,t,o,b,Y);}Ext.getCmp("transchart"+z).setTitle('<span style="margin-top:20px;display:block;text-align:center" class="font_bold13 fontStyleRobot">'+B+"</span>");
z=z+1;al=al+1;if(!Ext.isEmpty(r.getEl())&&r.getEl()!=null&&r.getEl()!="undefined"){r.getEl().unmask();}}else{if(am!="styles"&&am!="chartKey"&&ao.indexOf("^eg^")>-1){var X='<div style="margin:7% 20% auto 30%"><img src="/final/images/'+strSkin+'/nomeasures_custom.png" /></div>';if(al<K){var ar=ao.substring(4);
Ext.getCmp("transchart"+al).setTitle('<span style="margin-top:20px;display:block;text-align:center" class="font_bold13 fontStyleRobot">'+ar+"</span>");Ext.getCmp("transchart"+al).update(X);al=al+1;z=z+1;}}}}errorPanel=false;}else{this.displayErrorMsg();}errorPanel=false;}else{this.displayErrorMsg();}errorPanel=false;
}else{this.displayErrorMsg();}}},failure:function(){}});},displayErrorMsg:function(){errorPanel=true;var a=Ext.getCmp("transactionschartpanelid");var c='<table width="100%" height="100%"><tr style="text-align:center;" width="100%" height="100%"><td width="100%" height="100%">';c+='<div style="text-align:center"><div class="iconInformation" style="margin:0px auto"></div><div class="font_normal11">No measure available for the current selection</div></div>';
c+="</td></tr></table>";a.setHeight(screen.height-465);a.setLoading(false);a.removeAll();var b=Ext.create("Ext.panel.Panel",{layout:"fit",html:c});a.add(b);},getCurrentDateTime:function(){var e="";var b="";var k="";var c="";var f="";var g="";var d=this.getTransactionsPanelToolbar();var l=d.getComponent("timeline");
if(!Ext.isEmpty(l)&&!Ext.isEmpty(l.getValue())){f=l.getValue();}var a=d.getComponent("from");if(!Ext.isEmpty(a)){if(!a.isDisabled()&&!Ext.isEmpty(a.getValue())){k=Ext.Date.format(a.getValue(),mgrDateFormat);}else{if(!Ext.isEmpty(time_line_obj)){k=time_line_obj.starttime;}else{k=Ext.Date.format(a.getValue(),mgrDateFormat);
}}}var j=d.getComponent("to");if(!Ext.isEmpty(j)){if(!j.isDisabled()&&!Ext.isEmpty(j.getValue())){c=Ext.Date.format(j.getValue(),mgrDateFormat);}else{if(!Ext.isEmpty(time_line_obj)){c=time_line_obj.endtime;}else{c=Ext.Date.format(j.getValue(),mgrDateFormat);}}}var h=d.getComponent("fromhr");if(!Ext.isEmpty(h)){if(!h.isDisabled()&&!Ext.isEmpty(h.getValue())){b=h.getValue();
}else{if(!Ext.isEmpty(time_line_obj)){b=time_line_obj.starthr;}else{b=h.getValue();}}}var m=d.getComponent("tohr");if(!Ext.isEmpty(m)){if(!m.isDisabled()&&!Ext.isEmpty(m.getValue())){e=m.getValue();}else{if(!Ext.isEmpty(time_line_obj)){e=time_line_obj.endhr;}else{e=m.getValue();}}}if(!Ext.isEmpty(a)&&!Ext.isEmpty(j)){k=Ext.Date.dateFormat(a.getValue(),"m/d/Y");
c=Ext.Date.dateFormat(j.getValue(),"m/d/Y");g=f+":"+k+":"+b+":"+c+":"+e;}return g;},displayGraph:function(){var B=this.getCurrentDateTime();var h="highcharts";if(h.indexOf("highchart")>-1){this.getTransactionComboMode().hide();}else{this.getTransactionComboMode().hide();}var t=Ext.getCmp("transactionschartpanelid");
if(!Ext.isEmpty(t)&&!Ext.isEmpty(t.jsonData)){var f=t.jsonData;var p="";var l="";var C="";var y="";var n="";var c="";var b="";var s="";var z="";var a=this.getTransactionsPanelToolbar();var x=a.getComponent("mode");if(!Ext.isEmpty(x)&&!Ext.isEmpty(x.getValue())){p=x.getValue();}var u=a.getComponent("from");
if(!Ext.isEmpty(u)){if(!u.isDisabled()&&!Ext.isEmpty(u.getValue())){l=Ext.Date.format(u.getValue(),mgrDateFormat);}else{if(!Ext.isEmpty(time_line_obj)){l=time_line_obj.starttime;}else{l=Ext.Date.format(u.getValue(),mgrDateFormat);}}}var w=a.getComponent("to");if(!Ext.isEmpty(w)){if(!w.isDisabled()&&!Ext.isEmpty(w.getValue())){C=Ext.Date.format(w.getValue(),mgrDateFormat);
}else{if(!Ext.isEmpty(time_line_obj)){C=time_line_obj.endtime;}else{C=Ext.Date.format(w.getValue(),mgrDateFormat);}}}var v=a.getComponent("fromhr");if(!Ext.isEmpty(v)){if(!v.isDisabled()&&!Ext.isEmpty(v.getValue())){y=v.getValue();}else{if(!Ext.isEmpty(time_line_obj)){y=time_line_obj.starthr;}else{y=v.getValue();
}}}var k=a.getComponent("tohr");if(!Ext.isEmpty(k)){if(!k.isDisabled()&&!Ext.isEmpty(k.getValue())){c=k.getValue();}else{if(!Ext.isEmpty(time_line_obj)){c=time_line_obj.endhr;}else{c=k.getValue();}}}var n="";var o=a.getComponent("frommin");if(!Ext.isEmpty(o)&&!Ext.isEmpty(o.getValue())){n=o.getValue();
}var b="";var e=a.getComponent("tomin");if(!Ext.isEmpty(e)&&!Ext.isEmpty(e.getValue())){b=e.getValue();}var j=this.getTransactionComboTimeline();if(j.getValue()=="Any"){var z=u.getName();var A=w.getName();var q=u.getValue();var g=w.getValue();var m=curDateTime;var r=new Date(m);var l=formatDate(q,"MM/dd/yyyy");
var C=formatDate(g,"MM/dd/yyyy");if(dateValidation(l,C,parseInt(y),parseInt(c),0,0)==-1){Ext.Msg.alert("Error",z);return;}}this.anyStartTime=l;this.anyEndTime=C;this.anyStartHr=y;this.anyEndHr=c;var d=a.getComponent("timeline");if(!Ext.isEmpty(d)&&!Ext.isEmpty(d.getValue())){s=d.getValue();}var t=Ext.getCmp("transactionschartpanelid");
var B=this.getCurrentDateTime();var h="highcharts";this.transactionMeasuresParam={startTrans:"",site:f.HiddenFields.siteName,comp:f.HiddenFields.compName,test:f.HiddenFields.testForTab,measure:f.HiddenFields.measurelst,gformat:"graph",chartType:h,GraphSize:"true",monitorSkin:f.HiddenFields.monitorSkin,mode:"2D",starttime:u.getRawValue(),endtime:w.getRawValue(),starthr:y,endhr:c,startmin:n,endmin:b,time_line:s,all_trans_names:f.HiddenFields.all_trans_names,msmt_host:f.HiddenFields.mHost,endTrans:"",isAreaChart:isAreaChart,isLogonType:isLogonType};
if(h.indexOf("highchart")>-1){this.createHighStockChart(this.transactionMeasuresChartURL,this.transactionMeasuresParam);this.getTransactionComboMode().hide();}else{this.getTransactionComboMode().hide();t.getEl().mask("Loading...");Ext.Ajax.request({url:this.transactionMeasuresChartURL,params:this.transactionMeasuresParam,method:"get",scope:this,success:function(E){var D=Ext.getCmp("transactionschartpanelid");
D.getEl().unmask();this.createGraphs(E);},failure:function(){var D=Ext.getCmp("transactionschartpanelid");D.getEl().unmask();}});}}},displayGraphInitially:function(j){var e=j.HiddenFields.mode;var k=j.HiddenFields.starttime;var b=j.HiddenFields.endtime;var m=j.HiddenFields.startHr;var a=j.HiddenFields.endHr;
var d=j.HiddenFields.timeline;var c=j.HiddenFields.startMin;var h=j.HiddenFields.endMin;var g=this.getCurrentDateTime();var l="highcharts";if(requestParams.refresh==true){e=requestParams.mode;k=j.HiddenFields.starttime;b=j.HiddenFields.endtime;m=j.HiddenFields.startHr;a=j.HiddenFields.endHr;c=j.HiddenFields.startMin;
h=j.HiddenFields.endMin;d=requestParams.timeline;}if(isRefreshing){if(timeLineValueForRefresh!=null&&timeLineValueForRefresh!=""&&timeLineValueForRefresh!=undefined){if(timeLineValueForRefresh!="Any"){d=timeLineValueForRefresh;}else{if(timeLineValueForRefresh=="Any"){d=timeLineValueForRefresh;if(fromDateValueForRefresh!=null&&fromDateValueForRefresh!=""&&fromDateValueForRefresh!=undefined){k=fromDateValueForRefresh;
}if(toDateValueForRefresh!=null&&toDateValueForRefresh!=""&&toDateValueForRefresh!=undefined){b=toDateValueForRefresh;}if(fromHrValueForRefresh!=null&&fromHrValueForRefresh!=""&&fromHrValueForRefresh!=undefined){m=fromHrValueForRefresh;}if(toHrValueForRefresh!=null&&toHrValueForRefresh!=""&&toHrValueForRefresh!=undefined){a=toHrValueForRefresh;
}if(fromMinValueForRefresh!=null&&fromMinValueForRefresh!=""&&fromMinValueForRefresh!=undefined){c=fromMinValueForRefresh;}if(toMinValueForRefresh!=null&&toMinValueForRefresh!=""&&toMinValueForRefresh!=undefined){h=toMinValueForRefresh;}}}}}if(!Ext.isEmpty(k)&&!Ext.isEmpty(b)){k=Ext.Date.format(new Date(k),mgrDateFormat);
b=Ext.Date.format(new Date(b),mgrDateFormat);}this.transactionMeasuresParam={site:j.HiddenFields.siteName,comp:j.HiddenFields.compName,test:j.HiddenFields.testForTab,measure:j.HiddenFields.measurelst,gformat:"graph",GraphSize:"true",monitorSkin:j.HiddenFields.monitorSkin,mode:"2D",starttime:k,endtime:b,starthr:m,startmin:c,endhr:a,endmin:h,time_line:d,all_trans_names:j.HiddenFields.all_trans_names,msmt_host:j.HiddenFields.mHost,isAreaChart:isAreaChart,isLogonType:isLogonType};
if(!Ext.isEmpty(j.HiddenFields)){var g=this.getCurrentDateTime();var l="highcharts";if(l!=null){if(l.indexOf("highchart")>-1){this.getTransactionComboMode().hide();this.createHighStockChart(this.transactionMeasuresChartURL,this.transactionMeasuresParam);}else{this.getTransactionComboMode().hide();var f=this.getTransactionsChartPanel();
Ext.Ajax.request({url:this.transactionMeasuresChartURL,params:this.transactionMeasuresParam,scope:this,success:function(n){this.createGraphs(n);},failure:function(){}});}}}},compFilterByComboOnChange:function(d){var k=requestParams.userName;var l=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){l=rumPageParams.serviceCombo[0].selectedRum;
}var b="";if(Ext.getCmp("filterByCombo")!=null&&Ext.getCmp("filterByCombo")!=undefined&&Ext.getCmp("filterByCombo").getValue()!=null&&Ext.getCmp("filterByCombo").getValue()!="null"){b=Ext.getCmp("filterByCombo").getValue();}var e="";if(Ext.getCmp("subFilterCombo")!=null&&Ext.getCmp("subFilterCombo")!=undefined&&Ext.getCmp("subFilterCombo").getValue()!=null&&Ext.getCmp("subFilterCombo").getValue()!="null"){e=Ext.getCmp("subFilterCombo").getValue();
}var c="";if(Ext.getCmp("componentTypCombo")!=null&&Ext.getCmp("componentTypCombo")!=undefined&&Ext.getCmp("componentTypCombo").getValue()!=null&&Ext.getCmp("componentTypCombo").getValue()!="null"){c=Ext.getCmp("componentTypCombo").getValue();}if(selectedCompType!=null&&selectedCompType!="null"&&selectedCompType!=undefined&&selectedCompType!="undefined"&&selectedCompType!=""){c=selectedCompType;
}var f="";if(Ext.getCmp("nickName")!=null&&Ext.getCmp("nickName")!=undefined&&Ext.getCmp("nickName").getValue()!=null&&Ext.getCmp("nickName").getValue()!="null"){f=Ext.getCmp("nickName").getValue();}var a="";var h=Ext.getCmp("perPanel").itemId;if(h=="system"||h=="System"){a="/final/monitor/comparisonSystem.jsp?treeTitle=System";
}else{if(h=="components"||h=="Components"){a="/final/monitor/comparisonComponent.jsp?treeTitle=Component&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+l+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&isRumComp=true";
}else{if(h=="network"||h=="Network"){a="/final/monitor/comparisonComponent.jsp?treeTitle=Network";}}}a=a+"&filterBy="+b;if(requestParams.fromPageView!=null&&requestParams.fromPageView=="CitrixDashboard"){a=a+"&timeline="+timeline;}var g=Ext.getCmp("subFilterCombo");var j=false;a=a+"&isfromCitrix=&isfromRum=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
if(b=="Component"||b=="System"||b=="Network"){g.hide();j=true;}else{}sortState="";DirProperty="";if(j){Ext.getCmp("perPanel").loadTab(a,"","","","","","rumAppFlowComponent");Refurl=a;}else{Ext.Ajax.request({url:a,scope:this,timeout:280000,success:function(m){var o=m.responseText;var n=Ext.decode(o);g.getStore().loadRawData(n.subFilterOptions);
g.setValue(n.pageParams.selectedSubFilterOption);g.setFieldLabel(n.pageParams.subFilterLabel);g.show();}});}},compSubFilterComboOnChange:function(d){var h=requestParams.userName;var j=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){j=rumPageParams.serviceCombo[0].selectedRum;}var b="";if(Ext.getCmp("filterByCombo")!=null&&Ext.getCmp("filterByCombo")!=undefined&&Ext.getCmp("filterByCombo").getValue()!=null&&Ext.getCmp("filterByCombo").getValue()!="null"){b=Ext.getCmp("filterByCombo").getValue();
}var e="";if(Ext.getCmp("subFilterCombo")!=null&&Ext.getCmp("subFilterCombo")!=undefined&&Ext.getCmp("subFilterCombo").getValue()!=null&&Ext.getCmp("subFilterCombo").getValue()!="null"){e=Ext.getCmp("subFilterCombo").getValue();}var c="";if(Ext.getCmp("componentTypCombo")!=null&&Ext.getCmp("componentTypCombo")!=undefined&&Ext.getCmp("componentTypCombo").getValue()!=null&&Ext.getCmp("componentTypCombo").getValue()!="null"){c=Ext.getCmp("componentTypCombo").getValue();
}if(selectedCompType!=null&&selectedCompType!="null"&&selectedCompType!=undefined&&selectedCompType!="undefined"&&selectedCompType!=""){c=selectedCompType;}var f="";if(Ext.getCmp("nickName")!=null&&Ext.getCmp("nickName")!=undefined&&Ext.getCmp("nickName").getValue()!=null&&Ext.getCmp("nickName").getValue()!="null"){f=Ext.getCmp("nickName").getValue();
}var a="";var g=Ext.getCmp("perPanel").itemId;sortState="";DirProperty="";if(g=="system"||g=="System"){a="/final/monitor/comparisonSystem.jsp?treeTitle=System";a=a+"&filterBy="+b+"&subFilter="+encodeURIComponent(e)+"&componentNameSearch="+encodeURIComponent(f);var a=a;a=a+"&isfromCitrix=&isfromRum=true&appliesTo="+requestParams.appliesTo;
Refurl=a;Ext.getCmp("perPanel").loadTab(a,"","","","","","rumAppFlow");}else{if(g=="components"||g=="Components"){a="/final/monitor/comparisonComponent.jsp?treeTitle=Component";a=a+"&filterBy="+b+"&subFilter="+encodeURIComponent(e);if(requestParams.fromPageView!=null&&requestParams.fromPageView=="CitrixDashboard"){a=a+"&timeline="+encodeURIComponent(timeline);
}a=a+"&isfromCitrix=&isfromRum=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+j+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&isRumComp=true";
Ext.Ajax.request({url:a,scope:this,timeout:280000,success:function(l){var n=l.responseText;var m=Ext.decode(n);var k=Ext.getCmp("componentTypCombo");k.getStore().loadRawData(m.componentTypeOptions);if(selectedCompType!=null&&selectedCompType!="null"&&selectedCompType!=undefined&&selectedCompType!="undefined"&&selectedCompType!=""){k.setValue(selectedCompType);
}else{k.setValue(m.componentTypeOptions.selectedComponentType);}k.setFieldLabel(m.componentTypeOptions.componentTypeLabel);}});}else{if(g=="network"||g=="Network"){a="/final/monitor/comparisonComponent.jsp?treeTitle=Network";a=a+"&filterBy="+b+"&subFilter="+encodeURIComponent(e);if(requestParams.fromPageView!=null&&requestParams.fromPageView=="CitrixDashboard"){a=a+"&timeline="+encodeURIComponent(timeline);
}a=a+"&isfromCitrix=&isfromRum=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;Ext.Ajax.request({url:a,scope:this,timeout:280000,success:function(l){var n=l.responseText;var m=Ext.decode(n);
var k=Ext.getCmp("componentTypCombo");k.getStore().loadRawData(m.componentTypeOptions);if(selectedCompType!=null&&selectedCompType!="null"&&selectedCompType!=undefined&&selectedCompType!="undefined"&&selectedCompType!=""){k.setValue(selectedCompType);}else{k.setValue(m.componentTypeOptions.selectedComponentType);
}k.setFieldLabel(m.componentTypeOptions.componentTypeLabel);}});}}}},componentTypeComboOnChange:function(C){var b=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){b=rumPageParams.serviceCombo[0].selectedRum;}var t=requestParams.treeFlag_SBD;var a=requestParams.outsideService_SBD;var B=requestParams.titleText_SBD;
var z=requestParams.selectNode_SBD;var n=requestParams.isEmulTrans_SBD;var D=requestParams.serviceState_SBD;var m=requestParams.serviceName;var h=requestParams.serviceState;var e=requestParams.isServiceBusiDash;var l=requestParams.userName;var f=requestParams.stateName;f=(f==null||f==undefined||f=="null")?"":f;
var s=requestParams.fromPageView;var r=C.getValue();compListType=r;var o="";if(Ext.getCmp("filterByCombo")!=null&&Ext.getCmp("filterByCombo")!=undefined){o=Ext.getCmp("filterByCombo").getValue();}var c="";if(Ext.getCmp("subFilterCombo")!=null&&Ext.getCmp("subFilterCombo")!=undefined&&Ext.getCmp("subFilterCombo").getValue()!=null&&Ext.getCmp("subFilterCombo").getValue()!="null"){c=Ext.getCmp("subFilterCombo").getValue();
}var p="";if(Ext.getCmp("nickName")!=null&&Ext.getCmp("nickName")!=undefined){p=Ext.getCmp("nickName").getValue();}var A=Ext.getCmp("rumappmenu_view_id");var j=requestParams.filter;if(j=="Service"){j="services";}var y=A.getStore();var u=A.forceClickKey;var x="";for(var w=0;w<y.getCount();w++){var g=y.getAt(w).data.caption;
if(requestParams.activeViewIndex==w){x=y.getAt(w).data.name;break;}}var d="";var q=Ext.getCmp("perPanel").itemId;if(q=="system"||q=="System"){d="/final/monitor/comparisonSystem.jsp?treeTitle=System";}else{if(q=="components"||q=="Components"){d="/final/monitor/comparisonComponent.jsp?treeTitle=rumcomponents&selectedState=&componentNameSearch=&fromPageView=CitrixDashboard&viewPageTitle=Components&action=component&fromHomepage=&userName="+requestParams.user_name+"&filterBy="+j+"&subFilter="+requestParams.filterBy+"&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=metrics_View&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+b+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&isRumComp=true";
}else{if(q=="network"||q=="Network"){d="/final/monitor/comparisonComponent.jsp?treeTitle=Network&isfromCitrix=false&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=metrics_View&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
}}}d=d+"&filterBy="+o+"&subFilter="+encodeURI(c)+"&componentType="+encodeURI(r)+"&componentNameSearch=&fromPageView="+s+"&userName="+encodeURI(l)+"&selectedState="+f;sortState="";DirProperty="";if(!Ext.isEmpty(requestParams.isServiceBusiDetails)&&requestParams.isServiceBusiDetails!=undefined&&requestParams.isServiceBusiDetails!=null){d=d+"&isServiceBusiViewMetrics="+requestParams.isServiceBusiDetails+"&treeFlag_SBD="+t+"&outsideService_SBD="+a+"&titleText_SBD="+B+"&selectNode_SBD="+z+"&serviceFromZone="+m+"&isEmulTrans_SBD="+n+"&serviceName="+m+"&serviceState_SBD="+D+"&isServiceBusiDash="+e;
}if(requestParams.fromPageView!=null&&requestParams.fromPageView=="CitrixDashboard"){d=d+"&timeline="+encodeURIComponent(timeline);}var v="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){v=Ext.getCmp("dashListComId").getValue();
}Refurl=d;Ext.getCmp("perPanel").loadTab(d,"","","","","","rumAppFlowComponent");},systemsComboChange:function(e){var a=Ext.getCmp("systemViewMeasuresgridpanel");var d=requestParams.filter;if(d=="Service"){d="services";}SysComponentType=e.getValue();var b=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){b=rumPageParams.serviceCombo[0].selectedRum;
}var c="/final/monitor/serviceSystem.jsp?treeTitle=services&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&componentType="+encodeURI(SysComponentType)+"&currentTab=Systems&isSite=true&aggregateTab=false&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&refresh=true&action=Systems&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&hasRUM=true&dashboard_name=RUM_Dashboard&view_name=systems_View&fromServiceHomePage=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+b+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup;
a.loadTab(c,"rumAppFlowSystem");},compSubmitButtonClicked:function(){componentNameSearch="";var a=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){a=rumPageParams.serviceCombo[0].selectedRum;}var m=requestParams.fromPageView;var f=requestParams.userName;var d=requestParams.stateName;d=(d==null||d==undefined||d=="null")?"":d;
if(d==null||d==undefined||d==""){d=requestParams.selectedState;}d=(d==null||d==undefined||d=="null")?"":d;var g="";if(Ext.getCmp("filterByCombo")!=null&&Ext.getCmp("filterByCombo")!=undefined){g=Ext.getCmp("filterByCombo").getValue();}var b="";if(Ext.getCmp("subFilterCombo")!=null&&Ext.getCmp("subFilterCombo")!=undefined&&Ext.getCmp("subFilterCombo").getValue()!=null&&Ext.getCmp("subFilterCombo").getValue()!="null"){b=Ext.getCmp("subFilterCombo").getValue();
}var l="";if(Ext.getCmp("componentTypCombo")!=null&&Ext.getCmp("componentTypCombo")!=undefined&&Ext.getCmp("componentTypCombo").getValue()!=null&&Ext.getCmp("componentTypCombo").getValue()!="null"){l=Ext.getCmp("componentTypCombo").getValue();}if(selectedCompType!=null&&selectedCompType!="null"&&selectedCompType!=undefined&&selectedCompType!="undefined"&&selectedCompType!=""){l=selectedCompType;
}var h="";if(Ext.getCmp("nickName")!=null&&Ext.getCmp("nickName")!=undefined&&Ext.getCmp("nickName").getValue()!=null&&Ext.getCmp("nickName").getValue()!="null"){h=Ext.getCmp("nickName").getValue();}var r="";if(Ext.getCmp("sortByCombo")!=null&&Ext.getCmp("sortByCombo")!=undefined&&Ext.getCmp("sortByCombo").getValue()!=null&&Ext.getCmp("sortByCombo").getValue()!="null"){r=Ext.getCmp("sortByCombo").getValue();
}var c="";var j=Ext.getCmp("perPanel").itemId;if(j=="system"||j=="System"){c="/final/monitor/comparisonSystem.jsp?treeTitle=System";c=c+"&filterBy="+g+"&subFilter="+encodeURIComponent(b)+"&componentNameSearch="+encodeURIComponent(h)+"&viewPageTitle="+encodeURIComponent(requestParams.viewPageTitle);}else{if(j=="components"||j=="Components"){c="/final/monitor/comparisonComponent.jsp?treeTitle=Component";
c=c+"&filterBy="+g+"&subFilter="+encodeURIComponent(b)+"&componentType="+encodeURIComponent(l)+"&componentNameSearch="+encodeURIComponent(h)+"&fromPageView="+m+"&userName="+encodeURIComponent(f)+"&selectedState="+d+"&viewPageTitle="+encodeURIComponent(requestParams.viewPageTitle)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+a+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&isRumComp=true";
}else{if(j=="network"||j=="Network"){c="/final/monitor/comparisonComponent.jsp?treeTitle=Network";c=c+"&filterBy="+g+"&subFilter="+encodeURIComponent(b)+"&componentType="+encodeURIComponent(l)+"&componentNameSearch="+encodeURIComponent(h)+"&fromPageView="+m+"&userName="+encodeURIComponent(f)+"&selectedState="+d+"&viewPageTitle="+encodeURIComponent(requestParams.viewPageTitle);
}}}if(requestParams.fromPageView!=null&&requestParams.fromPageView=="CitrixDashboard"){c=c+"&timeline="+encodeURIComponent(timeline);}var c=c;var o="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){o=Ext.getCmp("dashListComId").getValue();
}var t=Ext.getCmp("rumappmenu_view_id");var s=t.getStore();var n=t.forceClickKey;var q="";for(var p=0;p<s.getCount();p++){var e=s.getAt(p).data.caption;if(requestParams.activeViewIndex==p){q=s.getAt(p).data.name;break;}}c=c+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=metrics_View&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Refurl=c;Ext.getCmp("perPanel").loadTab(c,"","","","","","rumAppFlowComponent");},backButtonHandler:function(){try{var j=backParams.parentZone;var d=backParams.iszoneName;var a=backParams.treeTitle;var k=backParams.monitorsBy;var b=backParams.ltest;var f=backParams.fromHomepage;var e=backParams.tempLogonType;
if(!Ext.isEmpty(backParams)&&backParams!=undefined&&backParams!=null){var c=false;var h=false;if(isFromLayerModel&&isFromZoneMenu){document.location="/final/monitor/zoneDash.jsp?&selectNode=Zone$cap$"+d+"&selectedParam="+d+"&currentTab=details&zoneName="+d+"&iszoneName="+d+"&aggregateTab=false&openNode=null&treeFlag=false&fromHomepage="+f+"&parentZone="+j+"&fromPageView=&fromZoneMenu="+isFromZoneMenu;
return;}else{if(isFromLayerModel&&e!=null&&(e=="true"||e=="false")){document.location="/final/monitor/comparisonDashboard.jsp?treeTitle="+a+"&isFromMenu=true&isLogonType="+e+"&monitorsBy="+k+"&ltest="+b;return;}else{if(isFromLayerModel&&f!=null&&f=="true"){if(d!=null&&d!="null"&&!Ext.isEmpty(d)){document.location="/final/monitor/zoneDash.jsp?&selectNode=Zone$cap$"+d+"&selectedParam="+d+"&currentTab=details&zoneName="+d+"&iszoneName="+d+"&aggregateTab=false&openNode=null&treeFlag=false&fromHomepage="+f+"&parentZone="+j+"&fromPageView=&fromZoneMenu="+isFromZoneMenu;
return;}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";return;}}else{if(isFromLayerModel&&isFromServiceMenu){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=service&isFromMenu=true";return;}else{if(isFromLayerModel&&isFromServiceGroup){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=serviceGroup&isFromMenu=true";
return;}}}}}if(backParams.isBackFromRUM!=undefined&&backParams.isBackFromRUM!=null&&backParams.isBackFromRUM=="true"){c=true;}if(backParams.isFromZone!=undefined&&backParams.isFromZone!=null&&backParams.isFromZone=="true"){h=true;}if((h&&!isFromZoneMain)||(h&&!isFromZoneMain&&((j!=null&&j!="null"&&j!=undefined&&j!="undefined"&&j!="")||(d!=null&&d!="null"&&d!=undefined&&d!="undefined"&&d!="")))){document.location="/final/monitor/zoneDash.jsp?&selectNode=Zone$cap$"+backParams.iszoneName+"&selectedParam="+backParams.iszoneName+"&currentTab=details&zoneName="+backParams.iszoneName+"&iszoneName="+backParams.iszoneName+"&aggregateTab=false&openNode=null&treeFlag=false&fromHomepage=true&parentZone="+backParams.parentZone+"&fromZoneMenu="+isFromZoneMenu;
}else{if(c&&!isFromServiceMenu&&!isFromZoneMain&&!isFromServiceGroup){document.location="/final/monitor/realUserMonitorsDashboard.jsp";}else{if(isFromServiceMenu&&!isFromZoneMain){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=service&isFromMenu=true";
}else{if(isFromZoneMain){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=zoneList&from=MainDashboard&action=zone&isFromMenu=true";}else{if(isFromServiceGroup){document.location="/final/servlet/com.eg.EgMonitorController?monCmd=serviceList&from=MainDashboard&action=serviceGroup&isFromMenu=true";
}else{if(isFromCompDetailsWin){window.location.href="/final/servlet/com.eg.EgDashboardController?site=NULL&from=list&comptype="+hostType+"&host="+hostName+"&tab=LayerModel&fromHomepage=true";}else{document.location="/final/servlet/com.eg.EgMonitorController?monCmd=dashboard";}}}}}}}}catch(g){}},onComponentTypeChange:function(t,c,h,m,q){var l="";
var p="";var k="";var n="";var u="";var j="";if(t!=null&&t!=""&&t!=undefined){j=t.getValue();}else{if(singleComponentTypeValue!=""&&singleComponentTypeValue!=null&&singleComponentTypeValue!=undefined){j=singleComponentTypeValue;}}if(c!=null&&c=="logonSim"){var a="/final/monitor/transactions.jsp?componentType="+j+"&treeTitle=services&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=logon&isSite=false&aggregateTab=false&hasTransactions=false&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&site="+encodeURIComponent(requestParams.filterBy)+"&isSite=true&serviceName="+encodeURIComponent(requestParams.filterBy)+"&fromLayer=false&selectNode="+encodeURIComponent(requestParams.filterBy)+"&currentTab=logon&transTab=true&from=null&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=Logon_Sub_View&fromServiceHomePage=true&fromSerComboChange=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.Ajax.request({url:a,scope:this,timeout:280000,success:function(F){var A=F.responseText;if(!Ext.isEmpty(A)){var L=Ext.decode(A);var J=L.externalAgents;var G=L.logonComponentList;var x=L.componentListObj;l=x.selectedValue;p="";k=J.selectedValue;n=L.logonParam;var I=Ext.getCmp("componentCombo");if(!Ext.isEmpty(I)){I.setVisible(true);
}var H=Ext.getCmp("simulationCombo");if(!Ext.isEmpty(H)){H.setVisible(true);}var w=Ext.getCmp("compTypeCombo");if(!Ext.isEmpty(w)){w.setVisible(true);}if(!Ext.isEmpty(w)&&x!=null&&x!=undefined){selectedCompType=x.selectedValue;}if(!Ext.isEmpty(I)&&J!=null&&J!=undefined){selectedExtAgent=J.selectedValue;
if(!Ext.isEmpty(H)&&G!=null&&G!=undefined){extSimData=G;G=G[selectedExtAgent];selectedSimulation=G.selectedValue;p=G.selectedValue;u=G.selectedOrgValue;if(!Ext.isEmpty(H.getValue())){H.getStore().removeAll();H.getStore().loadRawData("");H.getStore().loadRawData(G);H.setFieldLabel(G.label);H.setValue(G.selectedValue);
}else{var E=Ext.create("Ext.data.Store",{fields:["value","name","comptype"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:G});H.bindStore(E);H.setFieldLabel(G.label);H.setValue(G.selectedValue);}}if(!Ext.isEmpty(I.getValue())){I.getStore().removeAll();I.getStore().loadRawData("");I.getStore().loadRawData(J);
I.setFieldLabel(J.label);I.setValue(J.selectedValue);}else{var C=Ext.create("Ext.data.Store",{fields:["value","name"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:J});I.bindStore(C);I.setFieldLabel(J.label);I.setValue(J.selectedValue);}}var M=Ext.getCmp("dashboard_container_grid");var D=Ext.getCmp("dashboard_container_chart");
var z="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){z=Ext.getCmp("dashListComId").getValue();}var K="";if(p!=null&&p.indexOf(":NULL")>-1){K=p.substring(0,p.indexOf(":NULL"));}else{K=p;}var y="/final/monitor/comparisonLogonSimulator.jsp?treeTitle=LogonSimulation&monitorsBy=LogonSimulator&componentType="+l+"&selectedState=&simulationName="+p+"&externalAgent="+k+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+q+"&fromServiceDashboard=false&servicename="+h+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&componentNameService="+u+"&isLogonType=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
if(n!=null&&n!=""&&n!=undefined){y="/final/monitor/comparisonLogonSimulator.jsp?"+n+"&componentType="+l+"&selectedState=&simulationName="+p+"&externalAgent="+k+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+q+"&fromServiceDashboard=false&servicename="+h+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&componentNameService="+u+"&isLogonType=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
}var B="/final/monitor/simulationGraph.jsp?treeTitle=services&site=NULL&mHost="+k+"&simulationName="+p+"&componentNameService="+u;Ext.Ajax.request({url:B,scope:this,success:function(O){var P=O.responseText;if(!Ext.isEmpty(P)){var N=Ext.decode(P);if(N!=null&&N!=undefined){if(!Ext.isEmpty(M)){M.removeAll(true);
}M.add({xtype:"generalMeasuresGridPanel",cls:"gridHeadercenter iconGrid",itemId:"logonSimualtion",searchBoxCombo:false,margin:0,padding:0,id:"perPanel",height:185,frame:false,border:true,layout:{type:"vbox",align:"stretch"},flex:1,screenLabelPath:"monitor.Dashboard",url:y,listeners:{"afterrender":function(Q){this.loadTab(Q.url,null,null,null,null,true,"rumAppFlow");
}}});if(!Ext.isEmpty(D)){D.removeAll(true);}D.add({xtype:"transactionschartpanel",id:"transactionschartpanelid",jsonData:N,minHeight:265,margin:"10 1 0 0",padding:0,border:true,isNotAreaChart:false});}}},failure:function(){}});}},failure:function(){var x=Ext.getCmp("dashboard_container_grid");var B=Ext.getCmp("dashboard_container_chart");
var A="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){A=Ext.getCmp("dashListComId").getValue();}var y="";if(p!=null&&p.indexOf(":NULL")>-1){y=p.substring(0,p.indexOf(":NULL"));}else{y=p;}var w="/final/monitor/comparisonLogonSimulator.jsp?treeTitle=LogonSimulation&monitorsBy=LogonSimulator&componentType="+l+"&selectedState=&simulationName="+p+"&externalAgent="+k+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+q+"&fromServiceDashboard=false&servicename="+h+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&componentNameService="+u+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
if(n!=null&&n!=""&&n!=undefined){w="/final/monitor/comparisonLogonSimulator.jsp?"+n+"&componentType="+l+"&selectedState=&simulationName="+p+"&externalAgent="+k+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+q+"&fromServiceDashboard=false&servicename="+h+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&componentNameService="+u+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
}var z="/final/monitor/simulationGraph.jsp?treeTitle=services&site=NULL&mHost="+k+"&simulationName="+p+"&componentNameService="+u;Ext.Ajax.request({url:z,scope:this,success:function(D){var E=D.responseText;if(!Ext.isEmpty(E)){var C=Ext.decode(E);if(C!=null&&C!=undefined){if(!Ext.isEmpty(x)){x.removeAll(true);
}x.add({xtype:"generalMeasuresGridPanel",cls:"gridHeadercenter iconGrid",itemId:"logonSimualtion",searchBoxCombo:false,margin:0,padding:0,id:"perPanel",height:185,frame:false,border:true,layout:{type:"vbox",align:"stretch"},flex:1,screenLabelPath:"monitor.Dashboard",url:w,listeners:{"afterrender":function(F){this.loadTab(F.url,null,null,null,null,true,"rumAppFlow");
}}});if(!Ext.isEmpty(B)){B.removeAll(true);}B.add({xtype:"transactionschartpanel",id:"transactionschartpanelid",jsonData:C,minHeight:265,margin:"10 1 0 0",padding:0,border:true,isNotAreaChart:false});}}},failure:function(){}});}});return;}var v=h;if(v==null||v==undefined||v=="null"){return;}var s=false;
var d="/final/monitor/serviceDashHelper.jsp?&site="+encodeURI(v)+"&isSite=true&serviceName="+encodeURI(v)+"&fromLayer="+s;var f=this.getTransactionComboTimeline();var b=this.getTransactionComboFromhr();var e=this.getTransactionComboTohr();var r=this.getTransactionComboMode();var o=this.getTransactionFromDate();
var g=this.getTransactionToDate();if(!Ext.isEmpty(t)){d+="&transComp="+t.getValue();}if(this.tab=="emulated"){d+="&selectedTab=EmulatedClients&from=emulated";}else{d+="&selectedTab="+this.tab;}if(!Ext.isEmpty(f)){d+="&time_line="+f.getValue();if(f.getValue()=="Any"){if(!Ext.isEmpty(b)){d+="&starthr="+b.getValue();
}if(!Ext.isEmpty(e)){d+="&endhr="+e.getValue();}if(!Ext.isEmpty(r)){d+="&mode="+r.getValue();}if(!Ext.isEmpty(o)){tempstarttime=Ext.Date.format(o.getValue(),mgr_dateFormat);d+="&starttime="+tempstarttime;}if(!Ext.isEmpty(g)){tempendtime=Ext.Date.format(g.getValue(),mgr_dateFormat);d+="&endtime="+tempendtime;
}}}Ext.Ajax.request({url:d,scope:this,success:function(w){var y=w.responseText;var x=Ext.decode(y);if(x.HiddenFields!=null&&x.HiddenFields.siteName!=undefined){this.siteName=x.HiddenFields.siteName;}RumAppFlow.app.getController("Main").showTransactionGridPanelData(x.GridScreenLabels,x);},failure:function(){}});
},onComponentChange:function(x,e,n,b,t){refreshSimulation="";var m=x.getValue();if(e!=null&&e=="logonSim"){var l=extSimData[m];var w=Ext.getCmp("simulationCombo");w.getStore().removeAll();w.getStore().loadRawData("");w.getStore().loadRawData(l);w.setValue(l.selectedValue);w.setFieldLabel(l.label);var o=l.selectedValue;
var q=Ext.getCmp("dashboard_container_grid");var p=Ext.getCmp("dashboard_container_chart");selectedVal=m;var r="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){r=Ext.getCmp("dashListComId").getValue();}var a="";if(o!=null&&o.indexOf(":NULL")>-1){a=o.substring(0,o.indexOf(":NULL"));
}else{a=o;o=o+":NULL";}var f="/final/monitor/comparisonLogonSimulator.jsp?treeTitle=LogonSimulation&monitorsBy=LogonSimulator&componentType=&selectedState=&simulationName="+a+"&externalAgent="+selectedVal+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+t+"&fromServiceDashboard=false&servicename="+n+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&componentNameService="+o+"&isLogonType=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
var d="/final/monitor/simulationGraph.jsp?treeTitle=services&site=NULL&mHost="+selectedVal+"&simulationName="+a+"&componentNameService="+o;Ext.Ajax.request({url:d,scope:this,async:true,success:function(A){var B=A.responseText;if(!Ext.isEmpty(B)){var z=Ext.decode(B);if(z!=null&&z!=undefined){if(!Ext.isEmpty(q)){q.removeAll(true);
}q.add({xtype:"generalMeasuresGridPanel",cls:"gridHeadercenter iconGrid",itemId:"logonSimualtion",searchBoxCombo:false,margin:0,padding:0,id:"perPanel",height:185,frame:false,border:true,layout:{type:"vbox",align:"stretch"},flex:1,screenLabelPath:"monitor.Dashboard",url:f,listeners:{"afterrender":function(C){this.loadTab(C.url,null,null,null,null,true,"rumAppFlow");
}}});if(!Ext.isEmpty(p)){p.removeAll(true);}p.add({xtype:"transactionschartpanel",id:"transactionschartpanelid",jsonData:z,minHeight:265,margin:"10 1 0 0",padding:0,border:true,isNotAreaChart:false});}}},failure:function(){}});return;}var y=n;if(y==null||y==undefined||y=="null"){return;}var v=false;var g="/final/monitor/serviceDashHelper.jsp?&site="+encodeURI(y)+"&isSite=true&serviceName="+encodeURI(y)+"&fromLayer="+v;
var j=this.getTransactionComboTimeline();var c=this.getTransactionComboFromhr();var h=this.getTransactionComboTohr();var u=this.getTransactionComboMode();var s=this.getTransactionFromDate();var k=this.getTransactionToDate();if(!Ext.isEmpty(x)){g+="&transComp="+x.getValue();}if(this.tab=="emulated"){g+="&selectedTab=EmulatedClients&from=emulated";
}else{g+="&selectedTab="+this.tab;}if(!Ext.isEmpty(j)){g+="&time_line="+j.getValue();if(j.getValue()=="Any"){if(!Ext.isEmpty(c)){g+="&starthr="+c.getValue();}if(!Ext.isEmpty(h)){g+="&endhr="+h.getValue();}if(!Ext.isEmpty(u)){g+="&mode="+u.getValue();}if(!Ext.isEmpty(s)){tempstarttime=Ext.Date.format(s.getValue(),mgr_dateFormat);
g+="&starttime="+tempstarttime;}if(!Ext.isEmpty(k)){tempendtime=Ext.Date.format(k.getValue(),mgr_dateFormat);g+="&endtime="+tempendtime;}}}Ext.Ajax.request({url:g,scope:this,success:function(z){var B=z.responseText;var A=Ext.decode(B);if(A.HiddenFields!=null&&A.HiddenFields.siteName!=undefined){this.siteName=A.HiddenFields.siteName;
}RumAppFlow.app.getController("Main").showTransactionGridPanelData(A.GridScreenLabels,A);},failure:function(){}});},showTransactionGridPanelData:function(f,h){var o=Ext.getCmp("tabAll");var j=new Object();var t=true;j["title"]=f["emulBtnLabel"];j["itemId"]="serviceToolbarEmulatedButton";j["dataUrl"]=f["emulBtnURL"];
var r=(!Ext.isEmpty(f["emulBtnLabel"]))?true:false;var k=Ext.getCmp("componentCombo");var c=h.ComponentList;var m=h.HiddenFields.siteName;var l="",q="";var u=true;var g;if(!Ext.isEmpty(c)&&c!=null&&c!=undefined){u=false;}if(!Ext.isEmpty(k)){if(u==false||u=="false"){try{k.suspendEvents(true);k.getStore().removeAll();
k.getStore().loadRawData("");k.getStore().loadRawData(c);k.setValue(c.selectedValue);k.setFieldLabel(c.label);k.resumeEvents();}catch(w){alert(w);}}else{k.setVisible(false);}}if(strSkin=="Dark"){skinBg="#444444";}else{if(strSkin=="Light"){skinBg="#ffffff";}}var n=Ext.getCmp("dashboard_view_container_grid");
var b=Ext.getCmp("dashboard_view_container_chart");var s=Ext.getCmp("dashboard_container_grid");var p=Ext.getCmp("dashboard_container_chart");var a=Ext.getCmp("dashboard_container_Emu_Grid");var x=Ext.getCmp("dashboard_container_Emu_Chart");var d;var v;if(!Ext.isEmpty(n)&&!Ext.isEmpty(b)){d=n;v=b;}else{if(!Ext.isEmpty(s)&&!Ext.isEmpty(p)){d=s;
v=p;}else{if(!Ext.isEmpty(a)&&!Ext.isEmpty(x)){d=a;v=x;}}}d.removeAll();v.removeAll();d.add({xtype:"transactiongridpanel",id:"transactiongridpanelid",ui:"newGridPanel",jsonData:h,isEmuEnabled:r,margin:"0 0 0 0",padding:0,height:185,autoScroll:false,scroll:false,border:true});v.add({xtype:"transactionschartpanel",id:"transactionschartpanelid",columnWidth:1,jsonData:h,margin:"10 0 0 0",padding:0,border:false,layout:{type:"fit"},});
},onSimulationChange:function(f,a,m,e,b){var n=f.getValue();if(a!=null&&a=="logonSim"){var h=m;if(Ext.isEmpty(h)||h==null||h==undefined){h=curServiceName;}var k=Ext.getCmp("componentCombo");selectedExtAgent=k.getValue();var o=Ext.getCmp("dashboard_container_grid");var j=Ext.getCmp("dashboard_container_chart");
selectedVal=n;var d="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){d=Ext.getCmp("dashListComId").getValue();}var l="";if(selectedVal!=null&&selectedVal.indexOf(":NULL")>-1){l=selectedVal.substring(0,selectedVal.indexOf(":NULL"));
}else{l=selectedVal;}var c="/final/monitor/comparisonLogonSimulator.jsp?treeTitle=LogonSimulation&monitorsBy=LogonSimulator&componentType=&selectedState=&simulationName="+l+"&externalAgent="+selectedExtAgent+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+b+"&fromServiceDashboard=false&servicename="+m+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&componentNameService="+selectedVal+"&isLogonType=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
var g="/final/monitor/simulationGraph.jsp?treeTitle=services&site=NULL&mHost="+selectedExtAgent+"&simulationName="+e+"&componentNameService="+selectedVal;Ext.Ajax.request({url:g,scope:this,async:true,success:function(q){var r=q.responseText;if(!Ext.isEmpty(r)){var p=Ext.decode(r);if(p!=null&&p!=undefined){if(!Ext.isEmpty(o)){o.removeAll(true);
}o.add({xtype:"generalMeasuresGridPanel",cls:"gridHeadercenter iconGrid",itemId:"logonSimualtion",searchBoxCombo:false,margin:0,padding:0,id:"perPanel",height:185,frame:false,border:true,layout:{type:"vbox",align:"stretch"},flex:1,screenLabelPath:"monitor.Dashboard",url:c,listeners:{"afterrender":function(s){this.loadTab(s.url,null,null,null,null,true,"rumAppFlow");
}}});if(!Ext.isEmpty(j)){j.removeAll(true);}j.add({xtype:"transactionschartpanel",id:"transactionschartpanelid",jsonData:p,minHeight:265,margin:"10 1 10 0",padding:0,border:true,isNotAreaChart:false});}}},failure:function(){}});selectedSimulation=n;return;}},showDDPopup:function(a){var c="";if(dd==null){try{dd=parent.openWindow((a+"&newWindow=true"),c,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");
}catch(b){dd=parent.parent.openWindow((a+"&newWindow=true"),c,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");}if(dd!=null&&dd!=""&&dd!="undefined"){dd.focus();}}else{if(dd!=null&&dd!=""&&dd!="undefined"){dd.close();}dd=null;
try{dd=parent.openWindow((a+"&newWindow=true"),c,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");}catch(b){dd=parent.parent.openWindow((a+"&newWindow=true"),c,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");
}if(dd!=null&&dd!=""&&dd!="undefined"){dd.focus();}}},geoComboOnChange:function(a){try{var d=Ext.getCmp("countryComboId");var b=Ext.getCmp("regionComboId");if(a!=undefined&&a!=null){var f=a.id;var l=a.getValue();var g=a.getRawValue();var l=a.getValue();var k="";if(f=="countryComboId"){if(l=="World"){k="country";
}else{k="region";}}else{if(l=="AllRegion"){k="region";g=d.getRawValue();l=d.getValue();}else{k="city";}}var c=this.getDefaultParams();c+="&action=mapAction";c+="&viewName="+k;c+="&filterNameRaw="+g;c+="&filterName="+l;var j="/final/servlet/com.eg.EgCommonDashboardController?"+c;Ext.getBody().mask("Loading...");
Ext.Ajax.request({url:j,method:"POST",scope:this,timeout:280000,success:function(e,n){var o=e.responseText;var m=Ext.decode(o);if(!Ext.isEmpty(m)&&!Ext.isEmpty(m.geo)){var p=m.geo;Ext.getCmp("overview_map_id").updateData(p[0]);Ext.getCmp("geo_id_mapdetails").updateData(p[0]);Ext.getCmp("responsetimepiechart_Geo").updateData(p[1]);
Ext.getCmp("gridSlowpagegroups_Geo_view").setTitle(p[2][0].title);Ext.getCmp("gridSlowpagegroups_Geo_view").updateData(p[2]);if(k=="region"){b.getStore().loadRawData(p[0].regionArray);b.setValue(p[0].selectedRegion);b.show();}else{if(k=="country"){b.hide();}}}Ext.getBody().unmask();},failure:function(){Ext.getBody().unmask();
}});}}catch(h){}},changeOmniCombo:function(a){var c=this.getDefaultParams();c+="&action=changeOmniView";c+="&combo="+a;var b="/final/servlet/com.eg.EgCommonDashboardController?"+c;Ext.getBody().mask("Loading...");Ext.Ajax.request({url:b,method:"POST",scope:this,timeout:280000,success:function(d,f){var g=d.responseText;
var e=Ext.decode(g);Ext.getCmp("omnichannelID").loadChart(e.omni);Ext.getBody().unmask();},failure:function(){Ext.getBody().unmask();}});},doPageViewAction:function(a){try{var c="all";var j=true;var k=Ext.getCmp("pageuriBox_Id").selection;var f=[],b=[];var l="";if(k!=undefined&&k.length>0){Ext.each(k,function(e){f.push({"url":e.data.url});
b.push(e.data.url);l+=","+e.data.url;});}if(b!=null&&b!=undefined&&b.length>0){if(b.indexOf("All Urls")!=-1){c="all";}else{j=false;l=l.substring(1);c=l;}}var d=this.getDefaultParams();d+="&action=doPageViewAction";d+="&uri="+encodeURIComponent(c);var h="/final/servlet/com.eg.EgCommonDashboardController?"+d;
Ext.getBody().mask("Loading...");Ext.Ajax.request({url:h,method:"POST",scope:this,timeout:280000,success:function(e,n){var o=e.responseText;var m=Ext.decode(o);if(!j&&f!=undefined&&f.length>0){if(a!=undefined&&a!=null){a.selectedURL=b;if(a.selectedURL.length==1&&a.selectedURL[0].trim().toLowerCase()=="allurls"){a.setNumberURL(0);
}else{a.setNumberURL(a.selectedURL.length,a.data);}}}else{if(j){if(b.indexOf("All Urls")!=-1){a.setNumberURL(0);}}}Ext.getCmp("pageviewpanel_PaView_Id").data=m.page_view.data;Ext.getCmp("pageviewpanel_PaView_Id").fullData=m.page_view;Ext.getCmp("pageviewpanel_PaView_Id").updatePVpanel(m.page_view,false);
Ext.getBody().unmask();},failure:function(){Ext.getBody().unmask();}});}catch(g){}},changeTopologyEx:function(a){try{var k=Ext.getCmp("appflowCombo_IdE");var m=k.getValue();var c="all";var j=true;var l=Ext.getCmp("appuriBox_IdE").selection;var f=[],b=[];var n="";if(l!=undefined&&l.length>0){Ext.each(l,function(e){f.push({"url":e.data.url});
b.push(e.data.url);n+=","+e.data.url;});}if(b!=null&&b!=undefined&&b.length>0){if(b.indexOf("All Urls")!=-1){c="all";}else{j=false;n=n.substring(1);c=n;}}var d=this.getDefaultParams();d+="&action=changeTopologyView";d+="&uri="+encodeURIComponent(c);d+="&combo="+m;var h="/final/servlet/com.eg.EgCommonDashboardController?"+d;
Ext.getBody().mask("Loading...");Ext.Ajax.request({url:h,method:"POST",scope:this,timeout:280000,success:function(e,p){var q=e.responseText;var o=Ext.decode(q);if(!j&&f!=undefined&&f.length>0){o.topo.url=f;if(a!=undefined&&a!=null){a.selectedURL=b;a.setNumberURL(a.selectedURL.length,a.data);}}else{if(j){if(b.indexOf("All Urls")!=-1){a.setNumberURL(0);
}}}Ext.getCmp("appflowTopology_idE").updateData(o.topo);Ext.getBody().unmask();},failure:function(){Ext.getBody().unmask();}});}catch(g){}},changeTopology:function(a){try{var k=Ext.getCmp("appflowCombo_Id");var m=k.getValue();var c="all";var j=true;var l=Ext.getCmp("appuriBox_Id").selection;var f=[],b=[];
var n="";if(l!=undefined&&l.length>0){Ext.each(l,function(e){f.push({"url":e.data.url});b.push(e.data.url);n+=","+e.data.url;});}if(b!=null&&b!=undefined&&b.length>0){if(b.indexOf("All Urls")!=-1){c="all";}else{j=false;n=n.substring(1);c=n;}}var d=this.getDefaultParams();d+="&action=changeTopologyView";
d+="&uri="+encodeURIComponent(c);d+="&combo="+m;var h="/final/servlet/com.eg.EgCommonDashboardController?"+d;Ext.getBody().mask("Loading...");Ext.Ajax.request({url:h,method:"POST",scope:this,timeout:280000,success:function(o,q){var r=o.responseText;var p=Ext.decode(r);if(!j&&f!=undefined&&f.length>0){p.topo.url=f;
if(a!=undefined&&a!=null){a.selectedURL=b;a.setNumberURL(a.selectedURL.length,a.data);}}else{if(j){if(b.indexOf("All Urls")!=-1){a.setNumberURL(0);}}}Ext.getCmp("appflowTopology_id").updateData(p.topo);try{var s=Ext.getCmp("appflowbreakupID");if(!Ext.isEmpty(rTBelementClickedId)&&rTBelementClickedId!=""&&!Ext.isEmpty(s)&&s!=undefined&&s!=null){if(rTBelementClickedId=="network_connection"){try{var e=Ext.get("network_connection");
if(!Ext.isEmpty(e)){e.addCls("select");}}catch(t){}s.updateDetails(p.topo.networkData);}else{if(rTBelementClickedId=="content_download"){try{var e=Ext.get("content_download");if(!Ext.isEmpty(e)){e.addCls("select");}}catch(t){}s.updateDetails(p.topo.contentData);}else{s.updateDetails(p.topo.defaultdata);
}}}else{if(!Ext.isEmpty(s)&&s!=undefined&&s!=null){s.updateDetails(p.topo.defaultdata);}}}catch(t){}Ext.getBody().unmask();},failure:function(){Ext.getBody().unmask();}});}catch(g){}},refresh:function(){var v=this;isRefreshing=true;Ext.getCmp("settingIconId").hide();try{var f=document.getElementById("isSessionWindowOpen").value;
if(f=="true"||f==true){return;}}catch(r){}var t="";if(requestParams!=null&&requestParams!=undefined){try{t="isFrom=rumAppFlow";for(var w in requestParams){t+="&"+w+"="+requestParams[w];}}catch(r){t="";}}t+="&action=loadViewData";t+="&isRefresh=true";if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="omni_channel"){var k=Ext.getCmp("omni_combo").getValue();
t+="&combo="+k;}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="geo_view"){var g="";var b="";var o="country";try{var a=Ext.getCmp("countryComboId");var l=Ext.getCmp("regionComboId");var q=a.getValue();var p=l.getValue();if(a.isVisible()){if(q=="World"){o="country";}else{if(p=="AllRegion"){o="region";
g=a.getRawValue();b=a.getValue();}else{o="city";g=l.getRawValue();b=l.getValue();}}}}catch(r){}t+="&viewName="+o;t+="&filterNameRaw="+g;t+="&filterName="+b;}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="page_views"){var h="all";var j=true;var x=Ext.getCmp("pageuriBox_Id").selection;
var n=[],s=[];var c="";if(x!=undefined&&x.length>0){Ext.each(x,function(e){n.push({"url":e.data.url});s.push(e.data.url);c+=","+e.data.url;});}if(s!=null&&s!=undefined&&s.length>0){if(s.indexOf("All Urls")!=-1){h="all";}else{j=false;c=c.substring(1);h=c;}}t+="&uri="+encodeURIComponent(h);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&(requestParams.selectedTab=="overview_view"||requestParams.selectedTab=="response_time_breakup_view")){var u=Ext.getCmp("appflowCombo_Id");
var m=u.getValue();var h="all";var j=true;var x=Ext.getCmp("appuriBox_Id").selection;var n=[],s=[];var c="";if(x!=undefined&&x.length>0){Ext.each(x,function(e){n.push({"url":e.data.url});s.push(e.data.url);c+=","+e.data.url;});}if(s!=null&&s!=undefined&&s.length>0){if(s.indexOf("All Urls")!=-1){h="all";
}else{j=false;c=c.substring(1);h=c;}}t+="&uri="+encodeURIComponent(h);t+="&combo="+m;}}}}var d="/final/servlet/com.eg.EgCommonDashboardController?"+t;Ext.getBody().mask("Loading...");Ext.Ajax.request({url:d,method:"POST",async:false,scope:this,timeout:280000,success:function(z,S){var E=z.responseText;
var W=Ext.decode(E);if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="overview_view"){Ext.getCmp("overviewdetails_Overview_view").update(W.loadViewDetails);Ext.getCmp("appflowCombo_Id").getStore().loadRawData(W.loadViewDetails[1].Application_Block_1_Value[0].comboObj.combo_arr);
Ext.getCmp("appuriBox_Id").data=W.loadViewDetails[1].Application_Block_1_Value[0].uriArray;if(!Ext.isEmpty(W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList)&&W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList!=undefined&&W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList!=null&&W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList.length>0){var C=Ext.getCmp("appuriBox_Id");
W.loadViewDetails[1].Application_Block_1_Value[0].topo.url=n;C.selectedURL=W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList;if(C.selectedURL.length==1&&C.selectedURL[0].trim().toLowerCase()=="allurls"){C.setNumberURL(0);}else{C.setNumberURL(C.selectedURL.length,C.data);}}Ext.getCmp("appflowTopology_id").updateData(W.loadViewDetails[1].Application_Block_1_Value[0].topo);
Ext.getCmp("gridSlowCountries_Overview_view").updateData(W.loadViewDetails[2].Application_Block_2_Value);Ext.getCmp("gridSlowpageGroups_Overview_view").updateData(W.loadViewDetails[3].Application_Block_3_Value);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="usage"){Ext.getCmp("overviewdetails_Usage_view").update(W.loadViewDetails);
var P=[];var aj=W.loadViewDetails;for(var al=1;al<aj.length;al++){P[al-1]=aj[al];}Ext.getCmp("chartparentpanel_Usage_view").updateChartData(P);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="errors"){Ext.getCmp("overviewdetails_Errors_view").update(W.loadViewDetails);Ext.getCmp("page_Errors_view").updateData(W.loadViewDetails);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="omni_channel"){Ext.getCmp("overviewdetails_Omni_view").update(W.loadViewDetails);Ext.getCmp("omnichannelmainpanel_omni_Id").updateData(W.loadViewDetails[1].Application_Block_1_Value[0]);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="page_views"){Ext.getCmp("overviewdetails_PaView_view").update(W.loadViewDetails);
Ext.getCmp("pageviewpanel_PaView_Id").data=W.loadViewDetails[1].Application_Block_1_Value[0].data;Ext.getCmp("pageviewpanel_PaView_Id").fullData=W.loadViewDetails[1].Application_Block_1_Value[0];Ext.getCmp("pageviewpanel_PaView_Id").updatePVpanel(W.loadViewDetails);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="overview_geo_view"){Ext.getCmp("overviewdetails_Static_Geo_view").update(W.loadViewDetails);
Ext.getCmp("overview_Static_map_id").updateData(W.loadViewDetails[1].Application_Block_1_Value[0][0]);Ext.getCmp("responsetimepiechart_Static_Geo").updateData(W.loadViewDetails[1].Application_Block_1_Value[0][1]);Ext.getCmp("gridSlowpagegroups_Static_Geo_view").updateData(W.loadViewDetails[1].Application_Block_1_Value[0][2]);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="geo_view"){Ext.getCmp("overviewdetails_Geo_view").update(W.loadViewDetails);Ext.getCmp("overview_map_id").updateData(W.loadViewDetails[1].Application_Block_1_Value[0][0]);Ext.getCmp("geo_id_mapdetails").updateData(W.loadViewDetails[1].Application_Block_1_Value[0][0]);
Ext.getCmp("responsetimepiechart_Geo").updateData(W.loadViewDetails[1].Application_Block_1_Value[0][1]);Ext.getCmp("gridSlowpagegroups_Geo_view").setTitle(W.loadViewDetails[1].Application_Block_1_Value[0][2][0].title);Ext.getCmp("gridSlowpagegroups_Geo_view").updateData(W.loadViewDetails[1].Application_Block_1_Value[0][2]);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="response_time_breakup_view"){Ext.getCmp("overviewdetails_Rtb_view").update(W.loadViewDetails);Ext.getCmp("appflowCombo_Id").getStore().loadRawData(W.loadViewDetails[1].Application_Block_1_Value[0].comboObj.combo_arr);Ext.getCmp("appuriBox_Id").data=W.loadViewDetails[1].Application_Block_1_Value[0].uriArray;
if(!Ext.isEmpty(W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList)&&W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList!=undefined&&W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList!=null&&W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList.length>0){var C=Ext.getCmp("appuriBox_Id");
W.loadViewDetails[1].Application_Block_1_Value[0].topo.url=n;C.selectedURL=W.loadViewDetails[1].Application_Block_1_Value[0].refreshUriList;if(C.selectedURL.length==1&&C.selectedURL[0].trim().toLowerCase()=="allurls"){C.setNumberURL(0);}else{C.setNumberURL(C.selectedURL.length,C.data);}}Ext.getCmp("appflowTopology_id").updateData(W.loadViewDetails[1].Application_Block_1_Value[0].topo);
if(!Ext.isEmpty(rTBelementClickedId)&&rTBelementClickedId!=""){if(rTBelementClickedId=="network_connection"){try{var e=Ext.get("network_connection");if(!Ext.isEmpty(e)){e.addCls("select");}}catch(ai){}Ext.getCmp("appflowbreakupID").updateDetails(W.loadViewDetails[1].Application_Block_1_Value[0].topo.networkData);
}else{if(rTBelementClickedId=="content_download"){try{var H=Ext.get("content_download");if(!Ext.isEmpty(H)){H.addCls("select");}}catch(ai){}Ext.getCmp("appflowbreakupID").updateDetails(W.loadViewDetails[1].Application_Block_1_Value[0].topo.contentData);}else{Ext.getCmp("appflowbreakupID").updateDetails(W.loadViewDetails[1].Application_Block_1_Value[0].topo.defaultdata);
}}}else{Ext.getCmp("appflowbreakupID").updateDetails(W.loadViewDetails[1].Application_Block_1_Value[0].topo.defaultdata);}Ext.getCmp("responsetimepiechart_Rtb").updateData(W.loadViewDetails[2].Application_Block_4_Value[0]);Ext.getCmp("gridSlowpagegroups_rtb_view").updateData(W.loadViewDetails[3].Application_Block_5_Value);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="topology_view"){var ab="";try{ab=Ext.getCmp("stateCombo").getValue();if(!Ext.isEmpty(selectedSegmentName)&&selectedSegmentName!=null&&selectedSegmentName!=undefined&&selectedSegmentName!="null"&&selectedSegmentName!="undefined"){ab=selectedSegmentName;
}}catch(ai){ab=ifAssSeg;}var ah=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){ah=rumPageParams.serviceCombo[0].selectedRum;}var ac="/final/monitor/EgServiceTopologyD3JS.jsp?physical_topology=0&type=monitor&fromHomepage=&serviceGroup=null&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&action=service&serviceState=service20New_"+ifAssSegState+"&service="+requestParams.filterBy+"&segment="+ab+"&site="+requestParams.filterBy+"&isfromRum=true&dashboard_name=rum_Dashboard&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+ah+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&activeView=topology";
Ext.get("serTopologyMainCon").dom.src=ac;}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="metrics_View"){var L=Ext.getCmp("componentTypCombo").getValue();if(selectedCompType!=null&&selectedCompType!="null"&&selectedCompType!=undefined&&selectedCompType!="undefined"&&selectedCompType!=""){L=selectedCompType;
}var K=Ext.getCmp("metrics_container");K.removeAll(true);var N=requestParams.filter;if(N=="Service"){N="services";}var T="";if(Ext.getCmp("nickName")!=null&&Ext.getCmp("nickName")!=undefined&&Ext.getCmp("nickName").getValue()!=null&&Ext.getCmp("nickName").getValue()!="null"){T=Ext.getCmp("nickName").getValue();
}if(componentNameSearch!=null&&componentNameSearch!="null"&&componentNameSearch!=undefined&&componentNameSearch!="undefined"){T=componentNameSearch;}var an="/final/monitor/comparisonComponent.jsp?treeTitle=rumcomponents&selectedState=&componentNameSearch="+T+"&fromPageView=CitrixDashboard&viewPageTitle=Components&action=component&fromHomepage=&userName=&filterBy="+N+"&subFilter="+requestParams.filterBy+"&timeline=null&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=metrics_View&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+ah+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&isRumComp=true&componentType="+L;
var G=false;if(requestParams.filter.toLowerCase().indexOf("component")>-1){G=true;}K.add({xtype:"generalMeasuresGridPanel",id:"perPanel",itemId:"components",margin:"0 0 0 0",padding:"0 0 0 0",frame:false,border:true,style:{"z-index":"0"},layout:{type:"vbox",align:"stretch"},disableCombo:true,disableCompTypeCombo:G,screenLabelPath:"monitor.CitrixDashboard",url:an,listeners:{"afterrender":function(aq){this.loadTab(aq.url,"","","","","","rumAppFlowComponent");
},"resize":function(aq){aq.setHeight(Ext.getBody().getViewSize().height-80);}}});}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="systems_View"){var ao=Ext.getCmp("system_container");ao.removeAll(true);Ext.getCmp("settingIconId").show();var N=requestParams.filter;if(N=="Service"){N="services";
}var ah=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){ah=rumPageParams.serviceCombo[0].selectedRum;}ao.add({xtype:"dashboardgeneralmeasuresgridpanel",id:"systemViewMeasuresgridpanel",layout:"fit",cls:"gridHeadercenter",itemId:"system",margin:"0 0 0 0",padding:10,frame:false,border:true,screenLabelPath:"monitor.serviceDashboard",url:"/final/monitor/serviceSystem.jsp?treeTitle=services&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&componentType="+encodeURI(SysComponentType)+"&currentTab=Systems&isSite=true&aggregateTab=false&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&refresh=true&action=Systems&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&hasRUM=true&dashboard_name=RUM_Dashboard&view_name=systems_View&fromServiceHomePage=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+ah+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup,listeners:{"resize":function(aq){aq.setHeight(Ext.getBody().getViewSize().height-75);
},"afterrender":function(aq){this.loadTab(aq.url,"rumAppFlowSystem");}}});}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="aggregates_View"){var af=Ext.getCmp("aggregate_container");af.removeAll(true);var N=requestParams.filter;if(N=="Service"){N="services";}var ah=titleApplies;
if(rumPageParams.serviceCombo[0].rumcomboNeeded){ah=rumPageParams.serviceCombo[0].selectedRum;}af.add({xtype:"dashboardgeneralmeasuresaggregatepanel",id:"systemViewAggregatesgridpanel",cls:"gridHeadercenter",itemId:"aggregates",margin:"10 0 0 0",padding:0,frame:false,border:false,scroll:true,autoScroll:true,height:"100%",style:{"overflow":"auto","background":"#fff"},screenLabelPath:"monitor.serviceDashboard",url:"/final/monitor/serviceAggregate.jsp?treeTitle=rumaggregate&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=Aggregates&isSite=true&aggregateTab=true&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&refresh=true&action=Aggregates&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=aggregates_View&fromServiceHomePage=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+ah+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup,listeners:{"resize":function(aq){aq.setHeight(Ext.getBody().getViewSize().height-65);
},"afterrender":function(aq){this.loadTab(aq.url,"rumAppFlowAggregate");},}});}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="Web_Transaction_Sub_View"){var ag=Ext.getCmp("timeWindow");var F=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "timeline"]');
if(!Ext.isEmpty(F)&&!Ext.isEmpty(F[0].value)){timeLineValueForRefresh=F[0].value;}var Y=Ext.ComponentQuery.query('floatingContainer > panel > datefield[itemId= "from"]');if(!Ext.isEmpty(Y)&&!Ext.isEmpty(Y[0].value)){fromDateValueForRefresh=Y[0].value;}var U=Ext.ComponentQuery.query('floatingContainer > panel > datefield[itemId= "to"]');
if(!Ext.isEmpty(U)&&!Ext.isEmpty(U[0].value)){toDateValueForRefresh=U[0].value;}var M=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "fromhr"]');if(!Ext.isEmpty(M)&&!Ext.isEmpty(M[0].value)){fromHrValueForRefresh=M[0].value;}var y=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "tohr"]');
if(!Ext.isEmpty(y)&&!Ext.isEmpty(y[0].value)){toHrValueForRefresh=y[0].value;}var ae=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "frommin"]');if(!Ext.isEmpty(ae)&&!Ext.isEmpty(ae[0].value)){fromMinValueForRefresh=ae[0].value;}var am=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "tomin"]');
if(!Ext.isEmpty(am)&&!Ext.isEmpty(am[0].value)){toMinValueForRefresh=am[0].value;}var Z=Ext.getCmp("dashboard_view_container_grid");var D=Ext.getCmp("dashboard_view_container_chart");var aa=Ext.getCmp("dashboard_view_header_id");if(!Ext.isEmpty(Z)){Z.removeAll(true);}if(!Ext.isEmpty(D)){D.removeAll(true);
}if(!Ext.isEmpty(aa)){aa.removeAll(true);}if(!Ext.isEmpty(Ext.getCmp("tabBarHeader1"))){Ext.getCmp("tabBarHeader1").removeAll(true);}var Q="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){Q=Ext.getCmp("dashListComId").getValue();
}var ad="/final/monitor/transactions.jsp?treeTitle=services&1=1&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&isSite=true&aggregateTab=false&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&site="+encodeURIComponent(requestParams.filterBy)+"&isSite=true&serviceName="+encodeURIComponent(requestParams.filterBy)+"&fromLzayer=false&selectNode="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&transTab=true&from=null&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=Web_Transaction_Sub_View&fromServiceHomePage=true&fromSerComboChange=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.Ajax.request({url:ad,timeout:280000,success:function(ar){var aS=ar.responseText;if(!Ext.isEmpty(aS)){var az=Ext.decode(aS);this.siteName=az.HiddenFields.siteName;var ax=az.GridScreenLabels;var aQ=az.HiddenFields.compType;var aK=az.HiddenFields.compName;var aI=az.HiddenFields.siteName;var aM=(!Ext.isEmpty(ax["emulBtnLabel"]))?true:false;
var aY=(!Ext.isEmpty(ax["webBtnLabel"]))?true:false;var aE=(!Ext.isEmpty(az["isTabChanged"]))?true:false;var aW=(!Ext.isEmpty(az["fromRefresh"]))?true:false;var aq=az.HiddenFields.isLogonSimul;var aH=az.HiddenFields.Refreshing;var at=az.HiddenFields.innerActiveTab;var aZ=az.HiddenFields.timelineParam;
if(!Ext.isEmpty(az.HiddenFields)){serviceRefSortByLogon=az.HiddenFields.serviceRefSortByLogon;serviceRefSortByLogonType=az.HiddenFields.serviceRefSortByLogonType;serviceRefSortByLogonId=az.HiddenFields.serviceRefSortByLogonId;}var aw=az.ComponentList;var aO=az.externalAgents;var aA=az.logonComponentList;
var av=az.componentListObj;var aR=false;if(az.componentListObj!=null&&az.componentListObj["options"].length==1){aR=true;singleComponentTypeValue=az.componentListObj["options"][0].value;singleComponentTypeName=az.componentListObj["options"][0].name;}var aD="",aL="",aN="",aC="",aJ="",aU="",au="";var aT=false;
var aV=true;var ay,aP,aX;if(!Ext.isEmpty(aw)&&aw!=null&&aw!=undefined&&(at==null||at==undefined||at=="undefined")){ay=Ext.create("Ext.data.Store",{fields:["value","name","comptype"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:aw});aT=false;aD=aw.label;aL=aw.selectedValue;}else{if(!Ext.isEmpty(aO)&&aO!=null&&aO!=undefined&&(at=="logonSim"||(!aM&&!aY))){extAgentData=aO;
ay=Ext.create("Ext.data.Store",{fields:["value","name"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:aO});aT=false;aD=extAgentData.label;aL=aO.selectedValue;}else{aT=true;}}var aG="GOOD";aG=az.GridScreenLabels.siteState;var aF=true;if(!Ext.isEmpty(at)&&at!=null&&at!=undefined&&at=="logonSim"){aF=false;
}curViewTab=at;if(singleComponentTypeName!=""&&singleComponentTypeName!=null&&singleComponentTypeName!=undefined){singleComponentTypeName=singleComponentTypeName.toUpperCase();aa.setTitle("USER EXPERIENCE - "+singleComponentTypeName+" <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' class='iconLayerstack mouse' onclick=\"DashboardToLayers('"+aK+"','"+aQ+"','"+aI+"','WebTransactions','Web_Transaction_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" /> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/>");
}else{aa.setTitle("USER EXPERIENCE - WEB TRANSACTIONS <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' class='iconLayerstack mouse' onclick=\"DashboardToLayers('"+aK+"','"+aQ+"','"+aI+"','WebTransactions','Web_Transaction_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" /> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/>");
}aa.addTool({xtype:"container",id:"tabBarHeader1",layout:{type:"hbox",align:"right"},margin:"10 0 0 0",style:{"float":"right"},items:[{xtype:"combo",id:"componentCombo",itemId:"componentCombo",editable:false,labelWidth:75,margin:"0 0 0 10",hidden:aT,store:ay,cls:"dropdown",width:290,displayField:"name",valueField:"value",trigerAction:"all",fieldLabel:""+aD,value:aL,queryMode:"local",listeners:{"change":function(a0){RumAppFlow.app.getController("Main").onComponentChange(this,"webTrans",aI);
}}}]});Z.add([{xtype:"container",ui:"eg-container",margin:"0 0 0 0",padding:"0 10 10 10",items:[{xtype:"transactiongridpanel",ui:"newGridPanel",id:"transactiongridpanelid",jsonData:az,isEmuEnabled:aM,id:"transGrid1",height:185,border:true}]}]);try{D.add([{xtype:"container",margin:"10 2 0 0",items:[{xtype:"transactionschartpanel",id:"transactionschartpanelid",jsonData:az,padding:0,border:false,layout:{type:"fit"},}]}]);
}catch(aB){}}},failure:function(){}});}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="Emulated_Transaction_Sub_View"){var ad="/final/monitor/transactions.jsp?treeTitle=services&1=1&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&isSite=false&aggregateTab=false&hasTransactions=false&hasEmulatedTransactions=true&fromHomepage=&hasLogonSimulations=false&site="+encodeURIComponent(requestParams.filterBy)+"&isSite=true&serviceName="+encodeURIComponent(requestParams.filterBy)+"&fromLayer=false&selectNode="+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&transTab=true&from=null&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name=Emulated_Transaction_Sub_View&fromServiceHomePage=true&fromSerComboChange=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.Ajax.request({url:ad,timeout:280000,success:function(au){var ar=au.responseText;if(!Ext.isEmpty(ar)){var ax=Ext.decode(ar);this.siteName=ax.HiddenFields.siteName;var aq=ax.HiddenFields.compType;var av=ax.HiddenFields.compName;var aw=ax.HiddenFields.siteName;var az=ax.HiddenFields.isWebTrans;if(!Ext.isEmpty(sess_sim_compType)){aq=sess_sim_compType;
}if(!Ext.isEmpty(sess_sim_comp)){av=sess_sim_comp;}var ay=selectedScript;if(!Ext.isEmpty(sess_sim_script)){ay=sess_sim_script;}var at="NULL";if(az=="true"){at=requestParams.filterBy;}Ext.get("sessionSimTopology").dom.src="/final/monitor/sessionSimulation.jsp?scriptName="+ay+"&compName="+av+"&site="+at+"&compType="+aq+"&serviceName="+requestParams.filterBy+"&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&isRum=true";
}}});}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="Logon_Sub_View"){var ag=Ext.getCmp("timeWindow");var F=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "timeline"]');if(!Ext.isEmpty(F)&&!Ext.isEmpty(F[0].value)){timeLineValueForRefresh=F[0].value;
}var Y=Ext.ComponentQuery.query('floatingContainer > panel > datefield[itemId= "from"]');if(!Ext.isEmpty(Y)&&!Ext.isEmpty(Y[0].value)){fromDateValueForRefresh=Y[0].value;}var U=Ext.ComponentQuery.query('floatingContainer > panel > datefield[itemId= "to"]');if(!Ext.isEmpty(U)&&!Ext.isEmpty(U[0].value)){toDateValueForRefresh=U[0].value;
}var M=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "fromhr"]');if(!Ext.isEmpty(M)&&!Ext.isEmpty(M[0].value)){fromHrValueForRefresh=M[0].value;}var y=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "tohr"]');if(!Ext.isEmpty(y)&&!Ext.isEmpty(y[0].value)){toHrValueForRefresh=y[0].value;
}var ae=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "frommin"]');if(!Ext.isEmpty(ae)&&!Ext.isEmpty(ae[0].value)){fromMinValueForRefresh=ae[0].value;}var am=Ext.ComponentQuery.query('floatingContainer > panel > combo[itemId= "tomin"]');if(!Ext.isEmpty(am)&&!Ext.isEmpty(am[0].value)){toMinValueForRefresh=am[0].value;
}var J="Logon_Sub_View";var O=Ext.getCmp("compTypeCombo");var R="";if(!Ext.isEmpty(O)&&O!=null&&O!=undefined){R=O.getValue();}else{if(singleComponentTypeValue!=""&&singleComponentTypeValue!=null&&singleComponentTypeValue!=undefined){R=singleComponentTypeValue;}}var I=Ext.getCmp("componentCombo");var ak=I.getValue();
var A=Ext.getCmp("simulationCombo");refreshSimulation=A.getValue();var V=Ext.getCmp("dashboard_container_grid");var ap=Ext.getCmp("dashboard_container_chart");var B=Ext.getCmp("dashboard_view_header_id");if(!Ext.isEmpty(V)){V.removeAll(true);}if(!Ext.isEmpty(ap)){ap.removeAll(true);}if(!Ext.isEmpty(B)){B.removeAll(true);
}if(!Ext.isEmpty(Ext.getCmp("tabBarHeader1"))){Ext.getCmp("tabBarHeader1").removeAll(true);}var Q="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){Q=Ext.getCmp("dashListComId").getValue();}var X="";if(requestParams.appliesTo!=null&&requestParams.appliesTo!="null"&&requestParams.appliesTo!=""&&requestParams.appliesTo!=undefined&&requestParams.appliesTo!="undefined"){X=requestParams.appliesTo;
}else{if(!Ext.isEmpty(Ext.getCmp("componentsDropDown1"))){X=Ext.getCmp("componentsDropDown1").getValue();}}var ad="/final/monitor/transactions.jsp?componentType="+R+"&treeTitle=services&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=logon&isSite=false&aggregateTab=false&hasTransactions=false&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&site="+encodeURIComponent(requestParams.filterBy)+"&isSite=true&serviceName="+encodeURIComponent(requestParams.filterBy)+"&fromLayer=false&selectNode="+encodeURIComponent(requestParams.filterBy)+"&currentTab=logon&transTab=true&from=null&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=Logon_Sub_View&fromServiceHomePage=true&fromSerComboChange=true&appliesTo="+X+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.Ajax.request({url:ad,timeout:280000,success:function(aA){var aE=aA.responseText;if(!Ext.isEmpty(aE)){var aQ=Ext.decode(aE);this.siteName=aQ.HiddenFields.siteName;var a1=aQ.GridScreenLabels;var aN=aQ.HiddenFields.compType;var aY=aQ.HiddenFields.compName;var aT=aQ.HiddenFields.siteName;gLogonParam=aQ.logonParam;
var a0=(!Ext.isEmpty(a1["emulBtnLabel"]))?true:false;var aG=(!Ext.isEmpty(a1["webBtnLabel"]))?true:false;var aW=(!Ext.isEmpty(aQ["isTabChanged"]))?true:false;var aO=(!Ext.isEmpty(aQ["fromRefresh"]))?true:false;var ar=aQ.HiddenFields.isLogonSimul;var aC=aQ.HiddenFields.Refreshing;var aJ=aQ.HiddenFields.innerActiveTab;
var aK=aQ.HiddenFields.timelineParam;var aL="";if(!Ext.isEmpty(aK)&&aK!=null&&aK!=undefined){aL="&mode="+aK.mode+"&time_line="+aK.time_line+"&starthr="+aK.starthr+"&endhr="+aK.endhr+"&starttime="+aK.starttime+"&endtime="+aK.endtime+"&startmin="+aK.startmin+"&endmin="+aK.endmin;}aJ="logonSim";if(!Ext.isEmpty(aQ.HiddenFields)){serviceRefSortByLogon=aQ.HiddenFields.serviceRefSortByLogon;
serviceRefSortByLogonType=aQ.HiddenFields.serviceRefSortByLogonType;serviceRefSortByLogonId=aQ.HiddenFields.serviceRefSortByLogonId;}var az=aQ.ComponentList;var at=aQ.externalAgents;var a4=aQ.logonComponentList;var ax=aQ.componentListObj;var aw=false;if(aQ.componentListObj!=null&&aQ.componentListObj["options"].length==1){aw=true;
singleComponentTypeValue=aQ.componentListObj["options"][0].value;singleComponentTypeName=aQ.componentListObj["options"][0].name;}var aZ="",aP="",a2="",ay="",aS="",aU="",aD="";var aX=true;var aF=false;var aV,a3,aH;if(!Ext.isEmpty(ax)&&ax!=null&&ax!=undefined&&(aJ=="logonSim"||(!a0&&!aG))){aX=false;aH=Ext.create("Ext.data.Store",{fields:["value","name","url"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:ax});
aP=ax.label;aD=ax.selectedValue;selectedCompType=ax.selectedValue;}if(!Ext.isEmpty(az)&&az!=null&&az!=undefined&&(aJ==null||aJ==undefined||aJ=="undefined")){aV=Ext.create("Ext.data.Store",{fields:["value","name","comptype"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:az});aF=false;
aZ=az.label;a2=az.selectedValue;}else{if(!Ext.isEmpty(at)&&at!=null&&at!=undefined&&(aJ=="logonSim"||(!a0&&!aG))){extAgentData=at;aV=Ext.create("Ext.data.Store",{fields:["value","name"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:at});aF=false;aZ=extAgentData.label;if(!Ext.isEmpty(ak)&&ak!=null){a2=ak;
}else{a2=at.selectedValue;}}else{aF=true;}}if(!Ext.isEmpty(a4)&&a4!=null&&a4!=undefined){a4=a4[a2];a3=Ext.create("Ext.data.Store",{fields:["value","name","comptype"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:a4});ay=a4.label;aS=a4.selectedValue;if(!Ext.isEmpty(refreshSimulation)&&refreshSimulation!=null){if(refreshSimulation.indexOf(":")>-1){var aq=refreshSimulation;
aq=aq.substring(0,aq.indexOf(":"));selectedSimulation=aq;}aU=refreshSimulation;}else{selectedSimulation=a4.selectedValue;aU=a4.selectedOrgValue;}}if(aw){aX=true;}var aI="GOOD";aI=aQ.GridScreenLabels.siteState;var aB=true;if(!Ext.isEmpty(aJ)&&aJ!=null&&aJ!=undefined&&aJ=="logonSim"){aB=false;}curViewTab=aJ;
if(singleComponentTypeName!=""&&singleComponentTypeName!=null&&singleComponentTypeName!=undefined){singleComponentTypeName=singleComponentTypeName.toUpperCase();B.setTitle("USER EXPERIENCE - "+singleComponentTypeName+" <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' class='iconLayerstack mouse' onclick=\"DashboardToLayers('"+aY+"','"+aN+"','"+aT+"','logonSim','Logon_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" /> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/>");
}else{B.setTitle("USER EXPERIENCE - LOGON SIMULATIONS <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' class='iconLayerstack mouse' onclick=\"DashboardToLayers('"+aY+"','"+aN+"','"+aT+"','logonSim','Logon_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" /> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/>");
}B.addTool({xtype:"container",id:"tabBarHeader1",layout:{type:"hbox",align:"right"},margin:"10 0 0 0",style:{"float":"right","border":"none !important"},items:[{xtype:"combo",id:"compTypeCombo",itemId:"compTypeCombo",labelAlign:"left",editable:false,store:aH,hidden:aX,labelSeparator:"",cls:"dropdown",displayField:"name",valueField:"value",url:"url",trigerAction:"all",fieldLabel:aP+":",labelWidth:100,width:290,queryMode:"local",margin:"0 0 0 20",value:aD,listeners:{"change":function(a5){RumAppFlow.app.getController("Main").onComponentTypeChange(this,"logonSim",aT,aD,J);
}}},{xtype:"combo",id:"componentCombo",itemId:"componentCombo",editable:false,margin:"0 0 0 20",hidden:aF,store:aV,cls:"dropdown",width:290,displayField:"name",valueField:"value",trigerAction:"all",fieldLabel:""+aZ,labelWidth:100,value:a2,queryMode:"local",listeners:{"change":function(a5){RumAppFlow.app.getController("Main").onComponentChange(this,"logonSim",aT,aU,J);
}}},{xtype:"combo",id:"simulationCombo",itemId:"simulationCombo",editable:false,margin:"0 0 0 20",width:270,hidden:aB,store:a3,cls:"dropdown",displayField:"name",valueField:"value",trigerAction:"all",fieldLabel:""+ay,labelWidth:70,value:aU,queryMode:"local",listeners:{"change":function(a5){RumAppFlow.app.getController("Main").onSimulationChange(this,"logonSim",aT,aU,J);
}}}]});var aM="";if(!Ext.isEmpty(Ext.getCmp("dashListComId"))&&Ext.getCmp("dashListComId")!=null&&Ext.getCmp("dashListComId")!=undefined){aM=Ext.getCmp("dashListComId").getValue();}var av="";if(aU!=null&&aU.indexOf(":NULL")>-1){av=aU.substring(0,aU.indexOf(":NULL"));}else{av=aU;}var au="/final/monitor/comparisonLogonSimulator.jsp?treeTitle=LogonSimulation&monitorsBy=LogonSimulator&componentType=&selectedState=&simulationName="+av+"&externalAgent="+a2+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+J+"&fromServiceDashboard=false&servicename="+aT+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isLogonType=true";
if(gLogonParam!=null&&gLogonParam!=""&&gLogonParam!=undefined){au="/final/monitor/comparisonLogonSimulator.jsp?"+gLogonParam+"&componentType=&selectedState=&simulationName="+av+"&externalAgent="+a2+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+J+"&fromServiceDashboard=false&servicename="+aT+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+X+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&isLogonType=true";
}var aR="/final/monitor/simulationGraph.jsp?treeTitle=services&site=NULL&mHost="+a2+"&simulationName="+aU;Ext.Ajax.request({url:aR,scope:this,success:function(a6){var a7=a6.responseText;if(!Ext.isEmpty(a7)){var a5=Ext.decode(a7);if(a5!=null&&a5!=undefined){V.add({xtype:"generalMeasuresGridPanel",cls:"gridHeadercenter iconGrid",itemId:"logonSimualtion",searchBoxCombo:false,margin:0,padding:3,id:"perPanel",height:185,frame:false,border:true,layout:{type:"vbox",align:"stretch"},flex:1,screenLabelPath:"monitor.Dashboard",url:au,listeners:{"afterrender":function(a8){this.loadTab(a8.url,null,null,null,null,true,"rumAppFlow");
}}});ap.add({xtype:"transactionschartpanel",id:"transactionschartpanelid",height:(Ext.getBody().getViewSize().height-287),jsonData:a5,margin:"10 1 0 0",padding:0,border:false,isNotAreaChart:false});}}},failure:function(){}});}},failure:function(){}});}}}}}}}}}}}}}}}RumAppFlow.app.getController("Main").overviewdetailsRenderforRefresh();
Ext.getBody().unmask();},failure:function(){Ext.getBody().unmask();}});},getDefaultParams:function(){var c="";if(requestParams!=null&&requestParams!=undefined){try{c="isFrom=rumAppFlow";for(var a in requestParams){c+="&"+a+"="+requestParams[a];}}catch(b){c="";}}return c;},addGeoPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");
b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(h){var g=this;var f=c.loadViewDetails;g.add({xtype:"overviewdetails",id:"overviewdetails_Geo_view",data:f,margin:"0 2 2 0",collapsible:false},{xtype:"container",flex:1,height:512,margin:"10 2 10 0",layout:{type:"hbox",align:"stretch"},listeners:{"afterrender":function(k){var j=this;
j.add({xtype:"container",cls:"geopan-border",ui:"eg-container",margin:"0 2 2 0",flex:0.75,layout:{type:"hbox",align:"stretch"},listeners:{"afterrender":function(m){var l=this;l.add({xtype:"panel",flex:0.78,layout:{type:"vbox",align:"stretch"},items:[{xtype:"header",id:"geo_map_header_id",padding:"0 5 5 0",height:35,},{xtype:"geopanel",mapStyle:strRumSkin=="Dark"?"dark":"light",jsonData:c.loadViewDetails[1].Application_Block_1_Value[0][0],id:"overview_map_id",flex:0.5,margin:"0 10 10 10",zoom:2,width:200,height:500,mapType:"styled_map",center:{lat:40.378,lng:10.4359},infoBoxArray:[],markerArray:[],feauturesArray:[],stateArray:[],}]},{xtype:"geomapdetails",id:"geo_id_mapdetails",flex:0.22,jsonData:c.loadViewDetails[1].Application_Block_1_Value[0][0],});
}},items:[]});}},items:[]},{xtype:"container",padding:0,margin:0,height:235,layout:{type:"hbox",align:"stretch"},listeners:{"afterrender":function(k){var j=this;j.add({xtype:"responsetimepiechart",id:"responsetimepiechart_Geo",legendPosition:"right",legendLayout:"horizontal",flex:1,chartMarginTop:10,chartMarginRight:10,chartMarginLeft:-350,chartMarginBottom:10,chartLegendUseHTML:true,legendOffset:15,legendWidth:185,legendContainerWidth:370,Jdata:c.loadViewDetails[1].Application_Block_1_Value[0][1]},{xtype:"rumappflowgrid",id:"gridSlowpagegroups_Geo_view",gridData:c.loadViewDetails[1].Application_Block_1_Value[0][2],title:c.loadViewDetails[1].Application_Block_1_Value[0][2][0].title});
}},items:[]});}},items:[]});},addwebTransPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(g){var f=this;var h="/final/monitor/transactions.jsp?treeTitle=services&1=1&&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&isSite=true&aggregateTab=false&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&site="+encodeURIComponent(requestParams.filterBy)+"&isSite=true&serviceName="+encodeURIComponent(requestParams.filterBy)+"&fromLzayer=false&selectNode="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&transTab=true&from=null&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=Web_Transaction_Sub_View&fromServiceHomePage=true&fromSerComboChange=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.Ajax.request({url:h,timeout:280000,success:function(j){var H=j.responseText;if(!Ext.isEmpty(H)){var q=Ext.decode(H);this.siteName=q.HiddenFields.siteName;var o=q.GridScreenLabels;var G=q.HiddenFields.compType;var A=q.HiddenFields.compName;var y=q.HiddenFields.siteName;var C=(!Ext.isEmpty(o["emulBtnLabel"]))?true:false;
var N=(!Ext.isEmpty(o["webBtnLabel"]))?true:false;var u=(!Ext.isEmpty(q["isTabChanged"]))?true:false;var L=(!Ext.isEmpty(q["fromRefresh"]))?true:false;var e=q.HiddenFields.isLogonSimul;var x=q.HiddenFields.Refreshing;var k=q.HiddenFields.innerActiveTab;var O=q.HiddenFields.timelineParam;if(!Ext.isEmpty(q.HiddenFields)){serviceRefSortByLogon=q.HiddenFields.serviceRefSortByLogon;
serviceRefSortByLogonType=q.HiddenFields.serviceRefSortByLogonType;serviceRefSortByLogonId=q.HiddenFields.serviceRefSortByLogonId;}var n=q.ComponentList;var E=q.externalAgents;var r=q.logonComponentList;var m=q.componentListObj;var t="",B="",D="",s="",z="",J="",l="";var I=false;var K=true;var p,F,M;if(!Ext.isEmpty(m)&&m!=null&&m!=undefined&&(k=="logonSim"||(!C&&!N))){K=false;
M=Ext.create("Ext.data.Store",{fields:["value","name","url"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:m});s=m.label;J=m.selectedValue;selectedCompType=m.selectedValue;}if(!Ext.isEmpty(n)&&n!=null&&n!=undefined&&(k==null||k==undefined||k=="undefined")){p=Ext.create("Ext.data.Store",{fields:["value","name","comptype"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:n});
I=false;t=n.label;B=n.selectedValue;}else{if(!Ext.isEmpty(E)&&E!=null&&E!=undefined&&(k=="logonSim"||(!C&&!N))){extAgentData=E;E=E[z];p=Ext.create("Ext.data.Store",{fields:["value","name"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:E});I=false;t=extAgentData.label;B=E.selectedValue;
}else{I=true;}}var w="GOOD";w=q.GridScreenLabels.siteState;var v=true;if(!Ext.isEmpty(k)&&k!=null&&k!=undefined&&k=="logonSim"){v=false;}curViewTab=k;f.add({xtype:"panel",ui:"eg-x-panel sepHeader",border:false,cls:"font_normal13 fontStyleRobot",style:{"background-color":"transparent !important","border":"none !important","box-shadow":"none"},id:"dashboard_view_header_id",title:"USER EXPERIENCE - WEB TRANSACTIONS <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' class='iconLayerstack mouse' onclick=\"DashboardToLayers('"+A+"','"+G+"','"+y+"','WebTransactions','Web_Transaction_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" /> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/>",listeners:{"afterrender":function(Q){var P=this;
P.addTool({xtype:"container",id:"tabBarHeader1",layout:{type:"hbox",align:"right"},margin:"10 0 0 0",style:{"float":"right"},items:[{xtype:"combo",id:"compTypeCombo",itemId:"compTypeCombo",labelAlign:"left",editable:false,store:M,hidden:K,labelSeparator:"",cls:"dropdown",displayField:"name",valueField:"value",url:"url",trigerAction:"all",fieldLabel:s+":",labelWidth:60,width:250,queryMode:"local",margin:"0 0 0 20",value:J,listeners:{"change":function(R){RumAppFlow.app.getController("Main").onComponentTypeChange(this,"logonSim",y,J,selected_view_name);
}}},{xtype:"combo",id:"componentCombo",itemId:"componentCombo",editable:false,labelWidth:75,margin:"0 0 0 20",hidden:I,store:p,cls:"dropdown",width:290,displayField:"name",valueField:"value",trigerAction:"all",fieldLabel:""+t,value:B,queryMode:"local",listeners:{"change":function(R){RumAppFlow.app.getController("Main").onComponentChange(this,"webTrans",y);
}}},{xtype:"combo",id:"simulationCombo",itemId:"simulationCombo",editable:false,margin:"0 0 0 20",width:290,hidden:v,store:F,cls:"dropdown",displayField:"name",valueField:"value",trigerAction:"all",fieldLabel:""+D,labelWidth:80,value:l,queryMode:"local"}]});}}},{xtype:"container",ui:"eg-container",margin:0,id:"dashboard_view_container_grid",bodyPadding:0,padding:0,border:false,frame:false,listeners:{"afterrender":function(Q){var P=this;
P.add([{xtype:"container",ui:"eg-container",margin:"0 0 0 0",padding:"0 10 10 10",items:[{xtype:"transactiongridpanel",ui:"newGridPanel",id:"transactiongridpanelid",jsonData:q,isEmuEnabled:C,id:"transGrid1",height:185,border:true}]}]);}}},{xtype:"container",margin:"0 0 0 0",id:"dashboard_view_container_chart",bodyPadding:0,padding:0,layout:"fit",border:false,frame:false,listeners:{"afterrender":function(Q){var P=this;
P.add([{xtype:"container",margin:"10 2 0 0",items:[{xtype:"transactionschartpanel",id:"transactionschartpanelid",jsonData:q,padding:0,border:false,layout:{type:"fit"},}]}]);}}});}},failure:function(){}});}}});},addlogonTransPage:function(c,a){isRefreshing=false;var d=this,b=Ext.getCmp("appflow_ground");
b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(h){var g=this;var f="";if(requestParams.appliesTo!=null&&requestParams.appliesTo!="null"&&requestParams.appliesTo!=""&&requestParams.appliesTo!=undefined&&requestParams.appliesTo!="undefined"){f=requestParams.appliesTo;}else{if(!Ext.isEmpty(Ext.getCmp("componentsDropDown1"))){f=Ext.getCmp("componentsDropDown1").getValue();
}}var j="/final/monitor/transactions.jsp?treeTitle=services&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=logon&isSite=false&aggregateTab=false&hasTransactions=false&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&site="+encodeURIComponent(requestParams.filterBy)+"&isSite=true&serviceName="+encodeURIComponent(requestParams.filterBy)+"&fromLayer=false&selectNode="+encodeURIComponent(requestParams.filterBy)+"&currentTab=logon&transTab=true&from=null&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=Logon_Sub_View&fromServiceHomePage=true&fromSerComboChange=true&appliesTo="+f+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.Ajax.request({url:j,timeout:280000,success:function(r){var v=r.responseText;if(!Ext.isEmpty(v)){var H=Ext.decode(v);this.siteName=H.HiddenFields.siteName;var x="Logon_Sub_View";var T=H.GridScreenLabels;var E=H.HiddenFields.compType;var Q=H.HiddenFields.compName;var L=H.HiddenFields.siteName;gLogonParam=H.logonParam;
var S=(!Ext.isEmpty(T["emulBtnLabel"]))?true:false;var y=(!Ext.isEmpty(T["webBtnLabel"]))?true:false;var O=(!Ext.isEmpty(H["isTabChanged"]))?true:false;var F=(!Ext.isEmpty(H["fromRefresh"]))?true:false;var e=H.HiddenFields.isLogonSimul;var t=H.HiddenFields.Refreshing;var B=H.HiddenFields.innerActiveTab;
var C=H.HiddenFields.timelineParam;var D="";if(!Ext.isEmpty(C)&&C!=null&&C!=undefined){D="&mode="+C.mode+"&time_line="+C.time_line+"&starthr="+C.starthr+"&endhr="+C.endhr+"&starttime="+C.starttime+"&endtime="+C.endtime+"&startmin="+C.startmin+"&endmin="+C.endmin;}B="logonSim";if(!Ext.isEmpty(H.HiddenFields)){serviceRefSortByLogon=H.HiddenFields.serviceRefSortByLogon;
serviceRefSortByLogonType=H.HiddenFields.serviceRefSortByLogonType;serviceRefSortByLogonId=H.HiddenFields.serviceRefSortByLogonId;}var q=H.ComponentList;var k=H.externalAgents;var o=H.componentListObj;var W=H.logonComponentList;var o=H.componentListObj;var n=false;if(H.componentListObj!=null&&H.componentListObj["options"].length==1){n=true;
singleComponentTypeValue=H.componentListObj["options"][0].value;singleComponentTypeName=H.componentListObj["options"][0].name;}var R="",U="",p="",G="",K="",u="",M="";var w=false;var P=true;var N,V,z;if(!Ext.isEmpty(o)&&o!=null&&o!=undefined&&(B=="logonSim"||(!S&&!y))){P=false;z=Ext.create("Ext.data.Store",{fields:["value","name","url"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:o});
G=o.label;u=o.selectedValue;selectedCompType=o.selectedValue;}if(!Ext.isEmpty(q)&&q!=null&&q!=undefined&&(B==null||B==undefined||B=="undefined")){N=Ext.create("Ext.data.Store",{fields:["value","name","comptype"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:q});w=false;R=q.label;U=q.selectedValue;
}else{if(!Ext.isEmpty(k)&&k!=null&&k!=undefined&&(B=="logonSim"||(!S&&!y))){extAgentData=k;N=Ext.create("Ext.data.Store",{fields:["value","name"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:k});w=false;R=extAgentData.label;U=k.selectedValue;selectedExtAgent=k.selectedValue;}else{w=true;
}}if(!Ext.isEmpty(W)&&W!=null&&W!=undefined&&(B=="logonSim"||(!S&&!y))){extSimData=W;W=W[selectedExtAgent];V=Ext.create("Ext.data.Store",{fields:["value","name","comptype"],proxy:{type:"memory",reader:{type:"json",root:"options"}},data:W});p=W.label;K=W.selectedValue;M=W.selectedOrgValue;refreshSimulation="";
}if(n){P=true;}var A="GOOD";A=H.GridScreenLabels.siteState;var s=true;if(!Ext.isEmpty(B)&&B!=null&&B!=undefined&&B=="logonSim"){s=false;}var I="USER EXPERIENCE - LOGON SIMULATIONS";if(singleComponentTypeName!=""&&singleComponentTypeName!=null&&singleComponentTypeName!=undefined){singleComponentTypeName=singleComponentTypeName.toUpperCase();
I="USER EXPERIENCE - "+singleComponentTypeName+" <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' class='iconLayerstack mouse' onclick=\"DashboardToLayers('"+Q+"','"+E+"','"+L+"','logonSim','Logon_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" /> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/>";
}else{I="USER EXPERIENCE - LOGON SIMULATIONS <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' class='iconLayerstack mouse' onclick=\"DashboardToLayers('"+Q+"','"+E+"','"+L+"','logonSim','Logon_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" /> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/>";
}curViewTab=B;g.add({xtype:"panel",ui:"eg-x-panel sepHeader",border:false,cls:"font_normal13 fontStyleRobot",style:{"background-color":"transparent !important","border":"none !important","box-shadow":"none"},id:"dashboard_view_header_id",title:I,listeners:{"afterrender":function(Y){var X=this;X.addTool({xtype:"container",id:"tabBarHeader1",layout:{type:"hbox",align:"right"},margin:"10 0 0 0",style:{"float":"right","border":"none !important"},items:[{xtype:"combo",id:"compTypeCombo",itemId:"compTypeCombo",labelAlign:"left",editable:false,store:z,hidden:P,labelSeparator:"",cls:"dropdown",displayField:"name",valueField:"value",url:"url",trigerAction:"all",fieldLabel:G+":",labelWidth:100,width:290,queryMode:"local",margin:"0 0 0 20",value:u,listeners:{"change":function(Z){RumAppFlow.app.getController("Main").onComponentTypeChange(this,"logonSim",L,u,x);
}}},{xtype:"combo",id:"componentCombo",itemId:"componentCombo",editable:false,margin:"0 0 0 20",hidden:w,store:N,cls:"dropdown",width:290,displayField:"name",valueField:"value",trigerAction:"all",fieldLabel:""+R,labelWidth:100,value:U,queryMode:"local",listeners:{"change":function(Z){RumAppFlow.app.getController("Main").onComponentChange(this,"logonSim",L,M,x);
}}},{xtype:"combo",id:"simulationCombo",itemId:"simulationCombo",editable:false,margin:"0 0 0 20",width:270,hidden:s,store:V,cls:"dropdown",displayField:"name",valueField:"value",trigerAction:"all",fieldLabel:""+p,labelWidth:70,value:M,queryMode:"local",listeners:{"change":function(Z){RumAppFlow.app.getController("Main").onSimulationChange(this,"logonSim",L,M,x);
}}},]});}}});var m="";if(M!=null&&M.indexOf(":NULL")>-1){m=M.substring(0,M.indexOf(":NULL"));}else{m=M;}var l="/final/monitor/comparisonLogonSimulator.jsp?treeTitle=LogonSimulation&monitorsBy=LogonSimulator&componentType=&selectedState=&simulationName="+m+"&externalAgent="+U+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+x+"&fromServiceDashboard=false&servicename="+L+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+f+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&isLogonType=true";
if(gLogonParam!=null&&gLogonParam!=""&&gLogonParam!=undefined){l="/final/monitor/comparisonLogonSimulator.jsp?"+gLogonParam+"&componentType=&selectedState=&simulationName="+m+"&externalAgent="+U+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name="+x+"&fromServiceDashboard=false&servicename="+L+"&fromSerComboChange=true&fromServiceHomePage=true&appliesTo="+f+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&isLogonType=true";
}var J="/final/monitor/simulationGraph.jsp?treeTitle=services&site=NULL&mHost="+U+"&simulationName="+M;Ext.Ajax.request({url:J,scope:this,success:function(Y){var Z=Y.responseText;if(!Ext.isEmpty(Z)){var X=Ext.decode(Z);if(X!=null&&X!=undefined){g.add({xtype:"container",margin:0,id:"dashboard_container_grid",bodyPadding:0,padding:0,border:false,frame:false,listeners:{"afterrender":function(ab){var aa=this;
aa.add({xtype:"generalMeasuresGridPanel",cls:"gridHeadercenter iconGrid",itemId:"logonSimualtion",searchBoxCombo:false,margin:0,padding:3,id:"perPanel",height:185,frame:false,border:true,layout:{type:"vbox",align:"stretch"},flex:1,screenLabelPath:"monitor.Dashboard",url:l,listeners:{"afterrender":function(ac){this.loadTab(ac.url,null,null,null,null,true,"rumAppFlow");
}}});}}},{xtype:"container",margin:"0 0 0 0",id:"dashboard_container_chart",bodyPadding:0,padding:0,layout:"fit",border:false,frame:false,listeners:{"afterrender":function(ab){var aa=this;aa.add({xtype:"transactionschartpanel",id:"transactionschartpanelid",height:(Ext.getBody().getViewSize().height-287),jsonData:X,margin:"10 1 0 0",padding:0,border:false,isNotAreaChart:false});
}}});}}},failure:function(){}});}},failure:function(){}});}}});},addemuTransPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",layout:"fit",listeners:{"afterrender":function(g){var f=this;var h="/final/monitor/transactions.jsp?treeTitle=services&1=1&&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&isSite=false&aggregateTab=false&hasTransactions=false&hasEmulatedTransactions=true&fromHomepage=&hasLogonSimulations=false&site="+encodeURIComponent(requestParams.filterBy)+"&isSite=true&serviceName="+encodeURIComponent(requestParams.filterBy)+"&fromLayer=false&selectNode="+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=transactions&transTab=true&from=null&treeOpen=false&openNode=Services&refresh=true&action=service&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromCitrix=&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=Rum_Dashboard&view_name=Emulated_Transaction_Sub_View&fromServiceHomePage=true&fromSerComboChange=true&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.Ajax.request({url:h,timeout:280000,success:function(j){var n=j.responseText;if(!Ext.isEmpty(n)){var l=Ext.decode(n);this.siteName=l.HiddenFields.siteName;var m=l.HiddenFields.compType;var k=l.HiddenFields.compName;var p=l.HiddenFields.siteName;var o=l.HiddenFields.isWebTrans;var e="NULL";if(o=="true"){e=requestParams.filterBy;
}f.add({xtype:"panel",ui:"eg-x-panel sepHeader",border:false,style:{"background-color":"transparent !important","border":"none !important","box-shadow":"none"},id:"EnumHeader",layout:"fit",title:"<p style='font-size:13px'>USER EXPERIENCE - FULL SESSION SIMULATION <img style='position: relative;left: 6px;top: 3px;' src='/final/images/clear.png' data-qtip='Layer Model' onclick=\"DashboardToLayers('"+k+"','"+m+"','"+p+"','emulated','Emulated_Transaction_Sub_View','"+requestParams.iniName+"','"+requestParams.user_name+"')\" class='iconLayerstack mouse'/> <img style='position: relative;left: 12px;top: 3px;' src='/final/images/clear.png' class='iconTopology mouse' data-qtip='Topology' onclick=\"loadView('topology_view')\"/></p>",listeners:{"afterrender":function(r){var q=this;
q.add({xtype:"container",margin:0,id:"sessionSimTopology",bodyPadding:0,padding:0,autoScroll:false,scroll:false,border:false,frame:false,layout:"fit",height:"100%",listeners:{"resize":function(s){s.setHeight(Ext.getBody().getViewSize().height-70);},"afterrender":function(s){Ext.EventManager.onWindowResize(function(){try{var u=Ext.get("sessionSimTopology").dom.src;
Ext.get("sessionSimTopology").dom.src=u;}catch(t){}});}},autoEl:{tag:"iframe",name:"perMainIframe",id:"sessionSimTopologyIframe",frameborder:"0",style:{"top":"0px","left":"0px"},marginLeft:0,marginTop:0,height:"100%",src:"/final/monitor/sessionSimulation.jsp?compName="+k+"&site="+e+"&compType="+m+"&serviceName="+requestParams.filterBy+"&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&appliesTo="+requestParams.appliesTo+"&filterBy="+encodeURIComponent(requestParams.filterBy)+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&isRum=true"}});
}}});}}});}}});},addMetricsPage:function(d,b){var f=this,c=Ext.getCmp("appflow_ground");var e=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){e=rumPageParams.serviceCombo[0].selectedRum;}var a="";if(Ext.getCmp("nickName")!=null&&Ext.getCmp("nickName")!=undefined&&Ext.getCmp("nickName").getValue()!=null&&Ext.getCmp("nickName").getValue()!="null"){a=Ext.getCmp("nickName").getValue();
}if(componentNameSearch!=null&&componentNameSearch!="null"&&componentNameSearch!=undefined&&componentNameSearch!="undefined"){a=componentNameSearch;}c.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(h){var g=this;g.add({xtype:"container",ui:"eg-container",margin:"0 0 0 0",id:"metrics_container",bodyPadding:0,padding:2,autoScroll:false,scroll:false,border:false,frame:false,listeners:{"afterrender":function(m){var k=this;
var l=requestParams.filter;if(l=="Service"){l="services";}var j="/final/monitor/comparisonComponent.jsp?treeTitle=rumcomponents&selectedState=&componentNameSearch="+a+"&fromPageView=CitrixDashboard&viewPageTitle=Components&action=component&fromHomepage=&userName=&filterBy="+l+"&subFilter="+requestParams.filterBy+"&timeline=null&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=metrics_View&fromServiceHomePage=true&appliesTo="+requestParams.appliesTo+"&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+e+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&isRumComp=true";
if(selectedCompType!=null&&selectedCompType!="null"&&selectedCompType!=undefined&&selectedCompType!="undefined"&&selectedCompType!=""){j=j+"&componentType="+selectedCompType;}var n=false;if(requestParams.filter.toLowerCase().indexOf("component")>-1){n=true;}k.add({xtype:"generalMeasuresGridPanel",id:"perPanel",itemId:"components",margin:"0 0 0 0",padding:"0 0 0 0",frame:false,border:true,style:{"z-index":"0"},layout:{type:"vbox",align:"stretch"},disableCombo:true,disableCompTypeCombo:n,screenLabelPath:"monitor.CitrixDashboard",url:j,listeners:{"afterrender":function(o){this.loadTab(o.url,"","","","","","rumAppFlowComponent");
},"resize":function(o){o.setHeight(Ext.getBody().getViewSize().height-70);}}});}}});}}});},addaggregatesPage:function(c,a){var e=this,b=Ext.getCmp("appflow_ground");var d=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){d=rumPageParams.serviceCombo[0].selectedRum;}b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(g){var f=this;
f.add({xtype:"container",ui:"eg-container",margin:"-10 0 0 0",id:"aggregate_container",bodyPadding:0,autoScroll:false,scroll:false,border:false,frame:false,listeners:{"afterrender":function(h){f.add({xtype:"dashboardgeneralmeasuresaggregatepanel",id:"systemViewAggregatesgridpanel",cls:"gridHeadercenter",itemId:"aggregates",margin:"10 0 0 0",padding:0,frame:false,border:false,scroll:true,autoScroll:true,height:"100%",style:{"overflow":"auto","background":"#fff"},screenLabelPath:"monitor.serviceDashboard",url:"/final/monitor/serviceAggregate.jsp?treeTitle=rumaggregate&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=Aggregates&isSite=true&aggregateTab=true&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&refresh=true&action=Aggregates&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromRum=true&iniName="+requestParams.iniName+"&user_name="+requestParams.user_name+"&dashboard_name=rum_Dashboard&view_name=aggregates_View&fromServiceHomePage=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+d+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup,listeners:{"resize":function(j){j.setHeight(Ext.getBody().getViewSize().height-65);
},"afterrender":function(j){this.loadTab(j.url,"rumAppFlowAggregate");},}});}}});}}});},addsystemsPage:function(c,a){SysComponentType="";var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(g){var f=this;f.add({xtype:"container",ui:"eg-container",margin:"0 0 0 0",id:"system_container",bodyPadding:0,autoScroll:false,scroll:false,border:false,frame:false,listeners:{"afterrender":function(l){var j=this;
var k=requestParams.filter;if(k=="Service"){k="services";}var m=false;if(requestParams.filter.toLowerCase().indexOf("component")>-1){m=true;}var h=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){h=rumPageParams.serviceCombo[0].selectedRum;}j.add({xtype:"dashboardgeneralmeasuresgridpanel",id:"systemViewMeasuresgridpanel",layout:"fit",cls:"gridHeadercenter",itemId:"system",margin:"0 0 0 0",padding:10,frame:false,border:true,screenLabelPath:"monitor.serviceDashboard",url:"/final/monitor/serviceSystem.jsp?treeTitle=services&selectNode=Service$cap$"+encodeURIComponent(requestParams.filterBy)+"&selectedParam="+encodeURIComponent(requestParams.filterBy)+"&currentTab=Systems&isSite=true&aggregateTab=false&hasTransactions=true&hasEmulatedTransactions=false&fromHomepage=&hasLogonSimulations=true&refresh=true&action=Systems&topoSegment="+encodeURIComponent(requestParams.filterBy)+"&isfromRum=true&iniName="+requestParams.iniName+"&hasRUM=true&user_name="+requestParams.user_name+"&dashboard_name=RUM_Dashboard&view_name=systems_View&fromServiceHomePage=true&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone+"&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&appliesTo="+h+"&selectedRum="+h+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&componentType="+selectedSystemCompType,listeners:{"resize":function(e){e.setHeight(Ext.getBody().getViewSize().height-75);
},"afterrender":function(e){this.loadTab(e.url,"rumAppFlowSystem");}}});}}});}}});},addTopologyPage:function(c,a){var e=this,b=Ext.getCmp("appflow_ground");var d=titleApplies;if(rumPageParams.serviceCombo[0].rumcomboNeeded){d=rumPageParams.serviceCombo[0].selectedRum;}b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(g){var f=this;
f.add({xtype:"panel",ui:"eg-x-panel sepHeader",border:false,style:{"background-color":"transparent !important","box-shadow":"none !important"},id:"topology_header_id",title:'<p style="font-size:13px;position:relative;top:-2px">TOPOLOGY</p>',listeners:{"afterrender":function(o){var l=this;var n="";var j=[];
var p=false;var m="";if(!Ext.isEmpty(ifAssSeg)&&ifAssSeg!=null&&ifAssSeg!=undefined){if(ifAssSeg.indexOf(",")>0){ifAssSeg=ifAssSeg.trim();p=true;assSeg=ifAssSeg.split(",");for(var k=0;k<assSeg.length;k++){var h=assSeg[k];if(assSeg[k].toLowerCase()=="independent_servers"){h="Independent Servers";}j[k]={"state":segsWithState[k].state,"name":h,"value":assSeg[k]};
}m=ifAssSeg.substring(0,ifAssSeg.indexOf(","));}else{if(!Ext.isEmpty(ifAssSeg)&&ifAssSeg!=null&&ifAssSeg!=undefined){m=ifAssSeg;}}}if(!Ext.isEmpty(selectedSegmentName)&&selectedSegmentName!=null&&selectedSegmentName!=undefined&&selectedSegmentName!="null"&&selectedSegmentName!="undefined"){m=selectedSegmentName;
}if(p){l.addTool({xtype:"combo",cls:"dropdown",id:"stateCombo",name:"stateCombo",store:Ext.create("Ext.data.Store",{fields:["state","name","value"],data:j}),editable:false,labelWidth:60,width:305,margin:"0 47 0 15",displayField:"name",valueField:"value",value:m,fieldLabel:"Segment",listeners:{"render":function(){$("#stateCombo-inputEl").addClass("state_"+ifAssSegState);
},"change":function(t,q){var s="/final/monitor/EgServiceTopologyD3JS.jsp?physical_topology=0&type=monitor&treeFlag=null&zoneName=&currentTab=null&aggregateTab=null&openNode=null&treeFlag=null&fromHomepage=&serviceGroup=null&action=service&serviceState=service20New_"+ifAssSegState+"&service="+requestParams.filterBy+"&segment="+q+"&site="+requestParams.filterBy+"&isfromRum=true&dashboard_name=rum_Dashboard&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+d+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&activeView=topology&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
Ext.get("serTopologyMainCon").dom.src=s;for(var r=0;r<segsWithState.length;r++){var u=segsWithState[r].name;console.log("selectedSeg rum -> ",u);if(u==q){$("#stateCombo-inputEl").removeClass("state_GOOD");$("#stateCombo-inputEl").removeClass("state_HIGH");$("#stateCombo-inputEl").removeClass("state_INTERMEDIATE");
$("#stateCombo-inputEl").removeClass("state_LOW");$("#stateCombo-inputEl").removeClass("state_UNKNOWN");$("#stateCombo-inputEl").addClass("state_"+segsWithState[r].state);break;}}}},tpl:Ext.create("Ext.XTemplate",'<ul style="white-space:nowrap">','<tpl for=".">','<li class="x-boundlist-item"><img src="/final/images/spacer.gif" style="padding-left:18px;vertical-align:middle" class="state_{state}"/>{name}</li>',"</tpl>","</ul>")});
}}}},{xtype:"container",ui:"eg-container",margin:0,id:"topology_container",bodyPadding:0,padding:0,border:false,frame:false,layout:"fit",height:506,listeners:{"resize":function(h){h.setHeight(Ext.getBody().getViewSize().height-85);},"afterrender":function(l){var j=this;var k="";if(ifAssSeg.indexOf(",")>-1){k=ifAssSeg.substring(0,ifAssSeg.indexOf(","));
}else{k=ifAssSeg;}if(!Ext.isEmpty(selectedSegmentName)&&selectedSegmentName!=null&&selectedSegmentName!=undefined&&selectedSegmentName!="null"&&selectedSegmentName!="undefined"){k=selectedSegmentName;}var h="/final/monitor/EgServiceTopologyD3JS.jsp?physical_topology=0&type=monitor&treeFlag=null&zoneName=&currentTab=null&aggregateTab=null&openNode=null&treeFlag=null&fromHomepage=&serviceGroup=null&iszoneName=&isFromZone=null&parentZone=null&action=service&serviceState=service20New_"+ifAssSegState+"&service="+requestParams.filterBy+"&segment="+k+"&site="+requestParams.filterBy+"&isfromRum=true&dashboard_name=rum_Dashboard&filter=service&filterBy="+encodeURIComponent(requestParams.filterBy)+"&selectedRum="+d+"&isFromServiceMenu="+isFromServiceMenu+"&isFromZoneMain="+isFromZoneMain+"&isFromZoneMenu="+isFromZoneMenu+"&isFromServiceGroup="+isFromServiceGroup+"&activeView=topology&isFromZone="+backParams.isFromZone+"&iszoneName="+backParams.iszoneName+"&parentZone="+backParams.parentZone;
j.add({xtype:"container",margin:0,id:"serTopologyMainCon",bodyPadding:0,padding:0,autoScroll:false,scroll:false,border:false,frame:false,layout:"fit",autoEl:{tag:"iframe",name:"perMainIframe",id:"serTopologyIframe",frameborder:"0",style:{"top":"0px","left":"0px"},marginLeft:0,marginTop:0,height:"100%",src:h}});
}}});}},items:[]});},addOverviewGeoPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(h){var g=this;var f=c.loadViewDetails;g.add({xtype:"overviewdetails",id:"overviewdetails_Static_Geo_view",data:f,margin:"0 2 2 0",collapsible:true},{xtype:"container",flex:1,height:450,margin:"10 2 10 0",layout:{type:"hbox",align:"stretch"},listeners:{"afterrender":function(k){var j=this;
j.add({xtype:"container",cls:"geopan-border",ui:"eg-container",margin:"0 10 2 0",flex:0.75,layout:{type:"hbox",align:"stretch"},listeners:{"afterrender":function(m){var l=this;l.add({xtype:"panel",flex:0.7,layout:{type:"vbox",align:"stretch"},items:[{xtype:"header",id:"geo_map_header_id",padding:"0 5 5 0",height:35,},{xtype:"geostaticpanel",mapStyle:strRumSkin=="Dark"?"dark":"light",jsonData:c.loadViewDetails[1].Application_Block_1_Value[0][0],id:"overview_Static_map_id",flex:0.5,margin:"0 1 1 0",zoom:2,width:200,height:500,mapType:"styled_map",center:{lat:40.378,lng:10.4359},infoBoxArray:[],markerArray:[],feauturesArray:[],stateArray:[],}]},{xtype:"geomapdetails",id:"static_geo_id_mapdetails",hidden:true,flex:0.3,jsonData:c.loadViewDetails[1].Application_Block_1_Value[0][0],});
}},items:[]},{xtype:"container",layout:{type:"vbox",align:"stretch"},width:300,listeners:{"afterrender":function(m){var l=this;l.add({xtype:"responsetimepiechart",id:"responsetimepiechart_Static_Geo",margin:"0 2 2 0",legendPosition:"bottom",legendLayout:"horizontal",height:235,chartMarginTop:0,chartMarginLeft:0,chartMarginBottom:50,chartMarginRight:0,legendOffset:-10,chartLegendUseHTML:true,formatLegend:18,legendContainerWidth:300,Jdata:c.loadViewDetails[1].Application_Block_1_Value[0][1]},{xtype:"rumappflowgrid",margin:"8 2 2 0",flex:1,id:"gridSlowpagegroups_Static_Geo_view",gridData:c.loadViewDetails[1].Application_Block_1_Value[0][2]});
}},items:[]});}},items:[]});}},items:[]});},addPageViewsPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",layout:{type:"vbox",align:"stretch"},listeners:{"afterrender":function(h){var g=this;var f=c.loadViewDetails;g.add({xtype:"overviewdetails",id:"overviewdetails_PaView_view",data:f,margin:"0 2 2 0",collapsible:false},{xtype:"pageviewpanel",id:"pageviewpanel_PaView_Id",margin:"10 2 2 0",flex:1,data:f[1].Application_Block_1_Value[0].data,fullData:f[1].Application_Block_1_Value[0],layout:{type:"vbox",align:"stretch"},scroll:true,autoScroll:true});
}},items:[]});},addOmniChannelPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",layout:{type:"vbox",align:"stretch"},listeners:{"afterrender":function(h){var f=c.loadViewDetails;var g=this;g.add({xtype:"overviewdetails",id:"overviewdetails_Omni_view",data:f,margin:"0 2 2 0",collapsible:false},{xtype:"omnichannelmainpanel",id:"omnichannelmainpanel_omni_Id",data:f[1].Application_Block_1_Value[0],margin:"10 2 2 0"});
}},items:[]});},addResponseTBPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(h){var f=c.loadViewDetails;var g=this;g.add({xtype:"overviewdetails",id:"overviewdetails_Rtb_view",data:f,collapsible:false},{xtype:"appflowindetail",margin:"10 2 10 0",showDetails:true,height:470,listeners:{"afterrender":function(k){var j=this;
j.add({xtype:"container",layout:{type:"hbox",align:"stretch"},items:[{xtype:"container",flex:1,layout:{type:"hbox"},items:[{xtype:"label",margin:"2 10 0 0",cls:"b_label",text:"Response Time Breakup"},{xtype:"combo",id:"appflowCombo_Id",cls:"dropdown",width:115,margin:"0 10 0 0",displayField:"name",valueField:"value",queryMode:"local",store:Ext.create("Ext.data.Store",{data:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.combo_arr,fields:["name","value"],}),value:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.selectedValue,listeners:{select:function(){RumAppFlow.app.getController("Main").changeTopology();
}},},{xtype:"uribox",id:"appuriBox_Id",data:c.loadViewDetails[1].Application_Block_1_Value[0].uriArray}]},{xtype:"container",flex:1,padding:"0 15 10 0",layout:{type:"hbox",pack:"end"},items:[{xtype:"button",id:"maxButton",cls:"iconMaximize",style:{"border":"none !important","margin":"4px 0px 0px 10px !important"},hidden:false,listeners:{"click":function(){var m="none";
if(strRumSkin=="Dark"){m="#404040";}var e=Ext.create("RumAppFlow.view.AppFlowTopology",{id:"appflowTopology_idE",ifRTB:false,style:{"padding-left":"5px !important","background":m},expandedL:true,topoData:c.loadViewDetails[1].Application_Block_1_Value[0].topo,store:Ext.create("Ext.data.Store",{fields:[{name:"devices"},{name:"url"},{name:"group_url"},{name:"browser"},{name:"request"},{name:"response"},{name:"network_connection"},{name:"content_download"},{name:"server_time"},{name:"showError"},],data:c.loadViewDetails[1].Application_Block_1_Value[0].topo})});
var l={xtype:"container",layout:"hbox",items:[{xtype:"combo",id:"appflowCombo_IdE",cls:"dropdown",width:115,margin:"5 10 5 0",displayField:"name",valueField:"value",queryMode:"local",store:Ext.create("Ext.data.Store",{data:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.combo_arr,fields:["name","value"],}),value:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.selectedValue,listeners:{select:function(){RumAppFlow.app.getController("Main").changeTopologyEx();
}},},{xtype:"uribox",id:"appuriBox_IdE",margin:"5 10 5 0",expandedL:true,data:c.loadViewDetails[1].Application_Block_1_Value[0].uriArray}]};var n=Ext.create("Ext.window.Window",{id:"expanded",resizable:false,width:"95%",draggable:true,ghost:false,flex:1,layout:{type:"fit",align:"stretch"},modal:true,constrain:true,renderTo:Ext.getBody(),height:"95%",autoDestroy:true,closeAction:"destroy",draggable:false,header:{items:[{xtype:"container",html:"Response Time Breakup",cls:"f14-bold header",style:{"margin":"0px 10px 0px 0px","line-height":"1.5em","text-transform":"uppercase",}},l,]},items:[e],listeners:{show:function(p){if(this.modal){var q=Ext.dom.Query.select(".x-mask");
var o=Ext.fly(q[q.length-1]);o.addCls("windowModal");}},hide:function(p){if(this.modal){var q=Ext.dom.Query.select(".x-mask");var o=Ext.fly(q[q.length-1]);o.removeCls("windowModal");}},afterrender:function(){Ext.EventManager.onWindowResize(function(){var o=this;o.center();},this);}}}).show();}}}]}]},{xtype:"container",id:"appflowtopology_ground",listeners:{afterrender:function(m){if(!this.findParentByType("container").showDetails){var l=m.down("#appflowbreakup");
m.remove(l,false);}var e=this;e.add({xtype:"appflowtopology",id:"appflowTopology_id",padding:"15 0 15 0",ifRTB:true,store:Ext.create("Ext.data.Store",{fields:[{name:"devices"},{name:"url"},{name:"group_url"},{name:"browser"},{name:"request"},{name:"response"},{name:"contentData"},{name:"defaultdata"},{name:"networkData"},{name:"network_connection"},{name:"content_download"},{name:"server_time"},{name:"showError"},],data:c.loadViewDetails[1].Application_Block_1_Value[0].topo})},{xtype:"appflowbreakup",itemId:"appflowbreakup",id:"appflowbreakupID",flex:0.3,listeners:{afterrender:function(o){var n=this;
n.updateDetails(c.loadViewDetails[1].Application_Block_1_Value[0].topo.defaultdata);}}});}},flex:1,layout:{type:"hbox",align:"stretch"},items:[]});}},items:[]},{xtype:"container",padding:0,margin:0,height:235,layout:{type:"hbox",align:"stretch"},listeners:{"afterrender":function(j){var e=this;e.add({xtype:"responsetimepiechart",id:"responsetimepiechart_Rtb",legendPosition:"right",legendLayout:"horizontal",flex:1,chartMarginTop:10,chartMarginRight:10,chartMarginLeft:-350,chartMarginBottom:10,chartLegendUseHTML:true,legendOffset:15,legendWidth:185,legendContainerWidth:370,Jdata:c.loadViewDetails[2].Application_Block_4_Value[0]},{xtype:"rumappflowgrid",id:"gridSlowpagegroups_rtb_view",gridData:c.loadViewDetails[3].Application_Block_5_Value});
}},items:[]});}},items:[]});b.doLayout();},addErrorsPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(h){var f=c.loadViewDetails;var g=this;g.add({xtype:"overviewdetails",id:"overviewdetails_Errors_view",data:f,collapsible:false},{xtype:"errorview",id:"page_Errors_view",margin:"10 0 0 0",data:f});
if(!Ext.isEmpty(window.parent.isTvMode)){Ext.getCmp("page_Errors_view").setHeight(1000);}}},items:[]});},addUsagePage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");b.add({xtype:"container",id:"cardID",listeners:{"afterrender":function(k){var f=c.loadViewDetails;var j=[];for(var g=1;g<f.length;
g++){j[g-1]=f[g];}var h=this;h.add({xtype:"overviewdetails",id:"overviewdetails_Usage_view",data:f,collapsible:false},{xtype:"chartparentpanel",id:"chartparentpanel_Usage_view",data:j,});if(!Ext.isEmpty(window.parent.isTvMode)){Ext.getCmp("chartparentpanel_Usage_view").setHeight(1000);}}},items:[]});
},addOverviewPage:function(c,a){var d=this,b=Ext.getCmp("appflow_ground");if(!Ext.isEmpty(d.getOverviewdetails())){Ext.get(d.getOverviewdetails().getEl().id).stopAnimation();}b.add({xtype:"container",id:"cardID",layout:{type:"vbox",align:"stretch"},listeners:{"afterrender":function(g){var f=this;f.add({xtype:"overviewdetails",id:"overviewdetails_Overview_view",collapsible:false,data:c.loadViewDetails},{xtype:"container",flex:1,margin:"10 0 0 0",padding:"0 0 0 0",layout:{type:"hbox",align:"stretch"},listeners:{"afterrender":function(j){var h=this;
h.add({xtype:"appflowindetail",showDetails:false,margin:"0 0 2 0",items:[{xtype:"container",layout:{type:"hbox",align:"stretch"},items:[{xtype:"container",flex:1,layout:{type:"hbox"},items:[{xtype:"label",margin:"2 10 0 0",cls:"b_label",text:"Response Time Breakup",},{xtype:"combo",id:"appflowCombo_Id",cls:"dropdown",width:115,margin:"0 10 0 0",displayField:"name",valueField:"value",queryMode:"local",store:Ext.create("Ext.data.Store",{data:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.combo_arr,fields:["name","value"],}),value:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.selectedValue,listeners:{select:function(){RumAppFlow.app.getController("Main").changeTopology();
}},},{xtype:"uribox",id:"appuriBox_Id",data:c.loadViewDetails[1].Application_Block_1_Value[0].uriArray}]},{xtype:"container",flex:0.5,padding:"0 15 10 0",layout:{type:"hbox",pack:"end"},items:[{xtype:"button",id:"maxButton",cls:"iconMaximize",style:{"border":"none !important","margin":"4px 0px 0px 10px !important"},hidden:false,listeners:{"click":function(){var l="none";
if(strRumSkin=="Dark"){l="#404040";}var e=Ext.create("RumAppFlow.view.AppFlowTopology",{id:"appflowTopology_idE",ifRTB:false,style:{"padding-left":"5px !important","background":l},expandedL:true,topoData:c.loadViewDetails[1].Application_Block_1_Value[0].topo,store:Ext.create("Ext.data.Store",{fields:[{name:"devices"},{name:"url"},{name:"group_url"},{name:"browser"},{name:"request"},{name:"response"},{name:"network_connection"},{name:"content_download"},{name:"server_time"},{name:"showError"},],data:c.loadViewDetails[1].Application_Block_1_Value[0].topo})});
var k={xtype:"container",layout:"hbox",items:[{xtype:"combo",id:"appflowCombo_IdE",cls:"dropdown",width:115,margin:"5 10 5 0",displayField:"name",valueField:"value",queryMode:"local",store:Ext.create("Ext.data.Store",{data:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.combo_arr,fields:["name","value"],}),value:c.loadViewDetails[1].Application_Block_1_Value[0].comboObj.selectedValue,listeners:{select:function(){RumAppFlow.app.getController("Main").changeTopologyEx();
}},},{xtype:"uribox",id:"appuriBox_IdE",margin:"5 10 5 0",expandedL:true,data:c.loadViewDetails[1].Application_Block_1_Value[0].uriArray}]};var m=Ext.create("Ext.window.Window",{id:"expanded",resizable:false,width:"95%",draggable:true,ghost:false,flex:1,layout:{type:"fit",align:"stretch"},modal:true,constrain:true,renderTo:Ext.getBody(),height:"95%",autoDestroy:true,closeAction:"destroy",draggable:false,header:{items:[{xtype:"container",html:"Response Time Breakup",cls:"f14-bold header",style:{"margin":"0px 10px 0px 0px","line-height":"1.5em","text-transform":"uppercase",}},k,]},items:[e],listeners:{show:function(o){if(this.modal){var p=Ext.dom.Query.select(".x-mask");
var n=Ext.fly(p[p.length-1]);n.addCls("windowModal");}},hide:function(o){if(this.modal){var p=Ext.dom.Query.select(".x-mask");var n=Ext.fly(p[p.length-1]);n.removeCls("windowModal");}},afterrender:function(){Ext.EventManager.onWindowResize(function(){var n=this;n.center();},this);}}}).show();}}}]}]},{xtype:"appflowtopology",id:"appflowTopology_id",padding:"0 5 0 0",topoData:c.loadViewDetails[1].Application_Block_1_Value[0].topo,store:Ext.create("Ext.data.Store",{fields:[{name:"devices"},{name:"url"},{name:"group_url"},{name:"browser"},{name:"request"},{name:"response"},{name:"network_connection"},{name:"content_download"},{name:"server_time"},{name:"showError"},],data:c.loadViewDetails[1].Application_Block_1_Value[0].topo})}],flex:1,},{xtype:"container",margin:"0 0 0 0",layout:{type:"vbox",align:"stretch"},width:310,margin:"0 0 0 10",listeners:{"afterrender":function(l){var k=this;
k.add({xtype:"rumappflowgrid",id:"gridSlowCountries_Overview_view",flex:1,margin:"0 2 10 0",title:c.loadViewDetails[2].Application_Block_2_Value[0].title,gridData:c.loadViewDetails[2].Application_Block_2_Value},{xtype:"rumappflowgrid",id:"gridSlowpageGroups_Overview_view",title:c.loadViewDetails[3].Application_Block_3_Value[0].title,gridData:c.loadViewDetails[3].Application_Block_3_Value,margin:"0 2 2 0",flex:1});
}}});}},items:[]});}},});b.doLayout();},addPage:function(a){var k=this,d=Ext.getCmp("appflow_ground");Ext.getCmp("settingIconId").hide();for(var f=0;f<Ext.getCmp("appflow_ground").items.items[0].items.items.length;f++){Ext.destroy(d.items.items[0].items.items[f]);}d.removeAll(true);var e=this.getDefaultParams();
e+="&action=loadViewData";var h=Ext.getCmp("rumappmenu_view_id");var b;var c;var g;var l=false;if(h!=undefined&&h!=null){b=h.forceClickKey;c=h.dispInfo;g=h.cnCombo;if(b!=undefined&&b!=null&&g!=undefined&&g!=null){e+="&isRefresh=true";e+="&viewName=region";e+="&filterNameRaw="+c;e+="&filterName="+b;l=true;
}}var j="/final/servlet/com.eg.EgCommonDashboardController?"+e;Ext.getBody().mask("Loading...");Ext.Ajax.request({url:j,method:"POST",scope:this,timeout:280000,success:function(m,p){var r=m.responseText;var n=Ext.decode(r);if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="overview_geo_view"){k.addOverviewGeoPage(n,d);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="overview_view"){k.addOverviewPage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="usage"){k.addUsagePage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="errors"){k.addErrorsPage(n,d);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="response_time_breakup_view"){k.addResponseTBPage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="omni_channel"){k.addOmniChannelPage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="page_views"){k.addPageViewsPage(n,d);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="geo_view"){k.addGeoPage(n,d);if(l){var t=Ext.getCmp("countryComboId");var q=Ext.getCmp("regionComboId");t.getStore().loadRawData(g);t.setValue(b);t.show();var o=n.loadViewDetails[1].Application_Block_1_Value[0][0].regionArray;
var s=n.loadViewDetails[1].Application_Block_1_Value[0][0].selectedRegion;q.getStore().loadRawData(o);q.setValue(s);q.show();h.dispInfo=null;h.forceClickKey=null;h.cnCombo=null;}}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="topology_view"){k.addTopologyPage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="metrics_View"){k.addMetricsPage(n,d);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="Web_Transaction_Sub_View"){k.addwebTransPage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="Emulated_Transaction_Sub_View"){k.addemuTransPage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="Logon_Sub_View"){k.addlogonTransPage(n,d);
}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="aggregates_View"){k.addaggregatesPage(n,d);}else{if(!Ext.isEmpty(requestParams.selectedTab)&&requestParams.selectedTab=="systems_View"){Ext.getCmp("settingIconId").show();k.addsystemsPage(n,d);}}}}}}}}}}}}}}}Ext.getBody().unmask();
k.autoScrollTvMode("appflow_ground");},failure:function(){Ext.getBody().unmask();}});},autoScrollTvMode:function(g){if(!Ext.isEmpty(window.parent.isTvMode)){$.fn.hasScrollBar=function(){return this.get(0).scrollHeight-40>this.height();};if(window.parent.isTvMode){var e=window.parent.Ext.getCmp("playBtn").ifScroll=true;
var k=Ext.get(g).dom.scrollHeight-Ext.get(g).dom.offsetHeight;var h=k*100;var d=k*70;var l=$("#"+g).hasScrollBar();var a=false;var j="";var c=function(){var n=window.parent.Ext.getCmp("tvmode").sliderAction;if(n=="pause"){Ext.get(g).getActiveAnimation().paused=false;a=true;}else{clearTimeout(j);Ext.get(g).getActiveAnimation().paused=true;
window.parent.Ext.getCmp("tvmode").sliderObj.pause();a=false;}};if(l){var f=Ext.get(g).getActiveAnimation().paused=true;window.parent.Ext.getCmp("tvmode").sliderObj.pause();Ext.get(g).scroll("b",h,{duration:d,listeners:{beforeanimate:function(o,n){isKioskModeScrollInProgress=true;},afteranimate:function(p,o,n){Ext.get(g).stopAnimation();
Ext.defer(function(){isKioskModeScrollInProgress=false;window.parent.Ext.getCmp("tvmode").sliderObj.play();if(!Ext.isEmpty(m)){m.destroy();}},1000);window.parent.Ext.getCmp("playBtn").ifScroll=false;}}},{scope:Ext.get(g)});}else{window.parent.Ext.getCmp("playBtn").ifScroll=false;window.parent.Ext.getCmp("tvmode").sliderObj.pause();
if(a==true){clearTimeout(j);window.parent.Ext.getCmp("tvmode").sliderObj.pause();}else{j=Ext.defer(function(){window.parent.Ext.getCmp("tvmode").sliderObj.play();},window.parent.Ext.getCmp("tvmode").getTimeFrequency);}}var m=new Ext.util.TaskRunner();var b=m.start({run:c,interval:1000});}}},doClick:function(b,a){},overviewdetailsRender:function(){var b=this;
var a=Ext.ComponentQuery.query('button[itemId="overviewtoggle"]')[0];if(b.getOverviewdetails().collapsible){a.pressed=true;Ext.defer(function(){b.toggleOverView(a,true);},500);}else{a.pressed=false;b.toggleOverView(a,false);}},toggleOverView:function(a,b,e){var g=this,j=Ext.get(g.getOverviewdetails().el.id),f=60,c=160,k=250,d=Ext.get(g.getOverviewdetails().el.id).select(".s_box"),h=Ext.get(g.getOverviewdetails().el.id).select(".b_box");
if(b){a.setIconCls("toggle_p");g.getOverviewdetails().suspendLayouts();h.setStyle("display","none");d.setStyle("display","block");j.animate({duration:k,to:{height:f},listeners:{beforeanimate:function(){h.animate({duration:200,to:{opacity:0}});d.animate({duration:300,to:{opacity:1}});},afteranimate:function(){g.getOverviewdetails().setHeight(f);
d.stopAnimation();h.stopAnimation();}}});g.getOverviewdetails().resumeLayouts(true);}else{a.setIconCls("toggle_m");g.getOverviewdetails().suspendLayouts();h.setStyle("display","block");d.setStyle("display","none");j.animate({duration:k,to:{height:c},listeners:{beforeanimate:function(){d.animate({duration:300,to:{opacity:0}});
h.animate({duration:200,to:{opacity:1}});g.getOverviewdetails().setHeight(c);},afteranimate:function(){g.getOverviewdetails().setHeight(c);d.stopAnimation();h.stopAnimation();}}});g.getOverviewdetails().resumeLayouts(true);}this.getMain().doComponentLayout();},overviewdetailsRenderforRefresh:function(){var b=this;
var a=Ext.ComponentQuery.query('button[itemId="overviewtoggle"]')[0];try{if(Ext.isEmpty(a.pressed)){a.pressed=true;}b.toggleOverViewRefresh(a,a.pressed);}catch(c){}},toggleOverViewRefresh:function(a,b,e){var g=this,j=Ext.get(g.getOverviewdetails().el.id),f=60,c=160,k=0,d=Ext.get(g.getOverviewdetails().el.id).select(".s_box"),h=Ext.get(g.getOverviewdetails().el.id).select(".b_box");
if(b){a.setIconCls("toggle_p");g.getOverviewdetails().suspendLayouts();h.setStyle("display","none");d.setStyle("display","block");j.animate({duration:k,to:{height:f},listeners:{beforeanimate:function(){d.setStyle("top","0");},afteranimate:function(){g.getOverviewdetails().setHeight(f);}}});g.getOverviewdetails().resumeLayouts(true);
}else{a.setIconCls("toggle_m");g.getOverviewdetails().suspendLayouts();h.setStyle("display","block");j.animate({duration:k,to:{height:c},listeners:{beforeanimate:function(){g.getOverviewdetails().setHeight(c);d.setStyle("top","500");d.setStyle("display","none");},afteranimate:function(){}}});g.getOverviewdetails().resumeLayouts(true);
}this.getMain().doComponentLayout();},});