@taiger-common/model 1.0.39 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -481,7 +481,7 @@ var managerSchema = new mongoose_1.Schema({
481
481
  }
482
482
  }
483
483
  }, options);
484
- var officehoursSchema = new mongoose_1.Schema({
484
+ var officehours = {
485
485
  Monday: {
486
486
  active: { type: Boolean, default: false },
487
487
  time_slots: [{ type: Object }]
@@ -510,10 +510,10 @@ var officehoursSchema = new mongoose_1.Schema({
510
510
  active: { type: Boolean, default: false },
511
511
  time_slots: [{ type: Object }]
512
512
  }
513
- }, { _id: false });
513
+ };
514
514
  var agentSchema = new mongoose_1.Schema({
515
515
  timezone: { type: String, default: '' },
516
- officehours: officehoursSchema,
516
+ officehours: officehours,
517
517
  selfIntroduction: {
518
518
  type: String,
519
519
  default: ''
@@ -551,7 +551,7 @@ var agentSchema = new mongoose_1.Schema({
551
551
  }, options);
552
552
  var editorSchema = new mongoose_1.Schema({
553
553
  timezone: { type: String, default: '' },
554
- officehours: officehoursSchema,
554
+ officehours: officehours,
555
555
  editor_notification: {
556
556
  isRead_survey_not_complete: {
557
557
  type: Boolean,
@@ -476,7 +476,7 @@ var managerSchema = new Schema({
476
476
  }
477
477
  }
478
478
  }, options);
479
- var officehoursSchema = new Schema({
479
+ var officehours = {
480
480
  Monday: {
481
481
  active: { type: Boolean, default: false },
482
482
  time_slots: [{ type: Object }]
@@ -505,10 +505,10 @@ var officehoursSchema = new Schema({
505
505
  active: { type: Boolean, default: false },
506
506
  time_slots: [{ type: Object }]
507
507
  }
508
- }, { _id: false });
508
+ };
509
509
  var agentSchema = new Schema({
510
510
  timezone: { type: String, default: '' },
511
- officehours: officehoursSchema,
511
+ officehours: officehours,
512
512
  selfIntroduction: {
513
513
  type: String,
514
514
  default: ''
@@ -546,7 +546,7 @@ var agentSchema = new Schema({
546
546
  }, options);
547
547
  var editorSchema = new Schema({
548
548
  timezone: { type: String, default: '' },
549
- officehours: officehoursSchema,
549
+ officehours: officehours,
550
550
  editor_notification: {
551
551
  isRead_survey_not_complete: {
552
552
  type: Boolean,