Viewing File: /usr/local/cpanel/base/webmail/jupiter/mail/change_password.cmb.min.js
define("app/views/ExternalAuthController",["angular","cjt/util/locale","uiBootstrap","cjt/directives/actionButtonDirective"],(function(e,t){var r;try{(r=e.module("App")).value("PAGE",CPANEL.PAGE),r.value("LOCALE",t)}catch(t){r=e.module("App",[])}return ExternalAuthController.$inject=["$scope","PAGE","LOCALE","ExternalAuthService","growl"],r.controller("ExternalAuthController",ExternalAuthController)}));var ExternalAuthController=function(e,t,r,n,i){e.loaded=!1;var u=this;return u.PAGE=t,u.LOCALE=r,u.remove_link=function(e,t){return n.unlink_provider(e.subject_unique_identifier,e.provider_id).then((function(){return n.get_authn_links().then((function(n){u.PAGE.configured_providers=n.data,i.success(r.maketext("Successfully unlinked the “[_1]” account “[_2]”",t,e.preferred_username))}),(function(e){i.error(r.maketext("The system encountered an error while it tried to retrieve results, please refresh the interface: [_1]",e))}))}),(function(e){i.error(e)}))},e.loaded=!0,u};define("app/services/ExternalAuthService",["angular","cjt/io/api","cjt/io/uapi-request","cjt/io/uapi"],(function(e,t,r){var n=e.module("App");function i(e){var n={unlink_provider:function(n,i){var u=e.defer(),o=new r.Class;return o.initialize("ExternalAuthentication","remove_authn_link"),o.addArgument("subject_unique_identifier",n),o.addArgument("provider_id",i),t.promise(o.getRunArguments()).done((function(e){(e=e.parsedResponse).status?u.resolve(e):u.reject(e.error)})),u.promise},get_authn_links:function(){var n=e.defer(),i=new r.Class;return i.initialize("ExternalAuthentication","get_authn_links"),t.promise(i.getRunArguments()).done((function(e){(e=e.parsedResponse).status?n.resolve(e):n.reject(e.error)})),n.promise}};return n}return i.$inject=["$q"],n.factory("ExternalAuthService",i)})),define("app/change_password",["angular","cjt/core","cjt/modules","uiBootstrap"],(function(e,t){"use strict";return function(){return e.module("App",["ui.bootstrap","angular-growl","cjt2.webmail"]),require(["app/views/ExternalAuthController","app/services/ExternalAuthService"],(function(){var t=e.module("App");t.init=function(){var r=e.element("#content");return null!==r[0]&&e.bootstrap(r[0],["App"]),t},t.init()}))}}));
Back to Directory
File Manager