The reset of a Pokemon's happiness occurs when it has a different trainer. So placing it in Pokemon Bank doesn't necessarily reset its happiness because if it returns to its original trainer, its happiness will be unaffected. However, once it is traded to another game, like all trades, its happiness will reset as it is with another trainer.
Hope I helped. :)