Built motion from commit 2239aeb.|0.0.113
[motion.git] / server / utils / voice_extension.js
index 1644ab2..ea09d0d 100644 (file)
@@ -1 +1 @@
-var _0x2b38=["\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65","\x25\x73\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x53\x65\x74","\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x61\x6C\x6C\x29\x3D\x25\x73","\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x24\x7B\x55\x4E\x49\x51\x55\x45\x49\x44\x7D\x2E\x77\x61\x76\x2C\x61\x62","\x44\x69\x61\x6C","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x53\x74\x6F\x70\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","","\x4E\x6F\x4F\x70","\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x6E\x73\x77\x65\x72","\x51\x75\x65\x75\x65","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x51\x75\x65\x75\x65\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x50\x6C\x61\x79\x62\x61\x63\x6B","\x25\x73\x2C\x25\x73","\x50\x6C\x61\x79\x62\x61\x63\x6B\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x47\x49","\x61\x67\x69\x3A\x2F\x2F\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31\x2F\x73\x71\x75\x61\x72\x65\x2C\x25\x73","\x41\x47\x49\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x47\x6F\x74\x6F","\x25\x73\x2C\x25\x73\x2C\x25\x64","\x47\x6F\x74\x6F\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x48\x61\x6E\x67\x75\x70","\x25\x73","\x48\x61\x6E\x67\x75\x70\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x25\x73\x3D\x25\x73","\x53\x65\x74\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x63\x75\x73\x74\x6F\x6D","\x43\x75\x73\x74\x6F\x6D\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x61\x70\x70\x43\x72\x65\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x63\x75\x73\x74\x6F\x6D\x41\x70\x70","\x61\x70\x70","\x63\x61\x6C\x6C\x65\x72\x49\x44","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x63\x6F\x72\x64","\x65\x78\x74\x65\x6E","\x74\x79\x70\x65","\x63\x6F\x6E\x74\x65\x78\x74","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x49\x64","\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x70\x70\x47\x72\x6F\x75\x70","\x61\x70\x70\x64\x61\x74\x61","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x2A\x2C\x2A\x2C\x2A\x2C\x2A","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x66\x6F\x72\x6D\x61\x74","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65\x46\x72\x6F\x6D\x41\x72\x72\x61\x79","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x74\x72\x75\x6E\x6B","\x54\x72\x75\x6E\x6B\x49\x64","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x61\x70\x70\x5F\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x69\x6D\x65\x6F\x75\x74","\x75\x72\x6C","\x2C","\x72\x65\x70\x6C\x61\x63\x65","\x61\x75\x64\x69\x6F\x66\x69\x6C\x65","\x71\x75\x65\x75\x65","\x70\x72\x6F\x6A\x65\x63\x74","\x61\x6C\x74\x5F\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x6C\x74\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x61\x6C\x74\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x63\x61\x75\x73\x65\x63\x6F\x64\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x6C\x75\x65","\x6D\x61\x69\x6C\x62\x6F\x78","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x66\x6F\x72\x45\x61\x63\x68"];var _=require(_0x2b38[0]);var util=require(_0x2b38[1]);exports[_0x2b38[2]]={Dial:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[5],appdata:_0x2b38[6]},{app:_0x2b38[7],appdata:_0x2b38[8],mixmonitor:true},{app:_0x2b38[9],appdata:_0x2b38[10],isApp:true},{app:_0x2b38[11],appdata:_0x2b38[12],mixmonitor:true},{app:_0x2b38[13],appdata:_0x2b38[14]}],Queue:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[15],appdata:_0x2b38[12]},{app:_0x2b38[16],appdata:_0x2b38[17],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[18]}],Playback:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[19],appdata:_0x2b38[20],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[21]}],AGI:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[22],appdata:_0x2b38[23],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[24]}],Goto:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[25],appdata:_0x2b38[26],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[27]}],Hangup:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[28],appdata:_0x2b38[29],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[30]}],Set:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[5],appdata:_0x2b38[31],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[32]}],custom:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[33],appdata:_0x2b38[29],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[34]}],Voicemail:[{app:_0x2b38[3],appdata:_0x2b38[4]},{app:_0x2b38[35],appdata:_0x2b38[29],isApp:true},{app:_0x2b38[13],appdata:_0x2b38[36]}]};exports[_0x2b38[37]]=function(_0xc7c2x3,_0xc7c2x4,_0xc7c2x5,_0xc7c2x6,_0xc7c2x7){var _0xc7c2x8=_0xc7c2x6[_0x2b38[38]];if(_0xc7c2x4[_0x2b38[39]]){_0xc7c2x4[_0x2b38[40]]=_0x2b38[33]};if(_0xc7c2x4[_0x2b38[40]]===_0x2b38[9]){if(!_0xc7c2x4[_0x2b38[41]]){_[_0x2b38[42]](_0xc7c2x3,{app:_0x2b38[5]})};if(!_0xc7c2x4[_0x2b38[43]]){_[_0x2b38[42]](_0xc7c2x3,{mixmonitor:true})};};_0xc7c2x3[_0x2b38[77]](function(_0xc7c2x9,_0xc7c2xa){_0xc7c2x9[_0x2b38[43]]=_0xc7c2x4[_0x2b38[43]];_0xc7c2x9[_0x2b38[44]]=_0xc7c2x4[_0x2b38[44]];_0xc7c2x9[_0x2b38[45]]=_0xc7c2x4[_0x2b38[45]];_0xc7c2x9[_0x2b38[46]]=_0xc7c2x4[_0x2b38[46]];_0xc7c2x9[_0x2b38[47]]=_0xc7c2x4[_0x2b38[47]];_0xc7c2x9[_0x2b38[48]]=_0xc7c2x7?_0xc7c2x7++:_0xc7c2x4[_0x2b38[48]]++;_0xc7c2x9[_0x2b38[49]]=_0xc7c2x5;switch(_0xc7c2x9[_0x2b38[40]]){case _0x2b38[3]:_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x4[_0x2b38[51]]?_0x2b38[52]:_0xc7c2x4[_0x2b38[53]],_0xc7c2x9[_0x2b38[46]],_0xc7c2x9[_0x2b38[48]]+1,_0xc7c2x9[_0x2b38[46]],(_0xc7c2x9[_0x2b38[48]]+_0xc7c2x3[_0x2b38[38]]-1));break ;;case _0x2b38[55]:_0xc7c2x9[_0x2b38[40]]=_0x2b38[3];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[46]],_0xc7c2x9[_0x2b38[48]]+_0xc7c2x8-_0xc7c2xa,_0xc7c2x9[_0x2b38[46]],(_0xc7c2xa+1)<_0xc7c2x8?(_0xc7c2x9[_0x2b38[48]]+1):(_0xc7c2x9[_0x2b38[48]]+_0xc7c2x3[_0x2b38[38]]-1));break ;;case _0x2b38[9]:if(_0xc7c2x4[_0x2b38[45]]===_0x2b38[56]){_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[57]]=_0xc7c2x4[_0x2b38[57]];_0xc7c2x9[_0x2b38[58]]=_0xc7c2x4[_0x2b38[58]];_0xc7c2x9[_0x2b38[59]]=_0xc7c2x4[_0x2b38[59]]||0;_0xc7c2x9[_0x2b38[41]]=_0xc7c2x4[_0x2b38[41]]||null;}else {_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[60]]=_0xc7c2x4[_0x2b38[60]];_0xc7c2x9[_0x2b38[61]]=_0xc7c2x4[_0x2b38[61]]||_0x2b38[12];_0xc7c2x9[_0x2b38[62]]=_0xc7c2x4[_0x2b38[62]]||_0x2b38[12];_0xc7c2x9[_0x2b38[63]]=_0xc7c2x4[_0x2b38[63]]||_0x2b38[12];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x4[_0x2b38[60]],_0xc7c2x9[_0x2b38[62]],_0xc7c2x9[_0x2b38[61]]?_0xc7c2x9[_0x2b38[61]][_0x2b38[65]](_0x2b38[64],_0x2b38[12]):_0x2b38[12],_0xc7c2x9[_0x2b38[63]]);};break ;;case _0x2b38[16]:_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[61]]=_0xc7c2x4[_0x2b38[61]]||_0x2b38[12];_0xc7c2x9[_0x2b38[66]]=_0xc7c2x4[_0x2b38[66]]||_0x2b38[12];_0xc7c2x9[_0x2b38[67]]=_0xc7c2x4[_0x2b38[67]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[60]]=_0xc7c2x4[_0x2b38[60]];_0xc7c2x9[_0x2b38[61]]=_0xc7c2x4[_0x2b38[61]];_0xc7c2x9[_0x2b38[62]]=_0xc7c2x4[_0x2b38[62]]||_0x2b38[12];_0xc7c2x9[_0x2b38[63]]=_0xc7c2x4[_0x2b38[63]]||_0x2b38[12];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[67]],_0xc7c2x9[_0x2b38[61]]?_0xc7c2x9[_0x2b38[61]][_0x2b38[65]](_0x2b38[64],_0x2b38[12]):_0x2b38[12],_0xc7c2x9[_0x2b38[63]],_0xc7c2x9[_0x2b38[66]],_0xc7c2x9[_0x2b38[62]]);break ;;case _0x2b38[19]:_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[66]]=_0xc7c2x4[_0x2b38[66]]||_0x2b38[12];_0xc7c2x9[_0x2b38[61]]=_0xc7c2x4[_0x2b38[61]]||_0x2b38[12];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[66]],_0xc7c2x9[_0x2b38[61]]?_0xc7c2x9[_0x2b38[61]][_0x2b38[65]](_0x2b38[64],_0x2b38[12]):_0x2b38[12]);break ;;case _0x2b38[22]:_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[68]]=_0xc7c2x4[_0x2b38[68]];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[68]]);break ;;case _0x2b38[25]:_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[69]]=_0xc7c2x4[_0x2b38[69]];_0xc7c2x9[_0x2b38[70]]=_0xc7c2x4[_0x2b38[70]];_0xc7c2x9[_0x2b38[71]]=_0xc7c2x4[_0x2b38[71]];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[71]],_0xc7c2x9[_0x2b38[70]],_0xc7c2x9[_0x2b38[69]]);break ;;case _0x2b38[28]:_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[72]]=_0xc7c2x4[_0x2b38[72]];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[72]]);break ;;case _0x2b38[5]:if(_0xc7c2x4[_0x2b38[40]]===_0x2b38[9]){_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x4[_0x2b38[41]])}else {_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[73]]=_0xc7c2x4[_0x2b38[73]];_0xc7c2x9[_0x2b38[74]]=_0xc7c2x4[_0x2b38[74]];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[73]],_0xc7c2x9[_0x2b38[74]]);};break ;;case _0x2b38[33]:_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[40]]=_0xc7c2x9[_0x2b38[39]]=_0xc7c2x4[_0x2b38[39]];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x4[_0x2b38[50]]||_0x2b38[12]);break ;;case _0x2b38[35]:_0xc7c2x9[_0x2b38[51]]=_0xc7c2x4[_0x2b38[51]];_0xc7c2x9[_0x2b38[53]]=_0xc7c2x4[_0x2b38[53]];_0xc7c2x9[_0x2b38[75]]=_0xc7c2x4[_0x2b38[75]];_0xc7c2x9[_0x2b38[50]]=util[_0x2b38[54]](_0xc7c2x9[_0x2b38[50]],_0xc7c2x9[_0x2b38[75]]);break ;;case _0x2b38[13]:if(_0xc7c2x4[_0x2b38[45]]===_0x2b38[56]){_0xc7c2x9[_0x2b38[50]]=_0x2b38[76]};break ;;default:;};});if(_0xc7c2x7){return _0xc7c2x7};};
\ No newline at end of file
+var _0x8cbf=["\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x41\x70\x70\x73","\x72\x6F\x75\x74\x65\x55\x70\x64\x61\x74\x65","\x69\x64","\x62\x6F\x64\x79","\x74\x68\x65\x6E","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x69\x73\x41\x72\x72\x61\x79","\x6C\x65\x6E\x67\x74\x68","\x70\x61\x72\x61\x6D\x73","\x64\x65\x73\x74\x72\x6F\x79","\x75\x70\x64\x61\x74\x65","\x61\x6C\x6C","\x65\x78\x74\x65\x6E","\x74\x79\x70\x65","\x63\x6F\x6E\x74\x65\x78\x74","\x53\x65\x74","\x43\x44\x52\x28\x74\x79\x70\x65\x29\x3D\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x6D\x65\x72\x67\x65","\x70\x75\x73\x68","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x43\x44\x52\x28\x74\x61\x67\x29\x3D\x25\x73","\x74\x61\x67","\x2D\x2D","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x66\x69\x6C\x74\x65\x72","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x6D\x61\x70","\x2A\x2C\x2A\x2C\x2A\x2C\x2A","\x66\x69\x6E\x64","\x6E\x61\x6D\x65","\x4E\x6F\x4F\x50","\x61\x70\x70","\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x53\x74\x61\x72\x74","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65","\x25\x73\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x66\x6F\x72\x45\x61\x63\x68","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x64\x69\x61\x6C","\x61\x70\x70\x64\x61\x74\x61","\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x61\x6C\x6C\x29\x3D\x25\x73","\x53\x6B\x69\x70\x70\x65\x64\x20\x43\x61\x6C\x6C\x65\x72\x49\x44\x20\x53\x65\x74","\x72\x65\x63\x6F\x72\x64","\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x24\x7B\x55\x4E\x49\x51\x55\x45\x49\x44\x7D\x2E\x77\x61\x76\x2C\x61\x62","\x53\x6B\x69\x70\x70\x65\x64\x20\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x71\x75\x65\x75\x65","\x63\x75\x73\x74\x6F\x6D","\x50\x72\x6F\x67\x72\x65\x73\x73","","\x53\x6B\x69\x70\x70\x65\x64\x20\x50\x72\x6F\x67\x72\x65\x73\x73","\x61\x70\x70\x54\x79\x70\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x44\x69\x61\x6C","\x53\x49\x50\x2F\x25\x73\x2F\x25\x73\x24\x7B\x45\x58\x54\x45\x4E\x3A\x25\x73\x7D\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x65\x78\x74\x65\x72\x6E\x61\x6C\x44\x69\x61\x6C","\x53\x49\x50\x2F\x25\x73\x2F\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x69\x6E\x74\x65\x72\x6E\x61\x6C\x44\x69\x61\x6C","\x53\x49\x50\x2F\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x2C","\x6A\x6F\x69\x6E","\x53\x74\x6F\x70\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x53\x6B\x69\x70\x70\x65\x64\x20\x53\x74\x6F\x70\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x20\x63\x61\x6C\x6C\x20\x65\x6E\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x48\x61\x6E\x67\x75\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73"];var _=require(_0x8cbf[0]);var util=require(_0x8cbf[1]);var Interval=require(_0x8cbf[3])[_0x8cbf[2]];var sequelize=require(_0x8cbf[3])[_0x8cbf[4]];var VoiceExtension=require(_0x8cbf[3])[_0x8cbf[5]];exports[_0x8cbf[6]]= createApplications;exports[_0x8cbf[7]]= function(_0x6c38x6,_0x6c38x7){var sequelize=require(_0x8cbf[3])[_0x8cbf[4]];var VoiceExtension=require(_0x8cbf[3])[_0x8cbf[5]];if(_0x6c38x6[_0x8cbf[9]][_0x8cbf[8]]){delete _0x6c38x6[_0x8cbf[9]][_0x8cbf[8]]};return VoiceExtension[_0x8cbf[16]](_0x6c38x6[_0x8cbf[9]],{where:{id:_0x6c38x6[_0x8cbf[14]][_0x8cbf[8]]},transaction:_0x6c38x7})[_0x8cbf[10]](function(_0x6c38x8){if(_0x6c38x6[_0x8cbf[9]][_0x8cbf[11]]){_0x6c38x6[_0x8cbf[9]][_0x8cbf[8]]= _0x6c38x6[_0x8cbf[14]][_0x8cbf[8]];return VoiceExtension[_0x8cbf[15]]({where:{VoiceExtensionId:_0x6c38x6[_0x8cbf[14]][_0x8cbf[8]]},transaction:_0x6c38x7})}})[_0x8cbf[10]](function(){if(_0x6c38x6[_0x8cbf[9]][_0x8cbf[11]]&& Array[_0x8cbf[12]](_0x6c38x6[_0x8cbf[9]].Applications)&& _0x6c38x6[_0x8cbf[9]][_0x8cbf[11]][_0x8cbf[13]]){return _0x6c38x6[_0x8cbf[9]]}})[_0x8cbf[10]](createApplications(_0x6c38x6[_0x8cbf[9]].Applications,_0x6c38x7))};function createApplications(_0x6c38xa,_0x6c38x7){var Interval=require(_0x8cbf[3])[_0x8cbf[2]];var VoiceExtension=require(_0x8cbf[3])[_0x8cbf[5]];return function(_0x6c38x8){if(_0x6c38x8){return Interval[_0x8cbf[74]]()[_0x8cbf[10]](function(_0x6c38xb){var _0x6c38xc=2;var _0x6c38xd={exten:_0x6c38x8[_0x8cbf[18]],type:_0x6c38x8[_0x8cbf[19]],context:_0x6c38x8[_0x8cbf[20]],VoiceExtensionId:_0x6c38x8[_0x8cbf[8]]};var _0x6c38xe=[];var _0x6c38xf=6;var _0x6c38x10=[],_0x6c38x11=[];_0x6c38x10[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[21],appdata:util[_0x8cbf[23]](_0x8cbf[22],_0x6c38x8[_0x8cbf[19]]),priority:_0x6c38xc},_0x6c38xd));_0x6c38xc++;if(_0x6c38x8[_0x8cbf[19]]=== _0x8cbf[26]){_0x6c38x10[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[21],appdata:util[_0x8cbf[23]](_0x8cbf[27],_0x6c38x8[_0x8cbf[28]]|| _0x8cbf[29]),priority:_0x6c38xc},_0x6c38xd));_0x6c38xc++};_0x6c38xe[_0x8cbf[25]](VoiceExtension[_0x8cbf[30]](_0x6c38x10,{transaction:_0x6c38x7}));_0x6c38xa[_0x8cbf[43]](function(_0x6c38x12){var _0x6c38x13=[];var _0x6c38x14=[];if(_0x6c38x12[_0x8cbf[31]]){var _0x6c38x15=_[_0x8cbf[32]](_0x6c38xb,{IntervalId:_0x6c38x12[_0x8cbf[31]]});_0x6c38x13= _0x6c38x15[_0x8cbf[13]]?_[_0x8cbf[34]](_0x6c38x15,_0x8cbf[33]):[_0x8cbf[35]];var _0x6c38x16=_[_0x8cbf[36]](_0x6c38xb,{id:_0x6c38x12[_0x8cbf[31]]});_0x6c38x12[_0x8cbf[33]]= _0x6c38x16?_0x6c38x16[_0x8cbf[37]]:_0x8cbf[35]}else {_0x6c38x13= [_0x6c38x12[_0x8cbf[33]]]};_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[38],appdata:_0x6c38x12[_0x8cbf[39]]+ _0x8cbf[40],priority:_0x6c38xc},_0x6c38xd));_0x6c38xc++;var _0x6c38x17=_0x6c38x13[_0x8cbf[13]];_0x6c38x13[_0x8cbf[43]](function(_0x6c38x18,_0x6c38x19){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[41],appdata:util[_0x8cbf[23]](_0x8cbf[42],_0x6c38x18,_0x6c38x8[_0x8cbf[20]],_0x6c38xc+ (_0x6c38x17- _0x6c38x19),_0x6c38x8[_0x8cbf[20]],((_0x6c38x19+ 1)< _0x6c38x17)?_0x6c38xc+ 1:_0x6c38xc+ _0x6c38xf),priority:_0x6c38xc},_0x6c38xd));_0x6c38xc++});if(_0x6c38x12[_0x8cbf[39]][_0x8cbf[44]]()=== _0x8cbf[45]&& _0x6c38x8[_0x8cbf[19]]=== _0x8cbf[26]&& _0x6c38x12[_0x8cbf[46]][1]){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[21],appdata:util[_0x8cbf[23]](_0x8cbf[47],_0x6c38x12[_0x8cbf[46]][1]),priority:_0x6c38xc},_0x6c38xd))}else {_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[38],appdata:_0x8cbf[48],priority:_0x6c38xc},_0x6c38xd))};_0x6c38xc++;if(_0x6c38x12[_0x8cbf[39]][_0x8cbf[44]]()=== _0x8cbf[45]&& _0x6c38x8[_0x8cbf[49]]&& _0x6c38x8[_0x8cbf[19]]=== _0x8cbf[26]){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[50],appdata:_0x8cbf[51],priority:_0x6c38xc},_0x6c38xd))}else {_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[38],appdata:_0x8cbf[52],priority:_0x6c38xc},_0x6c38xd))};_0x6c38xc++;if(_0x6c38x12[_0x8cbf[39]][_0x8cbf[44]]()=== _0x8cbf[53]&& _0x6c38x12[_0x8cbf[39]]!== _0x8cbf[54]){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[55],appdata:_0x8cbf[56],priority:_0x6c38xc},_0x6c38xd))}else {_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[38],appdata:_0x8cbf[57],priority:_0x6c38xc},_0x6c38xd))};_0x6c38xc++;if(_0x6c38x12[_0x8cbf[39]][_0x8cbf[44]]()=== _0x8cbf[45]&& _0x6c38x12[_0x8cbf[58]]=== _0x8cbf[59]){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x6c38x12[_0x8cbf[39]],appdata:util[_0x8cbf[23]](_0x8cbf[60],_0x6c38x12[_0x8cbf[46]][0],_0x6c38x12[_0x8cbf[46]][2]|| _0x8cbf[56],_0x6c38x8[_0x8cbf[61]]|| 0,_0x6c38x12[_0x8cbf[46]][3]|| _0x8cbf[56],_0x6c38x12[_0x8cbf[46]][4]|| _0x8cbf[56],_0x6c38x12[_0x8cbf[46]][5]|| _0x8cbf[56]),priority:_0x6c38xc,IntervalId:_0x6c38x12[_0x8cbf[31]]|| null,interval:_0x6c38x12[_0x8cbf[33]]|| _0x8cbf[35],isApp:true,callerID:_0x6c38x12[_0x8cbf[46]][1]|| null,appType:_0x6c38x12[_0x8cbf[58]]},_0x6c38xd))}else {if(_0x6c38x12[_0x8cbf[39]][_0x8cbf[44]]()=== _0x8cbf[45]&& _0x6c38x12[_0x8cbf[58]]=== _0x8cbf[62]){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x6c38x12[_0x8cbf[39]],appdata:util[_0x8cbf[23]](_0x8cbf[63],_0x6c38x12[_0x8cbf[46]][0],_0x6c38x12[_0x8cbf[46]][1],_0x6c38x12[_0x8cbf[46]][2]|| _0x8cbf[56],_0x6c38x12[_0x8cbf[46]][3]|| _0x8cbf[56],_0x6c38x12[_0x8cbf[46]][4]|| _0x8cbf[56]),priority:_0x6c38xc,IntervalId:_0x6c38x12[_0x8cbf[31]]|| null,interval:_0x6c38x12[_0x8cbf[33]]|| _0x8cbf[35],isApp:true,appType:_0x6c38x12[_0x8cbf[58]]},_0x6c38xd))}else {if(_0x6c38x12[_0x8cbf[39]][_0x8cbf[44]]()=== _0x8cbf[45]&& _0x6c38x12[_0x8cbf[58]]=== _0x8cbf[64]){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x6c38x12[_0x8cbf[39]],appdata:util[_0x8cbf[23]](_0x8cbf[65],_0x6c38x12[_0x8cbf[46]][0],_0x6c38x12[_0x8cbf[46]][1]|| _0x8cbf[56],_0x6c38x12[_0x8cbf[46]][2]|| _0x8cbf[56],_0x6c38x12[_0x8cbf[46]][3]|| _0x8cbf[56]),priority:_0x6c38xc,IntervalId:_0x6c38x12[_0x8cbf[31]]|| null,interval:_0x6c38x12[_0x8cbf[33]]|| _0x8cbf[35],isApp:true,appType:_0x6c38x12[_0x8cbf[58]]},_0x6c38xd))}else {_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x6c38x12[_0x8cbf[39]],appdata:_0x6c38x12[_0x8cbf[46]][_0x8cbf[67]](_0x8cbf[66]),priority:_0x6c38xc,IntervalId:_0x6c38x12[_0x8cbf[31]],interval:_0x6c38x12[_0x8cbf[33]]|| _0x8cbf[35],isApp:true,appType:_0x6c38x12[_0x8cbf[58]]|| null},_0x6c38xd))}}};_0x6c38xc++;if(_0x6c38x12[_0x8cbf[39]][_0x8cbf[44]]()=== _0x8cbf[45]&& _0x6c38x8[_0x8cbf[49]]&& _0x6c38x8[_0x8cbf[19]]=== _0x8cbf[26]){_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[68],appdata:_0x8cbf[56],priority:_0x6c38xc},_0x6c38xd))}else {_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[38],appdata:_0x8cbf[69],priority:_0x6c38xc},_0x6c38xd))};_0x6c38xc++;_0x6c38x14[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[38],appdata:_0x6c38x12[_0x8cbf[39]]+ _0x8cbf[70],priority:_0x6c38xc},_0x6c38xd));_0x6c38xc++;_0x6c38xe[_0x8cbf[25]](VoiceExtension[_0x8cbf[30]](_0x6c38x14,{transaction:_0x6c38x7}))});_0x6c38x11[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[38],appdata:_0x6c38x8[_0x8cbf[19]]+ _0x8cbf[71],priority:_0x6c38xc},_0x6c38xd));_0x6c38xc++;if(_0x6c38x8[_0x8cbf[19]]=== _0x8cbf[72]|| _0x6c38x8[_0x8cbf[19]]=== _0x8cbf[26]){_0x6c38x11[_0x8cbf[25]](_[_0x8cbf[24]]({app:_0x8cbf[73],appdata:_0x8cbf[56],priority:_0x6c38xc},_0x6c38xd));_0x6c38xc++};_0x6c38xe[_0x8cbf[25]](VoiceExtension[_0x8cbf[30]](_0x6c38x11,{transaction:_0x6c38x7}));return _0x6c38xe})[_0x8cbf[17]]()}}}function handleError(_0x6c38x1b,_0x6c38x1c){return _0x6c38x1b[_0x8cbf[76]](500)[_0x8cbf[75]](_0x6c38x1c)}
\ No newline at end of file