 creating = false
 kdockId = -1
 detail =
-  item: []
-  highspeed: []
+  items: []
+  highspeed: -1
   kdockId: -1
   largeFlag: false
   secretary: -1

      kdockId = parseInt(postBody.api_kdock_id) - 1
      secretaryIdx = _.sortedIndex _ships, {api_id: _decks[0].api_ship[0]}, 'api_id'
      detail =
        item: [parseInt(postBody.api_item1), parseInt(postBody.api_item2), parseInt(postBody.api_item3), parseInt(postBody.api_item4), parseInt(postBody.api_item5)]
        kdockId: kdockId
        largeFlag: (parseInt(postBody.api_large_flag) != 0)
        highspeed: parseInt(postBody.api_highspeed)

{_, SERVER_HOSTNAME} = window
Promise = require 'bluebird'
async = Promise.coroutine
request = Promise.promisifyAll require 'request'
