I guess the service mgr didn't like the heat in the kitchen.
Dealership sales staff F up! Sales should have reached out to service when that vehicle arrived. iI should have been checked over by the service and done any necessary updates before being displayed. PLUS, that battery should be checked and, if necessary, charged up. Some dealerships go cheap on maintaining vehicles while on the lot.
The dealership should have refused delivery with a defective vehicle and sent it back. But they stuck it on you, and you have to deal with it.
That type of S**T gives a BAD rep to all the good guys and gals in other dealerships' sales and services.
I'm sorry that happened to you.