Hello and welcome to JustAnswer!
I see that your question has been up for an extended time without a response and while although this vehicle isn't in my area of greatest expertise I would like to try to help.
If the car was only parked for a week and the battery died then you likely either have a bad battery or something was drawing on the battery while the car was parked. It should be able to survive much, much longer than one week without the battery going dead. I would recommend having it checked for a draw.
On the emergency brake issue I would first make sure all fuses are ok and possibly try another battery disconnect to see if that will help anything. If not then your best bet would be to have the car towed to your dealer, since it's a 2013 and under warranty the tow would also be covered. The problem could be a module, wiring, the switch or a sensor, but with it being under warranty you wouldn't want the expense of trying to repair it yourself and the dealer could deny warranty coverage if they saw repairs were attempted.
If you did want to try to repair it yourself and all fuses are ok then the first step is going to be to use a scan tool and see what fault codes are stored in all modules and go from there.