* Undestroy multiple instances if `paranoid` is enabled.
* Restore multiple instances if `paranoid` is enabled.
*
*
* @param {Object} [options.where] Filter the undestroy
* @param {Object} [options.where] Filter the restore
* @param {Boolean} [options.hooks=true] Run before / after bulk undestroy hooks?
* @param {Boolean} [options.hooks=true] Run before / after bulk restore hooks?
* @param {Boolean} [options.individualHooks=false] If set to true, undestroy will find all records within the where parameter and will execute before / after bulkUndestroy hooks on each row
* @param {Boolean} [options.individualHooks=false] If set to true, restore will find all records within the where parameter and will execute before / after bulkRestore hooks on each row
* @param {Number} [options.limit] How many rows to undelete
* @param {Number} [options.limit] How many rows to undelete
*
*
* @return {Promise<undefined>}
* @return {Promise<undefined>}
*/
*/
Model.prototype.undestroy=function(options){
Model.prototype.restore=function(options){
if(!this._timestampAttributes.deletedAt)returnPromise.reject(newError("Model is not paranoid"));
if(!this._timestampAttributes.deletedAt)returnPromise.reject(newError("Model is not paranoid"));