Built motion from commit 22bc4a4.|0.0.16 0.0.16
authorMotion Team <team@xcally.com>
Mon, 11 Jan 2016 12:29:04 +0000 (13:29 +0100)
committerMotion Team <team@xcally.com>
Mon, 11 Jan 2016 12:29:04 +0000 (13:29 +0100)
12 files changed:
package.json
public/assets/images/media/zendesk2.png
release-notes/changelog_0.0.16.txt [moved from release-notes/changelog_0.0.15.txt with 92% similarity]
server/api/freshdesk_configuration/freshdesk_configuration.controller.js
server/app.js
server/config/environment/astconf.json [new file with mode: 0644]
server/config/environment/dbconf.json [moved from server/config/environment/config.json with 79% similarity]
server/config/environment/dbconfhistory.json [moved from server/config/environment/config_history.json with 79% similarity]
server/config/environment/development.js
server/config/environment/index.js
server/config/environment/production.js
server/config/environment/test.js

index 956cdf1..e2e677f 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "motion",
-  "version": "0.0.16",
+  "version": "0.0.17",
   "main": "server/app.js",
   "dependencies": {
     "accept-language-parser": "^1.0.2",
index 7f9f6b6..70d7c5f 100644 (file)
Binary files a/public/assets/images/media/zendesk2.png and b/public/assets/images/media/zendesk2.png differ
similarity index 92%
rename from release-notes/changelog_0.0.15.txt
rename to release-notes/changelog_0.0.16.txt
index 19505ff..2be4f73 100644 (file)
@@ -1,5 +1,7 @@
 # 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 
index f3f01da..4c3d44d 100644 (file)
@@ -44,7 +44,7 @@ function handleEntityNotFound(res) {
 function saveUpdates(updates) {
   return function(entity) {
     return entity.updateAttributes(updates)
-      .then(updated => {
+      .then(function(updated) {
         return updated;
       });
   };
@@ -54,7 +54,7 @@ function removeEntity(res) {
   return function(entity) {
     if (entity) {
       return entity.destroy()
-        .then(() => {
+        .then(function() {
           res.status(204).end();
         });
     }
index 208ae47..384cf15 100644 (file)
@@ -42,7 +42,8 @@ var io = require('socket.io')(server, {
   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
diff --git a/server/config/environment/astconf.json b/server/config/environment/astconf.json
new file mode 100644 (file)
index 0000000..6036e81
--- /dev/null
@@ -0,0 +1,20 @@
+{
+  "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"
+  }
+}
similarity index 79%
rename from server/config/environment/config.json
rename to server/config/environment/dbconf.json
index 1ddcbe4..2685297 100644 (file)
@@ -1,10 +1,10 @@
 {
   "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": {
similarity index 79%
rename from server/config/environment/config_history.json
rename to server/config/environment/dbconfhistory.json
index 1ddcbe4..2685297 100644 (file)
@@ -1,10 +1,10 @@
 {
   "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": {
index ad87cb7..90dc82e 100644 (file)
@@ -1,13 +1,13 @@
 '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
 };
index b014b24..476cd75 100644 (file)
@@ -32,9 +32,9 @@ var all = {
 
   // 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,
index 8d07d20..6d0faa4 100644 (file)
@@ -1,12 +1,13 @@
 '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
 };
index baf693e..8d6bd9f 100644 (file)
@@ -1,11 +1,13 @@
 '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
 };