 App.Config.set( 'layout_ref/primary_email', PrimaryEmailRef, 'Routes' )
 
 
-class App.CustomerChatRef extends App.ControllerContent
+class App.CustomerChatRef extends App.Controller
   @extend Spine.Events
 
   questions: [

    else
      @nextQuestion()



App.Config.set( 'layout_ref/customer_chat', App.CustomerChatRef, 'Routes' )

App.Config.set( 'Chat', { prio: 300, parent: '', name: 'Customer Chat', target: '#layout_ref/customer_chat', switch: true, counter: true, role: ['Agent'], class: 'chat' }, 'NavBar' )
# App.Config.set( 'Chat', { controller: 'CustomerChatRef', authentication: true }, 'permanentTask' )


class chatWindowRef extends Spine.Controller


    # @testChat @chatWindows[0], 100
    @initQuiz()

  show: (params) =>

    # highlight navbar
    @navupdate '#layout_ref/customer_chat'

  testChat: (chat, count) ->
    for i in [0..count]
