Built motion from commit e155ad4.|0.0.101
[motion.git] / server / api / sound / sound.controller.js
index 24ac89e..0396afc 100644 (file)
@@ -1 +1 @@
-var _0xad10=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x6F\x75\x6E\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x73\x6F\x78","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x62\x6C\x75\x65\x62\x69\x72\x64","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x53\x6F\x75\x6E\x64\x73","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x77\x61\x76\x2C\x6D\x70\x33\x2C\x67\x73\x6D\x2C\x20\x61\x6E\x64\x20\x6F\x67\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x31\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x66\x6F\x72\x6D\x61\x74","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x66\x6F\x72\x6D\x61\x74","\x77\x61\x76","\x6E\x61\x6D\x65","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x53\x6F\x75\x6E\x64\x73","\x2E","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x69\x64\x65\x6E\x74\x69\x66\x79","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x45\x72\x72\x6F\x72\x3A\x20","\x75\x6E\x6C\x69\x6E\x6B","\x6F\x6E","\x70\x72\x6F\x67\x72\x65\x73\x73","\x73\x72\x63","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x62\x69\x74\x52\x61\x74\x65","\x62\x69\x74\x52\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x64\x65\x73\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x62\x69\x74\x52\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x6C\x6F\x67","\x73\x74\x61\x72\x74","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x73\x74\x72\x65\x61\x6D","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\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","\x53\x6F\x75\x6E\x64\x73","\x5F\x66\x6F\x72\x6D\x61\x74"];_0xad10[0];var _=require(_0xad10[1]);var Sound=require(_0xad10[3])[_0xad10[2]];var uploadFile=require(_0xad10[4]);var sr=require(_0xad10[5]);var sox=require(_0xad10[6]);var path=require(_0xad10[7]);var config=require(_0xad10[8]);var fs=require(_0xad10[9]);var sequelize=require(_0xad10[3])[_0xad10[10]];var base64=require(_0xad10[11]);var Promise=require(_0xad10[12]);exports[_0xad10[13]]=function(_0x5f2exc,_0x5f2exd){Sound[_0xad10[18]]()[_0xad10[17]](function(_0x5f2exf){return _0x5f2exd[_0xad10[16]](200)[_0xad10[15]](_0x5f2exf)})[_0xad10[14]](function(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)})};exports[_0xad10[19]]=function(_0x5f2exc,_0x5f2exd){Sound[_0xad10[23]](_0x5f2exc[_0xad10[22]][_0xad10[21]])[_0xad10[17]](function(Sound){if(!Sound){return _0x5f2exd[_0xad10[20]](404)};return _0x5f2exd[_0xad10[15]](Sound)})[_0xad10[14]](function(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)})};exports[_0xad10[24]]=function(_0x5f2exc,_0x5f2exd){var _0x5f2ex10= new uploadFile({dest:path[_0xad10[26]](config[_0xad10[25]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x5f2ex11,_0x5f2ex12){return sr()+path[_0xad10[28]](_0x5f2ex12[_0xad10[27]])},messages:{maxNumberOfFiles:_0xad10[29],acceptFileTypes:_0xad10[30],maxFileSize:_0xad10[31],invalidRequest:_0xad10[32]}});_0x5f2ex10[_0xad10[54]](_0xad10[33],function(_0x5f2ex13,_0x5f2ex14){if(!_0x5f2ex14[_0xad10[34]][_0xad10[27]]){return _0x5f2exd[_0xad10[16]](500)[_0xad10[15]](_0x5f2ex10)};var _0x5f2ex15={};var _0x5f2ex16=path[_0xad10[28]](_0x5f2ex14[_0xad10[34]][_0xad10[27]]);_0x5f2ex15[_0xad10[35]]=_0xad10[36];_0x5f2ex15[_0xad10[37]]=path[_0xad10[28]](_0x5f2ex14[_0xad10[34]][_0xad10[27]])[_0xad10[38]](1);_0x5f2ex15[_0xad10[39]]=_0xad10[40];_0x5f2ex15[_0xad10[41]]=_0x5f2ex15[_0xad10[42]]=path[_0xad10[43]](_0x5f2ex14[_0xad10[34]][_0xad10[7]],_0x5f2ex16);_0x5f2ex15[_0xad10[44]]=path[_0xad10[43]](_0x5f2ex14[_0xad10[34]][_0xad10[27]],_0x5f2ex16);var _0x5f2ex17=path[_0xad10[26]](config[_0xad10[25]],_0x5f2ex15[_0xad10[44]]+_0x5f2ex16);var _0x5f2ex18=path[_0xad10[26]](config[_0xad10[45]],_0x5f2ex15[_0xad10[44]]+_0xad10[46]+_0x5f2ex15[_0xad10[39]]);fs[_0xad10[48]](_0x5f2ex17,parseInt(_0xad10[47],8));sox[_0xad10[49]](_0x5f2ex17,function(_0x5f2exe,_0x5f2ex19){});var _0x5f2ex1a=sox[_0xad10[50]](_0x5f2ex17,_0x5f2ex18,{sampleRate:8000,format:_0xad10[40],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x5f2ex1a[_0xad10[54]](_0xad10[51],function(_0x5f2exe){console[_0xad10[51]](_0xad10[52],_0x5f2exe);fs[_0xad10[53]](_0x5f2ex17,function(_0x5f2exe){if(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)}});return handleError(_0x5f2exd,_0x5f2exe)});_0x5f2ex1a[_0xad10[54]](_0xad10[55],function(_0x5f2ex1b,_0x5f2ex1c){});_0x5f2ex1a[_0xad10[54]](_0xad10[56],function(_0x5f2ex1d){_0x5f2ex15[_0xad10[57]]=isNaN(_0x5f2ex1d[_0xad10[58]])?null:_0x5f2ex1d[_0xad10[58]]*1000;_0x5f2ex15[_0xad10[59]]=isNaN(_0x5f2ex1d[_0xad10[60]])?null:_0x5f2ex1d[_0xad10[60]];_0x5f2ex15[_0xad10[61]]=isNaN(_0x5f2ex1d[_0xad10[62]])?null:_0x5f2ex1d[_0xad10[62]];_0x5f2ex15[_0xad10[63]]=isNaN(_0x5f2ex1d[_0xad10[64]])?null:_0x5f2ex1d[_0xad10[64]];_0x5f2ex15[_0xad10[65]]=isNaN(_0x5f2ex1d[_0xad10[66]])?null:_0x5f2ex1d[_0xad10[66]]});_0x5f2ex1a[_0xad10[54]](_0xad10[67],function(_0x5f2ex1d){_0x5f2ex15[_0xad10[68]]=isNaN(_0x5f2ex1d[_0xad10[58]])?null:_0x5f2ex1d[_0xad10[58]]*1000;_0x5f2ex15[_0xad10[69]]=isNaN(_0x5f2ex1d[_0xad10[60]])?null:_0x5f2ex1d[_0xad10[60]];_0x5f2ex15[_0xad10[70]]=isNaN(_0x5f2ex1d[_0xad10[62]])?null:_0x5f2ex1d[_0xad10[62]];_0x5f2ex15[_0xad10[71]]=isNaN(_0x5f2ex1d[_0xad10[64]])?null:_0x5f2ex1d[_0xad10[64]];_0x5f2ex15[_0xad10[72]]=isNaN(_0x5f2ex1d[_0xad10[66]])?null:_0x5f2ex1d[_0xad10[66]]});_0x5f2ex1a[_0xad10[54]](_0xad10[33],function(){console[_0xad10[74]](_0xad10[73]);fs[_0xad10[48]](_0x5f2ex18,parseInt(_0xad10[47],8));Sound[_0xad10[24]](_0x5f2ex15)[_0xad10[17]](function(_0x5f2ex1e){return _0x5f2exd[_0xad10[16]](201)[_0xad10[15]](_0x5f2ex1e)})[_0xad10[14]](function(_0x5f2exe){console[_0xad10[74]](_0x5f2exe);return handleError(_0x5f2exd,_0x5f2exe)})});_0x5f2ex1a[_0xad10[75]]()});_0x5f2ex10[_0xad10[54]](_0xad10[51],function(_0x5f2exe){console[_0xad10[74]](_0xad10[76],_0x5f2exe);return handleError(_0x5f2exd,_0x5f2exe)});_0x5f2ex10[_0xad10[77]](_0x5f2exc)};exports[_0xad10[78]]=function(_0x5f2exc,_0x5f2exd){if(_0x5f2exc[_0xad10[79]][_0xad10[21]]){delete _0x5f2exc[_0xad10[79]][_0xad10[21]]};Sound[_0xad10[23]](_0x5f2exc[_0xad10[22]][_0xad10[21]])[_0xad10[17]](function(_0x5f2ex1e){if(!_0x5f2ex1e){return _0x5f2exd[_0xad10[20]](404)};var _0x5f2ex1f=_[_0xad10[80]](_0x5f2ex1e,_0x5f2exc[_0xad10[79]]);_0x5f2ex1f[_0xad10[81]]()[_0xad10[17]](function(){return _0x5f2exd[_0xad10[16]](200)[_0xad10[15]](_0x5f2ex1e)})[_0xad10[14]](function(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)})})[_0xad10[14]](function(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)})};exports[_0xad10[82]]=function(_0x5f2exc,_0x5f2exd){Sound[_0xad10[23]](_0x5f2exc[_0xad10[22]][_0xad10[21]])[_0xad10[17]](function(_0x5f2ex1e){if(!_0x5f2ex1e){return _0x5f2exd[_0xad10[16]](404)[_0xad10[15]](_0x5f2ex1e)};var _0x5f2ex20=path[_0xad10[26]](config[_0xad10[25]],_0x5f2ex1e[_0xad10[44]]+_0xad10[46]+_0x5f2ex1e[_0xad10[37]]);var _0x5f2ex21=path[_0xad10[26]](config[_0xad10[45]],_0x5f2ex1e[_0xad10[44]]+_0xad10[46]+_0x5f2ex1e[_0xad10[39]]);return sequelize[_0xad10[83]](function(_0x5f2ex22){return _0x5f2ex1e[_0xad10[82]]({transaction:_0x5f2ex22})[_0xad10[17]](function(){fs[_0xad10[53]](_0x5f2ex20,function(_0x5f2exe){if(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)}});fs[_0xad10[53]](_0x5f2ex21,function(_0x5f2exe){if(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)}});return _0x5f2exd[_0xad10[16]](200)[_0xad10[15]](_0x5f2ex1e)})})[_0xad10[14]](function(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)})})[_0xad10[14]](function(_0x5f2exe){return handleError(_0x5f2exd,_0x5f2exe)})};exports[_0xad10[84]]=function(_0x5f2exc,_0x5f2exd){getStream(_0x5f2exc,_0x5f2exd,_0xad10[85])};exports[_0xad10[86]]=function(_0x5f2exc,_0x5f2exd){getStream(_0x5f2exc,_0x5f2exd,_0xad10[87])};function getStream(_0x5f2exc,_0x5f2exd,_0x5f2ex24){return Sound[_0xad10[23]](_0x5f2exc[_0xad10[22]][_0xad10[21]])[_0xad10[17]](function(_0x5f2ex1e){var _0x5f2ex26=Promise[_0xad10[91]](fs[_0xad10[90]]);return _0x5f2ex26(path[_0xad10[26]](config[_0x5f2ex24+_0xad10[92]],_0x5f2ex1e[_0xad10[44]]+_0xad10[46]+_0x5f2ex1e[_0x5f2ex24+_0xad10[93]]))})[_0xad10[17]](function(_0x5f2ex19){var _0x5f2ex25= new Buffer(_0x5f2ex19,_0xad10[89]).toString(_0xad10[88]);return _0x5f2ex25})[_0xad10[17]](function(_0x5f2ex25){return _0x5f2exd[_0xad10[16]](200)[_0xad10[15]]({downloadString:_0x5f2ex25})})[_0xad10[14]](function(_0x5f2exe){console[_0xad10[74]](_0x5f2exe);return handleError(_0x5f2exd,_0x5f2exe)})}function handleError(_0x5f2exd,_0x5f2exe){return _0x5f2exd[_0xad10[16]](500)[_0xad10[15]](_0x5f2exe)}
\ No newline at end of file
+var _0x2a72=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x6F\x75\x6E\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x73\x6F\x78","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x62\x6C\x75\x65\x62\x69\x72\x64","\x53\x65\x74\x74\x69\x6E\x67\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x53\x6F\x75\x6E\x64\x73","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x77\x61\x76\x2C\x6D\x70\x33\x2C\x67\x73\x6D\x2C\x20\x61\x6E\x64\x20\x6F\x67\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x31\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x66\x6F\x72\x6D\x61\x74","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x66\x6F\x72\x6D\x61\x74","\x77\x61\x76","\x6E\x61\x6D\x65","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x73\x6F\x75\x6E\x64\x50\x61\x74\x68","\x2F\x76\x61\x72\x2F\x6F\x70\x74\x2F\x6D\x6F\x74\x69\x6F\x6E\x2F\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x69\x64\x65\x6E\x74\x69\x66\x79","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x45\x72\x72\x6F\x72\x3A\x20","\x75\x6E\x6C\x69\x6E\x6B","\x6F\x6E","\x70\x72\x6F\x67\x72\x65\x73\x73","\x73\x72\x63","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x62\x69\x74\x52\x61\x74\x65","\x62\x69\x74\x52\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x64\x65\x73\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x62\x69\x74\x52\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x6C\x6F\x67","\x73\x74\x61\x72\x74","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x73\x74\x72\x65\x61\x6D","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\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","\x53\x6F\x75\x6E\x64\x73","\x5F\x66\x6F\x72\x6D\x61\x74"];_0x2a72[0];var _=require(_0x2a72[1]);var Sound=require(_0x2a72[3])[_0x2a72[2]];var uploadFile=require(_0x2a72[4]);var sr=require(_0x2a72[5]);var sox=require(_0x2a72[6]);var path=require(_0x2a72[7]);var config=require(_0x2a72[8]);var fs=require(_0x2a72[9]);var sequelize=require(_0x2a72[3])[_0x2a72[10]];var base64=require(_0x2a72[11]);var Promise=require(_0x2a72[12]);var Settings=require(_0x2a72[3])[_0x2a72[13]];exports[_0x2a72[14]]=function(_0x143fxd,_0x143fxe){return Sound[_0x2a72[19]]()[_0x2a72[18]](function(_0x143fx10){return _0x143fxe[_0x2a72[17]](200)[_0x2a72[16]](_0x143fx10)})[_0x2a72[15]](function(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)})};exports[_0x2a72[20]]=function(_0x143fxd,_0x143fxe){return Sound[_0x2a72[24]](_0x143fxd[_0x2a72[23]][_0x2a72[22]])[_0x2a72[18]](function(Sound){if(!Sound){return _0x143fxe[_0x2a72[21]](404)};return _0x143fxe[_0x2a72[16]](Sound)})[_0x2a72[15]](function(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)})};exports[_0x2a72[25]]=function(_0x143fxd,_0x143fxe){var _0x143fx11= new uploadFile({dest:path[_0x2a72[27]](config[_0x2a72[26]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x143fx12,_0x143fx13){return sr()+path[_0x2a72[29]](_0x143fx13[_0x2a72[28]])},messages:{maxNumberOfFiles:_0x2a72[30],acceptFileTypes:_0x2a72[31],maxFileSize:_0x2a72[32],invalidRequest:_0x2a72[33]}});_0x143fx11[_0x2a72[56]](_0x2a72[34],function(_0x143fx14,_0x143fx15){if(!_0x143fx15[_0x2a72[35]][_0x2a72[28]]){return _0x143fxe[_0x2a72[17]](500)[_0x2a72[16]](_0x143fx11)};return Settings[_0x2a72[24]](1)[_0x2a72[18]](function(_0x143fx16){var _0x143fx17={};var _0x143fx18=path[_0x2a72[29]](_0x143fx15[_0x2a72[35]][_0x2a72[28]]);_0x143fx17[_0x2a72[36]]=_0x2a72[37];_0x143fx17[_0x2a72[38]]=path[_0x2a72[29]](_0x143fx15[_0x2a72[35]][_0x2a72[28]])[_0x2a72[39]](1);_0x143fx17[_0x2a72[40]]=_0x2a72[41];_0x143fx17[_0x2a72[42]]=_0x143fx17[_0x2a72[43]]=path[_0x2a72[44]](_0x143fx15[_0x2a72[35]][_0x2a72[7]],_0x143fx18);_0x143fx17[_0x2a72[45]]=path[_0x2a72[44]](_0x143fx15[_0x2a72[35]][_0x2a72[28]],_0x143fx18);var _0x143fx19=path[_0x2a72[27]](config[_0x2a72[26]],_0x143fx17[_0x2a72[45]]+_0x143fx18);var _0x143fx1a=path[_0x2a72[27]](_0x143fx16[_0x2a72[46]]||_0x2a72[47],_0x143fx17[_0x2a72[45]]+_0x2a72[48]+_0x143fx17[_0x2a72[40]]);fs[_0x2a72[50]](_0x143fx19,parseInt(_0x2a72[49],8));sox[_0x2a72[51]](_0x143fx19,function(_0x143fxf,_0x143fx1b){});var _0x143fx1c=sox[_0x2a72[52]](_0x143fx19,_0x143fx1a,{sampleRate:8000,format:_0x2a72[41],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x143fx1c[_0x2a72[56]](_0x2a72[53],function(_0x143fxf){console[_0x2a72[53]](_0x2a72[54],_0x143fxf);fs[_0x2a72[55]](_0x143fx19,function(_0x143fxf){if(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)}});return handleError(_0x143fxe,_0x143fxf)});_0x143fx1c[_0x2a72[56]](_0x2a72[57],function(_0x143fx1d,_0x143fx1e){});_0x143fx1c[_0x2a72[56]](_0x2a72[58],function(_0x143fx1f){_0x143fx17[_0x2a72[59]]=isNaN(_0x143fx1f[_0x2a72[60]])?null:_0x143fx1f[_0x2a72[60]]*1000;_0x143fx17[_0x2a72[61]]=isNaN(_0x143fx1f[_0x2a72[62]])?null:_0x143fx1f[_0x2a72[62]];_0x143fx17[_0x2a72[63]]=isNaN(_0x143fx1f[_0x2a72[64]])?null:_0x143fx1f[_0x2a72[64]];_0x143fx17[_0x2a72[65]]=isNaN(_0x143fx1f[_0x2a72[66]])?null:_0x143fx1f[_0x2a72[66]];_0x143fx17[_0x2a72[67]]=isNaN(_0x143fx1f[_0x2a72[68]])?null:_0x143fx1f[_0x2a72[68]]});_0x143fx1c[_0x2a72[56]](_0x2a72[69],function(_0x143fx1f){_0x143fx17[_0x2a72[70]]=isNaN(_0x143fx1f[_0x2a72[60]])?null:_0x143fx1f[_0x2a72[60]]*1000;_0x143fx17[_0x2a72[71]]=isNaN(_0x143fx1f[_0x2a72[62]])?null:_0x143fx1f[_0x2a72[62]];_0x143fx17[_0x2a72[72]]=isNaN(_0x143fx1f[_0x2a72[64]])?null:_0x143fx1f[_0x2a72[64]];_0x143fx17[_0x2a72[73]]=isNaN(_0x143fx1f[_0x2a72[66]])?null:_0x143fx1f[_0x2a72[66]];_0x143fx17[_0x2a72[74]]=isNaN(_0x143fx1f[_0x2a72[68]])?null:_0x143fx1f[_0x2a72[68]]});_0x143fx1c[_0x2a72[56]](_0x2a72[34],function(){console[_0x2a72[76]](_0x2a72[75]);fs[_0x2a72[50]](_0x143fx1a,parseInt(_0x2a72[49],8));return Sound[_0x2a72[25]](_0x143fx17)[_0x2a72[18]](function(_0x143fx20){return _0x143fxe[_0x2a72[17]](201)[_0x2a72[16]](_0x143fx20)})[_0x2a72[15]](function(_0x143fxf){console[_0x2a72[76]](_0x143fxf);return handleError(_0x143fxe,_0x143fxf)})});_0x143fx1c[_0x2a72[77]]()})[_0x2a72[15]](function(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)})});_0x143fx11[_0x2a72[56]](_0x2a72[53],function(_0x143fxf){console[_0x2a72[76]](_0x2a72[78],_0x143fxf);return handleError(_0x143fxe,_0x143fxf)});_0x143fx11[_0x2a72[79]](_0x143fxd)};exports[_0x2a72[80]]=function(_0x143fxd,_0x143fxe){if(_0x143fxd[_0x2a72[81]][_0x2a72[22]]){delete _0x143fxd[_0x2a72[81]][_0x2a72[22]]};return Sound[_0x2a72[24]](_0x143fxd[_0x2a72[23]][_0x2a72[22]])[_0x2a72[18]](function(_0x143fx20){if(!_0x143fx20){return _0x143fxe[_0x2a72[21]](404)};var _0x143fx21=_[_0x2a72[82]](_0x143fx20,_0x143fxd[_0x2a72[81]]);return _0x143fx21[_0x2a72[83]]()})[_0x2a72[18]](function(_0x143fx20){return _0x143fxe[_0x2a72[17]](200)[_0x2a72[16]](_0x143fx20)})[_0x2a72[15]](function(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)})};exports[_0x2a72[84]]=function(_0x143fxd,_0x143fxe){var _0x143fx22;return Settings[_0x2a72[24]](1)[_0x2a72[18]](function(_0x143fx16){_0x143fx22=_0x143fx16;return Sound[_0x2a72[24]](_0x143fxd[_0x2a72[23]][_0x2a72[22]])})[_0x2a72[18]](function(_0x143fx20){if(!_0x143fx20){return _0x143fxe[_0x2a72[21]](404)};var _0x143fx23=path[_0x2a72[27]](config[_0x2a72[26]],_0x143fx20[_0x2a72[45]]+_0x2a72[48]+_0x143fx20[_0x2a72[38]]);var _0x143fx24=path[_0x2a72[27]](_0x143fx22[_0x2a72[46]]||_0x2a72[47],_0x143fx20[_0x2a72[45]]+_0x2a72[48]+_0x143fx20[_0x2a72[40]]);return sequelize[_0x2a72[85]](function(_0x143fx25){return _0x143fx20[_0x2a72[84]]({transaction:_0x143fx25})[_0x2a72[18]](function(){fs[_0x2a72[55]](_0x143fx23,function(_0x143fxf){if(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)}});fs[_0x2a72[55]](_0x143fx24,function(_0x143fxf){if(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)}});return _0x143fxe[_0x2a72[17]](200)[_0x2a72[16]](_0x143fx20)})})[_0x2a72[15]](function(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)})})[_0x2a72[15]](function(_0x143fxf){return handleError(_0x143fxe,_0x143fxf)})};exports[_0x2a72[86]]=function(_0x143fxd,_0x143fxe){getStream(_0x143fxd,_0x143fxe,_0x2a72[87])};exports[_0x2a72[88]]=function(_0x143fxd,_0x143fxe){getStream(_0x143fxd,_0x143fxe,_0x2a72[89])};function getStream(_0x143fxd,_0x143fxe,_0x143fx27){return Sound[_0x2a72[24]](_0x143fxd[_0x2a72[23]][_0x2a72[22]])[_0x2a72[18]](function(_0x143fx20){var _0x143fx29=Promise[_0x2a72[93]](fs[_0x2a72[92]]);return _0x143fx29(path[_0x2a72[27]](config[_0x143fx27+_0x2a72[94]],_0x143fx20[_0x2a72[45]]+_0x2a72[48]+_0x143fx20[_0x143fx27+_0x2a72[95]]))})[_0x2a72[18]](function(_0x143fx1b){var _0x143fx28= new Buffer(_0x143fx1b,_0x2a72[91]).toString(_0x2a72[90]);return _0x143fx28})[_0x2a72[18]](function(_0x143fx28){return _0x143fxe[_0x2a72[17]](200)[_0x2a72[16]]({downloadString:_0x143fx28})})[_0x2a72[15]](function(_0x143fxf){console[_0x2a72[76]](_0x143fxf);return handleError(_0x143fxe,_0x143fxf)})}function handleError(_0x143fxe,_0x143fxf){return _0x143fxe[_0x2a72[17]](500)[_0x2a72[16]](_0x143fxf)}
\ No newline at end of file