1 var _0xbb83=["\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"];_0xbb83[0];var _=require(_0xbb83[1]);var Sound=require(_0xbb83[3])[_0xbb83[2]];var uploadFile=require(_0xbb83[4]);var sr=require(_0xbb83[5]);var sox=require(_0xbb83[6]);var path=require(_0xbb83[7]);var config=require(_0xbb83[8]);var fs=require(_0xbb83[9]);var sequelize=require(_0xbb83[3])[_0xbb83[10]];var base64=require(_0xbb83[11]);var Promise=require(_0xbb83[12]);var Settings=require(_0xbb83[3])[_0xbb83[13]];exports[_0xbb83[14]]= function(_0x7dffxd,_0x7dffxe){return Sound[_0xbb83[19]]()[_0xbb83[18]](function(_0x7dffx10){return _0x7dffxe[_0xbb83[17]](200)[_0xbb83[16]](_0x7dffx10)})[_0xbb83[15]](function(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)})};exports[_0xbb83[20]]= function(_0x7dffxd,_0x7dffxe){return Sound[_0xbb83[24]](_0x7dffxd[_0xbb83[23]][_0xbb83[22]])[_0xbb83[18]](function(Sound){if(!Sound){return _0x7dffxe[_0xbb83[21]](404)};return _0x7dffxe[_0xbb83[16]](Sound)})[_0xbb83[15]](function(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)})};exports[_0xbb83[25]]= function(_0x7dffxd,_0x7dffxe){var _0x7dffx11= new uploadFile({dest:path[_0xbb83[27]](config[_0xbb83[26]]),maxFileSize:15* 1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x7dffx12,_0x7dffx13){return sr()+ path[_0xbb83[29]](_0x7dffx13[_0xbb83[28]])},messages:{maxNumberOfFiles:_0xbb83[30],acceptFileTypes:_0xbb83[31],maxFileSize:_0xbb83[32],invalidRequest:_0xbb83[33]}});_0x7dffx11[_0xbb83[56]](_0xbb83[34],function(_0x7dffx14,_0x7dffx15){if(!_0x7dffx15[_0xbb83[35]][_0xbb83[28]]){return _0x7dffxe[_0xbb83[17]](500)[_0xbb83[16]](_0x7dffx11)};return Settings[_0xbb83[24]](1)[_0xbb83[18]](function(_0x7dffx16){var _0x7dffx17={};var _0x7dffx18=path[_0xbb83[29]](_0x7dffx15[_0xbb83[35]][_0xbb83[28]]);_0x7dffx17[_0xbb83[36]]= _0xbb83[37];_0x7dffx17[_0xbb83[38]]= path[_0xbb83[29]](_0x7dffx15[_0xbb83[35]][_0xbb83[28]])[_0xbb83[39]](1);_0x7dffx17[_0xbb83[40]]= _0xbb83[41];_0x7dffx17[_0xbb83[42]]= _0x7dffx17[_0xbb83[43]]= path[_0xbb83[44]](_0x7dffx15[_0xbb83[35]][_0xbb83[7]],_0x7dffx18);_0x7dffx17[_0xbb83[45]]= path[_0xbb83[44]](_0x7dffx15[_0xbb83[35]][_0xbb83[28]],_0x7dffx18);var _0x7dffx19=path[_0xbb83[27]](config[_0xbb83[26]],_0x7dffx17[_0xbb83[45]]+ _0x7dffx18);var _0x7dffx1a=path[_0xbb83[27]](_0x7dffx16[_0xbb83[46]]|| _0xbb83[47],_0x7dffx17[_0xbb83[45]]+ _0xbb83[48]+ _0x7dffx17[_0xbb83[40]]);fs[_0xbb83[50]](_0x7dffx19,parseInt(_0xbb83[49],8));sox[_0xbb83[51]](_0x7dffx19,function(_0x7dffxf,_0x7dffx1b){});var _0x7dffx1c=sox[_0xbb83[52]](_0x7dffx19,_0x7dffx1a,{sampleRate:8000,format:_0xbb83[41],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0x7dffx1c[_0xbb83[56]](_0xbb83[53],function(_0x7dffxf){console[_0xbb83[53]](_0xbb83[54],_0x7dffxf);fs[_0xbb83[55]](_0x7dffx19,function(_0x7dffxf){if(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)}});return handleError(_0x7dffxe,_0x7dffxf)});_0x7dffx1c[_0xbb83[56]](_0xbb83[57],function(_0x7dffx1d,_0x7dffx1e){});_0x7dffx1c[_0xbb83[56]](_0xbb83[58],function(_0x7dffx1f){_0x7dffx17[_0xbb83[59]]= isNaN(_0x7dffx1f[_0xbb83[60]])?null:_0x7dffx1f[_0xbb83[60]]* 1000;_0x7dffx17[_0xbb83[61]]= isNaN(_0x7dffx1f[_0xbb83[62]])?null:_0x7dffx1f[_0xbb83[62]];_0x7dffx17[_0xbb83[63]]= isNaN(_0x7dffx1f[_0xbb83[64]])?null:_0x7dffx1f[_0xbb83[64]];_0x7dffx17[_0xbb83[65]]= isNaN(_0x7dffx1f[_0xbb83[66]])?null:_0x7dffx1f[_0xbb83[66]];_0x7dffx17[_0xbb83[67]]= isNaN(_0x7dffx1f[_0xbb83[68]])?null:_0x7dffx1f[_0xbb83[68]]});_0x7dffx1c[_0xbb83[56]](_0xbb83[69],function(_0x7dffx1f){_0x7dffx17[_0xbb83[70]]= isNaN(_0x7dffx1f[_0xbb83[60]])?null:_0x7dffx1f[_0xbb83[60]]* 1000;_0x7dffx17[_0xbb83[71]]= isNaN(_0x7dffx1f[_0xbb83[62]])?null:_0x7dffx1f[_0xbb83[62]];_0x7dffx17[_0xbb83[72]]= isNaN(_0x7dffx1f[_0xbb83[64]])?null:_0x7dffx1f[_0xbb83[64]];_0x7dffx17[_0xbb83[73]]= isNaN(_0x7dffx1f[_0xbb83[66]])?null:_0x7dffx1f[_0xbb83[66]];_0x7dffx17[_0xbb83[74]]= isNaN(_0x7dffx1f[_0xbb83[68]])?null:_0x7dffx1f[_0xbb83[68]]});_0x7dffx1c[_0xbb83[56]](_0xbb83[34],function(){console[_0xbb83[76]](_0xbb83[75]);fs[_0xbb83[50]](_0x7dffx1a,parseInt(_0xbb83[49],8));return Sound[_0xbb83[25]](_0x7dffx17)[_0xbb83[18]](function(_0x7dffx20){return _0x7dffxe[_0xbb83[17]](201)[_0xbb83[16]](_0x7dffx20)})[_0xbb83[15]](function(_0x7dffxf){console[_0xbb83[76]](_0x7dffxf);return handleError(_0x7dffxe,_0x7dffxf)})});_0x7dffx1c[_0xbb83[77]]()})[_0xbb83[15]](function(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)})});_0x7dffx11[_0xbb83[56]](_0xbb83[53],function(_0x7dffxf){console[_0xbb83[76]](_0xbb83[78],_0x7dffxf);return handleError(_0x7dffxe,_0x7dffxf)});_0x7dffx11[_0xbb83[79]](_0x7dffxd)};exports[_0xbb83[80]]= function(_0x7dffxd,_0x7dffxe){if(_0x7dffxd[_0xbb83[81]][_0xbb83[22]]){delete _0x7dffxd[_0xbb83[81]][_0xbb83[22]]};return Sound[_0xbb83[24]](_0x7dffxd[_0xbb83[23]][_0xbb83[22]])[_0xbb83[18]](function(_0x7dffx20){if(!_0x7dffx20){return _0x7dffxe[_0xbb83[21]](404)};var _0x7dffx21=_[_0xbb83[82]](_0x7dffx20,_0x7dffxd[_0xbb83[81]]);return _0x7dffx21[_0xbb83[83]]()})[_0xbb83[18]](function(_0x7dffx20){return _0x7dffxe[_0xbb83[17]](200)[_0xbb83[16]](_0x7dffx20)})[_0xbb83[15]](function(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)})};exports[_0xbb83[84]]= function(_0x7dffxd,_0x7dffxe){var _0x7dffx22;return Settings[_0xbb83[24]](1)[_0xbb83[18]](function(_0x7dffx16){_0x7dffx22= _0x7dffx16;return Sound[_0xbb83[24]](_0x7dffxd[_0xbb83[23]][_0xbb83[22]])})[_0xbb83[18]](function(_0x7dffx20){if(!_0x7dffx20){return _0x7dffxe[_0xbb83[21]](404)};var _0x7dffx23=path[_0xbb83[27]](config[_0xbb83[26]],_0x7dffx20[_0xbb83[45]]+ _0xbb83[48]+ _0x7dffx20[_0xbb83[38]]);var _0x7dffx24=path[_0xbb83[27]](_0x7dffx22[_0xbb83[46]]|| _0xbb83[47],_0x7dffx20[_0xbb83[45]]+ _0xbb83[48]+ _0x7dffx20[_0xbb83[40]]);return sequelize[_0xbb83[85]](function(_0x7dffx25){return _0x7dffx20[_0xbb83[84]]({transaction:_0x7dffx25})[_0xbb83[18]](function(){fs[_0xbb83[55]](_0x7dffx23,function(_0x7dffxf){if(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)}});fs[_0xbb83[55]](_0x7dffx24,function(_0x7dffxf){if(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)}});return _0x7dffxe[_0xbb83[17]](200)[_0xbb83[16]](_0x7dffx20)})})[_0xbb83[15]](function(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)})})[_0xbb83[15]](function(_0x7dffxf){return handleError(_0x7dffxe,_0x7dffxf)})};exports[_0xbb83[86]]= function(_0x7dffxd,_0x7dffxe){getStream(_0x7dffxd,_0x7dffxe,_0xbb83[87])};exports[_0xbb83[88]]= function(_0x7dffxd,_0x7dffxe){getStream(_0x7dffxd,_0x7dffxe,_0xbb83[89])};function getStream(_0x7dffxd,_0x7dffxe,_0x7dffx27){return Sound[_0xbb83[24]](_0x7dffxd[_0xbb83[23]][_0xbb83[22]])[_0xbb83[18]](function(_0x7dffx20){var _0x7dffx29=Promise[_0xbb83[93]](fs[_0xbb83[92]]);return _0x7dffx29(path[_0xbb83[27]](config[_0x7dffx27+ _0xbb83[94]],_0x7dffx20[_0xbb83[45]]+ _0xbb83[48]+ _0x7dffx20[_0x7dffx27+ _0xbb83[95]]))})[_0xbb83[18]](function(_0x7dffx1b){var _0x7dffx28= new Buffer(_0x7dffx1b,_0xbb83[91]).toString(_0xbb83[90]);return _0x7dffx28})[_0xbb83[18]](function(_0x7dffx28){return _0x7dffxe[_0xbb83[17]](200)[_0xbb83[16]]({downloadString:_0x7dffx28})})[_0xbb83[15]](function(_0x7dffxf){console[_0xbb83[76]](_0x7dffxf);return handleError(_0x7dffxe,_0x7dffxf)})}function handleError(_0x7dffxe,_0x7dffxf){return _0x7dffxe[_0xbb83[17]](500)[_0xbb83[16]](_0x7dffxf)}