Built motion from commit 98555a2.|1.0.12
[motion.git] / server / api / sound / sound.controller.js
index fc98686..4fa7924 100644 (file)
@@ -1 +1 @@
-var _0x9dbb=["\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"];_0x9dbb[0];var _=require(_0x9dbb[1]);var Sound=require(_0x9dbb[3])[_0x9dbb[2]];var uploadFile=require(_0x9dbb[4]);var sr=require(_0x9dbb[5]);var sox=require(_0x9dbb[6]);var path=require(_0x9dbb[7]);var config=require(_0x9dbb[8]);var fs=require(_0x9dbb[9]);var sequelize=require(_0x9dbb[3])[_0x9dbb[10]];var base64=require(_0x9dbb[11]);var Promise=require(_0x9dbb[12]);exports[_0x9dbb[13]]=function(_0xa1a0xc,_0xa1a0xd){Sound[_0x9dbb[18]]()[_0x9dbb[17]](function(_0xa1a0xf){return _0xa1a0xd[_0x9dbb[16]](200)[_0x9dbb[15]](_0xa1a0xf)})[_0x9dbb[14]](function(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)})};exports[_0x9dbb[19]]=function(_0xa1a0xc,_0xa1a0xd){Sound[_0x9dbb[23]](_0xa1a0xc[_0x9dbb[22]][_0x9dbb[21]])[_0x9dbb[17]](function(Sound){if(!Sound){return _0xa1a0xd[_0x9dbb[20]](404)};return _0xa1a0xd[_0x9dbb[15]](Sound)})[_0x9dbb[14]](function(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)})};exports[_0x9dbb[24]]=function(_0xa1a0xc,_0xa1a0xd){var _0xa1a0x10= new uploadFile({dest:path[_0x9dbb[26]](config[_0x9dbb[25]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0xa1a0x11,_0xa1a0x12){return sr()+path[_0x9dbb[28]](_0xa1a0x12[_0x9dbb[27]])},messages:{maxNumberOfFiles:_0x9dbb[29],acceptFileTypes:_0x9dbb[30],maxFileSize:_0x9dbb[31],invalidRequest:_0x9dbb[32]}});_0xa1a0x10[_0x9dbb[54]](_0x9dbb[33],function(_0xa1a0x13,_0xa1a0x14){if(!_0xa1a0x14[_0x9dbb[34]][_0x9dbb[27]]){return _0xa1a0xd[_0x9dbb[16]](500)[_0x9dbb[15]](_0xa1a0x10)};var _0xa1a0x15={};var _0xa1a0x16=path[_0x9dbb[28]](_0xa1a0x14[_0x9dbb[34]][_0x9dbb[27]]);_0xa1a0x15[_0x9dbb[35]]=_0x9dbb[36];_0xa1a0x15[_0x9dbb[37]]=path[_0x9dbb[28]](_0xa1a0x14[_0x9dbb[34]][_0x9dbb[27]])[_0x9dbb[38]](1);_0xa1a0x15[_0x9dbb[39]]=_0x9dbb[40];_0xa1a0x15[_0x9dbb[41]]=_0xa1a0x15[_0x9dbb[42]]=path[_0x9dbb[43]](_0xa1a0x14[_0x9dbb[34]][_0x9dbb[7]],_0xa1a0x16);_0xa1a0x15[_0x9dbb[44]]=path[_0x9dbb[43]](_0xa1a0x14[_0x9dbb[34]][_0x9dbb[27]],_0xa1a0x16);var _0xa1a0x17=path[_0x9dbb[26]](config[_0x9dbb[25]],_0xa1a0x15[_0x9dbb[44]]+_0xa1a0x16);var _0xa1a0x18=path[_0x9dbb[26]](config[_0x9dbb[45]],_0xa1a0x15[_0x9dbb[44]]+_0x9dbb[46]+_0xa1a0x15[_0x9dbb[39]]);fs[_0x9dbb[48]](_0xa1a0x17,parseInt(_0x9dbb[47],8));sox[_0x9dbb[49]](_0xa1a0x17,function(_0xa1a0xe,_0xa1a0x19){});var _0xa1a0x1a=sox[_0x9dbb[50]](_0xa1a0x17,_0xa1a0x18,{sampleRate:8000,format:_0x9dbb[40],channelCount:1,bitRate:192*1024,compressionQuality:5});_0xa1a0x1a[_0x9dbb[54]](_0x9dbb[51],function(_0xa1a0xe){console[_0x9dbb[51]](_0x9dbb[52],_0xa1a0xe);fs[_0x9dbb[53]](_0xa1a0x17,function(_0xa1a0xe){if(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)}});return handleError(_0xa1a0xd,_0xa1a0xe)});_0xa1a0x1a[_0x9dbb[54]](_0x9dbb[55],function(_0xa1a0x1b,_0xa1a0x1c){});_0xa1a0x1a[_0x9dbb[54]](_0x9dbb[56],function(_0xa1a0x1d){_0xa1a0x15[_0x9dbb[57]]=isNaN(_0xa1a0x1d[_0x9dbb[58]])?null:_0xa1a0x1d[_0x9dbb[58]]*1000;_0xa1a0x15[_0x9dbb[59]]=isNaN(_0xa1a0x1d[_0x9dbb[60]])?null:_0xa1a0x1d[_0x9dbb[60]];_0xa1a0x15[_0x9dbb[61]]=isNaN(_0xa1a0x1d[_0x9dbb[62]])?null:_0xa1a0x1d[_0x9dbb[62]];_0xa1a0x15[_0x9dbb[63]]=isNaN(_0xa1a0x1d[_0x9dbb[64]])?null:_0xa1a0x1d[_0x9dbb[64]];_0xa1a0x15[_0x9dbb[65]]=isNaN(_0xa1a0x1d[_0x9dbb[66]])?null:_0xa1a0x1d[_0x9dbb[66]]});_0xa1a0x1a[_0x9dbb[54]](_0x9dbb[67],function(_0xa1a0x1d){_0xa1a0x15[_0x9dbb[68]]=isNaN(_0xa1a0x1d[_0x9dbb[58]])?null:_0xa1a0x1d[_0x9dbb[58]]*1000;_0xa1a0x15[_0x9dbb[69]]=isNaN(_0xa1a0x1d[_0x9dbb[60]])?null:_0xa1a0x1d[_0x9dbb[60]];_0xa1a0x15[_0x9dbb[70]]=isNaN(_0xa1a0x1d[_0x9dbb[62]])?null:_0xa1a0x1d[_0x9dbb[62]];_0xa1a0x15[_0x9dbb[71]]=isNaN(_0xa1a0x1d[_0x9dbb[64]])?null:_0xa1a0x1d[_0x9dbb[64]];_0xa1a0x15[_0x9dbb[72]]=isNaN(_0xa1a0x1d[_0x9dbb[66]])?null:_0xa1a0x1d[_0x9dbb[66]]});_0xa1a0x1a[_0x9dbb[54]](_0x9dbb[33],function(){console[_0x9dbb[74]](_0x9dbb[73]);fs[_0x9dbb[48]](_0xa1a0x18,parseInt(_0x9dbb[47],8));Sound[_0x9dbb[24]](_0xa1a0x15)[_0x9dbb[17]](function(_0xa1a0x1e){return _0xa1a0xd[_0x9dbb[16]](201)[_0x9dbb[15]](_0xa1a0x1e)})[_0x9dbb[14]](function(_0xa1a0xe){console[_0x9dbb[74]](_0xa1a0xe);return handleError(_0xa1a0xd,_0xa1a0xe)})});_0xa1a0x1a[_0x9dbb[75]]()});_0xa1a0x10[_0x9dbb[54]](_0x9dbb[51],function(_0xa1a0xe){console[_0x9dbb[74]](_0x9dbb[76],_0xa1a0xe);return handleError(_0xa1a0xd,_0xa1a0xe)});_0xa1a0x10[_0x9dbb[77]](_0xa1a0xc)};exports[_0x9dbb[78]]=function(_0xa1a0xc,_0xa1a0xd){if(_0xa1a0xc[_0x9dbb[79]][_0x9dbb[21]]){delete _0xa1a0xc[_0x9dbb[79]][_0x9dbb[21]]};Sound[_0x9dbb[23]](_0xa1a0xc[_0x9dbb[22]][_0x9dbb[21]])[_0x9dbb[17]](function(_0xa1a0x1e){if(!_0xa1a0x1e){return _0xa1a0xd[_0x9dbb[20]](404)};var _0xa1a0x1f=_[_0x9dbb[80]](_0xa1a0x1e,_0xa1a0xc[_0x9dbb[79]]);_0xa1a0x1f[_0x9dbb[81]]()[_0x9dbb[17]](function(){return _0xa1a0xd[_0x9dbb[16]](200)[_0x9dbb[15]](_0xa1a0x1e)})[_0x9dbb[14]](function(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)})})[_0x9dbb[14]](function(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)})};exports[_0x9dbb[82]]=function(_0xa1a0xc,_0xa1a0xd){Sound[_0x9dbb[23]](_0xa1a0xc[_0x9dbb[22]][_0x9dbb[21]])[_0x9dbb[17]](function(_0xa1a0x1e){if(!_0xa1a0x1e){return _0xa1a0xd[_0x9dbb[16]](404)[_0x9dbb[15]](_0xa1a0x1e)};var _0xa1a0x20=path[_0x9dbb[26]](config[_0x9dbb[25]],_0xa1a0x1e[_0x9dbb[44]]+_0x9dbb[46]+_0xa1a0x1e[_0x9dbb[37]]);var _0xa1a0x21=path[_0x9dbb[26]](config[_0x9dbb[45]],_0xa1a0x1e[_0x9dbb[44]]+_0x9dbb[46]+_0xa1a0x1e[_0x9dbb[39]]);return sequelize[_0x9dbb[83]](function(_0xa1a0x22){return _0xa1a0x1e[_0x9dbb[82]]({transaction:_0xa1a0x22})[_0x9dbb[17]](function(){fs[_0x9dbb[53]](_0xa1a0x20,function(_0xa1a0xe){if(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)}});fs[_0x9dbb[53]](_0xa1a0x21,function(_0xa1a0xe){if(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)}});return _0xa1a0xd[_0x9dbb[16]](200)[_0x9dbb[15]](_0xa1a0x1e)})})[_0x9dbb[14]](function(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)})})[_0x9dbb[14]](function(_0xa1a0xe){return handleError(_0xa1a0xd,_0xa1a0xe)})};exports[_0x9dbb[84]]=function(_0xa1a0xc,_0xa1a0xd){getStream(_0xa1a0xc,_0xa1a0xd,_0x9dbb[85])};exports[_0x9dbb[86]]=function(_0xa1a0xc,_0xa1a0xd){getStream(_0xa1a0xc,_0xa1a0xd,_0x9dbb[87])};function getStream(_0xa1a0xc,_0xa1a0xd,_0xa1a0x24){return Sound[_0x9dbb[23]](_0xa1a0xc[_0x9dbb[22]][_0x9dbb[21]])[_0x9dbb[17]](function(_0xa1a0x1e){var _0xa1a0x26=Promise[_0x9dbb[91]](fs[_0x9dbb[90]]);return _0xa1a0x26(path[_0x9dbb[26]](config[_0xa1a0x24+_0x9dbb[92]],_0xa1a0x1e[_0x9dbb[44]]+_0x9dbb[46]+_0xa1a0x1e[_0xa1a0x24+_0x9dbb[93]]))})[_0x9dbb[17]](function(_0xa1a0x19){var _0xa1a0x25= new Buffer(_0xa1a0x19,_0x9dbb[89]).toString(_0x9dbb[88]);return _0xa1a0x25})[_0x9dbb[17]](function(_0xa1a0x25){return _0xa1a0xd[_0x9dbb[16]](200)[_0x9dbb[15]]({downloadString:_0xa1a0x25})})[_0x9dbb[14]](function(_0xa1a0xe){console[_0x9dbb[74]](_0xa1a0xe);return handleError(_0xa1a0xd,_0xa1a0xe)})}function handleError(_0xa1a0xd,_0xa1a0xe){return _0xa1a0xd[_0x9dbb[16]](500)[_0x9dbb[15]](_0xa1a0xe)}
\ No newline at end of file
+var _0xc852=["\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"];_0xc852[0];var _=require(_0xc852[1]);var Sound=require(_0xc852[3])[_0xc852[2]];var uploadFile=require(_0xc852[4]);var sr=require(_0xc852[5]);var sox=require(_0xc852[6]);var path=require(_0xc852[7]);var config=require(_0xc852[8]);var fs=require(_0xc852[9]);var sequelize=require(_0xc852[3])[_0xc852[10]];var base64=require(_0xc852[11]);var Promise=require(_0xc852[12]);var Setting=require(_0xc852[3])[_0xc852[13]];exports[_0xc852[14]]= function(_0x59c4xd,_0x59c4xe){return Sound[_0xc852[19]]()[_0xc852[18]](function(_0x59c4x10){return _0x59c4xe[_0xc852[17]](200)[_0xc852[16]](_0x59c4x10)})[_0xc852[15]](function(_0x59c4xf){return handleError(_0x59c4xe,_0x59c4xf)})};exports[_0xc852[20]]= function(_0x59c4xd,_0x59c4xe){return Sound[_0xc852[24]](_0x59c4xd[_0xc852[23]][_0xc852[22]])[_0xc852[18]](function(Sound){if(!Sound){return _0x59c4xe[_0xc852[21]](404)};return _0x59c4xe[_0xc852[16]](Sound)})[_0xc852[15]](function(_0x59c4xf){return handleError(_0x59c4xe,_0x59c4xf)})};exports[_0xc852[25]]= function(_0x59c4xd,_0x59c4xe){var _0x59c4x11= new uploadFile({dest:path[_0xc852[27]](config[_0xc852[26]]),maxFileSize:15* 1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x59c4x12,_0x59c4x13){return sr()+ path[_0xc852[29]](_0x59c4x13[_0xc852[28]])},messages:{maxNumberOfFiles:_0xc852[30],acceptFileTypes:_0xc852[31],maxFileSize:_0xc852[32],invalidRequest:_0xc852[33]}});_0x59c4x11[_0xc852[56]](_0xc852[34],function(_0x59c4x14,_0x59c4x15){if(!_0x59c4x15[_0xc852[35]][_0xc852[28]]){return _0x59c4xe[_0xc852[17]](500)[_0xc852[16]](_0x59c4x11)};return Setting[_0xc852[24]](1)[_0xc852[18]](function(_0x59c4x16){var _0x59c4x17={};var _0x59c4x18=path[_0xc852[29]](_0x59c4x15[_0xc852[35]][_0xc852[28]]);_0x59c4x17[_0xc852[36]]= _0xc852[37];_0x59c4x17[_0xc852[38]]= path[_0xc852[29]](_0x59c4x15[_0xc852[35]][_0xc852[28]])[_0xc852[39]](1);_0x59c4x17[_0xc852[40]]= _0xc852[41];_0x59c4x17[_0xc852[42]]= _0x59c4x17[_0xc852[43]]= path[_0xc852[44]](_0x59c4x15[_0xc852[35]][_0xc852[7]],_0x59c4x18);_0x59c4x17[_0xc852[45]]= path[_0xc852[44]](_0x59c4x15[_0xc852[35]][_0xc852[28]],_0x59c4x18);var _0x59c4x19=path[_0xc852[27]](config[_0xc852[26]],_0x59c4x17[_0xc852[45]]+ _0x59c4x18);var _0x59c4x1a=path[_0xc852[27]](_0x59c4x16[_0xc852[46]]|| _0xc852[47],_0x59c4x17[_0xc852[45]]+ _0xc852[48]+ _0x59c4x17[_0xc852[40]]);fs[_0xc852[50]](_0x59c4x19,parseInt(_0xc852[49],8));sox[_0xc852[51]](_0x59c4x19,function(_0x59c4xf,_0x59c4x1b){});var _0x59c4x1c=sox[_0xc852[52]](_0x59c4x19,_0x59c4x1a,{sampleRate:8000,format:_0xc852[41],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0x59c4x1c[_0xc852[56]](_0xc852[53],function(_0x59c4xf){console[_0xc852[53]](_0xc852[54],_0x59c4xf);fs[_0xc852[55]](_0x59c4x19,function(_0x59c4xf){if(_0x59c4xf){return handleError(_0x59c4xe,_0x59c4xf)}});return handleError(_0x59c4xe,_0x59c4xf)});_0x59c4x1c[_0xc852[56]](_0xc852[57],function(_0x59c4x1d,_0x59c4x1e){});_0x59c4x1c[_0xc852[56]](_0xc852[58],function(_0x59c4x1f){_0x59c4x17[_0xc852[59]]= isNaN(_0x59c4x1f[_0xc852[60]])?null:_0x59c4x1f[_0xc852[60]]* 1000;_0x59c4x17[_0xc852[61]]= isNaN(_0x59c4x1f[_0xc852[62]])?null:_0x59c4x1f[_0xc852[62]];_0x59c4x17[_0xc852[63]]= isNaN(_0x59c4x1f[_0xc852[64]])?null:_0x59c4x1f[_0xc852[64]];_0x59c4x17[_0xc852[65]]= isNaN(_0x59c4x1f[_0xc852[66]])?null:_0x59c4x1f[_0xc852[66]];_0x59c4x17[_0xc852[67]]= isNaN(_0x59c4x1f[_0xc852[68]])?null:_0x59c4x1f[_0xc852[68]]});_0x59c4x1c[_0xc852[56]](_0xc852[69],function(_0x59c4x1f){_0x59c4x17[_0xc852[70]]= isNaN(_0x59c4x1f[_0xc852[60]])?null:_0x59c4x1f[_0xc852[60]]* 1000;_0x59c4x17[_0xc852[71]]= isNaN(_0x59c4x1f[_0xc852[62]])?null:_0x59c4x1f[_0xc852[62]];_0x59c4x17[_0xc852[72]]= isNaN(_0x59c4x1f[_0xc852[64]])?null:_0x59c4x1f[_0xc852[64]];_0x59c4x17[_0xc852[73]]= isNaN(_0x59c4x1f[_0xc852[66]])?null:_0x59c4x1f[_0xc852[66]];_0x59c4x17[_0xc852[74]]= isNaN(_0x59c4x1f[_0xc852[68]])?null:_0x59c4x1f[_0xc852[68]]});_0x59c4x1c[_0xc852[56]](_0xc852[34],function(){console[_0xc852[76]](_0xc852[75]);fs[_0xc852[50]](_0x59c4x1a,parseInt(_0xc852[49],8));return Sound[_0xc852[25]](_0x59c4x17)[_0xc852[18]](function(_0x59c4x20){return _0x59c4xe[_0xc852[17]](201)[_0xc852[16]](_0x59c4x20)})[_0xc852[15]](function(_0x59c4xf){console[_0xc852[76]](_0x59c4xf);return handleError(_0x59c4xe,_0x59c4xf)})});_0x59c4x1c[_0xc852[77]]()})[_0xc852[15]](function(_0x59c4xf){return handleError(_0x59c4xe,_0x59c4xf)})});_0x59c4x11[_0xc852[56]](_0xc852[53],function(_0x59c4xf){console[_0xc852[76]](_0xc852[78],_0x59c4xf);return handleError(_0x59c4xe,_0x59c4xf)});_0x59c4x11[_0xc852[79]](_0x59c4xd)};exports[_0xc852[80]]= function(_0x59c4xd,_0x59c4xe){if(_0x59c4xd[_0xc852[81]][_0xc852[22]]){delete _0x59c4xd[_0xc852[81]][_0xc852[22]]};return Sound[_0xc852[24]](_0x59c4xd[_0xc852[23]][_0xc852[22]])[_0xc852[18]](function(_0x59c4x20){if(!_0x59c4x20){return _0x59c4xe[_0xc852[21]](404)};var _0x59c4x21=_[_0xc852[82]](_0x59c4x20,_0x59c4xd[_0xc852[81]]);return _0x59c4x21[_0xc852[83]]()})[_0xc852[18]](function(_0x59c4x20){return _0x59c4xe[_0xc852[17]](200)[_0xc852[16]](_0x59c4x20)})[_0xc852[15]](function(_0x59c4xf){return handleError(_0x59c4xe,_0x59c4xf)})};exports[_0xc852[84]]= function(_0x59c4xd,_0x59c4xe){var _0x59c4x22;return Setting[_0xc852[24]](1)[_0xc852[18]](function(_0x59c4x16){_0x59c4x22= _0x59c4x16;return Sound[_0xc852[24]](_0x59c4xd[_0xc852[23]][_0xc852[22]])})[_0xc852[18]](function(_0x59c4x20){if(!_0x59c4x20){return _0x59c4xe[_0xc852[21]](404)};var _0x59c4x23=path[_0xc852[27]](config[_0xc852[26]],_0x59c4x20[_0xc852[45]]+ _0xc852[48]+ _0x59c4x20[_0xc852[38]]);var _0x59c4x24=path[_0xc852[27]](_0x59c4x22[_0xc852[46]]|| _0xc852[47],_0x59c4x20[_0xc852[45]]+ _0xc852[48]+ _0x59c4x20[_0xc852[40]]);return sequelize[_0xc852[85]](function(_0x59c4x25){return _0x59c4x20[_0xc852[84]]({transaction:_0x59c4x25})[_0xc852[18]](function(){fs[_0xc852[55]](_0x59c4x23,function(_0x59c4xf){if(_0x59c4xf){console[_0xc852[76]](_0x59c4xf)}});fs[_0xc852[55]](_0x59c4x24,function(_0x59c4xf){if(_0x59c4xf){console[_0xc852[76]](_0x59c4xf)}});return _0x59c4xe[_0xc852[17]](200)[_0xc852[16]](_0x59c4x20)})})[_0xc852[15]](function(_0x59c4xf){return handleError(_0x59c4xe,_0x59c4xf)})})[_0xc852[15]](function(_0x59c4xf){return handleError(_0x59c4xe,_0x59c4xf)})};exports[_0xc852[86]]= function(_0x59c4xd,_0x59c4xe){getStream(_0x59c4xd,_0x59c4xe,_0xc852[87])};exports[_0xc852[88]]= function(_0x59c4xd,_0x59c4xe){getStream(_0x59c4xd,_0x59c4xe,_0xc852[89])};function getStream(_0x59c4xd,_0x59c4xe,_0x59c4x27){return Sound[_0xc852[24]](_0x59c4xd[_0xc852[23]][_0xc852[22]])[_0xc852[18]](function(_0x59c4x20){var _0x59c4x29=Promise[_0xc852[93]](fs[_0xc852[92]]);return _0x59c4x29(path[_0xc852[27]](config[_0x59c4x27+ _0xc852[94]],_0x59c4x20[_0xc852[45]]+ _0xc852[48]+ _0x59c4x20[_0x59c4x27+ _0xc852[95]]))})[_0xc852[18]](function(_0x59c4x1b){var _0x59c4x28= new Buffer(_0x59c4x1b,_0xc852[91]).toString(_0xc852[90]);return _0x59c4x28})[_0xc852[18]](function(_0x59c4x28){return _0x59c4xe[_0xc852[17]](200)[_0xc852[16]]({downloadString:_0x59c4x28})})[_0xc852[15]](function(_0x59c4xf){console[_0xc852[76]](_0x59c4xf);return handleError(_0x59c4xe,_0x59c4xf)})}function handleError(_0x59c4xe,_0x59c4xf){return _0x59c4xe[_0xc852[17]](500)[_0xc852[16]](_0x59c4xf)}
\ No newline at end of file