function EditListenerWizardController($scope, $q, model, workflowService, gettext) {
    var scope = $scope;
    var steps = ['listener'];
    var protocol = scope.launchContext.protocol;
    if (protocol === 'TERMINATED_HTTPS') {
      steps = ['listener', 'certificates'];
    }
    scope.model = model;
    scope.submit = scope.model.submit;
    scope.workflow = workflowService(
        gettext('Update Listener'),
        'fa fa-pencil', steps);
    scope.model.initialize('listener', scope.launchContext.id);
  }
/**
   * @ngdoc controller
   * @name EditListenerWizardController
   *
   * @description
   * Controller for the LBaaS v2 edit listener wizard.
   *
   * @param $scope The angular scope object.
   * @param $q The angular service for promises.
   * @param model The LBaaS V2 workflow model service.
   * @param workflowService The LBaaS V2 workflow service.
   * @param gettext The horizon gettext function for translation.
   * @returns undefined
   */
@ngdoc controller
@name EditListenerWizardController

@description
Controller for the LBaaS v2 edit listener wizard.

@param $scope The angular scope object.
@param $q The angular service for promises.
@param model The LBaaS V2 workflow model service.
@param workflowService The LBaaS V2 workflow service.
@param gettext The horizon gettext function for translation.
@returns undefined
@ngdoc controller @name EditListenerWizardController @description Controller for the LBaaS v2 edit listener wizard . @param $scope The angular scope object . @param $q The angular service for promises . @param model The LBaaS V2 workflow model service . @param workflowService The LBaaS V2 workflow service . @param gettext The horizon gettext function for translation . @returns undefined
function EditListenerWizardController($scope, $q, model, workflowService, gettext) {
    var scope = $scope;
    var steps = ['listener'];
    var protocol = scope.launchContext.protocol;
    if (protocol === 'TERMINATED_HTTPS') {
      steps = ['listener', 'certificates'];
    }
    scope.model = model;
    scope.submit = scope.model.submit;
    scope.workflow = workflowService(
        gettext('Update Listener'),
        'fa fa-pencil', steps);
    scope.model.initialize('listener', scope.launchContext.id);
  }
function EditListenerWizardController ( $scope , $q , model , workflowService , gettext ) { var scope = $scope ; var steps = [ 'listener' ] ; var protocol = scope . launchContext . protocol ; if ( protocol === 'TERMINATED_HTTPS' ) { steps = [ 'listener' , 'certificates' ] ; } scope . model = model ; scope . submit = scope . model . submit ; scope . workflow = workflowService ( gettext ( 'Update Listener' ) , 'fa fa-pencil' , steps ) ; scope . model . initialize ( 'listener' , scope . launchContext . id ) ; }
@ngdoc controller
 @name EditListenerWizardController
@ngdoc controller @name EditListenerWizardController