/**
* Check if hashing is enabled and then hash the attributes
* that need hashing.
*
* @param Esensi\Model\Contracts\HashingModelInterface $model
* @param string $event name
*/
protected function performHashing(HashingModelInterface $model, $event)
{
if ($model->getHashing()) {
$model->hashAttributes();
}
}