     'click  .js-goToSlide':               'goToSlide'
     'click  .js-expert':                  'probeBasedOnIntro'
     'click  .js-close':                   'hide'
+  inboundPassword: ''
+  outboundPassword: ''
+  passwordPlaceholder: '{{{{{{{{{{{{SECRTE_PASSWORD}}}}}}}}}}}}'
 
   constructor: ->
     super

class App.ChannelEmailAccountWizard extends App.WizardModal
  elements:
    '.modal-body': 'body'

  events:
    'submit .js-intro':                   'probeBasedOnIntro'
    'submit .js-inbound':                 'probeInbound'


    if @channel
      @account =
        inbound: clone(@channel.options.inbound)
        outbound: clone(@channel.options.outbound)

      # remember passwords, do not show in ui
      if @account.inbound && @account.inbound.options && @account.inbound.options.password
        @inboundPassword = @account.inbound.options.password
        @account.inbound.options.password = @passwordPlaceholder
      if @account.outbound && @account.outbound.options && @account.outbound.options.password
        @outboundPassword = @account.outbound.options.password
        @account.outbound.options.password = @passwordPlaceholder

    if @container
      @el.addClass('modal--local')

    @render()

    @el.modal(
      keyboard:  true
      show:      true
      backdrop:  true
      container: @container
    ).on(
      'show.bs.modal':   @onShow
      'shown.bs.modal':  @onShown
      'hidden.bs.modal': =>
        if @callback
          @callback()
        @el.remove()
    )
    if @slide
      @showSlide(@slide)

