 _                             = require 'lodash'
 kd                            = require 'kd'
 $                             = require 'jquery'
+kookies                       = require 'kookies'
+
 KDBlockingModalView           = kd.BlockingModalView
 KDCustomHTMLView              = kd.CustomHTMLView
 KDModalView                   = kd.ModalView

            }

            if state is NotInitialized
              @machineStateModal.once 'MachineTurnOnStarted', =>
                kd.getSingleton('mainView').activitySidebar.initiateFakeCounter()

          @once 'IDEReady', => @prepareCollaboration()


            @quit()

    @showModal options


  setupFakeActivityNotification: ->

    return  unless kookies.get('newRegister') is 'true'

    @machineStateModal?.once 'MachineTurnOnStarted', ->
      kookies.expire 'newRegister', path: '/'
      kd.getSingleton('mainView').activitySidebar.initiateFakeCounter()
