public function ajaxGetQueues()
    {
        $data = Base::getJobsRepository()->orderBy('created_at', 'desc')->take(300)->get(['queue', 'payload', 'attempts', 'reserved', 'reserved_at', 'created_at']);

        foreach ($data as $d)
        {
            $obj = json_decode($d->payload);
            $d->payload = $obj->job;
            $d->data = json_encode($obj->data->data);
        }

        return \Response::json(array('data' => $data));
    }