Boris made 'deal' with Cummings before he was PM