3 var db = require('../../mysqldb').db;
4 var logger = require('../logger')('app');
8 name: 'Listen&TalkOne',
11 description: 'Supervisors can listen to the phone call and can just talk to the agent.',
17 description: 'Supervisors can just listen to the phone call.',
20 name: 'Listen&TalkBoth',
23 description: 'Supervisors can listen to the phone call and talk to both the agent and the customer (3-Way Conference).',
26 exports.create = function() {
27 return db.VoiceChanSpy
28 .bulkCreate(chanSpy, {
29 ignoreDuplicates: true,
33 logger.info('ChanSpy have been created');
35 .catch(function(err) {
36 logger.error('Can\'t create ChanSpy');