The invention provides compounds having Formula Ia,or a pharmaceutically acceptable salt thereof, wherein R1, R2, R3, R4 and Y are as defined in the specification; as well as pharmaceutical compositions comprising such compounds and methods of using such compounds to treat or prevent diseases or disorders associated with the activity of Cannabinoid Receptor 1 (CB1).