           (signature Object, Function)
           (signature Object, Object, Function)
         ]
+        one             :
+          (signature Object, Function)
+        some            :
+          (signature Object, Object, Function)
         isValid         :
           (signature String, Function)
       instance          :

{Model}   = require 'bongo'
jraphical = require 'jraphical'

module.exports = class JRewardCampaign extends jraphical.Module

  # An example to create in client side by an administrator
  #
  #
  # KD.remote.api.JRewardCampaign.create(
  #   {

  #     console.log(err, campaign);
  #   }
  # );
  #
  # # Find & Modify
  #
  # var campaign = null;
  #
  # KD.remote.api.JRewardCampaign.one(
  #   {
  #     name: "register"
  #   }, function(err, _campaign){
  #     if (err) {
  #       console.warn(err);
  #     }
  #     else if (_campaign) {
  #       campaign = _campaign;
  #       console.log("Campaign assigned to local variable `campaign`");
  #     }
  #     else {
  #       console.error("No campaign found.");
  #     }
  #   }
  # );
  #
  # if (campaign) {
  #   campaign.update({isActive: false}, log);
  # }
  #


  {signature, secure} = require 'bongo'

