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