+NylasStore = require 'nylas-store'
 Reflux = require 'reflux'
 _ = require 'underscore'
 {Message,

    @listenTo Actions.sendDraftSuccess, => @_view.invalidate()
    @_createView()

  view: ->
    @_view

  _createView: ->
    account = AccountStore.current()

    if @unlisten

 DestroyDraftTask,
 DatabaseView} = require 'nylas-exports'

class DraftListStore extends NylasStore
  constructor: ->
    @listenTo DatabaseStore, @_onDataChanged
    @listenTo AccountStore, @_onAccountChanged
    @listenTo Actions.deleteSelection, @_onDeleteSelection
