6cfa01a43eacd12629eeb8721799a34ecaa008f7
[motion.git] / server / config / ami / db / voiceRecording.js
1 var _0x5802=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73","\x74\x79\x70\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x69\x6E\x62\x6F\x75\x6E\x64","\x73\x6F\x75\x72\x63\x65","\x56\x6F\x69\x63\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x2D\x20\x63\x64\x72","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x75\x6E\x69\x71\x75\x65\x69\x64","\x6C\x6F\x67","\x74\x68\x65\x6E","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x75\x70\x64\x61\x74\x65","\x56\x6F\x69\x63\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6D\x69\x78\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x72\x65\x73\x6F\x6C\x76\x65","\x56\x6F\x69\x63\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x2D\x20\x6D\x69\x78\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65"];_0x5802[0];var BPromise=require(_0x5802[1]);var _=require(_0x5802[2]);var VoiceRecording=require(_0x5802[4])[_0x5802[3]];module[_0x5802[5]]= function(){return {cdr:function(_0xc026x4){return function(_0xc026x5){var _0xc026x6=null;if(_0xc026x4[_0x5802[6]]=== _0x5802[7]){_0xc026x6= _0xc026x4[_0x5802[8]]}else {if(_0xc026x4[_0x5802[6]]=== _0x5802[9]){_0xc026x6= _0xc026x4[_0x5802[10]]}};return VoiceRecording[_0x5802[18]]({type:_0xc026x4[_0x5802[6]]|| _0x5802[17],customerPhone:_0xc026x6},{where:{uniqueid:_0xc026x4[_0x5802[14]]},raw:true,individualHooks:true})[_0x5802[16]](function(){console[_0x5802[15]](_0x5802[11],_0xc026x4[_0x5802[14]])})[_0x5802[13]](function(_0xc026x7){console[_0x5802[12]](_0x5802[11],_0xc026x7)})}},agentcomplete:function(_0xc026x4){return function(_0xc026x5){return VoiceRecording[_0x5802[18]]({queue:_0xc026x4[_0x5802[20]],membername:_0xc026x4[_0x5802[21]]},{where:{uniqueid:_0xc026x4[_0x5802[14]]},raw:true,individualHooks:true})[_0x5802[16]](function(){console[_0x5802[15]](_0x5802[19],_0xc026x4[_0x5802[14]])})[_0x5802[13]](function(_0xc026x7){console[_0x5802[12]](_0x5802[19],_0xc026x7)})}},mixmonitor_filename:function(_0xc026x4){return function(_0xc026x5){if(!_0xc026x4[_0x5802[24]][_0x5802[23]](_0x5802[22])){return BPromise[_0x5802[25]]()};return VoiceRecording[_0x5802[27]](_0xc026x4)[_0x5802[16]](function(){console[_0x5802[15]](_0x5802[26],_0xc026x4[_0x5802[14]])})[_0x5802[13]](function(_0xc026x7){console[_0x5802[12]](_0x5802[26],_0xc026x7)})}}}}