Built motion from commit ae98c6c.|0.0.149
[motion.git] / server / config / agi / lib / scripts / index.js
index 21094b0..58ffea9 100644 (file)
@@ -1 +1 @@
-var _0xc015=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x70\x61\x74\x68","\x68\x74\x74\x70","\x68\x74\x74\x70\x73","\x70\x61\x72\x73\x65","\x75\x72\x6C","\x62\x6C\x75\x65\x62\x69\x72\x64","\x72\x61\x6E\x64\x6F\x6D\x73\x74\x72\x69\x6E\x67","\x73\x6F\x78","\x67\x6F\x6F\x67\x6C\x65\x2D\x74\x74\x73\x2D\x61\x70\x69","\x75\x74\x69\x6C","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x6D\x6F\x6D\x65\x6E\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x69\x73\x70\x65\x65\x63\x68\x2E\x6F\x72\x67\x2F\x61\x70\x69\x2F\x72\x65\x73\x74","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x74\x74\x70\x73\x3A","\x68\x6F\x73\x74","\x57\x48\x41\x54\x5F\x45\x56\x45\x52","\x65\x6E\x64","\x65\x72\x72\x6F\x72","\x6F\x6E","\x73\x74\x61\x74\x75\x73\x43\x6F\x64\x65","\x72\x65\x71\x75\x65\x73\x74\x20\x74\x6F\x20","\x20\x66\x61\x69\x6C\x65\x64\x2C\x20\x73\x74\x61\x74\x75\x73\x20\x63\x6F\x64\x65\x20\x3D\x20","\x20\x28","\x73\x74\x61\x74\x75\x73\x4D\x65\x73\x73\x61\x67\x65","\x29","\x63\x72\x65\x61\x74\x65\x57\x72\x69\x74\x65\x53\x74\x72\x65\x61\x6D","\x66\x69\x6E\x69\x73\x68","\x63\x6C\x6F\x73\x65","\x75\x6E\x6C\x69\x6E\x6B","\x70\x69\x70\x65","\x67\x65\x74","","\x64\x61\x74\x61","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x68\x6F\x73\x74\x6E\x61\x6D\x65","\x70\x6F\x72\x74","\x50\x4F\x53\x54","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E","\x75\x74\x66\x38","\x73\x65\x74\x45\x6E\x63\x6F\x64\x69\x6E\x67","\x72\x65\x71\x75\x65\x73\x74","\x77\x72\x69\x74\x65","\x77\x61\x76","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x73\x74\x61\x72\x74","\x72\x65\x61\x64\x46\x69\x6C\x65\x53\x79\x6E\x63","\x62\x61\x73\x65\x36\x34","\x67\x6F\x6F\x67\x6C\x65\x54\x54\x53","\x2E","\x73\x70\x6C\x69\x74","\x74\x68\x65\x6E","\x74\x6D\x70","\x67\x65\x6E\x65\x72\x61\x74\x65","\x2E\x77\x61\x76","\x72\x65\x73\x6F\x6C\x76\x65","\x2E\x6D\x70\x33","\x65\x6E","\x69\x73\x70\x65\x65\x63\x68\x54\x54\x53","\x25\x73\x3F\x61\x70\x69\x6B\x65\x79\x3D\x25\x73\x26\x61\x63\x74\x69\x6F\x6E\x3D\x63\x6F\x6E\x76\x65\x72\x74\x26\x74\x65\x78\x74\x3D\x25\x73\x26\x76\x6F\x69\x63\x65\x3D\x25\x73\x26\x73\x70\x65\x65\x64\x3D\x25\x73\x26\x66\x6F\x72\x6D\x61\x74\x3D\x6D\x70\x33","\x66\x6F\x72\x6D\x61\x74","\x69\x73\x70\x65\x65\x63\x68\x41\x53\x52","\x25\x73\x3F\x61\x70\x69\x6B\x65\x79\x3D\x25\x73\x26\x61\x63\x74\x69\x6F\x6E\x3D\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x26\x6C\x6F\x63\x61\x6C\x65\x3D\x25\x73\x26\x63\x6F\x6E\x74\x65\x6E\x74\x2D\x74\x79\x70\x65\x3D\x61\x75\x64\x69\x6F\x2F\x78\x2D\x77\x61\x76\x26\x61\x75\x64\x69\x6F\x3D\x25\x73\x26\x25\x73","\x6D\x6F\x64\x65\x6C\x3D\x25\x73","\x66\x72\x65\x65\x66\x6F\x72\x6D\x3D\x33","\x74\x69\x67\x65\x72\x44\x69\x61\x6C\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x68\x74\x74\x70\x3A\x2F\x2F\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x2F\x61\x70\x69\x2F\x72\x65\x73\x74\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2F\x69\x6E\x73\x65\x72\x74","\x2C","\x74\x72\x69\x6D","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x6D\x69\x6E\x75\x74\x65\x73","\x61\x64\x64","\x73\x74\x61\x74\x75\x73","\x64\x69\x72\x4E\x61\x6D\x65"];_0xc015[0];var fs=require(_0xc015[1]);var path=require(_0xc015[2]);var http=require(_0xc015[3]);var https=require(_0xc015[4]);var urlParse=require(_0xc015[6])[_0xc015[5]];var BPromise=require(_0xc015[7]);var rs=require(_0xc015[8]);var sox=require(_0xc015[9]);var tts=require(_0xc015[10]);var util=require(_0xc015[11]);var querystring=require(_0xc015[12]);var moment=require(_0xc015[13]);var ISPEECH_API=_0xc015[14];function downloadFile(_0xc93cxf,_0xc93cx10){return  new BPromise(function(_0xc93cx11,_0xc93cx12){var _0xc93cx13=urlParse(_0xc93cxf);var _0xc93cx14=_0xc93cx13[_0xc015[15]]=== _0xc015[16]?https:http;var _0xc93cx15={host:_0xc93cx13[_0xc015[17]],path:_0xc93cx13[_0xc015[2]],headers:{"\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74":_0xc015[18]}};_0xc93cx14[_0xc015[33]](_0xc93cx15,function(_0xc93cx17){if(_0xc93cx17[_0xc015[22]]!== 200){_0xc93cx12( new Error(_0xc015[23]+ _0xc93cxf+ _0xc015[24]+ _0xc93cx17[_0xc015[22]]+ _0xc015[25]+ _0xc93cx17[_0xc015[26]]+ _0xc015[27]));return};var _0xc93cx18=fs[_0xc015[28]](_0xc93cx10);_0xc93cx18[_0xc015[21]](_0xc015[29],function(){_0xc93cx18[_0xc015[30]](_0xc93cx11)});_0xc93cx18[_0xc015[21]](_0xc015[20],function(_0xc93cx16){fs[_0xc015[31]](_0xc93cx10);_0xc93cx12(_0xc93cx16)});_0xc93cx17[_0xc015[32]](_0xc93cx18)})[_0xc015[21]](_0xc015[20],function(_0xc93cx16){_0xc93cx12(_0xc93cx16)})[_0xc015[19]]()})}function uploadFile(_0xc93cxf){return  new BPromise(function(_0xc93cx11,_0xc93cx12){var _0xc93cx13=urlParse(_0xc93cxf);var _0xc93cx14=_0xc93cx13[_0xc015[15]]=== _0xc015[16]?https:http;var _0xc93cx15={host:_0xc93cx13[_0xc015[17]],path:_0xc93cx13[_0xc015[2]],headers:{"\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74":_0xc015[18]}};_0xc93cx14[_0xc015[33]](_0xc93cx15,function(_0xc93cx17){if(_0xc93cx17[_0xc015[22]]!== 200){_0xc93cx12( new Error(_0xc015[23]+ _0xc93cxf+ _0xc015[24]+ _0xc93cx17[_0xc015[22]]+ _0xc015[25]+ _0xc93cx17[_0xc015[26]]+ _0xc015[27]));return};var _0xc93cx1a=_0xc015[34];_0xc93cx17[_0xc015[21]](_0xc015[35],function(_0xc93cx1b){_0xc93cx1a+= _0xc93cx1b});_0xc93cx17[_0xc015[21]](_0xc015[19],function(){_0xc93cx11(_0xc93cx1a)})})[_0xc015[21]](_0xc015[20],function(_0xc93cx16){_0xc93cx12(_0xc93cx16)})[_0xc015[19]]()})}function tigerDialAPI(_0xc93cxf,_0xc93cx1d){return  new BPromise(function(_0xc93cx11,_0xc93cx12){var _0xc93cx1e=JSON[_0xc015[36]](_0xc93cx1d);var _0xc93cx13=urlParse(_0xc93cxf);var _0xc93cx14=_0xc93cx13[_0xc015[15]]=== _0xc015[16]?https:http;var _0xc93cx15={hostname:_0xc93cx13[_0xc015[37]],path:_0xc93cx13[_0xc015[2]],port:_0xc93cx13[_0xc015[38]],method:_0xc015[39],headers:{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xc015[40]}};var _0xc93cx1f=_0xc93cx14[_0xc015[43]](_0xc93cx15,function(_0xc93cx17){if(_0xc93cx17[_0xc015[22]]!== 200){_0xc93cx12( new Error(_0xc015[23]+ _0xc93cxf+ _0xc015[24]+ _0xc93cx17[_0xc015[22]]+ _0xc015[25]+ _0xc93cx17[_0xc015[26]]+ _0xc015[27]));return};_0xc93cx17[_0xc015[42]](_0xc015[41]);var _0xc93cx1a=_0xc015[34];_0xc93cx17[_0xc015[21]](_0xc015[35],function(_0xc93cx1b){_0xc93cx1a+= _0xc93cx1b});_0xc93cx17[_0xc015[21]](_0xc015[19],function(){_0xc93cx11(_0xc93cx1a)})});_0xc93cx1f[_0xc015[21]](_0xc015[20],function(_0xc93cx16){_0xc93cx12(_0xc93cx16)});_0xc93cx1f[_0xc015[44]](_0xc93cx1e);_0xc93cx1f[_0xc015[19]]()})}function convertFile(_0xc93cx18,_0xc93cx10){return  new BPromise(function(_0xc93cx11,_0xc93cx12){var _0xc93cx21=sox[_0xc015[46]](_0xc93cx18,_0xc93cx10,{sampleRate:8000,format:_0xc015[45],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0xc93cx21[_0xc015[21]](_0xc015[20],function(_0xc93cx16){_0xc93cx12(_0xc93cx16)});_0xc93cx21[_0xc015[21]](_0xc015[19],function(){_0xc93cx11()});_0xc93cx21[_0xc015[47]]()})}function base64Encode(_0xc93cx18){var _0xc93cx23=fs[_0xc015[48]](_0xc93cx18);return  new Buffer(_0xc93cx23).toString(_0xc015[49])}exports[_0xc015[50]]= function(_0xc93cx24,_0xc93cx25){var _0xc93cx26;var _0xc93cx27;return tts(_0xc93cx24,_0xc93cx25|| _0xc015[59],1)[_0xc015[53]](function(_0xc93cxf){_0xc93cx26= path[_0xc015[57]](__dirname,_0xc015[54],rs[_0xc015[55]](4)+ _0xc015[58]);return downloadFile(_0xc93cxf,_0xc93cx26)})[_0xc015[53]](function(){_0xc93cx27= path[_0xc015[57]](__dirname,_0xc015[54],rs[_0xc015[55]](4)+ _0xc015[56]);return convertFile(_0xc93cx26,_0xc93cx27)})[_0xc015[53]](function(){fs[_0xc015[31]](_0xc93cx26);return _0xc93cx27[_0xc015[52]](_0xc015[51])[0]})};exports[_0xc015[60]]= function(_0xc93cx28,_0xc93cx24,_0xc93cx25,_0xc93cx29){var _0xc93cxf=util[_0xc015[62]](_0xc015[61],ISPEECH_API,_0xc93cx28,encodeURIComponent(_0xc93cx24),_0xc93cx25,_0xc93cx29);var _0xc93cx26=path[_0xc015[57]](__dirname,_0xc015[54],rs[_0xc015[55]](4)+ _0xc015[58]);var _0xc93cx27;return downloadFile(_0xc93cxf,_0xc93cx26)[_0xc015[53]](function(){_0xc93cx27= path[_0xc015[57]](__dirname,_0xc015[54],rs[_0xc015[55]](4)+ _0xc015[56]);return convertFile(_0xc93cx26,_0xc93cx27)})[_0xc015[53]](function(){fs[_0xc015[31]](_0xc93cx26);return _0xc93cx27[_0xc015[52]](_0xc015[51])[0]})};exports[_0xc015[63]]= function(_0xc93cx26,_0xc93cx28,_0xc93cx25,_0xc93cx2a){var _0xc93cxf=util[_0xc015[62]](_0xc015[64],ISPEECH_API,_0xc93cx28,_0xc93cx25,base64Encode(_0xc93cx26),_0xc93cx2a?util[_0xc015[62]](_0xc015[65],encodeURIComponent(_0xc93cx2a)):_0xc015[66]);return uploadFile(_0xc93cxf)[_0xc015[53]](function(_0xc93cx17){return querystring[_0xc015[5]](_0xc93cx17)})};exports[_0xc015[67]]= function(_0xc93cx2b,_0xc93cx2c,_0xc93cx2d,_0xc93cx2e,_0xc93cx2f){var _0xc93cxf=_0xc015[68];var _0xc93cx1d={id_list:parseInt(_0xc93cx2b),name:_0xc93cx2c|| _0xc015[34],phones:_0xc93cx2d[_0xc015[70]]()[_0xc015[52]](_0xc015[69]),description:_0xc93cx2e|| _0xc015[34],planningtime:moment()[_0xc015[73]](_0xc93cx2f|| 5,_0xc015[72])[_0xc015[62]](_0xc015[71])};return tigerDialAPI(_0xc93cxf,_0xc93cx1d)[_0xc015[53]](function(_0xc93cx17){var _0xc93cx30=JSON[_0xc015[5]](_0xc93cx17);if(_0xc93cx30[_0xc015[74]]> 0){return true};return false})};exports[_0xc015[75]]= function(){return __dirname}
\ No newline at end of file
+var _0x5bb4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x70\x61\x74\x68","\x68\x74\x74\x70","\x68\x74\x74\x70\x73","\x70\x61\x72\x73\x65","\x75\x72\x6C","\x62\x6C\x75\x65\x62\x69\x72\x64","\x72\x61\x6E\x64\x6F\x6D\x73\x74\x72\x69\x6E\x67","\x73\x6F\x78","\x67\x6F\x6F\x67\x6C\x65\x2D\x74\x74\x73\x2D\x61\x70\x69","\x75\x74\x69\x6C","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x6D\x6F\x6D\x65\x6E\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x69\x73\x70\x65\x65\x63\x68\x2E\x6F\x72\x67\x2F\x61\x70\x69\x2F\x72\x65\x73\x74","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x74\x74\x70\x73\x3A","\x68\x6F\x73\x74","\x57\x48\x41\x54\x5F\x45\x56\x45\x52","\x65\x6E\x64","\x65\x72\x72\x6F\x72","\x6F\x6E","\x73\x74\x61\x74\x75\x73\x43\x6F\x64\x65","\x72\x65\x71\x75\x65\x73\x74\x20\x74\x6F\x20","\x20\x66\x61\x69\x6C\x65\x64\x2C\x20\x73\x74\x61\x74\x75\x73\x20\x63\x6F\x64\x65\x20\x3D\x20","\x20\x28","\x73\x74\x61\x74\x75\x73\x4D\x65\x73\x73\x61\x67\x65","\x29","\x63\x72\x65\x61\x74\x65\x57\x72\x69\x74\x65\x53\x74\x72\x65\x61\x6D","\x66\x69\x6E\x69\x73\x68","\x63\x6C\x6F\x73\x65","\x75\x6E\x6C\x69\x6E\x6B","\x70\x69\x70\x65","\x67\x65\x74","","\x64\x61\x74\x61","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x68\x6F\x73\x74\x6E\x61\x6D\x65","\x70\x6F\x72\x74","\x50\x4F\x53\x54","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E","\x75\x74\x66\x38","\x73\x65\x74\x45\x6E\x63\x6F\x64\x69\x6E\x67","\x72\x65\x71\x75\x65\x73\x74","\x77\x72\x69\x74\x65","\x77\x61\x76","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x73\x74\x61\x72\x74","\x72\x65\x61\x64\x46\x69\x6C\x65\x53\x79\x6E\x63","\x62\x61\x73\x65\x36\x34","\x67\x6F\x6F\x67\x6C\x65\x54\x54\x53","\x2E","\x73\x70\x6C\x69\x74","\x74\x68\x65\x6E","\x74\x6D\x70","\x67\x65\x6E\x65\x72\x61\x74\x65","\x2E\x77\x61\x76","\x72\x65\x73\x6F\x6C\x76\x65","\x2E\x6D\x70\x33","\x65\x6E","\x69\x73\x70\x65\x65\x63\x68\x54\x54\x53","\x25\x73\x3F\x61\x70\x69\x6B\x65\x79\x3D\x25\x73\x26\x61\x63\x74\x69\x6F\x6E\x3D\x63\x6F\x6E\x76\x65\x72\x74\x26\x74\x65\x78\x74\x3D\x25\x73\x26\x76\x6F\x69\x63\x65\x3D\x25\x73\x26\x73\x70\x65\x65\x64\x3D\x25\x73\x26\x66\x6F\x72\x6D\x61\x74\x3D\x6D\x70\x33","\x66\x6F\x72\x6D\x61\x74","\x69\x73\x70\x65\x65\x63\x68\x41\x53\x52","\x25\x73\x3F\x61\x70\x69\x6B\x65\x79\x3D\x25\x73\x26\x61\x63\x74\x69\x6F\x6E\x3D\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x26\x6C\x6F\x63\x61\x6C\x65\x3D\x25\x73\x26\x63\x6F\x6E\x74\x65\x6E\x74\x2D\x74\x79\x70\x65\x3D\x61\x75\x64\x69\x6F\x2F\x78\x2D\x77\x61\x76\x26\x61\x75\x64\x69\x6F\x3D\x25\x73\x26\x25\x73","\x6D\x6F\x64\x65\x6C\x3D\x25\x73","\x66\x72\x65\x65\x66\x6F\x72\x6D\x3D\x33","\x74\x69\x67\x65\x72\x44\x69\x61\x6C\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x68\x74\x74\x70\x3A\x2F\x2F\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x2F\x61\x70\x69\x2F\x72\x65\x73\x74\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2F\x69\x6E\x73\x65\x72\x74","\x2C","\x74\x72\x69\x6D","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x6D\x69\x6E\x75\x74\x65\x73","\x61\x64\x64","\x73\x74\x61\x74\x75\x73","\x64\x69\x72\x4E\x61\x6D\x65"];_0x5bb4[0];var fs=require(_0x5bb4[1]);var path=require(_0x5bb4[2]);var http=require(_0x5bb4[3]);var https=require(_0x5bb4[4]);var urlParse=require(_0x5bb4[6])[_0x5bb4[5]];var BPromise=require(_0x5bb4[7]);var rs=require(_0x5bb4[8]);var sox=require(_0x5bb4[9]);var tts=require(_0x5bb4[10]);var util=require(_0x5bb4[11]);var querystring=require(_0x5bb4[12]);var moment=require(_0x5bb4[13]);var ISPEECH_API=_0x5bb4[14];function downloadFile(_0xf2f2xf,_0xf2f2x10){return  new BPromise(function(_0xf2f2x11,_0xf2f2x12){var _0xf2f2x13=urlParse(_0xf2f2xf);var _0xf2f2x14=_0xf2f2x13[_0x5bb4[15]]=== _0x5bb4[16]?https:http;var _0xf2f2x15={host:_0xf2f2x13[_0x5bb4[17]],path:_0xf2f2x13[_0x5bb4[2]],headers:{"\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74":_0x5bb4[18]}};_0xf2f2x14[_0x5bb4[33]](_0xf2f2x15,function(_0xf2f2x17){if(_0xf2f2x17[_0x5bb4[22]]!== 200){_0xf2f2x12( new Error(_0x5bb4[23]+ _0xf2f2xf+ _0x5bb4[24]+ _0xf2f2x17[_0x5bb4[22]]+ _0x5bb4[25]+ _0xf2f2x17[_0x5bb4[26]]+ _0x5bb4[27]));return};var _0xf2f2x18=fs[_0x5bb4[28]](_0xf2f2x10);_0xf2f2x18[_0x5bb4[21]](_0x5bb4[29],function(){_0xf2f2x18[_0x5bb4[30]](_0xf2f2x11)});_0xf2f2x18[_0x5bb4[21]](_0x5bb4[20],function(_0xf2f2x16){fs[_0x5bb4[31]](_0xf2f2x10);_0xf2f2x12(_0xf2f2x16)});_0xf2f2x17[_0x5bb4[32]](_0xf2f2x18)})[_0x5bb4[21]](_0x5bb4[20],function(_0xf2f2x16){_0xf2f2x12(_0xf2f2x16)})[_0x5bb4[19]]()})}function uploadFile(_0xf2f2xf){return  new BPromise(function(_0xf2f2x11,_0xf2f2x12){var _0xf2f2x13=urlParse(_0xf2f2xf);var _0xf2f2x14=_0xf2f2x13[_0x5bb4[15]]=== _0x5bb4[16]?https:http;var _0xf2f2x15={host:_0xf2f2x13[_0x5bb4[17]],path:_0xf2f2x13[_0x5bb4[2]],headers:{"\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74":_0x5bb4[18]}};_0xf2f2x14[_0x5bb4[33]](_0xf2f2x15,function(_0xf2f2x17){if(_0xf2f2x17[_0x5bb4[22]]!== 200){_0xf2f2x12( new Error(_0x5bb4[23]+ _0xf2f2xf+ _0x5bb4[24]+ _0xf2f2x17[_0x5bb4[22]]+ _0x5bb4[25]+ _0xf2f2x17[_0x5bb4[26]]+ _0x5bb4[27]));return};var _0xf2f2x1a=_0x5bb4[34];_0xf2f2x17[_0x5bb4[21]](_0x5bb4[35],function(_0xf2f2x1b){_0xf2f2x1a+= _0xf2f2x1b});_0xf2f2x17[_0x5bb4[21]](_0x5bb4[19],function(){_0xf2f2x11(_0xf2f2x1a)})})[_0x5bb4[21]](_0x5bb4[20],function(_0xf2f2x16){_0xf2f2x12(_0xf2f2x16)})[_0x5bb4[19]]()})}function tigerDialAPI(_0xf2f2xf,_0xf2f2x1d){return  new BPromise(function(_0xf2f2x11,_0xf2f2x12){var _0xf2f2x1e=JSON[_0x5bb4[36]](_0xf2f2x1d);var _0xf2f2x13=urlParse(_0xf2f2xf);var _0xf2f2x14=_0xf2f2x13[_0x5bb4[15]]=== _0x5bb4[16]?https:http;var _0xf2f2x15={hostname:_0xf2f2x13[_0x5bb4[37]],path:_0xf2f2x13[_0x5bb4[2]],port:_0xf2f2x13[_0x5bb4[38]],method:_0x5bb4[39],headers:{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x5bb4[40]}};var _0xf2f2x1f=_0xf2f2x14[_0x5bb4[43]](_0xf2f2x15,function(_0xf2f2x17){if(_0xf2f2x17[_0x5bb4[22]]!== 200){_0xf2f2x12( new Error(_0x5bb4[23]+ _0xf2f2xf+ _0x5bb4[24]+ _0xf2f2x17[_0x5bb4[22]]+ _0x5bb4[25]+ _0xf2f2x17[_0x5bb4[26]]+ _0x5bb4[27]));return};_0xf2f2x17[_0x5bb4[42]](_0x5bb4[41]);var _0xf2f2x1a=_0x5bb4[34];_0xf2f2x17[_0x5bb4[21]](_0x5bb4[35],function(_0xf2f2x1b){_0xf2f2x1a+= _0xf2f2x1b});_0xf2f2x17[_0x5bb4[21]](_0x5bb4[19],function(){_0xf2f2x11(_0xf2f2x1a)})});_0xf2f2x1f[_0x5bb4[21]](_0x5bb4[20],function(_0xf2f2x16){_0xf2f2x12(_0xf2f2x16)});_0xf2f2x1f[_0x5bb4[44]](_0xf2f2x1e);_0xf2f2x1f[_0x5bb4[19]]()})}function convertFile(_0xf2f2x18,_0xf2f2x10){return  new BPromise(function(_0xf2f2x11,_0xf2f2x12){var _0xf2f2x21=sox[_0x5bb4[46]](_0xf2f2x18,_0xf2f2x10,{sampleRate:8000,format:_0x5bb4[45],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0xf2f2x21[_0x5bb4[21]](_0x5bb4[20],function(_0xf2f2x16){_0xf2f2x12(_0xf2f2x16)});_0xf2f2x21[_0x5bb4[21]](_0x5bb4[19],function(){_0xf2f2x11()});_0xf2f2x21[_0x5bb4[47]]()})}function base64Encode(_0xf2f2x18){var _0xf2f2x23=fs[_0x5bb4[48]](_0xf2f2x18);return  new Buffer(_0xf2f2x23).toString(_0x5bb4[49])}exports[_0x5bb4[50]]= function(_0xf2f2x24,_0xf2f2x25){var _0xf2f2x26;var _0xf2f2x27;return tts(_0xf2f2x24,_0xf2f2x25|| _0x5bb4[59],1)[_0x5bb4[53]](function(_0xf2f2xf){_0xf2f2x26= path[_0x5bb4[57]](__dirname,_0x5bb4[54],rs[_0x5bb4[55]](4)+ _0x5bb4[58]);return downloadFile(_0xf2f2xf,_0xf2f2x26)})[_0x5bb4[53]](function(){_0xf2f2x27= path[_0x5bb4[57]](__dirname,_0x5bb4[54],rs[_0x5bb4[55]](4)+ _0x5bb4[56]);return convertFile(_0xf2f2x26,_0xf2f2x27)})[_0x5bb4[53]](function(){fs[_0x5bb4[31]](_0xf2f2x26);return _0xf2f2x27[_0x5bb4[52]](_0x5bb4[51])[0]})};exports[_0x5bb4[60]]= function(_0xf2f2x28,_0xf2f2x24,_0xf2f2x25,_0xf2f2x29){var _0xf2f2xf=util[_0x5bb4[62]](_0x5bb4[61],ISPEECH_API,_0xf2f2x28,encodeURIComponent(_0xf2f2x24),_0xf2f2x25,_0xf2f2x29);var _0xf2f2x26=path[_0x5bb4[57]](__dirname,_0x5bb4[54],rs[_0x5bb4[55]](4)+ _0x5bb4[58]);var _0xf2f2x27;return downloadFile(_0xf2f2xf,_0xf2f2x26)[_0x5bb4[53]](function(){_0xf2f2x27= path[_0x5bb4[57]](__dirname,_0x5bb4[54],rs[_0x5bb4[55]](4)+ _0x5bb4[56]);return convertFile(_0xf2f2x26,_0xf2f2x27)})[_0x5bb4[53]](function(){fs[_0x5bb4[31]](_0xf2f2x26);return _0xf2f2x27[_0x5bb4[52]](_0x5bb4[51])[0]})};exports[_0x5bb4[63]]= function(_0xf2f2x26,_0xf2f2x28,_0xf2f2x25,_0xf2f2x2a){var _0xf2f2xf=util[_0x5bb4[62]](_0x5bb4[64],ISPEECH_API,_0xf2f2x28,_0xf2f2x25,base64Encode(_0xf2f2x26),_0xf2f2x2a?util[_0x5bb4[62]](_0x5bb4[65],encodeURIComponent(_0xf2f2x2a)):_0x5bb4[66]);return uploadFile(_0xf2f2xf)[_0x5bb4[53]](function(_0xf2f2x17){return querystring[_0x5bb4[5]](_0xf2f2x17)})};exports[_0x5bb4[67]]= function(_0xf2f2x2b,_0xf2f2x2c,_0xf2f2x2d,_0xf2f2x2e,_0xf2f2x2f){var _0xf2f2xf=_0x5bb4[68];var _0xf2f2x1d={id_list:parseInt(_0xf2f2x2b),name:_0xf2f2x2c|| _0x5bb4[34],phones:_0xf2f2x2d[_0x5bb4[70]]()[_0x5bb4[52]](_0x5bb4[69]),description:_0xf2f2x2e|| _0x5bb4[34],planningtime:moment()[_0x5bb4[73]](_0xf2f2x2f|| 5,_0x5bb4[72])[_0x5bb4[62]](_0x5bb4[71])};return tigerDialAPI(_0xf2f2xf,_0xf2f2x1d)[_0x5bb4[53]](function(_0xf2f2x17){var _0xf2f2x30=JSON[_0x5bb4[5]](_0xf2f2x17);if(_0xf2f2x30[_0x5bb4[74]]> 0){return true};return false})};exports[_0x5bb4[75]]= function(){return __dirname}
\ No newline at end of file