/**
 * Copyright (c) 2015-present, Alejandro Mantilla <@AlejoJamC>.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree or translated in the assets folder.
 */

// Load required packages
var mongoose    = require('mongoose');
var Schema      = mongoose.Schema;

var Company     = require('./company').Company;

// Define Branch Office schema
var BranchOfficeSchema = new Schema({
    name:               String,
    identification:     String,
    address:            String,
    telephone:          String,
    email:              String,
    contact:            String,
    ContactTelephone:   String,
    company:            [Company.schema],
    creationDate:       Date,
    lastEditionDate:    Date,
    enabled:            Boolean
});

// Export the mongoose model
module.exports.BranchOffice = mongoose.model('BranchOffice', BranchOfficeSchema);
@@ -265,32 +265,39 @@
 /%0A%0A/
-/ Load required packages
+**%0A * Module dependencies.%0A */%0A
 %0Avar
@@ -336,44 +336,8 @@
 ');%0A
-var Schema      = mongoose.Schema;%0A%0A
 var 
@@ -441,16 +441,25 @@
 a = new 
+mongoose.
 Schema(%7B

update branch office model