2016-01-04 09:43:21 -08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var log = require('npmlog');
|
|
|
|
log.debug = log.verbose;
|
2016-01-20 11:38:11 -08:00
|
|
|
log.level = 'debug';
|
2016-01-04 09:43:21 -08:00
|
|
|
|
|
|
|
var config = require('../config');
|
2016-01-04 10:56:14 -08:00
|
|
|
var PushNotificationsService = require('../lib/pushnotificationsservice');
|
2016-01-04 09:43:21 -08:00
|
|
|
|
2016-01-04 10:56:14 -08:00
|
|
|
var pushNotificationsService = new PushNotificationsService();
|
|
|
|
pushNotificationsService.start(config, function(err) {
|
2016-01-04 09:43:21 -08:00
|
|
|
if (err) throw err;
|
|
|
|
|
2016-01-20 11:38:11 -08:00
|
|
|
log.debug('Push Notification Service started');
|
2016-01-04 09:43:21 -08:00
|
|
|
});
|