not sure sorry, BUT im sure i read/heard they need to be actually defeated by an attacker...
so they may sit on empty Motivation/low CP untill battled.
hopefully this gives us chance on actually staying in gyms over night....lets say the next morning a friendly trainer comes by and feeds all the starving defenders xD (or....its a trainer on a different team and he wipes the entire gym no problem :S)