Built motion from commit e5f953e.|0.0.46
[motion.git] / server / api / sound / sound.controller.js
index 764c31f..526ca6c 100644 (file)
@@ -1 +1 @@
-var _0xfc94=["\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"];_0xfc94[0];var _=require(_0xfc94[1]);var Sound=require(_0xfc94[3])[_0xfc94[2]];var uploadFile=require(_0xfc94[4]);var sr=require(_0xfc94[5]);var sox=require(_0xfc94[6]);var path=require(_0xfc94[7]);var config=require(_0xfc94[8]);var fs=require(_0xfc94[9]);var sequelize=require(_0xfc94[3])[_0xfc94[10]];var base64=require(_0xfc94[11]);var Promise=require(_0xfc94[12]);exports[_0xfc94[13]]=function(_0xc0ccxc,_0xc0ccxd){Sound[_0xfc94[18]]()[_0xfc94[17]](function(_0xc0ccxf){return _0xc0ccxd[_0xfc94[16]](200)[_0xfc94[15]](_0xc0ccxf)})[_0xfc94[14]](function(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)})};exports[_0xfc94[19]]=function(_0xc0ccxc,_0xc0ccxd){Sound[_0xfc94[23]](_0xc0ccxc[_0xfc94[22]][_0xfc94[21]])[_0xfc94[17]](function(Sound){if(!Sound){return _0xc0ccxd[_0xfc94[20]](404)};return _0xc0ccxd[_0xfc94[15]](Sound)})[_0xfc94[14]](function(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)})};exports[_0xfc94[24]]=function(_0xc0ccxc,_0xc0ccxd){var _0xc0ccx10= new uploadFile({dest:path[_0xfc94[26]](config[_0xfc94[25]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0xc0ccx11,_0xc0ccx12){return sr()+path[_0xfc94[28]](_0xc0ccx12[_0xfc94[27]])},messages:{maxNumberOfFiles:_0xfc94[29],acceptFileTypes:_0xfc94[30],maxFileSize:_0xfc94[31],invalidRequest:_0xfc94[32]}});_0xc0ccx10[_0xfc94[54]](_0xfc94[33],function(_0xc0ccx13,_0xc0ccx14){if(!_0xc0ccx14[_0xfc94[34]][_0xfc94[27]]){return _0xc0ccxd[_0xfc94[16]](500)[_0xfc94[15]](_0xc0ccx10)};var _0xc0ccx15={};var _0xc0ccx16=path[_0xfc94[28]](_0xc0ccx14[_0xfc94[34]][_0xfc94[27]]);_0xc0ccx15[_0xfc94[35]]=_0xfc94[36];_0xc0ccx15[_0xfc94[37]]=path[_0xfc94[28]](_0xc0ccx14[_0xfc94[34]][_0xfc94[27]])[_0xfc94[38]](1);_0xc0ccx15[_0xfc94[39]]=_0xfc94[40];_0xc0ccx15[_0xfc94[41]]=_0xc0ccx15[_0xfc94[42]]=path[_0xfc94[43]](_0xc0ccx14[_0xfc94[34]][_0xfc94[7]],_0xc0ccx16);_0xc0ccx15[_0xfc94[44]]=path[_0xfc94[43]](_0xc0ccx14[_0xfc94[34]][_0xfc94[27]],_0xc0ccx16);var _0xc0ccx17=path[_0xfc94[26]](config[_0xfc94[25]],_0xc0ccx15[_0xfc94[44]]+_0xc0ccx16);var _0xc0ccx18=path[_0xfc94[26]](config[_0xfc94[45]],_0xc0ccx15[_0xfc94[44]]+_0xfc94[46]+_0xc0ccx15[_0xfc94[39]]);fs[_0xfc94[48]](_0xc0ccx17,parseInt(_0xfc94[47],8));sox[_0xfc94[49]](_0xc0ccx17,function(_0xc0ccxe,_0xc0ccx19){});var _0xc0ccx1a=sox[_0xfc94[50]](_0xc0ccx17,_0xc0ccx18,{sampleRate:8000,format:_0xfc94[40],channelCount:1,bitRate:192*1024,compressionQuality:5});_0xc0ccx1a[_0xfc94[54]](_0xfc94[51],function(_0xc0ccxe){console[_0xfc94[51]](_0xfc94[52],_0xc0ccxe);fs[_0xfc94[53]](_0xc0ccx17,function(_0xc0ccxe){if(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)}});return handleError(_0xc0ccxd,_0xc0ccxe)});_0xc0ccx1a[_0xfc94[54]](_0xfc94[55],function(_0xc0ccx1b,_0xc0ccx1c){});_0xc0ccx1a[_0xfc94[54]](_0xfc94[56],function(_0xc0ccx1d){_0xc0ccx15[_0xfc94[57]]=isNaN(_0xc0ccx1d[_0xfc94[58]])?null:_0xc0ccx1d[_0xfc94[58]]*1000;_0xc0ccx15[_0xfc94[59]]=isNaN(_0xc0ccx1d[_0xfc94[60]])?null:_0xc0ccx1d[_0xfc94[60]];_0xc0ccx15[_0xfc94[61]]=isNaN(_0xc0ccx1d[_0xfc94[62]])?null:_0xc0ccx1d[_0xfc94[62]];_0xc0ccx15[_0xfc94[63]]=isNaN(_0xc0ccx1d[_0xfc94[64]])?null:_0xc0ccx1d[_0xfc94[64]];_0xc0ccx15[_0xfc94[65]]=isNaN(_0xc0ccx1d[_0xfc94[66]])?null:_0xc0ccx1d[_0xfc94[66]]});_0xc0ccx1a[_0xfc94[54]](_0xfc94[67],function(_0xc0ccx1d){_0xc0ccx15[_0xfc94[68]]=isNaN(_0xc0ccx1d[_0xfc94[58]])?null:_0xc0ccx1d[_0xfc94[58]]*1000;_0xc0ccx15[_0xfc94[69]]=isNaN(_0xc0ccx1d[_0xfc94[60]])?null:_0xc0ccx1d[_0xfc94[60]];_0xc0ccx15[_0xfc94[70]]=isNaN(_0xc0ccx1d[_0xfc94[62]])?null:_0xc0ccx1d[_0xfc94[62]];_0xc0ccx15[_0xfc94[71]]=isNaN(_0xc0ccx1d[_0xfc94[64]])?null:_0xc0ccx1d[_0xfc94[64]];_0xc0ccx15[_0xfc94[72]]=isNaN(_0xc0ccx1d[_0xfc94[66]])?null:_0xc0ccx1d[_0xfc94[66]]});_0xc0ccx1a[_0xfc94[54]](_0xfc94[33],function(){console[_0xfc94[74]](_0xfc94[73]);fs[_0xfc94[48]](_0xc0ccx18,parseInt(_0xfc94[47],8));Sound[_0xfc94[24]](_0xc0ccx15)[_0xfc94[17]](function(_0xc0ccx1e){return _0xc0ccxd[_0xfc94[16]](201)[_0xfc94[15]](_0xc0ccx1e)})[_0xfc94[14]](function(_0xc0ccxe){console[_0xfc94[74]](_0xc0ccxe);return handleError(_0xc0ccxd,_0xc0ccxe)})});_0xc0ccx1a[_0xfc94[75]]()});_0xc0ccx10[_0xfc94[54]](_0xfc94[51],function(_0xc0ccxe){console[_0xfc94[74]](_0xfc94[76],_0xc0ccxe);return handleError(_0xc0ccxd,_0xc0ccxe)});_0xc0ccx10[_0xfc94[77]](_0xc0ccxc)};exports[_0xfc94[78]]=function(_0xc0ccxc,_0xc0ccxd){if(_0xc0ccxc[_0xfc94[79]][_0xfc94[21]]){delete _0xc0ccxc[_0xfc94[79]][_0xfc94[21]]};Sound[_0xfc94[23]](_0xc0ccxc[_0xfc94[22]][_0xfc94[21]])[_0xfc94[17]](function(_0xc0ccx1e){if(!_0xc0ccx1e){return _0xc0ccxd[_0xfc94[20]](404)};var _0xc0ccx1f=_[_0xfc94[80]](_0xc0ccx1e,_0xc0ccxc[_0xfc94[79]]);_0xc0ccx1f[_0xfc94[81]]()[_0xfc94[17]](function(){return _0xc0ccxd[_0xfc94[16]](200)[_0xfc94[15]](_0xc0ccx1e)})[_0xfc94[14]](function(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)})})[_0xfc94[14]](function(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)})};exports[_0xfc94[82]]=function(_0xc0ccxc,_0xc0ccxd){Sound[_0xfc94[23]](_0xc0ccxc[_0xfc94[22]][_0xfc94[21]])[_0xfc94[17]](function(_0xc0ccx1e){if(!_0xc0ccx1e){return _0xc0ccxd[_0xfc94[16]](404)[_0xfc94[15]](_0xc0ccx1e)};var _0xc0ccx20=path[_0xfc94[26]](config[_0xfc94[25]],_0xc0ccx1e[_0xfc94[44]]+_0xfc94[46]+_0xc0ccx1e[_0xfc94[37]]);var _0xc0ccx21=path[_0xfc94[26]](config[_0xfc94[45]],_0xc0ccx1e[_0xfc94[44]]+_0xfc94[46]+_0xc0ccx1e[_0xfc94[39]]);return sequelize[_0xfc94[83]](function(_0xc0ccx22){return _0xc0ccx1e[_0xfc94[82]]({transaction:_0xc0ccx22})[_0xfc94[17]](function(){fs[_0xfc94[53]](_0xc0ccx20,function(_0xc0ccxe){if(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)}});fs[_0xfc94[53]](_0xc0ccx21,function(_0xc0ccxe){if(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)}});return _0xc0ccxd[_0xfc94[16]](200)[_0xfc94[15]](_0xc0ccx1e)})})[_0xfc94[14]](function(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)})})[_0xfc94[14]](function(_0xc0ccxe){return handleError(_0xc0ccxd,_0xc0ccxe)})};exports[_0xfc94[84]]=function(_0xc0ccxc,_0xc0ccxd){getStream(_0xc0ccxc,_0xc0ccxd,_0xfc94[85])};exports[_0xfc94[86]]=function(_0xc0ccxc,_0xc0ccxd){getStream(_0xc0ccxc,_0xc0ccxd,_0xfc94[87])};function getStream(_0xc0ccxc,_0xc0ccxd,_0xc0ccx24){return Sound[_0xfc94[23]](_0xc0ccxc[_0xfc94[22]][_0xfc94[21]])[_0xfc94[17]](function(_0xc0ccx1e){var _0xc0ccx26=Promise[_0xfc94[91]](fs[_0xfc94[90]]);return _0xc0ccx26(path[_0xfc94[26]](config[_0xc0ccx24+_0xfc94[92]],_0xc0ccx1e[_0xfc94[44]]+_0xfc94[46]+_0xc0ccx1e[_0xc0ccx24+_0xfc94[93]]))})[_0xfc94[17]](function(_0xc0ccx19){var _0xc0ccx25= new Buffer(_0xc0ccx19,_0xfc94[89]).toString(_0xfc94[88]);return _0xc0ccx25})[_0xfc94[17]](function(_0xc0ccx25){return _0xc0ccxd[_0xfc94[16]](200)[_0xfc94[15]](_0xc0ccx25)})[_0xfc94[14]](function(_0xc0ccxe){console[_0xfc94[74]](_0xc0ccxe);return handleError(_0xc0ccxd,_0xc0ccxe)})}function handleError(_0xc0ccxd,_0xc0ccxe){return _0xc0ccxd[_0xfc94[16]](500)[_0xfc94[15]](_0xc0ccxe)}
\ No newline at end of file
+var _0xfc3f=["\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"];_0xfc3f[0];var _=require(_0xfc3f[1]);var Sound=require(_0xfc3f[3])[_0xfc3f[2]];var uploadFile=require(_0xfc3f[4]);var sr=require(_0xfc3f[5]);var sox=require(_0xfc3f[6]);var path=require(_0xfc3f[7]);var config=require(_0xfc3f[8]);var fs=require(_0xfc3f[9]);var sequelize=require(_0xfc3f[3])[_0xfc3f[10]];var base64=require(_0xfc3f[11]);var Promise=require(_0xfc3f[12]);exports[_0xfc3f[13]]=function(_0x56faxc,_0x56faxd){Sound[_0xfc3f[18]]()[_0xfc3f[17]](function(_0x56faxf){return _0x56faxd[_0xfc3f[16]](200)[_0xfc3f[15]](_0x56faxf)})[_0xfc3f[14]](function(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)})};exports[_0xfc3f[19]]=function(_0x56faxc,_0x56faxd){Sound[_0xfc3f[23]](_0x56faxc[_0xfc3f[22]][_0xfc3f[21]])[_0xfc3f[17]](function(Sound){if(!Sound){return _0x56faxd[_0xfc3f[20]](404)};return _0x56faxd[_0xfc3f[15]](Sound)})[_0xfc3f[14]](function(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)})};exports[_0xfc3f[24]]=function(_0x56faxc,_0x56faxd){var _0x56fax10= new uploadFile({dest:path[_0xfc3f[26]](config[_0xfc3f[25]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x56fax11,_0x56fax12){return sr()+path[_0xfc3f[28]](_0x56fax12[_0xfc3f[27]])},messages:{maxNumberOfFiles:_0xfc3f[29],acceptFileTypes:_0xfc3f[30],maxFileSize:_0xfc3f[31],invalidRequest:_0xfc3f[32]}});_0x56fax10[_0xfc3f[54]](_0xfc3f[33],function(_0x56fax13,_0x56fax14){if(!_0x56fax14[_0xfc3f[34]][_0xfc3f[27]]){return _0x56faxd[_0xfc3f[16]](500)[_0xfc3f[15]](_0x56fax10)};var _0x56fax15={};var _0x56fax16=path[_0xfc3f[28]](_0x56fax14[_0xfc3f[34]][_0xfc3f[27]]);_0x56fax15[_0xfc3f[35]]=_0xfc3f[36];_0x56fax15[_0xfc3f[37]]=path[_0xfc3f[28]](_0x56fax14[_0xfc3f[34]][_0xfc3f[27]])[_0xfc3f[38]](1);_0x56fax15[_0xfc3f[39]]=_0xfc3f[40];_0x56fax15[_0xfc3f[41]]=_0x56fax15[_0xfc3f[42]]=path[_0xfc3f[43]](_0x56fax14[_0xfc3f[34]][_0xfc3f[7]],_0x56fax16);_0x56fax15[_0xfc3f[44]]=path[_0xfc3f[43]](_0x56fax14[_0xfc3f[34]][_0xfc3f[27]],_0x56fax16);var _0x56fax17=path[_0xfc3f[26]](config[_0xfc3f[25]],_0x56fax15[_0xfc3f[44]]+_0x56fax16);var _0x56fax18=path[_0xfc3f[26]](config[_0xfc3f[45]],_0x56fax15[_0xfc3f[44]]+_0xfc3f[46]+_0x56fax15[_0xfc3f[39]]);fs[_0xfc3f[48]](_0x56fax17,parseInt(_0xfc3f[47],8));sox[_0xfc3f[49]](_0x56fax17,function(_0x56faxe,_0x56fax19){});var _0x56fax1a=sox[_0xfc3f[50]](_0x56fax17,_0x56fax18,{sampleRate:8000,format:_0xfc3f[40],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x56fax1a[_0xfc3f[54]](_0xfc3f[51],function(_0x56faxe){console[_0xfc3f[51]](_0xfc3f[52],_0x56faxe);fs[_0xfc3f[53]](_0x56fax17,function(_0x56faxe){if(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)}});return handleError(_0x56faxd,_0x56faxe)});_0x56fax1a[_0xfc3f[54]](_0xfc3f[55],function(_0x56fax1b,_0x56fax1c){});_0x56fax1a[_0xfc3f[54]](_0xfc3f[56],function(_0x56fax1d){_0x56fax15[_0xfc3f[57]]=isNaN(_0x56fax1d[_0xfc3f[58]])?null:_0x56fax1d[_0xfc3f[58]]*1000;_0x56fax15[_0xfc3f[59]]=isNaN(_0x56fax1d[_0xfc3f[60]])?null:_0x56fax1d[_0xfc3f[60]];_0x56fax15[_0xfc3f[61]]=isNaN(_0x56fax1d[_0xfc3f[62]])?null:_0x56fax1d[_0xfc3f[62]];_0x56fax15[_0xfc3f[63]]=isNaN(_0x56fax1d[_0xfc3f[64]])?null:_0x56fax1d[_0xfc3f[64]];_0x56fax15[_0xfc3f[65]]=isNaN(_0x56fax1d[_0xfc3f[66]])?null:_0x56fax1d[_0xfc3f[66]]});_0x56fax1a[_0xfc3f[54]](_0xfc3f[67],function(_0x56fax1d){_0x56fax15[_0xfc3f[68]]=isNaN(_0x56fax1d[_0xfc3f[58]])?null:_0x56fax1d[_0xfc3f[58]]*1000;_0x56fax15[_0xfc3f[69]]=isNaN(_0x56fax1d[_0xfc3f[60]])?null:_0x56fax1d[_0xfc3f[60]];_0x56fax15[_0xfc3f[70]]=isNaN(_0x56fax1d[_0xfc3f[62]])?null:_0x56fax1d[_0xfc3f[62]];_0x56fax15[_0xfc3f[71]]=isNaN(_0x56fax1d[_0xfc3f[64]])?null:_0x56fax1d[_0xfc3f[64]];_0x56fax15[_0xfc3f[72]]=isNaN(_0x56fax1d[_0xfc3f[66]])?null:_0x56fax1d[_0xfc3f[66]]});_0x56fax1a[_0xfc3f[54]](_0xfc3f[33],function(){console[_0xfc3f[74]](_0xfc3f[73]);fs[_0xfc3f[48]](_0x56fax18,parseInt(_0xfc3f[47],8));Sound[_0xfc3f[24]](_0x56fax15)[_0xfc3f[17]](function(_0x56fax1e){return _0x56faxd[_0xfc3f[16]](201)[_0xfc3f[15]](_0x56fax1e)})[_0xfc3f[14]](function(_0x56faxe){console[_0xfc3f[74]](_0x56faxe);return handleError(_0x56faxd,_0x56faxe)})});_0x56fax1a[_0xfc3f[75]]()});_0x56fax10[_0xfc3f[54]](_0xfc3f[51],function(_0x56faxe){console[_0xfc3f[74]](_0xfc3f[76],_0x56faxe);return handleError(_0x56faxd,_0x56faxe)});_0x56fax10[_0xfc3f[77]](_0x56faxc)};exports[_0xfc3f[78]]=function(_0x56faxc,_0x56faxd){if(_0x56faxc[_0xfc3f[79]][_0xfc3f[21]]){delete _0x56faxc[_0xfc3f[79]][_0xfc3f[21]]};Sound[_0xfc3f[23]](_0x56faxc[_0xfc3f[22]][_0xfc3f[21]])[_0xfc3f[17]](function(_0x56fax1e){if(!_0x56fax1e){return _0x56faxd[_0xfc3f[20]](404)};var _0x56fax1f=_[_0xfc3f[80]](_0x56fax1e,_0x56faxc[_0xfc3f[79]]);_0x56fax1f[_0xfc3f[81]]()[_0xfc3f[17]](function(){return _0x56faxd[_0xfc3f[16]](200)[_0xfc3f[15]](_0x56fax1e)})[_0xfc3f[14]](function(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)})})[_0xfc3f[14]](function(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)})};exports[_0xfc3f[82]]=function(_0x56faxc,_0x56faxd){Sound[_0xfc3f[23]](_0x56faxc[_0xfc3f[22]][_0xfc3f[21]])[_0xfc3f[17]](function(_0x56fax1e){if(!_0x56fax1e){return _0x56faxd[_0xfc3f[16]](404)[_0xfc3f[15]](_0x56fax1e)};var _0x56fax20=path[_0xfc3f[26]](config[_0xfc3f[25]],_0x56fax1e[_0xfc3f[44]]+_0xfc3f[46]+_0x56fax1e[_0xfc3f[37]]);var _0x56fax21=path[_0xfc3f[26]](config[_0xfc3f[45]],_0x56fax1e[_0xfc3f[44]]+_0xfc3f[46]+_0x56fax1e[_0xfc3f[39]]);return sequelize[_0xfc3f[83]](function(_0x56fax22){return _0x56fax1e[_0xfc3f[82]]({transaction:_0x56fax22})[_0xfc3f[17]](function(){fs[_0xfc3f[53]](_0x56fax20,function(_0x56faxe){if(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)}});fs[_0xfc3f[53]](_0x56fax21,function(_0x56faxe){if(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)}});return _0x56faxd[_0xfc3f[16]](200)[_0xfc3f[15]](_0x56fax1e)})})[_0xfc3f[14]](function(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)})})[_0xfc3f[14]](function(_0x56faxe){return handleError(_0x56faxd,_0x56faxe)})};exports[_0xfc3f[84]]=function(_0x56faxc,_0x56faxd){getStream(_0x56faxc,_0x56faxd,_0xfc3f[85])};exports[_0xfc3f[86]]=function(_0x56faxc,_0x56faxd){getStream(_0x56faxc,_0x56faxd,_0xfc3f[87])};function getStream(_0x56faxc,_0x56faxd,_0x56fax24){return Sound[_0xfc3f[23]](_0x56faxc[_0xfc3f[22]][_0xfc3f[21]])[_0xfc3f[17]](function(_0x56fax1e){var _0x56fax26=Promise[_0xfc3f[91]](fs[_0xfc3f[90]]);return _0x56fax26(path[_0xfc3f[26]](config[_0x56fax24+_0xfc3f[92]],_0x56fax1e[_0xfc3f[44]]+_0xfc3f[46]+_0x56fax1e[_0x56fax24+_0xfc3f[93]]))})[_0xfc3f[17]](function(_0x56fax19){var _0x56fax25= new Buffer(_0x56fax19,_0xfc3f[89]).toString(_0xfc3f[88]);return _0x56fax25})[_0xfc3f[17]](function(_0x56fax25){return _0x56faxd[_0xfc3f[16]](200)[_0xfc3f[15]](_0x56fax25)})[_0xfc3f[14]](function(_0x56faxe){console[_0xfc3f[74]](_0x56faxe);return handleError(_0x56faxd,_0x56faxe)})}function handleError(_0x56faxd,_0x56faxe){return _0x56faxd[_0xfc3f[16]](500)[_0xfc3f[15]](_0x56faxe)}
\ No newline at end of file