Built motion from commit 02c0abe.|0.0.118
[motion.git] / server / utils / voice_extension.js
index 24c27f8..d808532 100644 (file)
@@ -1 +1 @@
-var _0x41c4=["\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(_0x41c4[0]);var util=require(_0x41c4[1]);var Interval=require(_0x41c4[3])[_0x41c4[2]];var sequelize=require(_0x41c4[3])[_0x41c4[4]];var VoiceExtension=require(_0x41c4[3])[_0x41c4[5]];exports[_0x41c4[6]]=createApplications;exports[_0x41c4[7]]=function(_0x55f6x6,_0x55f6x7){var sequelize=require(_0x41c4[3])[_0x41c4[4]];var VoiceExtension=require(_0x41c4[3])[_0x41c4[5]];if(_0x55f6x6[_0x41c4[9]][_0x41c4[8]]){delete _0x55f6x6[_0x41c4[9]][_0x41c4[8]]};return VoiceExtension[_0x41c4[16]](_0x55f6x6[_0x41c4[9]],{where:{id:_0x55f6x6[_0x41c4[14]][_0x41c4[8]]},transaction:_0x55f6x7})[_0x41c4[10]](function(_0x55f6x8){if(_0x55f6x6[_0x41c4[9]][_0x41c4[11]]){_0x55f6x6[_0x41c4[9]][_0x41c4[8]]=_0x55f6x6[_0x41c4[14]][_0x41c4[8]];return VoiceExtension[_0x41c4[15]]({where:{VoiceExtensionId:_0x55f6x6[_0x41c4[14]][_0x41c4[8]]},transaction:_0x55f6x7})}})[_0x41c4[10]](function(){if(_0x55f6x6[_0x41c4[9]][_0x41c4[11]]&&Array[_0x41c4[12]](_0x55f6x6[_0x41c4[9]].Applications)&&_0x55f6x6[_0x41c4[9]][_0x41c4[11]][_0x41c4[13]]){return _0x55f6x6[_0x41c4[9]]}})[_0x41c4[10]](createApplications(_0x55f6x6[_0x41c4[9]].Applications,_0x55f6x7))};function createApplications(_0x55f6xa,_0x55f6x7){var Interval=require(_0x41c4[3])[_0x41c4[2]];var VoiceExtension=require(_0x41c4[3])[_0x41c4[5]];return function(_0x55f6x8){if(_0x55f6x8){return Interval[_0x41c4[73]]()[_0x41c4[10]](function(_0x55f6xb){var _0x55f6xc=2;var _0x55f6xd={exten:_0x55f6x8[_0x41c4[18]],type:_0x55f6x8[_0x41c4[19]],context:_0x55f6x8[_0x41c4[20]],VoiceExtensionId:_0x55f6x8[_0x41c4[8]]};var _0x55f6xe=[];var _0x55f6xf=6;var _0x55f6x10=[],_0x55f6x11=[];_0x55f6x10[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[21],appdata:util[_0x41c4[23]](_0x41c4[22],_0x55f6x8[_0x41c4[19]]),priority:_0x55f6xc},_0x55f6xd));_0x55f6xc++;if(_0x55f6x8[_0x41c4[19]]===_0x41c4[26]){_0x55f6x10[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[21],appdata:util[_0x41c4[23]](_0x41c4[27],_0x55f6x8[_0x41c4[28]]||_0x41c4[29]),priority:_0x55f6xc},_0x55f6xd));_0x55f6xc++};_0x55f6xe[_0x41c4[25]](VoiceExtension[_0x41c4[30]](_0x55f6x10,{transaction:_0x55f6x7}));_0x55f6xa[_0x41c4[43]](function(_0x55f6x12){var _0x55f6x13=[];var _0x55f6x14=[];if(_0x55f6x12[_0x41c4[31]]){var _0x55f6x15=_[_0x41c4[32]](_0x55f6xb,{IntervalId:_0x55f6x12[_0x41c4[31]]});_0x55f6x13=_0x55f6x15[_0x41c4[13]]?_[_0x41c4[34]](_0x55f6x15,_0x41c4[33]):[_0x41c4[35]];var _0x55f6x16=_[_0x41c4[36]](_0x55f6xb,{id:_0x55f6x12[_0x41c4[31]]});_0x55f6x12[_0x41c4[33]]=_0x55f6x16?_0x55f6x16[_0x41c4[37]]:_0x41c4[35]}else {_0x55f6x13=[_0x55f6x12[_0x41c4[33]]]};_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[38],appdata:_0x55f6x12[_0x41c4[39]]+_0x41c4[40],priority:_0x55f6xc},_0x55f6xd));_0x55f6xc++;var _0x55f6x17=_0x55f6x13[_0x41c4[13]];_0x55f6x13[_0x41c4[43]](function(_0x55f6x18,_0x55f6x19){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[41],appdata:util[_0x41c4[23]](_0x41c4[42],_0x55f6x18,_0x55f6x8[_0x41c4[20]],_0x55f6xc+(_0x55f6x17-_0x55f6x19),_0x55f6x8[_0x41c4[20]],((_0x55f6x19+1)<_0x55f6x17)?_0x55f6xc+1:_0x55f6xc+_0x55f6xf),priority:_0x55f6xc},_0x55f6xd));_0x55f6xc++});if(_0x55f6x12[_0x41c4[39]]===_0x41c4[44]&&_0x55f6x8[_0x41c4[19]]===_0x41c4[26]&&_0x55f6x12[_0x41c4[45]][1]){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[21],appdata:util[_0x41c4[23]](_0x41c4[46],_0x55f6x12[_0x41c4[45]][1]),priority:_0x55f6xc},_0x55f6xd))}else {_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[38],appdata:_0x41c4[47],priority:_0x55f6xc},_0x55f6xd))};_0x55f6xc++;if(_0x55f6x12[_0x41c4[39]]===_0x41c4[44]&&_0x55f6x8[_0x41c4[48]]&&_0x55f6x8[_0x41c4[19]]===_0x41c4[26]){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[49],appdata:_0x41c4[50],priority:_0x55f6xc},_0x55f6xd))}else {_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[38],appdata:_0x41c4[51],priority:_0x55f6xc},_0x55f6xd))};_0x55f6xc++;if(_0x55f6x12[_0x41c4[39]]===_0x41c4[52]&&_0x55f6x12[_0x41c4[39]]!==_0x41c4[53]){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[54],appdata:_0x41c4[55],priority:_0x55f6xc},_0x55f6xd))}else {_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[38],appdata:_0x41c4[56],priority:_0x55f6xc},_0x55f6xd))};_0x55f6xc++;if(_0x55f6x12[_0x41c4[39]]===_0x41c4[44]&&_0x55f6x12[_0x41c4[57]]===_0x41c4[58]){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x55f6x12[_0x41c4[39]],appdata:util[_0x41c4[23]](_0x41c4[59],_0x55f6x12[_0x41c4[45]][0],_0x55f6x12[_0x41c4[45]][2]||_0x41c4[55],_0x55f6x8[_0x41c4[60]]||0,_0x55f6x12[_0x41c4[45]][3]||_0x41c4[55],_0x55f6x12[_0x41c4[45]][4]||_0x41c4[55],_0x55f6x12[_0x41c4[45]][5]||_0x41c4[55]),priority:_0x55f6xc,IntervalId:_0x55f6x12[_0x41c4[31]]||null,interval:_0x55f6x12[_0x41c4[33]]||_0x41c4[35],isApp:true,callerID:_0x55f6x12[_0x41c4[45]][1]||null,appType:_0x55f6x12[_0x41c4[57]]},_0x55f6xd))}else {if(_0x55f6x12[_0x41c4[39]]===_0x41c4[44]&&_0x55f6x12[_0x41c4[57]]===_0x41c4[61]){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x55f6x12[_0x41c4[39]],appdata:util[_0x41c4[23]](_0x41c4[62],_0x55f6x12[_0x41c4[45]][0],_0x55f6x12[_0x41c4[45]][1],_0x55f6x12[_0x41c4[45]][2]||_0x41c4[55],_0x55f6x12[_0x41c4[45]][3]||_0x41c4[55],_0x55f6x12[_0x41c4[45]][4]||_0x41c4[55]),priority:_0x55f6xc,IntervalId:_0x55f6x12[_0x41c4[31]]||null,interval:_0x55f6x12[_0x41c4[33]]||_0x41c4[35],isApp:true,appType:_0x55f6x12[_0x41c4[57]]},_0x55f6xd))}else {if(_0x55f6x12[_0x41c4[39]]===_0x41c4[44]&&_0x55f6x12[_0x41c4[57]]===_0x41c4[63]){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x55f6x12[_0x41c4[39]],appdata:util[_0x41c4[23]](_0x41c4[64],_0x55f6x12[_0x41c4[45]][0],_0x55f6x12[_0x41c4[45]][1]||_0x41c4[55],_0x55f6x12[_0x41c4[45]][2]||_0x41c4[55],_0x55f6x12[_0x41c4[45]][3]||_0x41c4[55]),priority:_0x55f6xc,IntervalId:_0x55f6x12[_0x41c4[31]]||null,interval:_0x55f6x12[_0x41c4[33]]||_0x41c4[35],isApp:true,appType:_0x55f6x12[_0x41c4[57]]},_0x55f6xd))}else {_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x55f6x12[_0x41c4[39]],appdata:_0x55f6x12[_0x41c4[45]][_0x41c4[66]](_0x41c4[65]),priority:_0x55f6xc,IntervalId:_0x55f6x12[_0x41c4[31]],interval:_0x55f6x12[_0x41c4[33]]||_0x41c4[35],isApp:true,appType:_0x55f6x12[_0x41c4[57]]||null},_0x55f6xd))}}};_0x55f6xc++;if(_0x55f6x12[_0x41c4[39]]===_0x41c4[44]&&_0x55f6x8[_0x41c4[48]]&&_0x55f6x8[_0x41c4[19]]===_0x41c4[26]){_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[67],appdata:_0x41c4[55],priority:_0x55f6xc},_0x55f6xd))}else {_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[38],appdata:_0x41c4[68],priority:_0x55f6xc},_0x55f6xd))};_0x55f6xc++;_0x55f6x14[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[38],appdata:_0x55f6x12[_0x41c4[39]]+_0x41c4[69],priority:_0x55f6xc},_0x55f6xd));_0x55f6xc++;_0x55f6xe[_0x41c4[25]](VoiceExtension[_0x41c4[30]](_0x55f6x14,{transaction:_0x55f6x7}))});_0x55f6x11[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[38],appdata:_0x55f6x8[_0x41c4[19]]+_0x41c4[70],priority:_0x55f6xc},_0x55f6xd));_0x55f6xc++;if(_0x55f6x8[_0x41c4[19]]===_0x41c4[71]||_0x55f6x8[_0x41c4[19]]===_0x41c4[26]){_0x55f6x11[_0x41c4[25]](_[_0x41c4[24]]({app:_0x41c4[72],appdata:_0x41c4[55],priority:_0x55f6xc},_0x55f6xd));_0x55f6xc++};_0x55f6xe[_0x41c4[25]](VoiceExtension[_0x41c4[30]](_0x55f6x11,{transaction:_0x55f6x7}));return _0x55f6xe})[_0x41c4[17]]()}}}function handleError(_0x55f6x1b,_0x55f6x1c){return _0x55f6x1b[_0x41c4[75]](500)[_0x41c4[74]](_0x55f6x1c)}
\ No newline at end of file
+var _0xacd9=["\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","\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","\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(_0xacd9[0]);var util=require(_0xacd9[1]);var Interval=require(_0xacd9[3])[_0xacd9[2]];var sequelize=require(_0xacd9[3])[_0xacd9[4]];var VoiceExtension=require(_0xacd9[3])[_0xacd9[5]];exports[_0xacd9[6]]= createApplications;exports[_0xacd9[7]]= function(_0x8081x6,_0x8081x7){var sequelize=require(_0xacd9[3])[_0xacd9[4]];var VoiceExtension=require(_0xacd9[3])[_0xacd9[5]];if(_0x8081x6[_0xacd9[9]][_0xacd9[8]]){delete _0x8081x6[_0xacd9[9]][_0xacd9[8]]};return VoiceExtension[_0xacd9[16]](_0x8081x6[_0xacd9[9]],{where:{id:_0x8081x6[_0xacd9[14]][_0xacd9[8]]},transaction:_0x8081x7})[_0xacd9[10]](function(_0x8081x8){if(_0x8081x6[_0xacd9[9]][_0xacd9[11]]){_0x8081x6[_0xacd9[9]][_0xacd9[8]]= _0x8081x6[_0xacd9[14]][_0xacd9[8]];return VoiceExtension[_0xacd9[15]]({where:{VoiceExtensionId:_0x8081x6[_0xacd9[14]][_0xacd9[8]]},transaction:_0x8081x7})}})[_0xacd9[10]](function(){if(_0x8081x6[_0xacd9[9]][_0xacd9[11]]&& Array[_0xacd9[12]](_0x8081x6[_0xacd9[9]].Applications)&& _0x8081x6[_0xacd9[9]][_0xacd9[11]][_0xacd9[13]]){return _0x8081x6[_0xacd9[9]]}})[_0xacd9[10]](createApplications(_0x8081x6[_0xacd9[9]].Applications,_0x8081x7))};function createApplications(_0x8081xa,_0x8081x7){var Interval=require(_0xacd9[3])[_0xacd9[2]];var VoiceExtension=require(_0xacd9[3])[_0xacd9[5]];return function(_0x8081x8){if(_0x8081x8){return Interval[_0xacd9[76]]()[_0xacd9[10]](function(_0x8081xb){var _0x8081xc=2;var _0x8081xd={exten:_0x8081x8[_0xacd9[18]],type:_0x8081x8[_0xacd9[19]],context:_0x8081x8[_0xacd9[20]],VoiceExtensionId:_0x8081x8[_0xacd9[8]]};var _0x8081xe=[];var _0x8081xf=7;var _0x8081x10=[],_0x8081x11=[];_0x8081x10[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[21],appdata:util[_0xacd9[23]](_0xacd9[22],_0x8081x8[_0xacd9[19]]),priority:_0x8081xc},_0x8081xd));_0x8081xc++;if(_0x8081x8[_0xacd9[19]]=== _0xacd9[26]){_0x8081x10[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[21],appdata:util[_0xacd9[23]](_0xacd9[27],_0x8081x8[_0xacd9[28]]|| _0xacd9[29]),priority:_0x8081xc},_0x8081xd));_0x8081xc++};_0x8081xe[_0xacd9[25]](VoiceExtension[_0xacd9[30]](_0x8081x10,{transaction:_0x8081x7}));_0x8081xa[_0xacd9[43]](function(_0x8081x12){var _0x8081x13=[];var _0x8081x14=[];if(_0x8081x12[_0xacd9[31]]){var _0x8081x15=_[_0xacd9[32]](_0x8081xb,{IntervalId:_0x8081x12[_0xacd9[31]]});_0x8081x13= _0x8081x15[_0xacd9[13]]?_[_0xacd9[34]](_0x8081x15,_0xacd9[33]):[_0xacd9[35]];var _0x8081x16=_[_0xacd9[36]](_0x8081xb,{id:_0x8081x12[_0xacd9[31]]});_0x8081x12[_0xacd9[33]]= _0x8081x16?_0x8081x16[_0xacd9[37]]:_0xacd9[35]}else {_0x8081x13= [_0x8081x12[_0xacd9[33]]]};_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0x8081x12[_0xacd9[39]]+ _0xacd9[40],priority:_0x8081xc},_0x8081xd));_0x8081xc++;var _0x8081x17=_0x8081x13[_0xacd9[13]];_0x8081x13[_0xacd9[43]](function(_0x8081x18,_0x8081x19){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[41],appdata:util[_0xacd9[23]](_0xacd9[42],_0x8081x18,_0x8081x8[_0xacd9[20]],_0x8081xc+ (_0x8081x17- _0x8081x19),_0x8081x8[_0xacd9[20]],((_0x8081x19+ 1)< _0x8081x17)?_0x8081xc+ 1:_0x8081xc+ _0x8081xf),priority:_0x8081xc},_0x8081xd));_0x8081xc++});if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[45]&& _0x8081x8[_0xacd9[19]]=== _0xacd9[26]&& _0x8081x12[_0xacd9[46]][1]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[21],appdata:util[_0xacd9[23]](_0xacd9[47],_0x8081x12[_0xacd9[46]][1]),priority:_0x8081xc},_0x8081xd))}else {_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0xacd9[48],priority:_0x8081xc},_0x8081xd))};_0x8081xc++;if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[45]&& _0x8081x8[_0xacd9[49]]&& _0x8081x8[_0xacd9[19]]=== _0xacd9[26]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[50],appdata:_0xacd9[51],priority:_0x8081xc},_0x8081xd))}else {_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0xacd9[52],priority:_0x8081xc},_0x8081xd))};_0x8081xc++;if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[53]&& _0x8081x12[_0xacd9[39]]!== _0xacd9[54]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[55],appdata:_0xacd9[56],priority:_0x8081xc},_0x8081xd))}else {_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0xacd9[57],priority:_0x8081xc},_0x8081xd))};_0x8081xc++;if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[45]&& _0x8081x8[_0xacd9[19]]=== _0xacd9[26]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[21],appdata:util[_0xacd9[23]](_0xacd9[58],_0x8081x8[_0xacd9[8]]|| _0xacd9[56]),priority:_0x8081xc},_0x8081xd))}else {_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0xacd9[59],priority:_0x8081xc},_0x8081xd))};_0x8081xc++;if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[45]&& _0x8081x12[_0xacd9[60]]=== _0xacd9[61]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0x8081x12[_0xacd9[39]],appdata:util[_0xacd9[23]](_0xacd9[62],_0x8081x12[_0xacd9[46]][0],_0x8081x12[_0xacd9[46]][2]|| _0xacd9[56],_0x8081x8[_0xacd9[63]]|| 0,_0x8081x12[_0xacd9[46]][3]|| _0xacd9[56],_0x8081x12[_0xacd9[46]][4]|| _0xacd9[56],_0x8081x12[_0xacd9[46]][5]|| _0xacd9[56]),priority:_0x8081xc,IntervalId:_0x8081x12[_0xacd9[31]]|| null,interval:_0x8081x12[_0xacd9[33]]|| _0xacd9[35],isApp:true,callerID:_0x8081x12[_0xacd9[46]][1]|| null,appType:_0x8081x12[_0xacd9[60]]},_0x8081xd))}else {if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[45]&& _0x8081x12[_0xacd9[60]]=== _0xacd9[64]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0x8081x12[_0xacd9[39]],appdata:util[_0xacd9[23]](_0xacd9[65],_0x8081x12[_0xacd9[46]][0],_0x8081x12[_0xacd9[46]][1],_0x8081x12[_0xacd9[46]][2]|| _0xacd9[56],_0x8081x12[_0xacd9[46]][3]|| _0xacd9[56],_0x8081x12[_0xacd9[46]][4]|| _0xacd9[56]),priority:_0x8081xc,IntervalId:_0x8081x12[_0xacd9[31]]|| null,interval:_0x8081x12[_0xacd9[33]]|| _0xacd9[35],isApp:true,appType:_0x8081x12[_0xacd9[60]]},_0x8081xd))}else {if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[45]&& _0x8081x12[_0xacd9[60]]=== _0xacd9[66]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0x8081x12[_0xacd9[39]],appdata:util[_0xacd9[23]](_0xacd9[67],_0x8081x12[_0xacd9[46]][0],_0x8081x12[_0xacd9[46]][1]|| _0xacd9[56],_0x8081x12[_0xacd9[46]][2]|| _0xacd9[56],_0x8081x12[_0xacd9[46]][3]|| _0xacd9[56]),priority:_0x8081xc,IntervalId:_0x8081x12[_0xacd9[31]]|| null,interval:_0x8081x12[_0xacd9[33]]|| _0xacd9[35],isApp:true,appType:_0x8081x12[_0xacd9[60]]},_0x8081xd))}else {_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0x8081x12[_0xacd9[39]],appdata:_0x8081x12[_0xacd9[46]][_0xacd9[69]](_0xacd9[68]),priority:_0x8081xc,IntervalId:_0x8081x12[_0xacd9[31]],interval:_0x8081x12[_0xacd9[33]]|| _0xacd9[35],isApp:true,appType:_0x8081x12[_0xacd9[60]]|| null},_0x8081xd))}}};_0x8081xc++;if(_0x8081x12[_0xacd9[39]][_0xacd9[44]]()=== _0xacd9[45]&& _0x8081x8[_0xacd9[49]]&& _0x8081x8[_0xacd9[19]]=== _0xacd9[26]){_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[70],appdata:_0xacd9[56],priority:_0x8081xc},_0x8081xd))}else {_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0xacd9[71],priority:_0x8081xc},_0x8081xd))};_0x8081xc++;_0x8081x14[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0x8081x12[_0xacd9[39]]+ _0xacd9[72],priority:_0x8081xc},_0x8081xd));_0x8081xc++;_0x8081xe[_0xacd9[25]](VoiceExtension[_0xacd9[30]](_0x8081x14,{transaction:_0x8081x7}))});_0x8081x11[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[38],appdata:_0x8081x8[_0xacd9[19]]+ _0xacd9[73],priority:_0x8081xc},_0x8081xd));_0x8081xc++;if(_0x8081x8[_0xacd9[19]]=== _0xacd9[74]|| _0x8081x8[_0xacd9[19]]=== _0xacd9[26]){_0x8081x11[_0xacd9[25]](_[_0xacd9[24]]({app:_0xacd9[75],appdata:_0xacd9[56],priority:_0x8081xc},_0x8081xd));_0x8081xc++};_0x8081xe[_0xacd9[25]](VoiceExtension[_0xacd9[30]](_0x8081x11,{transaction:_0x8081x7}));return _0x8081xe})[_0xacd9[17]]()}}}function handleError(_0x8081x1b,_0x8081x1c){return _0x8081x1b[_0xacd9[78]](500)[_0xacd9[77]](_0x8081x1c)}
\ No newline at end of file