Built motion from commit b6cf875.|1.0.15
[motion.git] / server / api / sound / sound.controller.js
index d9ec99b..1324d26 100644 (file)
@@ -1 +1 @@
-var _0x1a78=["\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"];_0x1a78[0];var _=require(_0x1a78[1]);var Sound=require(_0x1a78[3])[_0x1a78[2]];var uploadFile=require(_0x1a78[4]);var sr=require(_0x1a78[5]);var sox=require(_0x1a78[6]);var path=require(_0x1a78[7]);var config=require(_0x1a78[8]);var fs=require(_0x1a78[9]);var sequelize=require(_0x1a78[3])[_0x1a78[10]];var base64=require(_0x1a78[11]);var Promise=require(_0x1a78[12]);exports[_0x1a78[13]]=function(_0x2b22xc,_0x2b22xd){Sound[_0x1a78[18]]()[_0x1a78[17]](function(_0x2b22xf){return _0x2b22xd[_0x1a78[16]](200)[_0x1a78[15]](_0x2b22xf)})[_0x1a78[14]](function(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)})};exports[_0x1a78[19]]=function(_0x2b22xc,_0x2b22xd){Sound[_0x1a78[23]](_0x2b22xc[_0x1a78[22]][_0x1a78[21]])[_0x1a78[17]](function(Sound){if(!Sound){return _0x2b22xd[_0x1a78[20]](404)};return _0x2b22xd[_0x1a78[15]](Sound)})[_0x1a78[14]](function(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)})};exports[_0x1a78[24]]=function(_0x2b22xc,_0x2b22xd){var _0x2b22x10= new uploadFile({dest:path[_0x1a78[26]](config[_0x1a78[25]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x2b22x11,_0x2b22x12){return sr()+path[_0x1a78[28]](_0x2b22x12[_0x1a78[27]])},messages:{maxNumberOfFiles:_0x1a78[29],acceptFileTypes:_0x1a78[30],maxFileSize:_0x1a78[31],invalidRequest:_0x1a78[32]}});_0x2b22x10[_0x1a78[54]](_0x1a78[33],function(_0x2b22x13,_0x2b22x14){if(!_0x2b22x14[_0x1a78[34]][_0x1a78[27]]){return _0x2b22xd[_0x1a78[16]](500)[_0x1a78[15]](_0x2b22x10)};var _0x2b22x15={};var _0x2b22x16=path[_0x1a78[28]](_0x2b22x14[_0x1a78[34]][_0x1a78[27]]);_0x2b22x15[_0x1a78[35]]=_0x1a78[36];_0x2b22x15[_0x1a78[37]]=path[_0x1a78[28]](_0x2b22x14[_0x1a78[34]][_0x1a78[27]])[_0x1a78[38]](1);_0x2b22x15[_0x1a78[39]]=_0x1a78[40];_0x2b22x15[_0x1a78[41]]=_0x2b22x15[_0x1a78[42]]=path[_0x1a78[43]](_0x2b22x14[_0x1a78[34]][_0x1a78[7]],_0x2b22x16);_0x2b22x15[_0x1a78[44]]=path[_0x1a78[43]](_0x2b22x14[_0x1a78[34]][_0x1a78[27]],_0x2b22x16);var _0x2b22x17=path[_0x1a78[26]](config[_0x1a78[25]],_0x2b22x15[_0x1a78[44]]+_0x2b22x16);var _0x2b22x18=path[_0x1a78[26]](config[_0x1a78[45]],_0x2b22x15[_0x1a78[44]]+_0x1a78[46]+_0x2b22x15[_0x1a78[39]]);fs[_0x1a78[48]](_0x2b22x17,parseInt(_0x1a78[47],8));sox[_0x1a78[49]](_0x2b22x17,function(_0x2b22xe,_0x2b22x19){});var _0x2b22x1a=sox[_0x1a78[50]](_0x2b22x17,_0x2b22x18,{sampleRate:8000,format:_0x1a78[40],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x2b22x1a[_0x1a78[54]](_0x1a78[51],function(_0x2b22xe){console[_0x1a78[51]](_0x1a78[52],_0x2b22xe);fs[_0x1a78[53]](_0x2b22x17,function(_0x2b22xe){if(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)}});return handleError(_0x2b22xd,_0x2b22xe)});_0x2b22x1a[_0x1a78[54]](_0x1a78[55],function(_0x2b22x1b,_0x2b22x1c){});_0x2b22x1a[_0x1a78[54]](_0x1a78[56],function(_0x2b22x1d){_0x2b22x15[_0x1a78[57]]=isNaN(_0x2b22x1d[_0x1a78[58]])?null:_0x2b22x1d[_0x1a78[58]]*1000;_0x2b22x15[_0x1a78[59]]=isNaN(_0x2b22x1d[_0x1a78[60]])?null:_0x2b22x1d[_0x1a78[60]];_0x2b22x15[_0x1a78[61]]=isNaN(_0x2b22x1d[_0x1a78[62]])?null:_0x2b22x1d[_0x1a78[62]];_0x2b22x15[_0x1a78[63]]=isNaN(_0x2b22x1d[_0x1a78[64]])?null:_0x2b22x1d[_0x1a78[64]];_0x2b22x15[_0x1a78[65]]=isNaN(_0x2b22x1d[_0x1a78[66]])?null:_0x2b22x1d[_0x1a78[66]]});_0x2b22x1a[_0x1a78[54]](_0x1a78[67],function(_0x2b22x1d){_0x2b22x15[_0x1a78[68]]=isNaN(_0x2b22x1d[_0x1a78[58]])?null:_0x2b22x1d[_0x1a78[58]]*1000;_0x2b22x15[_0x1a78[69]]=isNaN(_0x2b22x1d[_0x1a78[60]])?null:_0x2b22x1d[_0x1a78[60]];_0x2b22x15[_0x1a78[70]]=isNaN(_0x2b22x1d[_0x1a78[62]])?null:_0x2b22x1d[_0x1a78[62]];_0x2b22x15[_0x1a78[71]]=isNaN(_0x2b22x1d[_0x1a78[64]])?null:_0x2b22x1d[_0x1a78[64]];_0x2b22x15[_0x1a78[72]]=isNaN(_0x2b22x1d[_0x1a78[66]])?null:_0x2b22x1d[_0x1a78[66]]});_0x2b22x1a[_0x1a78[54]](_0x1a78[33],function(){console[_0x1a78[74]](_0x1a78[73]);fs[_0x1a78[48]](_0x2b22x18,parseInt(_0x1a78[47],8));Sound[_0x1a78[24]](_0x2b22x15)[_0x1a78[17]](function(_0x2b22x1e){return _0x2b22xd[_0x1a78[16]](201)[_0x1a78[15]](_0x2b22x1e)})[_0x1a78[14]](function(_0x2b22xe){console[_0x1a78[74]](_0x2b22xe);return handleError(_0x2b22xd,_0x2b22xe)})});_0x2b22x1a[_0x1a78[75]]()});_0x2b22x10[_0x1a78[54]](_0x1a78[51],function(_0x2b22xe){console[_0x1a78[74]](_0x1a78[76],_0x2b22xe);return handleError(_0x2b22xd,_0x2b22xe)});_0x2b22x10[_0x1a78[77]](_0x2b22xc)};exports[_0x1a78[78]]=function(_0x2b22xc,_0x2b22xd){if(_0x2b22xc[_0x1a78[79]][_0x1a78[21]]){delete _0x2b22xc[_0x1a78[79]][_0x1a78[21]]};Sound[_0x1a78[23]](_0x2b22xc[_0x1a78[22]][_0x1a78[21]])[_0x1a78[17]](function(_0x2b22x1e){if(!_0x2b22x1e){return _0x2b22xd[_0x1a78[20]](404)};var _0x2b22x1f=_[_0x1a78[80]](_0x2b22x1e,_0x2b22xc[_0x1a78[79]]);_0x2b22x1f[_0x1a78[81]]()[_0x1a78[17]](function(){return _0x2b22xd[_0x1a78[16]](200)[_0x1a78[15]](_0x2b22x1e)})[_0x1a78[14]](function(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)})})[_0x1a78[14]](function(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)})};exports[_0x1a78[82]]=function(_0x2b22xc,_0x2b22xd){Sound[_0x1a78[23]](_0x2b22xc[_0x1a78[22]][_0x1a78[21]])[_0x1a78[17]](function(_0x2b22x1e){if(!_0x2b22x1e){return _0x2b22xd[_0x1a78[16]](404)[_0x1a78[15]](_0x2b22x1e)};var _0x2b22x20=path[_0x1a78[26]](config[_0x1a78[25]],_0x2b22x1e[_0x1a78[44]]+_0x1a78[46]+_0x2b22x1e[_0x1a78[37]]);var _0x2b22x21=path[_0x1a78[26]](config[_0x1a78[45]],_0x2b22x1e[_0x1a78[44]]+_0x1a78[46]+_0x2b22x1e[_0x1a78[39]]);return sequelize[_0x1a78[83]](function(_0x2b22x22){return _0x2b22x1e[_0x1a78[82]]({transaction:_0x2b22x22})[_0x1a78[17]](function(){fs[_0x1a78[53]](_0x2b22x20,function(_0x2b22xe){if(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)}});fs[_0x1a78[53]](_0x2b22x21,function(_0x2b22xe){if(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)}});return _0x2b22xd[_0x1a78[16]](200)[_0x1a78[15]](_0x2b22x1e)})})[_0x1a78[14]](function(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)})})[_0x1a78[14]](function(_0x2b22xe){return handleError(_0x2b22xd,_0x2b22xe)})};exports[_0x1a78[84]]=function(_0x2b22xc,_0x2b22xd){getStream(_0x2b22xc,_0x2b22xd,_0x1a78[85])};exports[_0x1a78[86]]=function(_0x2b22xc,_0x2b22xd){getStream(_0x2b22xc,_0x2b22xd,_0x1a78[87])};function getStream(_0x2b22xc,_0x2b22xd,_0x2b22x24){return Sound[_0x1a78[23]](_0x2b22xc[_0x1a78[22]][_0x1a78[21]])[_0x1a78[17]](function(_0x2b22x1e){var _0x2b22x26=Promise[_0x1a78[91]](fs[_0x1a78[90]]);return _0x2b22x26(path[_0x1a78[26]](config[_0x2b22x24+_0x1a78[92]],_0x2b22x1e[_0x1a78[44]]+_0x1a78[46]+_0x2b22x1e[_0x2b22x24+_0x1a78[93]]))})[_0x1a78[17]](function(_0x2b22x19){var _0x2b22x25= new Buffer(_0x2b22x19,_0x1a78[89]).toString(_0x1a78[88]);return _0x2b22x25})[_0x1a78[17]](function(_0x2b22x25){return _0x2b22xd[_0x1a78[16]](200)[_0x1a78[15]]({downloadString:_0x2b22x25})})[_0x1a78[14]](function(_0x2b22xe){console[_0x1a78[74]](_0x2b22xe);return handleError(_0x2b22xd,_0x2b22xe)})}function handleError(_0x2b22xd,_0x2b22xe){return _0x2b22xd[_0x1a78[16]](500)[_0x1a78[15]](_0x2b22xe)}
\ No newline at end of file
+var _0x90ca=["\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","\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"];_0x90ca[0];var _=require(_0x90ca[1]);var Sound=require(_0x90ca[3])[_0x90ca[2]];var uploadFile=require(_0x90ca[4]);var sr=require(_0x90ca[5]);var sox=require(_0x90ca[6]);var path=require(_0x90ca[7]);var config=require(_0x90ca[8]);var fs=require(_0x90ca[9]);var sequelize=require(_0x90ca[3])[_0x90ca[10]];var base64=require(_0x90ca[11]);var Promise=require(_0x90ca[12]);var Setting=require(_0x90ca[3])[_0x90ca[13]];exports[_0x90ca[14]]= function(_0xf90axd,_0xf90axe){return Sound[_0x90ca[19]]()[_0x90ca[18]](function(_0xf90ax10){return _0xf90axe[_0x90ca[17]](200)[_0x90ca[16]](_0xf90ax10)})[_0x90ca[15]](function(_0xf90axf){return handleError(_0xf90axe,_0xf90axf)})};exports[_0x90ca[20]]= function(_0xf90axd,_0xf90axe){return Sound[_0x90ca[24]](_0xf90axd[_0x90ca[23]][_0x90ca[22]])[_0x90ca[18]](function(Sound){if(!Sound){return _0xf90axe[_0x90ca[21]](404)};return _0xf90axe[_0x90ca[16]](Sound)})[_0x90ca[15]](function(_0xf90axf){return handleError(_0xf90axe,_0xf90axf)})};exports[_0x90ca[25]]= function(_0xf90axd,_0xf90axe){var _0xf90ax11= new uploadFile({dest:path[_0x90ca[27]](config[_0x90ca[26]]),maxFileSize:15* 1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0xf90ax12,_0xf90ax13){return sr()+ path[_0x90ca[29]](_0xf90ax13[_0x90ca[28]])},messages:{maxNumberOfFiles:_0x90ca[30],acceptFileTypes:_0x90ca[31],maxFileSize:_0x90ca[32],invalidRequest:_0x90ca[33]}});_0xf90ax11[_0x90ca[56]](_0x90ca[34],function(_0xf90ax14,_0xf90ax15){if(!_0xf90ax15[_0x90ca[35]][_0x90ca[28]]){return _0xf90axe[_0x90ca[17]](500)[_0x90ca[16]](_0xf90ax11)};return Setting[_0x90ca[24]](1)[_0x90ca[18]](function(_0xf90ax16){var _0xf90ax17={};var _0xf90ax18=path[_0x90ca[29]](_0xf90ax15[_0x90ca[35]][_0x90ca[28]]);_0xf90ax17[_0x90ca[36]]= _0x90ca[37];_0xf90ax17[_0x90ca[38]]= path[_0x90ca[29]](_0xf90ax15[_0x90ca[35]][_0x90ca[28]])[_0x90ca[39]](1);_0xf90ax17[_0x90ca[40]]= _0x90ca[41];_0xf90ax17[_0x90ca[42]]= _0xf90ax17[_0x90ca[43]]= path[_0x90ca[44]](_0xf90ax15[_0x90ca[35]][_0x90ca[7]],_0xf90ax18);_0xf90ax17[_0x90ca[45]]= path[_0x90ca[44]](_0xf90ax15[_0x90ca[35]][_0x90ca[28]],_0xf90ax18);var _0xf90ax19=path[_0x90ca[27]](config[_0x90ca[26]],_0xf90ax17[_0x90ca[45]]+ _0xf90ax18);var _0xf90ax1a=path[_0x90ca[27]](_0xf90ax16[_0x90ca[46]]|| _0x90ca[47],_0xf90ax17[_0x90ca[45]]+ _0x90ca[48]+ _0xf90ax17[_0x90ca[40]]);fs[_0x90ca[50]](_0xf90ax19,parseInt(_0x90ca[49],8));sox[_0x90ca[51]](_0xf90ax19,function(_0xf90axf,_0xf90ax1b){});var _0xf90ax1c=sox[_0x90ca[52]](_0xf90ax19,_0xf90ax1a,{sampleRate:8000,format:_0x90ca[41],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0xf90ax1c[_0x90ca[56]](_0x90ca[53],function(_0xf90axf){console[_0x90ca[53]](_0x90ca[54],_0xf90axf);fs[_0x90ca[55]](_0xf90ax19,function(_0xf90axf){if(_0xf90axf){return handleError(_0xf90axe,_0xf90axf)}});return handleError(_0xf90axe,_0xf90axf)});_0xf90ax1c[_0x90ca[56]](_0x90ca[57],function(_0xf90ax1d,_0xf90ax1e){});_0xf90ax1c[_0x90ca[56]](_0x90ca[58],function(_0xf90ax1f){_0xf90ax17[_0x90ca[59]]= isNaN(_0xf90ax1f[_0x90ca[60]])?null:_0xf90ax1f[_0x90ca[60]]* 1000;_0xf90ax17[_0x90ca[61]]= isNaN(_0xf90ax1f[_0x90ca[62]])?null:_0xf90ax1f[_0x90ca[62]];_0xf90ax17[_0x90ca[63]]= isNaN(_0xf90ax1f[_0x90ca[64]])?null:_0xf90ax1f[_0x90ca[64]];_0xf90ax17[_0x90ca[65]]= isNaN(_0xf90ax1f[_0x90ca[66]])?null:_0xf90ax1f[_0x90ca[66]];_0xf90ax17[_0x90ca[67]]= isNaN(_0xf90ax1f[_0x90ca[68]])?null:_0xf90ax1f[_0x90ca[68]]});_0xf90ax1c[_0x90ca[56]](_0x90ca[69],function(_0xf90ax1f){_0xf90ax17[_0x90ca[70]]= isNaN(_0xf90ax1f[_0x90ca[60]])?null:_0xf90ax1f[_0x90ca[60]]* 1000;_0xf90ax17[_0x90ca[71]]= isNaN(_0xf90ax1f[_0x90ca[62]])?null:_0xf90ax1f[_0x90ca[62]];_0xf90ax17[_0x90ca[72]]= isNaN(_0xf90ax1f[_0x90ca[64]])?null:_0xf90ax1f[_0x90ca[64]];_0xf90ax17[_0x90ca[73]]= isNaN(_0xf90ax1f[_0x90ca[66]])?null:_0xf90ax1f[_0x90ca[66]];_0xf90ax17[_0x90ca[74]]= isNaN(_0xf90ax1f[_0x90ca[68]])?null:_0xf90ax1f[_0x90ca[68]]});_0xf90ax1c[_0x90ca[56]](_0x90ca[34],function(){console[_0x90ca[76]](_0x90ca[75]);fs[_0x90ca[50]](_0xf90ax1a,parseInt(_0x90ca[49],8));return Sound[_0x90ca[25]](_0xf90ax17)[_0x90ca[18]](function(_0xf90ax20){return _0xf90axe[_0x90ca[17]](201)[_0x90ca[16]](_0xf90ax20)})[_0x90ca[15]](function(_0xf90axf){console[_0x90ca[76]](_0xf90axf);return handleError(_0xf90axe,_0xf90axf)})});_0xf90ax1c[_0x90ca[77]]()})[_0x90ca[15]](function(_0xf90axf){return handleError(_0xf90axe,_0xf90axf)})});_0xf90ax11[_0x90ca[56]](_0x90ca[53],function(_0xf90axf){console[_0x90ca[76]](_0x90ca[78],_0xf90axf);return handleError(_0xf90axe,_0xf90axf)});_0xf90ax11[_0x90ca[79]](_0xf90axd)};exports[_0x90ca[80]]= function(_0xf90axd,_0xf90axe){if(_0xf90axd[_0x90ca[81]][_0x90ca[22]]){delete _0xf90axd[_0x90ca[81]][_0x90ca[22]]};return Sound[_0x90ca[24]](_0xf90axd[_0x90ca[23]][_0x90ca[22]])[_0x90ca[18]](function(_0xf90ax20){if(!_0xf90ax20){return _0xf90axe[_0x90ca[21]](404)};var _0xf90ax21=_[_0x90ca[82]](_0xf90ax20,_0xf90axd[_0x90ca[81]]);return _0xf90ax21[_0x90ca[83]]()})[_0x90ca[18]](function(_0xf90ax20){return _0xf90axe[_0x90ca[17]](200)[_0x90ca[16]](_0xf90ax20)})[_0x90ca[15]](function(_0xf90axf){return handleError(_0xf90axe,_0xf90axf)})};exports[_0x90ca[84]]= function(_0xf90axd,_0xf90axe){var _0xf90ax22;return Setting[_0x90ca[24]](1)[_0x90ca[18]](function(_0xf90ax16){_0xf90ax22= _0xf90ax16;return Sound[_0x90ca[24]](_0xf90axd[_0x90ca[23]][_0x90ca[22]])})[_0x90ca[18]](function(_0xf90ax20){if(!_0xf90ax20){return _0xf90axe[_0x90ca[21]](404)};var _0xf90ax23=path[_0x90ca[27]](config[_0x90ca[26]],_0xf90ax20[_0x90ca[45]]+ _0x90ca[48]+ _0xf90ax20[_0x90ca[38]]);var _0xf90ax24=path[_0x90ca[27]](_0xf90ax22[_0x90ca[46]]|| _0x90ca[47],_0xf90ax20[_0x90ca[45]]+ _0x90ca[48]+ _0xf90ax20[_0x90ca[40]]);return sequelize[_0x90ca[85]](function(_0xf90ax25){return _0xf90ax20[_0x90ca[84]]({transaction:_0xf90ax25})[_0x90ca[18]](function(){fs[_0x90ca[55]](_0xf90ax23,function(_0xf90axf){if(_0xf90axf){console[_0x90ca[76]](_0xf90axf)}});fs[_0x90ca[55]](_0xf90ax24,function(_0xf90axf){if(_0xf90axf){console[_0x90ca[76]](_0xf90axf)}});return _0xf90axe[_0x90ca[17]](200)[_0x90ca[16]](_0xf90ax20)})})[_0x90ca[15]](function(_0xf90axf){return handleError(_0xf90axe,_0xf90axf)})})[_0x90ca[15]](function(_0xf90axf){return handleError(_0xf90axe,_0xf90axf)})};exports[_0x90ca[86]]= function(_0xf90axd,_0xf90axe){getStream(_0xf90axd,_0xf90axe,_0x90ca[87])};exports[_0x90ca[88]]= function(_0xf90axd,_0xf90axe){getStream(_0xf90axd,_0xf90axe,_0x90ca[89])};function getStream(_0xf90axd,_0xf90axe,_0xf90ax27){return Sound[_0x90ca[24]](_0xf90axd[_0x90ca[23]][_0x90ca[22]])[_0x90ca[18]](function(_0xf90ax20){var _0xf90ax29=Promise[_0x90ca[93]](fs[_0x90ca[92]]);return _0xf90ax29(path[_0x90ca[27]](config[_0xf90ax27+ _0x90ca[94]],_0xf90ax20[_0x90ca[45]]+ _0x90ca[48]+ _0xf90ax20[_0xf90ax27+ _0x90ca[95]]))})[_0x90ca[18]](function(_0xf90ax1b){var _0xf90ax28= new Buffer(_0xf90ax1b,_0x90ca[91]).toString(_0x90ca[90]);return _0xf90ax28})[_0x90ca[18]](function(_0xf90ax28){return _0xf90axe[_0x90ca[17]](200)[_0x90ca[16]]({downloadString:_0xf90ax28})})[_0x90ca[15]](function(_0xf90axf){console[_0x90ca[76]](_0xf90axf);return handleError(_0xf90axe,_0xf90axf)})}function handleError(_0xf90axe,_0xf90axf){return _0xf90axe[_0x90ca[17]](500)[_0x90ca[16]](_0xf90axf)}
\ No newline at end of file