 Backbone = require 'backbone'
+{ QUERY, PROFILE_CHANNELS, SORT } = require("sharify").data
 mediator = require '../../../lib/mediator.coffee'
+ChannelGroupView = require '../../../components/channel_block_group/view.coffee'
+
 template = -> require('../templates/partials/_channel_groups.jade') arguments...
-{ QUERY } = require("sharify").data
 
 class ProfileView extends Backbone.View
   loading: false

        if response.channels.length
          $('.profile').append template 
            channels: response.channels
        else
          @disabled = true
      
module.exports.init = ->
  new ProfileView
    el: $('.profile')
    $.ajax 
      data: 
        page: @page
        q: QUERY
        sort: SORT
      url: "/api/#{sd.USER.slug}/profile"
      success: (response) =>
        @page++
