Built motion from commit c8b5f0240.|1.0.26
[motion.git] / server / api / voice_recording / voice_recording.controller.js
index 42922a7..f749f5a 100644 (file)
@@ -1 +1 @@
-var _0xcee5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x56\x6F\x69\x63\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x62\x6C\x75\x65\x62\x69\x72\x64","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x66\x73","\x70\x61\x74\x68","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x75\x73\x65","\x63\x6F\x64\x65","\x45\x4E\x4F\x45\x4E\x54","\x4E\x6F\x20\x66\x69\x6C\x65\x20\x6F\x72\x20\x64\x69\x72\x65\x63\x74\x6F\x72\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x4E\x4F\x5F\x46\x49\x4C\x45\x5F\x4F\x52\x5F\x44\x49\x52\x45\x43\x54\x4F\x52\x59","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x76\x61\x6C\x75\x65","\x73\x74\x61\x74\x53\x79\x6E\x63","\x56\x6F\x69\x63\x65\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x66\x69\x6C\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x74\x68\x65\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x75\x6E\x6C\x69\x6E\x6B\x53\x79\x6E\x63","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x70\x61\x72\x61\x6D\x73","\x64\x65\x73\x63\x72\x69\x62\x65","\x67\x65\x74\x53\x74\x72\x65\x61\x6D","\x62\x61\x73\x65\x36\x34","\x62\x69\x6E\x61\x72\x79","\x72\x65\x61\x64\x46\x69\x6C\x65","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x67\x65\x74\x53\x74\x72\x65\x61\x6D\x42\x79\x49\x64","\x74\x79\x70\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x75\x6E\x69\x71\x75\x65\x69\x64","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x61\x6C\x6C","\x70\x75\x73\x68","\x43\x61\x6E\x27\x20\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x74\x68\x65\x20\x76\x6F\x69\x63\x65\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x66\x69\x6C\x65","\x46\x69\x6C\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x64\x65\x6C\x65\x74\x69\x6E\x67\x20\x64\x62\x20\x65\x6E\x74\x72\x79\x2E\x2E\x2E","\x77\x61\x72\x6E","\x69\x64\x73","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xcee5[0];var _=require(_0xcee5[1]);var util=require(_0xcee5[2]);var Util=require(_0xcee5[3]);var logger=require(_0xcee5[5])(_0xcee5[4]);var VoiceRecording=require(_0xcee5[7])[_0xcee5[6]];var User=require(_0xcee5[7])[_0xcee5[8]];var Promise=require(_0xcee5[9]);var base64=require(_0xcee5[10]);var fs=require(_0xcee5[11]);var path=require(_0xcee5[12]);function handleError(_0xdbccxc){return function(_0xdbccxd){logger[_0xcee5[14]](_0xdbccxd[_0xcee5[13]]);if(_0xdbccxd[_0xcee5[15]]&& _0xdbccxd[_0xcee5[15]][_0xcee5[16]]=== _0xcee5[17]){_0xdbccxd= {message:_0xcee5[18],translatedMessage:_0xcee5[19]}};return _0xdbccxc[_0xcee5[21]](500)[_0xcee5[20]](_0xdbccxd)}}function responseWithResult(_0xdbccxc,_0xdbccxf){_0xdbccxf= _0xdbccxf|| 200;return function(_0xdbccx10){if(_0xdbccx10){_0xdbccxc[_0xcee5[21]](_0xdbccxf)[_0xcee5[22]](_0xdbccx10)}}}function handleEntityNotFound(_0xdbccxc){return function(_0xdbccx10){if(!_0xdbccx10){_0xdbccxc[_0xcee5[21]](404)[_0xcee5[23]]();return null};return _0xdbccx10}}function saveUpdates(_0xdbccx13){return function(_0xdbccx10){return _0xdbccx10[_0xcee5[24]](_0xdbccx13)}}function removeEntity(_0xdbccxc){return function(_0xdbccx10){if(_0xdbccx10){try{fs[_0xcee5[26]](_0xdbccx10[_0xcee5[25]])}catch(err){logger[_0xcee5[14]](_0xcee5[27],err);return _0xdbccx10[_0xcee5[29]]()[_0xcee5[28]](function(){_0xdbccxc[_0xcee5[21]](204)[_0xcee5[23]]()})};try{fs[_0xcee5[30]](_0xdbccx10[_0xcee5[25]]);return _0xdbccx10[_0xcee5[29]]()[_0xcee5[28]](function(){_0xdbccxc[_0xcee5[21]](204)[_0xcee5[23]]()})}catch(err){throw  new Error(err)}}}}exports[_0xcee5[31]]= function(_0xdbccx15,_0xdbccxc){switch(_0xdbccx15[_0xcee5[43]][_0xcee5[46]]){case _0xcee5[43]:return User[_0xcee5[44]](_0xdbccx15[_0xcee5[43]][_0xcee5[42]],{attributes:[_0xcee5[42]]})[_0xcee5[28]](Util[_0xcee5[41]]({},{attributes:[_0xcee5[34]],include:[{raw:true,model:User,attributes:[_0xcee5[34]]}]}))[_0xcee5[28]](function(_0xdbccx16){var _0xdbccx17=[];var _0xdbccx18=_[_0xcee5[35]](_0xdbccx16[_0xcee5[33]],_0xcee5[34]);_0xdbccx16[_0xcee5[33]][_0xcee5[37]](function(_0xdbccx19){_0xdbccx17= _[_0xcee5[36]](_0xdbccx17,_[_0xcee5[35]](_0xdbccx19.Users,_0xcee5[34]))});return VoiceRecording[_0xcee5[40]](Util[_0xcee5[39]](_0xdbccx15[_0xcee5[38]],{$or:{queue:_0xdbccx18,membername:_0xdbccx17}}))})[_0xcee5[28]](responseWithResult(_0xdbccxc))[_0xcee5[32]](handleError(_0xdbccxc));case _0xcee5[45]:return VoiceRecording[_0xcee5[40]](Util[_0xcee5[39]](_0xdbccx15[_0xcee5[38]],{membername:_0xdbccx15[_0xcee5[43]][_0xcee5[34]]}))[_0xcee5[28]](responseWithResult(_0xdbccxc))[_0xcee5[32]](handleError(_0xdbccxc));default:return VoiceRecording[_0xcee5[40]](Util[_0xcee5[39]](_0xdbccx15[_0xcee5[38]]))[_0xcee5[28]](responseWithResult(_0xdbccxc))[_0xcee5[32]](handleError(_0xdbccxc))}};exports[_0xcee5[47]]= function(_0xdbccx15,_0xdbccxc){return VoiceRecording[_0xcee5[44]](_0xdbccx15[_0xcee5[48]][_0xcee5[42]])[_0xcee5[28]](handleEntityNotFound(_0xdbccxc))[_0xcee5[28]](responseWithResult(_0xdbccxc))[_0xcee5[32]](handleError(_0xdbccxc))};exports[_0xcee5[49]]= function(_0xdbccx15,_0xdbccxc){return VoiceRecording[_0xcee5[49]]()[_0xcee5[28]](function(_0xdbccx1a){return _0xdbccxc[_0xcee5[21]](200)[_0xcee5[20]](_0xdbccx1a)})[_0xcee5[32]](handleError(_0xdbccxc))};exports[_0xcee5[50]]= function(_0xdbccx15,_0xdbccxc){return VoiceRecording[_0xcee5[44]](_0xdbccx15[_0xcee5[48]][_0xcee5[42]])[_0xcee5[28]](function(_0xdbccx1d){var _0xdbccx1e=Promise[_0xcee5[54]](fs[_0xcee5[53]]);return _0xdbccx1e(_0xdbccx1d[_0xcee5[25]])})[_0xcee5[28]](function(_0xdbccx1c){var _0xdbccx1b= new Buffer(_0xdbccx1c,_0xcee5[52]).toString(_0xcee5[51]);return _0xdbccx1b})[_0xcee5[28]](function(_0xdbccx1b){return _0xdbccxc[_0xcee5[21]](200)[_0xcee5[20]]({downloadString:_0xdbccx1b})})[_0xcee5[32]](handleError(_0xdbccxc))};exports[_0xcee5[55]]= function(_0xdbccx15,_0xdbccxc){var _0xdbccx1f={};if(_0xdbccx15[_0xcee5[38]]&& _0xdbccx15[_0xcee5[38]][_0xcee5[57]](_0xcee5[56])&& _0xdbccx15[_0xcee5[38]][_0xcee5[56]]=== _0xcee5[58]){_0xdbccx1f[_0xcee5[58]]= _0xdbccx15[_0xcee5[48]][_0xcee5[42]]}else {_0xdbccx1f[_0xcee5[42]]= _0xdbccx15[_0xcee5[48]][_0xcee5[42]]};return VoiceRecording[_0xcee5[61]]({where:_0xdbccx1f})[_0xcee5[28]](handleEntityNotFound(_0xdbccxc))[_0xcee5[28]](function(_0xdbccx1d){return _0xdbccxc[_0xcee5[60]](_0xdbccx1d[_0xcee5[25]],path[_0xcee5[59]](_0xdbccx1d[_0xcee5[25]]))})[_0xcee5[32]](handleError(_0xdbccxc))};exports[_0xcee5[62]]= function(_0xdbccx15,_0xdbccxc){return VoiceRecording[_0xcee5[62]](_0xdbccx15[_0xcee5[63]])[_0xcee5[28]](responseWithResult(_0xdbccxc,201))[_0xcee5[32]](handleError(_0xdbccxc))};exports[_0xcee5[64]]= function(_0xdbccx15,_0xdbccxc){if(_0xdbccx15[_0xcee5[63]][_0xcee5[42]]){delete _0xdbccx15[_0xcee5[63]][_0xcee5[42]]};return VoiceRecording[_0xcee5[44]](_0xdbccx15[_0xcee5[48]][_0xcee5[42]])[_0xcee5[28]](handleEntityNotFound(_0xdbccxc))[_0xcee5[28]](saveUpdates(_0xdbccx15[_0xcee5[63]]))[_0xcee5[28]](responseWithResult(_0xdbccxc))[_0xcee5[32]](handleError(_0xdbccxc))};exports[_0xcee5[29]]= function(_0xdbccx15,_0xdbccxc){return VoiceRecording[_0xcee5[44]](_0xdbccx15[_0xcee5[48]][_0xcee5[42]])[_0xcee5[28]](handleEntityNotFound(_0xdbccxc))[_0xcee5[28]](removeEntity(_0xdbccxc))[_0xcee5[32]](handleError(_0xdbccxc))};exports[_0xcee5[65]]= function(_0xdbccx15,_0xdbccxc){return VoiceRecording[_0xcee5[73]]({where:{id:_0xdbccx15[_0xcee5[38]][_0xcee5[72]]}})[_0xcee5[28]](function(_0xdbccx20){var _0xdbccx21=[];_[_0xcee5[37]](_0xdbccx20,function(_0xdbccx22){try{fs[_0xcee5[26]](_0xdbccx22[_0xcee5[25]]);try{fs[_0xcee5[30]](_0xdbccx22[_0xcee5[25]]);_0xdbccx21[_0xcee5[68]](_0xdbccx22[_0xcee5[29]]())}catch(err){logger[_0xcee5[14]](_0xcee5[69],err)}}catch(err){logger[_0xcee5[71]](_0xcee5[70]);_0xdbccx21[_0xcee5[68]](_0xdbccx22[_0xcee5[29]]())}});return _0xdbccx21})[_0xcee5[67]]()[_0xcee5[28]](function(){return _0xdbccxc[_0xcee5[66]](204)})[_0xcee5[32]](handleError(_0xdbccxc))}
\ No newline at end of file
+var _0x4b41=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x56\x6F\x69\x63\x65\x52\x65\x63\x6F\x72\x64\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x62\x6C\x75\x65\x62\x69\x72\x64","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x66\x73","\x70\x61\x74\x68","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x75\x73\x65","\x63\x6F\x64\x65","\x45\x4E\x4F\x45\x4E\x54","\x4E\x6F\x20\x66\x69\x6C\x65\x20\x6F\x72\x20\x64\x69\x72\x65\x63\x74\x6F\x72\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x4E\x4F\x5F\x46\x49\x4C\x45\x5F\x4F\x52\x5F\x44\x49\x52\x45\x43\x54\x4F\x52\x59","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x76\x61\x6C\x75\x65","\x73\x74\x61\x74\x53\x79\x6E\x63","\x56\x6F\x69\x63\x65\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x66\x69\x6C\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x74\x68\x65\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x75\x6E\x6C\x69\x6E\x6B\x53\x79\x6E\x63","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x70\x61\x72\x61\x6D\x73","\x64\x65\x73\x63\x72\x69\x62\x65","\x67\x65\x74\x53\x74\x72\x65\x61\x6D","\x62\x61\x73\x65\x36\x34","\x62\x69\x6E\x61\x72\x79","\x72\x65\x61\x64\x46\x69\x6C\x65","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x67\x65\x74\x53\x74\x72\x65\x61\x6D\x42\x79\x49\x64","\x74\x79\x70\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x75\x6E\x69\x71\x75\x65\x69\x64","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x61\x6C\x6C","\x70\x75\x73\x68","\x43\x61\x6E\x27\x20\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x74\x68\x65\x20\x76\x6F\x69\x63\x65\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x66\x69\x6C\x65","\x46\x69\x6C\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x64\x65\x6C\x65\x74\x69\x6E\x67\x20\x64\x62\x20\x65\x6E\x74\x72\x79\x2E\x2E\x2E","\x77\x61\x72\x6E","\x69\x64\x73","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x4b41[0];var _=require(_0x4b41[1]);var util=require(_0x4b41[2]);var Util=require(_0x4b41[3]);var logger=require(_0x4b41[5])(_0x4b41[4]);var VoiceRecording=require(_0x4b41[7])[_0x4b41[6]];var User=require(_0x4b41[7])[_0x4b41[8]];var Promise=require(_0x4b41[9]);var base64=require(_0x4b41[10]);var fs=require(_0x4b41[11]);var path=require(_0x4b41[12]);function handleError(_0x890exc){return function(_0x890exd){logger[_0x4b41[14]](_0x890exd[_0x4b41[13]]);if(_0x890exd[_0x4b41[15]]&& _0x890exd[_0x4b41[15]][_0x4b41[16]]=== _0x4b41[17]){_0x890exd= {message:_0x4b41[18],translatedMessage:_0x4b41[19]}};return _0x890exc[_0x4b41[21]](500)[_0x4b41[20]](_0x890exd)}}function responseWithResult(_0x890exc,_0x890exf){_0x890exf= _0x890exf|| 200;return function(_0x890ex10){if(_0x890ex10){_0x890exc[_0x4b41[21]](_0x890exf)[_0x4b41[22]](_0x890ex10)}}}function handleEntityNotFound(_0x890exc){return function(_0x890ex10){if(!_0x890ex10){_0x890exc[_0x4b41[21]](404)[_0x4b41[23]]();return null};return _0x890ex10}}function saveUpdates(_0x890ex13){return function(_0x890ex10){return _0x890ex10[_0x4b41[24]](_0x890ex13)}}function removeEntity(_0x890exc){return function(_0x890ex10){if(_0x890ex10){try{fs[_0x4b41[26]](_0x890ex10[_0x4b41[25]])}catch(err){logger[_0x4b41[14]](_0x4b41[27],err);return _0x890ex10[_0x4b41[29]]()[_0x4b41[28]](function(){_0x890exc[_0x4b41[21]](204)[_0x4b41[23]]()})};try{fs[_0x4b41[30]](_0x890ex10[_0x4b41[25]]);return _0x890ex10[_0x4b41[29]]()[_0x4b41[28]](function(){_0x890exc[_0x4b41[21]](204)[_0x4b41[23]]()})}catch(err){throw  new Error(err)}}}}exports[_0x4b41[31]]= function(_0x890ex15,_0x890exc){switch(_0x890ex15[_0x4b41[43]][_0x4b41[46]]){case _0x4b41[43]:return User[_0x4b41[44]](_0x890ex15[_0x4b41[43]][_0x4b41[42]],{attributes:[_0x4b41[42]]})[_0x4b41[28]](Util[_0x4b41[41]]({},{attributes:[_0x4b41[34]],include:[{raw:true,model:User,attributes:[_0x4b41[34]]}]}))[_0x4b41[28]](function(_0x890ex16){var _0x890ex17=[];var _0x890ex18=_[_0x4b41[35]](_0x890ex16[_0x4b41[33]],_0x4b41[34]);_0x890ex16[_0x4b41[33]][_0x4b41[37]](function(_0x890ex19){_0x890ex17= _[_0x4b41[36]](_0x890ex17,_[_0x4b41[35]](_0x890ex19.Users,_0x4b41[34]))});return VoiceRecording[_0x4b41[40]](Util[_0x4b41[39]](_0x890ex15[_0x4b41[38]],{$or:{queue:_0x890ex18,membername:_0x890ex17}}))})[_0x4b41[28]](responseWithResult(_0x890exc))[_0x4b41[32]](handleError(_0x890exc));case _0x4b41[45]:return VoiceRecording[_0x4b41[40]](Util[_0x4b41[39]](_0x890ex15[_0x4b41[38]],{membername:_0x890ex15[_0x4b41[43]][_0x4b41[34]]}))[_0x4b41[28]](responseWithResult(_0x890exc))[_0x4b41[32]](handleError(_0x890exc));default:return VoiceRecording[_0x4b41[40]](Util[_0x4b41[39]](_0x890ex15[_0x4b41[38]]))[_0x4b41[28]](responseWithResult(_0x890exc))[_0x4b41[32]](handleError(_0x890exc))}};exports[_0x4b41[47]]= function(_0x890ex15,_0x890exc){return VoiceRecording[_0x4b41[44]](_0x890ex15[_0x4b41[48]][_0x4b41[42]])[_0x4b41[28]](handleEntityNotFound(_0x890exc))[_0x4b41[28]](responseWithResult(_0x890exc))[_0x4b41[32]](handleError(_0x890exc))};exports[_0x4b41[49]]= function(_0x890ex15,_0x890exc){return VoiceRecording[_0x4b41[49]]()[_0x4b41[28]](function(_0x890ex1a){return _0x890exc[_0x4b41[21]](200)[_0x4b41[20]](_0x890ex1a)})[_0x4b41[32]](handleError(_0x890exc))};exports[_0x4b41[50]]= function(_0x890ex15,_0x890exc){return VoiceRecording[_0x4b41[44]](_0x890ex15[_0x4b41[48]][_0x4b41[42]])[_0x4b41[28]](function(_0x890ex1d){var _0x890ex1e=Promise[_0x4b41[54]](fs[_0x4b41[53]]);return _0x890ex1e(_0x890ex1d[_0x4b41[25]])})[_0x4b41[28]](function(_0x890ex1c){var _0x890ex1b= new Buffer(_0x890ex1c,_0x4b41[52]).toString(_0x4b41[51]);return _0x890ex1b})[_0x4b41[28]](function(_0x890ex1b){return _0x890exc[_0x4b41[21]](200)[_0x4b41[20]]({downloadString:_0x890ex1b})})[_0x4b41[32]](handleError(_0x890exc))};exports[_0x4b41[55]]= function(_0x890ex15,_0x890exc){var _0x890ex1f={};if(_0x890ex15[_0x4b41[38]]&& _0x890ex15[_0x4b41[38]][_0x4b41[57]](_0x4b41[56])&& _0x890ex15[_0x4b41[38]][_0x4b41[56]]=== _0x4b41[58]){_0x890ex1f[_0x4b41[58]]= _0x890ex15[_0x4b41[48]][_0x4b41[42]]}else {_0x890ex1f[_0x4b41[42]]= _0x890ex15[_0x4b41[48]][_0x4b41[42]]};return VoiceRecording[_0x4b41[61]]({where:_0x890ex1f})[_0x4b41[28]](handleEntityNotFound(_0x890exc))[_0x4b41[28]](function(_0x890ex1d){return _0x890exc[_0x4b41[60]](_0x890ex1d[_0x4b41[25]],path[_0x4b41[59]](_0x890ex1d[_0x4b41[25]]))})[_0x4b41[32]](handleError(_0x890exc))};exports[_0x4b41[62]]= function(_0x890ex15,_0x890exc){return VoiceRecording[_0x4b41[62]](_0x890ex15[_0x4b41[63]])[_0x4b41[28]](responseWithResult(_0x890exc,201))[_0x4b41[32]](handleError(_0x890exc))};exports[_0x4b41[64]]= function(_0x890ex15,_0x890exc){if(_0x890ex15[_0x4b41[63]][_0x4b41[42]]){delete _0x890ex15[_0x4b41[63]][_0x4b41[42]]};return VoiceRecording[_0x4b41[44]](_0x890ex15[_0x4b41[48]][_0x4b41[42]])[_0x4b41[28]](handleEntityNotFound(_0x890exc))[_0x4b41[28]](saveUpdates(_0x890ex15[_0x4b41[63]]))[_0x4b41[28]](responseWithResult(_0x890exc))[_0x4b41[32]](handleError(_0x890exc))};exports[_0x4b41[29]]= function(_0x890ex15,_0x890exc){return VoiceRecording[_0x4b41[44]](_0x890ex15[_0x4b41[48]][_0x4b41[42]])[_0x4b41[28]](handleEntityNotFound(_0x890exc))[_0x4b41[28]](removeEntity(_0x890exc))[_0x4b41[32]](handleError(_0x890exc))};exports[_0x4b41[65]]= function(_0x890ex15,_0x890exc){return VoiceRecording[_0x4b41[73]]({where:{id:_0x890ex15[_0x4b41[38]][_0x4b41[72]]}})[_0x4b41[28]](function(_0x890ex20){var _0x890ex21=[];_[_0x4b41[37]](_0x890ex20,function(_0x890ex22){try{fs[_0x4b41[26]](_0x890ex22[_0x4b41[25]]);try{fs[_0x4b41[30]](_0x890ex22[_0x4b41[25]]);_0x890ex21[_0x4b41[68]](_0x890ex22[_0x4b41[29]]())}catch(err){logger[_0x4b41[14]](_0x4b41[69],err)}}catch(err){logger[_0x4b41[71]](_0x4b41[70]);_0x890ex21[_0x4b41[68]](_0x890ex22[_0x4b41[29]]())}});return _0x890ex21})[_0x4b41[67]]()[_0x4b41[28]](function(){return _0x890exc[_0x4b41[66]](204)})[_0x4b41[32]](handleError(_0x890exc))}
\ No newline at end of file