<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    >

  <browser:page
      name="app-messaging"
      for="ploneintranet.layout.app.IApp"
      class=".views.AppMessagingView"
      template="templates/chat.html"
      permission="ploneintranet.messaging.usemessaging"
      layer=".interfaces.IPloneIntranetMessagingLayer"
      />

  <browser:page
      name="message-list"
      for="ploneintranet.layout.app.IApp"
      class=".views.AppMessagingView"
      template="templates/message-list.pt"
      permission="ploneintranet.messaging.usemessaging"
      layer=".interfaces.IPloneIntranetMessagingLayer"
      />

  <browser:page
      name="app-messaging-new-chat"
      for="ploneintranet.layout.app.IApp"
      class=".views.AppMessagingNewChat"
      template="templates/panel-new-chat.html"
      permission="ploneintranet.messaging.usemessaging"
      layer=".interfaces.IPloneIntranetMessagingLayer"
      />

  <browser:page
      name="app-messaging-new-message"
      for="ploneintranet.layout.app.IApp"
      class=".views.AppMessagingNewMessage"
      template="templates/new-message.html"
      permission="ploneintranet.messaging.usemessaging"
      layer=".interfaces.IPloneIntranetMessagingLayer"
      />

  <browser:viewlet
      name="ploneintranet.messaging.messages"
      manager="plone.app.layout.viewlets.interfaces.IPortalTop"
      class=".viewlets.MessagesViewlet"
      template="templates/messagingviewlet.pt"
      permission="ploneintranet.messaging.usemessaging"
      layer=".interfaces.IPloneintranetMessagingLayer"
      />

  <browser:page
      name="message-counter"
      for="*"
      class=".views.MessageCounter"
      template="templates/message-counter.pt"
      permission="ploneintranet.messaging.usemessaging"
      layer=".interfaces.IPloneintranetMessagingLayer"
      />

  <browser:page
      name="browser_incoming_message"
      for="plone.app.layout.navigation.interfaces.INavigationRoot"
      class=".desktop_notifications.BrowserIncomingMessage"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetMessagingLayer"
      />

</configure>
