Viewing File: /usr/local/cpanel/base/frontend/jupiter/email_deliverability/controllers/route.min.js
define(["angular","app/controllers/ROUTES","cjt/directives/breadcrumbs","cjt/services/alertService"],(function(e,r){"use strict";var t="cpanel.emailDeliverability.controllers.route",n=["$scope","$rootScope","$location","alertService"],o=function(t,n,o,a){e.extend(t,{activeTab:0,currentTab:null,routes:r}),n.$on("$routeChangeStart",(function(){t.loading=!0,a.clear("danger")})),n.$on("$routeChangeSuccess",(function(e,r){if(t.loading=!1,t.parentTab=null,r){var n=(c=r.$$route.originalPath,t.routes.forEach((function(e,r){e.route===c&&(u=r)})),u);t.currentTab=t.routes[n],t.activeTab=n,t.currentTab&&(t.parentTab=(o=t.currentTab.parentRoute,t.routes.forEach((function(e){e.id===o&&(a=e)})),a))}var o,a,c,u})),n.$on("$routeChangeError",(function(){t.loading=!1}))};return n.push(o),e.module(t,[]).controller("RouteController",n),{class:o,namespace:t}}));
Back to Directory
File Manager