make customer chat layout_ref work again
This commit is contained in:
parent
bb5e71e321
commit
cf60bc3fa4
1 changed files with 16 additions and 17 deletions
|
@ -1676,8 +1676,7 @@ class PrimaryEmailRef extends App.ControllerContent
|
||||||
App.Config.set( 'layout_ref/primary_email', PrimaryEmailRef, 'Routes' )
|
App.Config.set( 'layout_ref/primary_email', PrimaryEmailRef, 'Routes' )
|
||||||
|
|
||||||
|
|
||||||
class App.CustomerChatRef extends App.Controller
|
class CustomerChatRef extends App.Controller
|
||||||
@extend Spine.Events
|
|
||||||
|
|
||||||
questions: [
|
questions: [
|
||||||
{
|
{
|
||||||
|
@ -1886,24 +1885,24 @@ class App.CustomerChatRef extends App.Controller
|
||||||
else
|
else
|
||||||
@nextQuestion()
|
@nextQuestion()
|
||||||
|
|
||||||
class CustomerChatRouter extends App.ControllerPermanent
|
# class CustomerChatRouter extends App.ControllerPermanent
|
||||||
constructor: (params) ->
|
# constructor: (params) ->
|
||||||
super
|
# super
|
||||||
|
|
||||||
# check authentication
|
# # check authentication
|
||||||
return if !@authenticate()
|
# return if !@authenticate()
|
||||||
|
|
||||||
App.TaskManager.execute(
|
# App.TaskManager.execute(
|
||||||
key: 'CustomerChatRef'
|
# key: 'CustomerChatRef'
|
||||||
controller: 'CustomerChatRef'
|
# controller: 'CustomerChatRef'
|
||||||
params: {}
|
# params: {}
|
||||||
show: true
|
# show: true
|
||||||
persistent: true
|
# persistent: true
|
||||||
)
|
# )
|
||||||
|
|
||||||
#App.Config.set( 'layout_ref/customer_chat', CustomerChatRouter, 'Routes' )
|
App.Config.set( 'layout_ref/customer_chat', CustomerChatRef, 'Routes' )
|
||||||
#App.Config.set( 'CustomerChatRef', { controller: 'CustomerChatRef', authentication: true }, 'permanentTask' )
|
# App.Config.set( 'CustomerChatRef', { controller: 'CustomerChatRef', authentication: true }, 'permanentTask' )
|
||||||
#App.Config.set( 'CustomerChatRef', { prio: 1200, parent: '', name: 'Customer Chat', target: '#layout_ref/customer_chat', key: 'CustomerChatRef', role: ['Agent'], class: 'chat' }, 'NavBar' )
|
# App.Config.set( 'CustomerChatRef', { prio: 1200, parent: '', name: 'Customer Chat', target: '#layout_ref/customer_chat', key: 'CustomerChatRef', role: ['Agent'], class: 'chat' }, 'NavBar' )
|
||||||
|
|
||||||
class ChatWindowRef extends Spine.Controller
|
class ChatWindowRef extends Spine.Controller
|
||||||
@extend Spine.Events
|
@extend Spine.Events
|
||||||
|
|
Loading…
Reference in a new issue