Pushnotification

Alternate: 

```javascript
if(!libsb.user.params.pushNotifications) {
	libsb.user.params.pushNotifications = { devices: [] };

var thisDevice = { 
	type: "gcm", registrationId: regId, enabled: true, deviceName: device.model
};

if (
	libsb.user.params.pushNotifications.devices.filter(function (d) {
		return d.type == thisDevice.type && d.regId == thisDevice.regId;
	}).length === 0
) {
	libsb.user.params.pushNotifications.devices.push(thisDevice);
}
```