File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/support/create_support_ticket/views/startController.min.js
Back
define(["angular","cjt/util/query","cjt/services/popupService","cjt/services/alertService","app/services/ticketService","app/services/ticketUrlService","app/services/oauth2PopupService","app/services/wizardApi"],(function(angular,QUERY_STRING_UTILS){var app=angular.module("whm.createSupportTicket");return app.controller("startController",["$scope","pageState","alertService","popupService","ticketService","ticketUrlService","oauth2PopupService","wizardApi","wizardState",function($scope,pageState,alertService,popupService,ticketService,ticketUrlService,oauth2PopupService,wizardApi,wizardState){angular.extend($scope,{show:{hackQuestion:false},hacked:"unspecified",hasCloudLinux:pageState.has_cloud_linux?true:false,hasLiteSpeed:pageState.has_lite_speed?true:false});if(ticketService.getAuthState()){if(pageState.tos&&pageState.tos.accepted){wizardState.maxSteps=3}else{wizardState.maxSteps=4}}else{if(pageState.tos&&pageState.tos.accepted){wizardState.maxSteps=6}else{wizardState.maxSteps=7}}if(!pageState.is_cpanel_direct){wizardState.maxSteps++}wizardApi.configureStep();wizardApi.reset(true);alertService.clear();$scope.selectThisServer=function(){if(pageState.is_dns_only){var url=$scope.getTicketUrl("dnsonly");popupService.openPopupWindow(url,"tickets",{newTab:true}).focus()}else if(ticketService.getAuthState()){if(!pageState.is_cpanel_direct){wizardApi.loadView("/supportinfo",null,{clearAlerts:true})}else if(pageState.tos&&pageState.tos.accepted){wizardApi.loadView("/grant",null,{clearAlerts:true})}else{wizardApi.loadView("/tos",null,{clearAlerts:true})}wizardApi.showFooter();wizardApi.next()}else{$scope.show.hackQuestion=true;wizardApi.next()}};$scope.getTicketUrl=ticketUrlService.getTicketUrl;$scope.moveBack=function(){$scope.show.hackQuestion=false;wizardApi.previous()};$scope.startTicket=function(){if(ticketService.getAuthState()){wizardApi.loadView("/tos",null,{clearAlerts:true});wizardApi.showFooter();wizardApi.next()}else{var popup=oauth2PopupService.show($scope,(function(reason){if(reason!=="closed"){return}wizardApi.loadView("/authorize-customer-portal/error",null,{replaceState:true})}),(function(apiError){wizardApi.loadView("/authorize-customer-portal/error",null,{replaceState:true})}));popup.focus();wizardApi.loadView("/authorize-customer-portal/authorizing",null,{clearAlerts:true});wizardApi.next()}}}])}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings