File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/support/create_support_ticket/services/oauth2PopupService.min.js
Back
define(["angular","cjt/util/query","cjt/services/windowMonitorService","cjt/services/whm/oauth2Service","cjt/services/alertService","app/services/wizardApi"],(function(angular,QUERY){var app=angular.module("whm.createSupportTicket");app.service("oauth2PopupService",["pageState","alertService","oauth2Service","popupService","ticketService","windowMonitorService","wizardApi",function(pageState,alertService,oauth2Service,popupService,ticketService,windowMonitorService,wizardApi){function _createAuthPopup($scope,errorCb){var popup;var oauth2=pageState.oauth2;oauth2Service.initialize(oauth2.endpoint,oauth2.params);oauth2Service.setCallback((function oauth2Success(queryString){windowMonitorService.stop(popup);wizardApi.loadView("/authorize-customer-portal/verifying",null,{replaceState:true});var parsed=QUERY.parse_query_string(queryString);ticketService.verifyCode(parsed.code,parsed.redirect_uri).then((function(){if(!pageState.is_cpanel_direct){wizardApi.loadView("/supportinfo",null,{clearAlerts:true,replaceState:true})}else{wizardApi.loadView("/tos",null,{clearAlerts:true,replaceState:true})}wizardApi.showFooter();wizardApi.next()})).catch((function(error){alertService.add({message:error,type:"danger",replace:false});if(errorCb){errorCb(error)}}))}));popup=popupService.openPopupWindow(oauth2Service.getAuthUri(),"authorize_customer_portal",{autoCenter:true,height:415,width:450});return popup}return{show:function($scope,closedCb,errorCb){var popup=_createAuthPopup($scope,errorCb);windowMonitorService.start(popup,closedCb);return popup}}}])}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings