Built motion from commit 264c1c7.|0.0.142
[motion.git] / server / utils / voice_extension.js
index a634cbd..8fd143b 100644 (file)
@@ -1 +1 @@
-var _0x6c73=["\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","\x44\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","\x51\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(_0x6c73[0]);var util=require(_0x6c73[1]);var Interval=require(_0x6c73[3])[_0x6c73[2]];var sequelize=require(_0x6c73[3])[_0x6c73[4]];var VoiceExtension=require(_0x6c73[3])[_0x6c73[5]];exports[_0x6c73[6]]=createApplications;exports[_0x6c73[7]]=function(_0xf571x6,_0xf571x7){var sequelize=require(_0x6c73[3])[_0x6c73[4]];var VoiceExtension=require(_0x6c73[3])[_0x6c73[5]];if(_0xf571x6[_0x6c73[9]][_0x6c73[8]]){delete _0xf571x6[_0x6c73[9]][_0x6c73[8]]};return VoiceExtension[_0x6c73[16]](_0xf571x6[_0x6c73[9]],{where:{id:_0xf571x6[_0x6c73[14]][_0x6c73[8]]},transaction:_0xf571x7})[_0x6c73[10]](function(_0xf571x8){if(_0xf571x6[_0x6c73[9]][_0x6c73[11]]){_0xf571x6[_0x6c73[9]][_0x6c73[8]]=_0xf571x6[_0x6c73[14]][_0x6c73[8]];return VoiceExtension[_0x6c73[15]]({where:{VoiceExtensionId:_0xf571x6[_0x6c73[14]][_0x6c73[8]]},transaction:_0xf571x7})}})[_0x6c73[10]](function(){if(_0xf571x6[_0x6c73[9]][_0x6c73[11]]&&Array[_0x6c73[12]](_0xf571x6[_0x6c73[9]].Applications)&&_0xf571x6[_0x6c73[9]][_0x6c73[11]][_0x6c73[13]]){return _0xf571x6[_0x6c73[9]]}})[_0x6c73[10]](createApplications(_0xf571x6[_0x6c73[9]].Applications,_0xf571x7))};function createApplications(_0xf571xa,_0xf571x7){var Interval=require(_0x6c73[3])[_0x6c73[2]];var VoiceExtension=require(_0x6c73[3])[_0x6c73[5]];return function(_0xf571x8){if(_0xf571x8){return Interval[_0x6c73[73]]()[_0x6c73[10]](function(_0xf571xb){var _0xf571xc=2;var _0xf571xd={exten:_0xf571x8[_0x6c73[18]],type:_0xf571x8[_0x6c73[19]],context:_0xf571x8[_0x6c73[20]],VoiceExtensionId:_0xf571x8[_0x6c73[8]]};var _0xf571xe=[];var _0xf571xf=6;var _0xf571x10=[],_0xf571x11=[];_0xf571x10[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[21],appdata:util[_0x6c73[23]](_0x6c73[22],_0xf571x8[_0x6c73[19]]),priority:_0xf571xc},_0xf571xd));_0xf571xc++;if(_0xf571x8[_0x6c73[19]]===_0x6c73[26]){_0xf571x10[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[21],appdata:util[_0x6c73[23]](_0x6c73[27],_0xf571x8[_0x6c73[28]]||_0x6c73[29]),priority:_0xf571xc},_0xf571xd));_0xf571xc++};_0xf571xe[_0x6c73[25]](VoiceExtension[_0x6c73[30]](_0xf571x10,{transaction:_0xf571x7}));_0xf571xa[_0x6c73[43]](function(_0xf571x12){var _0xf571x13=[];var _0xf571x14=[];if(_0xf571x12[_0x6c73[31]]){var _0xf571x15=_[_0x6c73[32]](_0xf571xb,{IntervalId:_0xf571x12[_0x6c73[31]]});_0xf571x13=_0xf571x15[_0x6c73[13]]?_[_0x6c73[34]](_0xf571x15,_0x6c73[33]):[_0x6c73[35]];var _0xf571x16=_[_0x6c73[36]](_0xf571xb,{id:_0xf571x12[_0x6c73[31]]});_0xf571x12[_0x6c73[33]]=_0xf571x16?_0xf571x16[_0x6c73[37]]:_0x6c73[35]}else {_0xf571x13=[_0xf571x12[_0x6c73[33]]]};_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[38],appdata:_0xf571x12[_0x6c73[39]]+_0x6c73[40],priority:_0xf571xc},_0xf571xd));_0xf571xc++;var _0xf571x17=_0xf571x13[_0x6c73[13]];_0xf571x13[_0x6c73[43]](function(_0xf571x18,_0xf571x19){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[41],appdata:util[_0x6c73[23]](_0x6c73[42],_0xf571x18,_0xf571x8[_0x6c73[20]],_0xf571xc+(_0xf571x17-_0xf571x19),_0xf571x8[_0x6c73[20]],((_0xf571x19+1)<_0xf571x17)?_0xf571xc+1:_0xf571xc+_0xf571xf),priority:_0xf571xc},_0xf571xd));_0xf571xc++});if(_0xf571x12[_0x6c73[39]]===_0x6c73[44]&&_0xf571x8[_0x6c73[19]]===_0x6c73[26]&&_0xf571x12[_0x6c73[45]][1]){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[21],appdata:util[_0x6c73[23]](_0x6c73[46],_0xf571x12[_0x6c73[45]][1]),priority:_0xf571xc},_0xf571xd))}else {_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[38],appdata:_0x6c73[47],priority:_0xf571xc},_0xf571xd))};_0xf571xc++;if(_0xf571x12[_0x6c73[39]]===_0x6c73[44]&&_0xf571x8[_0x6c73[48]]&&_0xf571x8[_0x6c73[19]]===_0x6c73[26]){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[49],appdata:_0x6c73[50],priority:_0xf571xc},_0xf571xd))}else {_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[38],appdata:_0x6c73[51],priority:_0xf571xc},_0xf571xd))};_0xf571xc++;if(_0xf571x12[_0x6c73[39]]===_0x6c73[52]&&_0xf571x12[_0x6c73[39]]!==_0x6c73[53]){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[54],appdata:_0x6c73[55],priority:_0xf571xc},_0xf571xd))}else {_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[38],appdata:_0x6c73[56],priority:_0xf571xc},_0xf571xd))};_0xf571xc++;if(_0xf571x12[_0x6c73[39]]===_0x6c73[44]&&_0xf571x12[_0x6c73[57]]===_0x6c73[58]){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0xf571x12[_0x6c73[39]],appdata:util[_0x6c73[23]](_0x6c73[59],_0xf571x12[_0x6c73[45]][0],_0xf571x12[_0x6c73[45]][2]||_0x6c73[55],_0xf571x8[_0x6c73[60]]||0,_0xf571x12[_0x6c73[45]][3]||_0x6c73[55],_0xf571x12[_0x6c73[45]][4]||_0x6c73[55],_0xf571x12[_0x6c73[45]][5]||_0x6c73[55]),priority:_0xf571xc,IntervalId:_0xf571x12[_0x6c73[31]]||null,interval:_0xf571x12[_0x6c73[33]]||_0x6c73[35],isApp:true,callerID:_0xf571x12[_0x6c73[45]][1]||null,appType:_0xf571x12[_0x6c73[57]]},_0xf571xd))}else {if(_0xf571x12[_0x6c73[39]]===_0x6c73[44]&&_0xf571x12[_0x6c73[57]]===_0x6c73[61]){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0xf571x12[_0x6c73[39]],appdata:util[_0x6c73[23]](_0x6c73[62],_0xf571x12[_0x6c73[45]][0],_0xf571x12[_0x6c73[45]][1],_0xf571x12[_0x6c73[45]][2]||_0x6c73[55],_0xf571x12[_0x6c73[45]][3]||_0x6c73[55],_0xf571x12[_0x6c73[45]][4]||_0x6c73[55]),priority:_0xf571xc,IntervalId:_0xf571x12[_0x6c73[31]]||null,interval:_0xf571x12[_0x6c73[33]]||_0x6c73[35],isApp:true,appType:_0xf571x12[_0x6c73[57]]},_0xf571xd))}else {if(_0xf571x12[_0x6c73[39]]===_0x6c73[44]&&_0xf571x12[_0x6c73[57]]===_0x6c73[63]){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0xf571x12[_0x6c73[39]],appdata:util[_0x6c73[23]](_0x6c73[64],_0xf571x12[_0x6c73[45]][0],_0xf571x12[_0x6c73[45]][1]||_0x6c73[55],_0xf571x12[_0x6c73[45]][2]||_0x6c73[55],_0xf571x12[_0x6c73[45]][3]||_0x6c73[55]),priority:_0xf571xc,IntervalId:_0xf571x12[_0x6c73[31]]||null,interval:_0xf571x12[_0x6c73[33]]||_0x6c73[35],isApp:true,appType:_0xf571x12[_0x6c73[57]]},_0xf571xd))}else {_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0xf571x12[_0x6c73[39]],appdata:_0xf571x12[_0x6c73[45]][_0x6c73[66]](_0x6c73[65]),priority:_0xf571xc,IntervalId:_0xf571x12[_0x6c73[31]],interval:_0xf571x12[_0x6c73[33]]||_0x6c73[35],isApp:true,appType:_0xf571x12[_0x6c73[57]]||null},_0xf571xd))}}};_0xf571xc++;if(_0xf571x12[_0x6c73[39]]===_0x6c73[44]&&_0xf571x8[_0x6c73[48]]&&_0xf571x8[_0x6c73[19]]===_0x6c73[26]){_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[67],appdata:_0x6c73[55],priority:_0xf571xc},_0xf571xd))}else {_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[38],appdata:_0x6c73[68],priority:_0xf571xc},_0xf571xd))};_0xf571xc++;_0xf571x14[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[38],appdata:_0xf571x12[_0x6c73[39]]+_0x6c73[69],priority:_0xf571xc},_0xf571xd));_0xf571xc++;_0xf571xe[_0x6c73[25]](VoiceExtension[_0x6c73[30]](_0xf571x14,{transaction:_0xf571x7}))});_0xf571x11[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[38],appdata:_0xf571x8[_0x6c73[19]]+_0x6c73[70],priority:_0xf571xc},_0xf571xd));_0xf571xc++;if(_0xf571x8[_0x6c73[19]]===_0x6c73[71]||_0xf571x8[_0x6c73[19]]===_0x6c73[26]){_0xf571x11[_0x6c73[25]](_[_0x6c73[24]]({app:_0x6c73[72],appdata:_0x6c73[55],priority:_0xf571xc},_0xf571xd));_0xf571xc++};_0xf571xe[_0x6c73[25]](VoiceExtension[_0x6c73[30]](_0xf571x11,{transaction:_0xf571x7}));return _0xf571xe})[_0x6c73[17]]()}}}function handleError(_0xf571x1b,_0xf571x1c){return _0xf571x1b[_0x6c73[75]](500)[_0x6c73[74]](_0xf571x1c)}
\ No newline at end of file
+var _0x877c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\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","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x46\x6F\x72\x6D\x61\x74","\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","\x61\x70\x70\x54\x79\x70\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","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x72\x6F\x75\x74\x65\x69\x64\x3D\x25\x64","\x53\x6B\x69\x70\x70\x65\x64\x20\x4F\x75\x74\x6F\x75\x6E\x64\x20\x52\x6F\x75\x74\x65\x20\x49\x64\x20\x53\x65\x74","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x44\x69\x61\x6C","\x78","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x58","\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"];_0x877c[0];var _=require(_0x877c[1]);var util=require(_0x877c[2]);var Interval=require(_0x877c[4])[_0x877c[3]];var sequelize=require(_0x877c[4])[_0x877c[5]];var VoiceExtension=require(_0x877c[4])[_0x877c[6]];exports[_0x877c[7]]= createApplications;exports[_0x877c[8]]= function(_0x570fx6,_0x570fx7){var sequelize=require(_0x877c[4])[_0x877c[5]];var VoiceExtension=require(_0x877c[4])[_0x877c[6]];if(_0x570fx6[_0x877c[10]][_0x877c[9]]){delete _0x570fx6[_0x877c[10]][_0x877c[9]]};return VoiceExtension[_0x877c[17]](_0x570fx6[_0x877c[10]],{where:{id:_0x570fx6[_0x877c[15]][_0x877c[9]]},transaction:_0x570fx7})[_0x877c[11]](function(_0x570fx8){if(_0x570fx6[_0x877c[10]][_0x877c[12]]){_0x570fx6[_0x877c[10]][_0x877c[9]]= _0x570fx6[_0x877c[15]][_0x877c[9]];return VoiceExtension[_0x877c[16]]({where:{VoiceExtensionId:_0x570fx6[_0x877c[15]][_0x877c[9]]},transaction:_0x570fx7})}})[_0x877c[11]](function(){if(_0x570fx6[_0x877c[10]][_0x877c[12]]&& Array[_0x877c[13]](_0x570fx6[_0x877c[10]].Applications)&& _0x570fx6[_0x877c[10]][_0x877c[12]][_0x877c[14]]){return _0x570fx6[_0x877c[10]]}})[_0x877c[11]](createApplications(_0x570fx6[_0x877c[10]].Applications,_0x570fx7))};function createApplications(_0x570fxa,_0x570fx7){var Interval=require(_0x877c[4])[_0x877c[3]];var VoiceExtension=require(_0x877c[4])[_0x877c[6]];return function(_0x570fx8){if(_0x570fx8){return Interval[_0x877c[83]]()[_0x877c[11]](function(_0x570fxb){var _0x570fxc=2;var _0x570fxd={exten:_0x570fx8[_0x877c[19]],type:_0x570fx8[_0x877c[20]],context:_0x570fx8[_0x877c[21]],VoiceExtensionId:_0x570fx8[_0x877c[9]]};var _0x570fxe=[];var _0x570fxf=7;var _0x570fx10=[],_0x570fx11=[];_0x570fx10[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[22],appdata:util[_0x877c[24]](_0x877c[23],_0x570fx8[_0x877c[20]]),priority:_0x570fxc},_0x570fxd));_0x570fxc++;if(_0x570fx8[_0x877c[20]]=== _0x877c[27]){_0x570fx10[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[22],appdata:util[_0x877c[24]](_0x877c[28],_0x570fx8[_0x877c[29]]|| _0x877c[30]),priority:_0x570fxc},_0x570fxd));_0x570fxc++};_0x570fxe[_0x877c[26]](VoiceExtension[_0x877c[31]](_0x570fx10,{transaction:_0x570fx7}));_0x570fxa[_0x877c[44]](function(_0x570fx12){var _0x570fx13=[];var _0x570fx14=[];if(_0x570fx12[_0x877c[32]]){var _0x570fx15=_[_0x877c[33]](_0x570fxb,{IntervalId:_0x570fx12[_0x877c[32]]});_0x570fx13= _0x570fx15[_0x877c[14]]?_[_0x877c[35]](_0x570fx15,_0x877c[34]):[_0x877c[36]];var _0x570fx16=_[_0x877c[37]](_0x570fxb,{id:_0x570fx12[_0x877c[32]]});_0x570fx12[_0x877c[34]]= _0x570fx16?_0x570fx16[_0x877c[38]]:_0x877c[36]}else {_0x570fx13= [_0x570fx12[_0x877c[34]]]};_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x570fx12[_0x877c[40]]+ _0x877c[41],priority:_0x570fxc},_0x570fxd));_0x570fxc++;var _0x570fx17=_0x570fx13[_0x877c[14]];_0x570fx13[_0x877c[44]](function(_0x570fx18,_0x570fx19){_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[42],appdata:util[_0x877c[24]](_0x877c[43],_0x570fx18,_0x570fx8[_0x877c[21]],_0x570fxc+ (_0x570fx17- _0x570fx19),_0x570fx8[_0x877c[21]],((_0x570fx19+ 1)< _0x570fx17)?_0x570fxc+ 1:_0x570fxc+ _0x570fxf),priority:_0x570fxc},_0x570fxd));_0x570fxc++});if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]&& _0x570fx8[_0x877c[20]]=== _0x877c[27]&& _0x570fx12[_0x877c[47]][1]){_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[22],appdata:util[_0x877c[24]](_0x877c[48],_0x570fx12[_0x877c[47]][1]),priority:_0x570fxc},_0x570fxd))}else {_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x877c[49],priority:_0x570fxc},_0x570fxd))};_0x570fxc++;if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]&& _0x570fx8[_0x877c[50]]&& _0x570fx8[_0x877c[20]]=== _0x877c[27]){_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[51],appdata:_0x877c[52]+ (_0x570fx8[_0x877c[53]]|| _0x877c[54])+ _0x877c[55],priority:_0x570fxc},_0x570fxd))}else {_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x877c[56],priority:_0x570fxc},_0x570fxd))};_0x570fxc++;if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[57]&& _0x570fx12[_0x877c[58]]!== _0x877c[59]){_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[60],appdata:_0x877c[61],priority:_0x570fxc},_0x570fxd))}else {_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x877c[62],priority:_0x570fxc},_0x570fxd))};_0x570fxc++;if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]&& _0x570fx8[_0x877c[20]]=== _0x877c[27]){_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[22],appdata:util[_0x877c[24]](_0x877c[63],_0x570fx8[_0x877c[9]]|| _0x877c[61]),priority:_0x570fxc},_0x570fxd))}else {_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x877c[64],priority:_0x570fxc},_0x570fxd))};_0x570fxc++;if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]&& _0x570fx12[_0x877c[58]]=== _0x877c[65]){_0x570fx12[_0x877c[47]][4]= _0x570fx12[_0x877c[47]][4]|| _0x877c[61];_0x570fx12[_0x877c[47]][4]+= (_[_0x877c[67]](_0x570fx12[_0x877c[47]][4],_0x877c[66])?_0x877c[61]:_0x877c[66])+ (_[_0x877c[67]](_0x570fx12[_0x877c[47]][4],_0x877c[68])?_0x877c[61]:_0x877c[68]);_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x570fx12[_0x877c[40]],appdata:util[_0x877c[24]](_0x877c[69],_0x570fx12[_0x877c[47]][0],_0x570fx12[_0x877c[47]][2]|| _0x877c[61],_0x570fx8[_0x877c[70]]|| 0,_0x570fx12[_0x877c[47]][3]|| _0x877c[61],_0x570fx12[_0x877c[47]][4]|| _0x877c[61],_0x570fx12[_0x877c[47]][5]|| _0x877c[61]),priority:_0x570fxc,IntervalId:_0x570fx12[_0x877c[32]]|| null,interval:_0x570fx12[_0x877c[34]]|| _0x877c[36],isApp:true,callerID:_0x570fx12[_0x877c[47]][1]|| null,appType:_0x570fx12[_0x877c[58]]},_0x570fxd))}else {if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]&& _0x570fx12[_0x877c[58]]=== _0x877c[71]){_0x570fx12[_0x877c[47]][3]= _0x570fx12[_0x877c[47]][3]|| _0x877c[61];_0x570fx12[_0x877c[47]][3]+= (_[_0x877c[67]](_0x570fx12[_0x877c[47]][3],_0x877c[66])?_0x877c[61]:_0x877c[66])+ (_[_0x877c[67]](_0x570fx12[_0x877c[47]][3],_0x877c[68])?_0x877c[61]:_0x877c[68]);_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x570fx12[_0x877c[40]],appdata:util[_0x877c[24]](_0x877c[72],_0x570fx12[_0x877c[47]][0],_0x570fx12[_0x877c[47]][1],_0x570fx12[_0x877c[47]][2]|| _0x877c[61],_0x570fx12[_0x877c[47]][3]|| _0x877c[61],_0x570fx12[_0x877c[47]][4]|| _0x877c[61]),priority:_0x570fxc,IntervalId:_0x570fx12[_0x877c[32]]|| null,interval:_0x570fx12[_0x877c[34]]|| _0x877c[36],isApp:true,appType:_0x570fx12[_0x877c[58]]},_0x570fxd))}else {if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]&& _0x570fx12[_0x877c[58]]=== _0x877c[73]){_0x570fx12[_0x877c[47]][2]= _0x570fx12[_0x877c[47]][2]|| _0x877c[61];_0x570fx12[_0x877c[47]][2]+= (_[_0x877c[67]](_0x570fx12[_0x877c[47]][2],_0x877c[66])?_0x877c[61]:_0x877c[66])+ (_[_0x877c[67]](_0x570fx12[_0x877c[47]][2],_0x877c[68])?_0x877c[61]:_0x877c[68]);_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x570fx12[_0x877c[40]],appdata:util[_0x877c[24]](_0x877c[74],_0x570fx12[_0x877c[47]][0],_0x570fx12[_0x877c[47]][1]|| _0x877c[61],_0x570fx12[_0x877c[47]][2]|| _0x877c[61],_0x570fx12[_0x877c[47]][3]|| _0x877c[61]),priority:_0x570fxc,IntervalId:_0x570fx12[_0x877c[32]]|| null,interval:_0x570fx12[_0x877c[34]]|| _0x877c[36],isApp:true,appType:_0x570fx12[_0x877c[58]]},_0x570fxd))}else {if((_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]|| _0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[57])&& _0x570fx12[_0x877c[58]]!== _0x877c[59]){var _0x570fx1a=_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]?2:1;_0x570fx12[_0x877c[47]][_0x570fx1a]= _0x570fx12[_0x877c[47]][_0x570fx1a]|| _0x877c[61];_0x570fx12[_0x877c[47]][_0x570fx1a]+= (_[_0x877c[67]](_0x570fx12[_0x877c[47]][_0x570fx1a],_0x877c[66])?_0x877c[61]:_0x877c[66])+ (_[_0x877c[67]](_0x570fx12[_0x877c[47]][_0x570fx1a],_0x877c[68])?_0x877c[61]:_0x877c[68])};_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x570fx12[_0x877c[40]],appdata:_0x570fx12[_0x877c[47]][_0x877c[76]](_0x877c[75]),priority:_0x570fxc,IntervalId:_0x570fx12[_0x877c[32]],interval:_0x570fx12[_0x877c[34]]|| _0x877c[36],isApp:true,appType:_0x570fx12[_0x877c[58]]|| null},_0x570fxd))}}};_0x570fxc++;if(_0x570fx12[_0x877c[40]][_0x877c[45]]()=== _0x877c[46]&& _0x570fx8[_0x877c[50]]&& _0x570fx8[_0x877c[20]]=== _0x877c[27]){_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[77],appdata:_0x877c[61],priority:_0x570fxc},_0x570fxd))}else {_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x877c[78],priority:_0x570fxc},_0x570fxd))};_0x570fxc++;_0x570fx14[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x570fx12[_0x877c[40]]+ _0x877c[79],priority:_0x570fxc},_0x570fxd));_0x570fxc++;_0x570fxe[_0x877c[26]](VoiceExtension[_0x877c[31]](_0x570fx14,{transaction:_0x570fx7}))});_0x570fx11[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[39],appdata:_0x570fx8[_0x877c[20]]+ _0x877c[80],priority:_0x570fxc},_0x570fxd));_0x570fxc++;if(_0x570fx8[_0x877c[20]]=== _0x877c[81]|| _0x570fx8[_0x877c[20]]=== _0x877c[27]){_0x570fx11[_0x877c[26]](_[_0x877c[25]]({app:_0x877c[82],appdata:_0x877c[61],priority:_0x570fxc},_0x570fxd));_0x570fxc++};_0x570fxe[_0x877c[26]](VoiceExtension[_0x877c[31]](_0x570fx11,{transaction:_0x570fx7}));return _0x570fxe})[_0x877c[18]]()}}}
\ No newline at end of file