Spanish spies warned their Moroccan counterparts and the Madrid government of the Ceuta migrant surge a day before it happened.