 { API_URL, POSITRON_URL, FUSION_URL, APP_URL } = require('sharify').data
 artsyXapp = require 'artsy-xapp'
 PAGE_SIZE = 100
-FUSION_PAGE_SIZE = 1000
+FUSION_PAGE_SIZE = 5000
 
 epoch = -> moment('2010 9 1', 'YYYY MM DD')
 buckets = _.times moment().diff(epoch(), 'months'), (i) ->

@bingjson = (req, res, next) ->
  res.set('Content-Disposition': 'attachment').write('[')
  getArtworkBuckets (err, buckets) ->
    async.mapSeries buckets.reverse()[0..10], (bucket, callback) ->
      iterator = (page, callback) ->
        request
          .get("#{FUSION_URL}/api/v1/artworks")

        "height": dimensions.height
        "width": dimensions.width
      }
    res.write JSON.stringify(json) + ','
