Built motion from commit ee17993.|1.0.6
[motion.git] / server / config / ami / db / voiceRecording.js
1 var _0x3e6d=["\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"];_0x3e6d[0];var BPromise=require(_0x3e6d[1]);var _=require(_0x3e6d[2]);var VoiceRecording=require(_0x3e6d[4])[_0x3e6d[3]];module[_0x3e6d[5]]= function(){return {cdr:function(_0xf8ccx4){return function(_0xf8ccx5){var _0xf8ccx6=null;if(_0xf8ccx4[_0x3e6d[6]]=== _0x3e6d[7]){_0xf8ccx6= _0xf8ccx4[_0x3e6d[8]]}else {if(_0xf8ccx4[_0x3e6d[6]]=== _0x3e6d[9]){_0xf8ccx6= _0xf8ccx4[_0x3e6d[10]]}};return VoiceRecording[_0x3e6d[18]]({type:_0xf8ccx4[_0x3e6d[6]]|| _0x3e6d[17],customerPhone:_0xf8ccx6},{where:{uniqueid:_0xf8ccx4[_0x3e6d[14]]},raw:true,individualHooks:true})[_0x3e6d[16]](function(){console[_0x3e6d[15]](_0x3e6d[11],_0xf8ccx4[_0x3e6d[14]])})[_0x3e6d[13]](function(_0xf8ccx7){console[_0x3e6d[12]](_0x3e6d[11],_0xf8ccx7)})}},agentcomplete:function(_0xf8ccx4){return function(_0xf8ccx5){return VoiceRecording[_0x3e6d[18]]({queue:_0xf8ccx4[_0x3e6d[20]],membername:_0xf8ccx4[_0x3e6d[21]]},{where:{uniqueid:_0xf8ccx4[_0x3e6d[14]]},raw:true,individualHooks:true})[_0x3e6d[16]](function(){console[_0x3e6d[15]](_0x3e6d[19],_0xf8ccx4[_0x3e6d[14]])})[_0x3e6d[13]](function(_0xf8ccx7){console[_0x3e6d[12]](_0x3e6d[19],_0xf8ccx7)})}},mixmonitor_filename:function(_0xf8ccx4){return function(_0xf8ccx5){if(!_0xf8ccx4[_0x3e6d[24]][_0x3e6d[23]](_0x3e6d[22])){return BPromise[_0x3e6d[25]]()};return VoiceRecording[_0x3e6d[27]](_0xf8ccx4)[_0x3e6d[16]](function(){console[_0x3e6d[15]](_0x3e6d[26],_0xf8ccx4[_0x3e6d[14]])})[_0x3e6d[13]](function(_0xf8ccx7){console[_0x3e6d[12]](_0x3e6d[26],_0xf8ccx7)})}}}}