Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / config / seedDB / companies.js
index b7d80e7..2256913 100644 (file)
@@ -4,32 +4,32 @@ var db = require('../../mysqldb').db;
 var logger = require('../logger')('app');
 
 var companies = [{
-    id: 1,
-    name: 'Xenialab',
-    type: 'srl',
-    vat: '09668910012',
-    phone: '+3901119886500',
-    fax: '+390110960070',
-    website: 'www.xcallymotion.com',
-    email: 'info@xcally.com',
-    emailDomain: 'xcally.com',
-    street: 'Corso Vittorio Emanuele II, 111',
-    postalCode: '10128',
-    city: 'Turin',
-    country: 'Italy',
-    description: 'company auto generated'
+  id: 1,
+  name: 'Xenialab',
+  type: 'srl',
+  vat: '09668910012',
+  phone: '+3901119886500',
+  fax: '+390110960070',
+  website: 'www.xcallymotion.com',
+  email: 'info@xcally.com',
+  emailDomain: 'xcally.com',
+  street: 'Corso Vittorio Emanuele II, 111',
+  postalCode: '10128',
+  city: 'Turin',
+  country: 'Italy',
+  description: 'company auto generated'
 }];
 
 exports.create = function() {
-    return db.CmCompany
-        .bulkCreate(companies, {
-            ignoreDuplicates: true,
-            individualHooks: true
-        })
-        .then(function() {
-            logger.info('Companies have been created');
-        })
-        .catch(function(err) {
-            logger.error('Can\'t create Companies');
-        });
+  return db.CmCompany
+    .bulkCreate(companies, {
+      ignoreDuplicates: true,
+      individualHooks: true
+    })
+    .then(function() {
+      logger.info('Companies have been created');
+    })
+    .catch(function(err) {
+      logger.error('Can\'t create Companies');
+    });
 };
\ No newline at end of file