var logger = require('../logger')('app');
var chanSpy = [{
- id: 1,
- name: 'Listen&TalkOne',
- prefix: 'spy1',
- options: ['b', 'w', 'E', 'S'],
- description: 'The supervisor can listen and talk to the agent. The customer will not listen to the supervisor voice',
+ id: 1,
+ name: 'Listen&TalkOne',
+ prefix: 'spy1',
+ options: ['b', 'w', 'E', 'S'],
+ description: 'The supervisor can listen and talk to the agent. The customer will not listen to the supervisor voice',
}, {
- id: 2,
- name: 'OnlyListen',
- prefix: 'spy2',
- options: ['b', 'o', 'E', 'S'],
- description: 'The supervisor can only listen the agent channel (neither the agent nor the customer will listen to the supervisor voice)',
+ id: 2,
+ name: 'OnlyListen',
+ prefix: 'spy2',
+ options: ['b', 'o', 'E', 'S'],
+ description: 'The supervisor can only listen the agent channel (neither the agent nor the customer will listen to the supervisor voice)',
}, {
- id: 3,
- name: 'Listen&TalkBoth',
- prefix: 'spy3',
- options: ['B', 'w', 'E', 'S'],
- description: 'The supervisor can listen and talk both to the agent and to the customer, like a pure 3 way conference room',
+ id: 3,
+ name: 'Listen&TalkBoth',
+ prefix: 'spy3',
+ options: ['B', 'w', 'E', 'S'],
+ description: 'The supervisor can listen and talk both to the agent and to the customer, like a pure 3 way conference room',
}, {
- id: 4,
- name: 'OnlyListenBoth',
- prefix: 'spy4',
- options: ['B', 'o', 'E', 'S'],
- description: 'The supervisor can just listen to the phone call',
-}
-];
+ id: 4,
+ name: 'OnlyListenBoth',
+ prefix: 'spy4',
+ options: ['B', 'o', 'E', 'S'],
+ description: 'The supervisor can just listen to the phone call',
+}];
exports.create = function() {
- return db.VoiceChanSpy
- .bulkCreate(chanSpy, {
- ignoreDuplicates: true,
- individualHooks: true
- })
- .then(function() {
- logger.info('ChanSpy have been created');
- })
- .catch(function(err) {
- logger.error('Can\'t create ChanSpy');
- });
-};
+ return db.VoiceChanSpy
+ .bulkCreate(chanSpy, {
+ ignoreDuplicates: true,
+ individualHooks: true
+ })
+ .then(function() {
+ logger.info('ChanSpy have been created');
+ })
+ .catch(function(err) {
+ logger.error('Can\'t create ChanSpy');
+ });
+};
\ No newline at end of file