{
"name": "motion",
- "version": "0.0.16",
+ "version": "0.0.17",
"main": "server/app.js",
"dependencies": {
"accept-language-parser": "^1.0.2",
# xCALLY MOTION Changelog
+- * 96837d8 - 2016-01-11: Asterisk Configuration File
+- * 9626622 - 2016-01-11: fixed back compatibility languages
- * 4143fce - 2016-01-11: Updated reports APIs.
- * 7d148f3 - 2016-01-11: bower.json
- * d7331e9 - 2016-01-11: server side .yo-rc.json
function saveUpdates(updates) {
return function(entity) {
return entity.updateAttributes(updates)
- .then(updated => {
+ .then(function(updated) {
return updated;
});
};
return function(entity) {
if (entity) {
return entity.destroy()
- .then(() => {
+ .then(function() {
res.status(204).end();
});
}
path: '/socket.io-client'
});
-var ami = require('asterisk-manager')('5038', '185.43.210.57', 'xcall', 'xcall1234', true);
+var ami = require('asterisk-manager')(config.asterisk.port, config.asterisk.host,
+ config.asterisk.username, config.asterisk.password, true);
ami.keepConnected();
//Initialization Kue
--- /dev/null
+{
+ "development": {
+ "host": "develop.xcallymotion.com",
+ "port": "5038",
+ "username": "xcall",
+ "password": "xcall1234"
+ },
+ "test": {
+ "host": "localhost",
+ "port": "5038",
+ "username": "xcall",
+ "password": "xcall1234"
+ },
+ "production": {
+ "host": "localhost",
+ "port": "5038",
+ "username": "xcall",
+ "password": "xcall1234"
+ }
+}
{
"development": {
- "host": "127.0.0.1",
+ "host": "localhost",
"port": 3306,
- "database": "xcally",
- "username": "root",
- "password": "peppe88",
+ "database": "motion",
+ "username": "xcall",
+ "password": "xC@LL1234",
"dialect": "mysql"
},
"test": {
{
"development": {
- "host": "127.0.0.1",
+ "host": "localhost",
"port": 3306,
- "database": "xcally",
- "username": "root",
- "password": "peppe88",
+ "database": "motion",
+ "username": "xcall",
+ "password": "xC@LL1234",
"dialect": "mysql"
},
"test": {
'use strict';
-var db = require('./config.json').development;
-var db_history = require('./config_history.json').development;
-
+var dbconf = require('./dbconf.json').development;
+var dbconfhistory = require('./dbconfhistory.json').development;
+var astconf = require('./astconf.json').development;
// Development specific configuration
// ==================================
module.exports = {
- // MySQL connection options
- db: db,
- db_history: db_history,
+ db: dbconf, // MySQL connection options
+ db_history: dbconfhistory, // MySQL connection options
+ asterisk: astconf, // Asterisk connection options
seedDB: true
};
// Secret for session, you will want to change this and make it an environment variable
session: {
- name: 'xcally-shuttle-name',
- secret: 'xcally-shuttle-secret',
- token: 'xcally-shuttle-token',
+ name: 'xcally-motion-name',
+ secret: 'xcally-motion-secret',
+ token: 'xcally-motion-token',
cookie: {
path: '/',
httpOnly: true,
'use strict';
-var db = require('./config.json').production;
-var db_history = require('./config_history.json').production;
-
+var dbconf = require('./dbconf.json').production;
+var dbconfhistory = require('./dbconfhistory.json').production;
+var astconf = require('./astconf.json').production;
// Production specific configuration
-// =================================
+// ==================================
module.exports = {
- db: db,
- db_history: db_history,
- seedDB: false
+ db: dbconf, // MySQL connection options
+ db_history: dbconfhistory, // MySQL connection options
+ asterisk: astconf, // Asterisk connection options
+ seedDB: true
};
'use strict';
-var db = require('./config.json').test;
-var db_history = require('./config_history.json').test;
-
+var dbconf = require('./dbconf.json').test;
+var dbconfhistory = require('./dbconfhistory.json').test;
+var astconf = require('./astconf.json').test;
// Test specific configuration
-// ===========================
+// ==================================
module.exports = {
- db: db,
- db_history: db_history
+ db: dbconf, // MySQL connection options
+ db_history: dbconfhistory, // MySQL connection options
+ asterisk: astconf, // Asterisk connection options
+ seedDB: true
};