Built motion from commit 0c27b27.|1.0.11
[motion.git] / server / utils / voice_extension.js
index 643d1c4..92b1601 100644 (file)
@@ -1 +1 @@
-var _0x1a4c=["\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","\x41\x6E\x73\x77\x65\x72","","\x53\x6B\x69\x70\x70\x65\x64\x20\x41\x6E\x73\x77\x65\x72","\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(_0x1a4c[0]);var util=require(_0x1a4c[1]);var Interval=require(_0x1a4c[3])[_0x1a4c[2]];var sequelize=require(_0x1a4c[3])[_0x1a4c[4]];var VoiceExtension=require(_0x1a4c[3])[_0x1a4c[5]];exports[_0x1a4c[6]]=createApplications;exports[_0x1a4c[7]]=function(_0xcb2bx6,_0xcb2bx7){var sequelize=require(_0x1a4c[3])[_0x1a4c[4]];var VoiceExtension=require(_0x1a4c[3])[_0x1a4c[5]];if(_0xcb2bx6[_0x1a4c[9]][_0x1a4c[8]]){delete _0xcb2bx6[_0x1a4c[9]][_0x1a4c[8]]};return VoiceExtension[_0x1a4c[16]](_0xcb2bx6[_0x1a4c[9]],{where:{id:_0xcb2bx6[_0x1a4c[14]][_0x1a4c[8]]},transaction:_0xcb2bx7})[_0x1a4c[10]](function(_0xcb2bx8){if(_0xcb2bx6[_0x1a4c[9]][_0x1a4c[11]]){_0xcb2bx6[_0x1a4c[9]][_0x1a4c[8]]=_0xcb2bx6[_0x1a4c[14]][_0x1a4c[8]];return VoiceExtension[_0x1a4c[15]]({where:{VoiceExtensionId:_0xcb2bx6[_0x1a4c[14]][_0x1a4c[8]]},transaction:_0xcb2bx7})}})[_0x1a4c[10]](function(){if(_0xcb2bx6[_0x1a4c[9]][_0x1a4c[11]]&&Array[_0x1a4c[12]](_0xcb2bx6[_0x1a4c[9]].Applications)&&_0xcb2bx6[_0x1a4c[9]][_0x1a4c[11]][_0x1a4c[13]]){return _0xcb2bx6[_0x1a4c[9]]}})[_0x1a4c[10]](createApplications(_0xcb2bx6[_0x1a4c[9]].Applications,_0xcb2bx7))};function createApplications(_0xcb2bxa,_0xcb2bx7){var Interval=require(_0x1a4c[3])[_0x1a4c[2]];var VoiceExtension=require(_0x1a4c[3])[_0x1a4c[5]];return function(_0xcb2bx8){if(_0xcb2bx8){return Interval[_0x1a4c[72]]()[_0x1a4c[10]](function(_0xcb2bxb){var _0xcb2bxc=2;var _0xcb2bxd={exten:_0xcb2bx8[_0x1a4c[18]],type:_0xcb2bx8[_0x1a4c[19]],context:_0xcb2bx8[_0x1a4c[20]],VoiceExtensionId:_0xcb2bx8[_0x1a4c[8]]};var _0xcb2bxe=[];var _0xcb2bxf=6;var _0xcb2bx10=[],_0xcb2bx11=[];_0xcb2bx10[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[21],appdata:util[_0x1a4c[23]](_0x1a4c[22],_0xcb2bx8[_0x1a4c[19]]),priority:_0xcb2bxc},_0xcb2bxd));_0xcb2bxc++;if(_0xcb2bx8[_0x1a4c[19]]===_0x1a4c[26]){_0xcb2bx10[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[21],appdata:util[_0x1a4c[23]](_0x1a4c[27],_0xcb2bx8[_0x1a4c[28]]||_0x1a4c[29]),priority:_0xcb2bxc},_0xcb2bxd));_0xcb2bxc++};_0xcb2bxe[_0x1a4c[25]](VoiceExtension[_0x1a4c[30]](_0xcb2bx10,{transaction:_0xcb2bx7}));_0xcb2bxa[_0x1a4c[43]](function(_0xcb2bx12){var _0xcb2bx13=[];var _0xcb2bx14=[];if(_0xcb2bx12[_0x1a4c[31]]){var _0xcb2bx15=_[_0x1a4c[32]](_0xcb2bxb,{IntervalId:_0xcb2bx12[_0x1a4c[31]]});_0xcb2bx13=_0xcb2bx15[_0x1a4c[13]]?_[_0x1a4c[34]](_0xcb2bx15,_0x1a4c[33]):[_0x1a4c[35]];var _0xcb2bx16=_[_0x1a4c[36]](_0xcb2bxb,{id:_0xcb2bx12[_0x1a4c[31]]});_0xcb2bx12[_0x1a4c[33]]=_0xcb2bx16?_0xcb2bx16[_0x1a4c[37]]:_0x1a4c[35]}else {_0xcb2bx13=[_0xcb2bx12[_0x1a4c[33]]]};_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[38],appdata:_0xcb2bx12[_0x1a4c[39]]+_0x1a4c[40],priority:_0xcb2bxc},_0xcb2bxd));_0xcb2bxc++;var _0xcb2bx17=_0xcb2bx13[_0x1a4c[13]];_0xcb2bx13[_0x1a4c[43]](function(_0xcb2bx18,_0xcb2bx19){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[41],appdata:util[_0x1a4c[23]](_0x1a4c[42],_0xcb2bx18,_0xcb2bx8[_0x1a4c[20]],_0xcb2bxc+(_0xcb2bx17-_0xcb2bx19),_0xcb2bx8[_0x1a4c[20]],((_0xcb2bx19+1)<_0xcb2bx17)?_0xcb2bxc+1:_0xcb2bxc+_0xcb2bxf),priority:_0xcb2bxc},_0xcb2bxd));_0xcb2bxc++});if(_0xcb2bx12[_0x1a4c[39]]===_0x1a4c[44]&&_0xcb2bx8[_0x1a4c[19]]===_0x1a4c[26]&&_0xcb2bx12[_0x1a4c[45]][1]){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[21],appdata:util[_0x1a4c[23]](_0x1a4c[46],_0xcb2bx12[_0x1a4c[45]][1]),priority:_0xcb2bxc},_0xcb2bxd))}else {_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[38],appdata:_0x1a4c[47],priority:_0xcb2bxc},_0xcb2bxd))};_0xcb2bxc++;if(_0xcb2bx12[_0x1a4c[39]]===_0x1a4c[44]&&_0xcb2bx8[_0x1a4c[48]]&&_0xcb2bx8[_0x1a4c[19]]===_0x1a4c[26]){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[49],appdata:_0x1a4c[50],priority:_0xcb2bxc},_0xcb2bxd))}else {_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[38],appdata:_0x1a4c[51],priority:_0xcb2bxc},_0xcb2bxd))};_0xcb2bxc++;if(_0xcb2bx12[_0x1a4c[39]]===_0x1a4c[52]){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[53],appdata:_0x1a4c[54],priority:_0xcb2bxc},_0xcb2bxd))}else {_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[38],appdata:_0x1a4c[55],priority:_0xcb2bxc},_0xcb2bxd))};_0xcb2bxc++;if(_0xcb2bx12[_0x1a4c[39]]===_0x1a4c[44]&&_0xcb2bx12[_0x1a4c[56]]===_0x1a4c[57]){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0xcb2bx12[_0x1a4c[39]],appdata:util[_0x1a4c[23]](_0x1a4c[58],_0xcb2bx12[_0x1a4c[45]][0],_0xcb2bx12[_0x1a4c[45]][2]||_0x1a4c[54],_0xcb2bx8[_0x1a4c[59]]||0,_0xcb2bx12[_0x1a4c[45]][3]||_0x1a4c[54],_0xcb2bx12[_0x1a4c[45]][4]||_0x1a4c[54],_0xcb2bx12[_0x1a4c[45]][5]||_0x1a4c[54]),priority:_0xcb2bxc,IntervalId:_0xcb2bx12[_0x1a4c[31]]||null,interval:_0xcb2bx12[_0x1a4c[33]]||_0x1a4c[35],isApp:true,callerID:_0xcb2bx12[_0x1a4c[45]][1]||null,appType:_0xcb2bx12[_0x1a4c[56]]},_0xcb2bxd))}else {if(_0xcb2bx12[_0x1a4c[39]]===_0x1a4c[44]&&_0xcb2bx12[_0x1a4c[56]]===_0x1a4c[60]){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0xcb2bx12[_0x1a4c[39]],appdata:util[_0x1a4c[23]](_0x1a4c[61],_0xcb2bx12[_0x1a4c[45]][0],_0xcb2bx12[_0x1a4c[45]][1],_0xcb2bx12[_0x1a4c[45]][2]||_0x1a4c[54],_0xcb2bx12[_0x1a4c[45]][3]||_0x1a4c[54],_0xcb2bx12[_0x1a4c[45]][4]||_0x1a4c[54]),priority:_0xcb2bxc,IntervalId:_0xcb2bx12[_0x1a4c[31]]||null,interval:_0xcb2bx12[_0x1a4c[33]]||_0x1a4c[35],isApp:true,appType:_0xcb2bx12[_0x1a4c[56]]},_0xcb2bxd))}else {if(_0xcb2bx12[_0x1a4c[39]]===_0x1a4c[44]&&_0xcb2bx12[_0x1a4c[56]]===_0x1a4c[62]){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0xcb2bx12[_0x1a4c[39]],appdata:util[_0x1a4c[23]](_0x1a4c[63],_0xcb2bx12[_0x1a4c[45]][0],_0xcb2bx12[_0x1a4c[45]][1]||_0x1a4c[54],_0xcb2bx12[_0x1a4c[45]][2]||_0x1a4c[54],_0xcb2bx12[_0x1a4c[45]][3]||_0x1a4c[54]),priority:_0xcb2bxc,IntervalId:_0xcb2bx12[_0x1a4c[31]]||null,interval:_0xcb2bx12[_0x1a4c[33]]||_0x1a4c[35],isApp:true,appType:_0xcb2bx12[_0x1a4c[56]]},_0xcb2bxd))}else {_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0xcb2bx12[_0x1a4c[39]],appdata:_0xcb2bx12[_0x1a4c[45]][_0x1a4c[65]](_0x1a4c[64]),priority:_0xcb2bxc,IntervalId:_0xcb2bx12[_0x1a4c[31]],interval:_0xcb2bx12[_0x1a4c[33]]||_0x1a4c[35],isApp:true},_0xcb2bxd))}}};_0xcb2bxc++;if(_0xcb2bx12[_0x1a4c[39]]===_0x1a4c[44]&&_0xcb2bx8[_0x1a4c[48]]&&_0xcb2bx8[_0x1a4c[19]]===_0x1a4c[26]){_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[66],appdata:_0x1a4c[54],priority:_0xcb2bxc},_0xcb2bxd))}else {_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[38],appdata:_0x1a4c[67],priority:_0xcb2bxc},_0xcb2bxd))};_0xcb2bxc++;_0xcb2bx14[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[38],appdata:_0xcb2bx12[_0x1a4c[39]]+_0x1a4c[68],priority:_0xcb2bxc},_0xcb2bxd));_0xcb2bxc++;_0xcb2bxe[_0x1a4c[25]](VoiceExtension[_0x1a4c[30]](_0xcb2bx14,{transaction:_0xcb2bx7}))});_0xcb2bx11[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[38],appdata:_0xcb2bx8[_0x1a4c[19]]+_0x1a4c[69],priority:_0xcb2bxc},_0xcb2bxd));_0xcb2bxc++;if(_0xcb2bx8[_0x1a4c[19]]===_0x1a4c[70]||_0xcb2bx8[_0x1a4c[19]]===_0x1a4c[26]){_0xcb2bx11[_0x1a4c[25]](_[_0x1a4c[24]]({app:_0x1a4c[71],appdata:_0x1a4c[54],priority:_0xcb2bxc},_0xcb2bxd));_0xcb2bxc++};_0xcb2bxe[_0x1a4c[25]](VoiceExtension[_0x1a4c[30]](_0xcb2bx11,{transaction:_0xcb2bx7}));return _0xcb2bxe})[_0x1a4c[17]]()}}}function handleError(_0xcb2bx1b,_0xcb2bx1c){return _0xcb2bx1b[_0x1a4c[74]](500)[_0x1a4c[73]](_0xcb2bx1c)}
\ No newline at end of file
+var _0xf618=["\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","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x70\x70","\x61\x67\x69","\x66\x69\x6E\x64","\x56\x4F\x4C\x55\x4D\x45\x28\x52\x58\x29\x3D\x30","\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","\x6E\x61\x6D\x65","\x4E\x6F\x4F\x50","\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","\x64\x69\x61\x6C","\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\x62\x6F\x75\x6E\x64\x20\x52\x6F\x75\x74\x65\x20\x49\x64\x20\x53\x65\x74","\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","\x61\x6E\x73\x77\x65\x72","\x50\x72\x6F\x67\x72\x65\x73\x73","\x53\x6B\x69\x70\x70\x65\x64\x20\x50\x72\x6F\x67\x72\x65\x73\x73","\x70\x6C\x61\x79\x62\x61\x63\x6B","\x41\x6E\x73\x77\x65\x72","\x53\x6B\x69\x70\x70\x65\x64\x20\x41\x6E\x73\x77\x65\x72","\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"];_0xf618[0];var _=require(_0xf618[1]);var util=require(_0xf618[2]);var Interval=require(_0xf618[4])[_0xf618[3]];var sequelize=require(_0xf618[4])[_0xf618[5]];var VoiceExtension=require(_0xf618[4])[_0xf618[6]];exports[_0xf618[7]]= createApplications;exports[_0xf618[8]]= function(_0xeeefx6,_0xeeefx7){var sequelize=require(_0xf618[4])[_0xf618[5]];var VoiceExtension=require(_0xf618[4])[_0xf618[6]];if(_0xeeefx6[_0xf618[10]][_0xf618[9]]){delete _0xeeefx6[_0xf618[10]][_0xf618[9]]};return VoiceExtension[_0xf618[17]](_0xeeefx6[_0xf618[10]],{where:{id:_0xeeefx6[_0xf618[15]][_0xf618[9]]},transaction:_0xeeefx7})[_0xf618[11]](function(_0xeeefx8){if(_0xeeefx6[_0xf618[10]][_0xf618[12]]){_0xeeefx6[_0xf618[10]][_0xf618[9]]= _0xeeefx6[_0xf618[15]][_0xf618[9]];return VoiceExtension[_0xf618[16]]({where:{VoiceExtensionId:_0xeeefx6[_0xf618[15]][_0xf618[9]]},transaction:_0xeeefx7})}})[_0xf618[11]](function(){if(_0xeeefx6[_0xf618[10]][_0xf618[12]]&& Array[_0xf618[13]](_0xeeefx6[_0xf618[10]].Applications)&& _0xeeefx6[_0xf618[10]][_0xf618[12]][_0xf618[14]]){return _0xeeefx6[_0xf618[10]]}})[_0xf618[11]](createApplications(_0xeeefx6[_0xf618[10]].Applications,_0xeeefx7))};function createApplications(_0xeeefxa,_0xeeefx7){var Interval=require(_0xf618[4])[_0xf618[3]];var VoiceExtension=require(_0xf618[4])[_0xf618[6]];return function(_0xeeefx8){if(_0xeeefx8){return Interval[_0xf618[89]]()[_0xf618[11]](function(_0xeeefxb){var _0xeeefxc=false;var _0xeeefxd=false;var _0xeeefxe=2;var _0xeeefxf={exten:_0xeeefx8[_0xf618[19]],type:_0xeeefx8[_0xf618[20]],context:_0xeeefx8[_0xf618[21]],VoiceExtensionId:_0xeeefx8[_0xf618[9]]};var _0xeeefx10=[];var _0xeeefx11=8;var _0xeeefx12=[],_0xeeefx13=[];_0xeeefx12[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[22],appdata:util[_0xf618[24]](_0xf618[23],_0xeeefx8[_0xf618[20]]),priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++;if(_0xeeefx8[_0xf618[20]]=== _0xf618[27]){_0xeeefx12[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[22],appdata:util[_0xf618[24]](_0xf618[28],_0xeeefx8[_0xf618[29]]|| _0xf618[30]),priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++};var _0xeeefx14=_[_0xf618[34]](_0xeeefxa,function(_0xeeefx15){return _0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[33]});if(_0xeeefx14){_0xeeefx12[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[22],appdata:_0xf618[35],priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++};_0xeeefx10[_0xf618[26]](VoiceExtension[_0xf618[36]](_0xeeefx12,{transaction:_0xeeefx7}));_0xeeefxa[_0xf618[47]](function(_0xeeefx15){var _0xeeefx16=[];var _0xeeefx17=[];if(_0xeeefx15[_0xf618[37]]){var _0xeeefx18=_[_0xf618[38]](_0xeeefxb,{IntervalId:_0xeeefx15[_0xf618[37]]});_0xeeefx16= _0xeeefx18[_0xf618[14]]?_[_0xf618[40]](_0xeeefx18,_0xf618[39]):[_0xf618[41]];var _0xeeefx19=_[_0xf618[34]](_0xeeefxb,{id:_0xeeefx15[_0xf618[37]]});_0xeeefx15[_0xf618[39]]= _0xeeefx19?_0xeeefx19[_0xf618[42]]:_0xf618[41]}else {_0xeeefx16= [_0xeeefx15[_0xf618[39]]]};_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xeeefx15[_0xf618[32]]+ _0xf618[44],priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++;var _0xeeefx1a=_0xeeefx16[_0xf618[14]];_0xeeefx16[_0xf618[47]](function(_0xeeefx1b,_0xeeefx1c){_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[45],appdata:util[_0xf618[24]](_0xf618[46],_0xeeefx1b,_0xeeefx8[_0xf618[21]],_0xeeefxe+ (_0xeeefx1a- _0xeeefx1c),_0xeeefx8[_0xf618[21]],((_0xeeefx1c+ 1)< _0xeeefx1a)?_0xeeefxe+ 1:_0xeeefxe+ _0xeeefx11),priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++});if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]&& _0xeeefx8[_0xf618[20]]=== _0xf618[27]){_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[22],appdata:util[_0xf618[24]](_0xf618[49],_0xeeefx8[_0xf618[9]]|| _0xf618[50]),priority:_0xeeefxe},_0xeeefxf))}else {_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xf618[51],priority:_0xeeefxe},_0xeeefxf))};_0xeeefxe++;if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]&& _0xeeefx8[_0xf618[20]]=== _0xf618[27]&& _0xeeefx15[_0xf618[52]][1]){_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[22],appdata:util[_0xf618[24]](_0xf618[53],_0xeeefx15[_0xf618[52]][1]),priority:_0xeeefxe},_0xeeefxf))}else {_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xf618[54],priority:_0xeeefxe},_0xeeefxf))};_0xeeefxe++;if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]&& _0xeeefx8[_0xf618[55]]&& _0xeeefx8[_0xf618[20]]=== _0xf618[27]){_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[56],appdata:_0xf618[57]+ (_0xeeefx8[_0xf618[58]]|| _0xf618[59])+ _0xf618[60],priority:_0xeeefxe},_0xeeefxf))}else {_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xf618[61],priority:_0xeeefxe},_0xeeefxf))};_0xeeefxe++;if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[62]&& _0xeeefx15[_0xf618[63]]!== _0xf618[64]&&  !_0xeeefx15[_0xf618[65]]&&  !_0xeeefxd&&  !_0xeeefxc){_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[66],appdata:_0xf618[50],priority:_0xeeefxe},_0xeeefxf));_0xeeefxd= true}else {_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xf618[67],priority:_0xeeefxe},_0xeeefxf))};_0xeeefxe++;if((_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[62]|| _0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[68])&& _0xeeefx15[_0xf618[63]]!== _0xf618[64]&& _0xeeefx15[_0xf618[65]]&&  !_0xeeefxc){_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[69],appdata:_0xf618[50],priority:_0xeeefxe},_0xeeefxf));_0xeeefxc= true;_0xeeefxd= true}else {_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xf618[70],priority:_0xeeefxe},_0xeeefxf))};_0xeeefxe++;if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]&& _0xeeefx15[_0xf618[63]]=== _0xf618[71]){_0xeeefx15[_0xf618[52]][4]= _0xeeefx15[_0xf618[52]][4]|| _0xf618[50];_0xeeefx15[_0xf618[52]][4]+= (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][4],_0xf618[72])?_0xf618[50]:_0xf618[72])+ (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][4],_0xf618[74])?_0xf618[50]:_0xf618[74]);_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xeeefx15[_0xf618[32]],appdata:util[_0xf618[24]](_0xf618[75],_0xeeefx15[_0xf618[52]][0],_0xeeefx15[_0xf618[52]][2]|| _0xf618[50],_0xeeefx8[_0xf618[76]]|| 0,_0xeeefx15[_0xf618[52]][3]|| _0xf618[50],_0xeeefx15[_0xf618[52]][4]|| _0xf618[50],_0xeeefx15[_0xf618[52]][5]|| _0xf618[50]),priority:_0xeeefxe,IntervalId:_0xeeefx15[_0xf618[37]]|| null,interval:_0xeeefx15[_0xf618[39]]|| _0xf618[41],isApp:true,callerID:_0xeeefx15[_0xf618[52]][1]|| null,appType:_0xeeefx15[_0xf618[63]]},_0xeeefxf))}else {if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]&& _0xeeefx15[_0xf618[63]]=== _0xf618[77]){_0xeeefx15[_0xf618[52]][3]= _0xeeefx15[_0xf618[52]][3]|| _0xf618[50];_0xeeefx15[_0xf618[52]][3]+= (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][3],_0xf618[72])?_0xf618[50]:_0xf618[72])+ (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][3],_0xf618[74])?_0xf618[50]:_0xf618[74]);_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xeeefx15[_0xf618[32]],appdata:util[_0xf618[24]](_0xf618[78],_0xeeefx15[_0xf618[52]][0],_0xeeefx15[_0xf618[52]][1],_0xeeefx15[_0xf618[52]][2]|| _0xf618[50],_0xeeefx15[_0xf618[52]][3]|| _0xf618[50],_0xeeefx15[_0xf618[52]][4]|| _0xf618[50]),priority:_0xeeefxe,IntervalId:_0xeeefx15[_0xf618[37]]|| null,interval:_0xeeefx15[_0xf618[39]]|| _0xf618[41],isApp:true,appType:_0xeeefx15[_0xf618[63]]},_0xeeefxf))}else {if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]&& _0xeeefx15[_0xf618[63]]=== _0xf618[79]){_0xeeefx15[_0xf618[52]][2]= _0xeeefx15[_0xf618[52]][2]|| _0xf618[50];_0xeeefx15[_0xf618[52]][2]+= (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][2],_0xf618[72])?_0xf618[50]:_0xf618[72])+ (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][2],_0xf618[74])?_0xf618[50]:_0xf618[74]);_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xeeefx15[_0xf618[32]],appdata:util[_0xf618[24]](_0xf618[80],_0xeeefx15[_0xf618[52]][0],_0xeeefx15[_0xf618[52]][1]|| _0xf618[50],_0xeeefx15[_0xf618[52]][2]|| _0xf618[50],_0xeeefx15[_0xf618[52]][3]|| _0xf618[50]),priority:_0xeeefxe,IntervalId:_0xeeefx15[_0xf618[37]]|| null,interval:_0xeeefx15[_0xf618[39]]|| _0xf618[41],isApp:true,appType:_0xeeefx15[_0xf618[63]]},_0xeeefxf))}else {if((_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]|| _0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[62])&& _0xeeefx15[_0xf618[63]]!== _0xf618[64]){var _0xeeefx1d=_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]?2:1;_0xeeefx15[_0xf618[52]][_0xeeefx1d]= _0xeeefx15[_0xf618[52]][_0xeeefx1d]|| _0xf618[50];_0xeeefx15[_0xf618[52]][_0xeeefx1d]+= (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][_0xeeefx1d],_0xf618[72])?_0xf618[50]:_0xf618[72])+ (_[_0xf618[73]](_0xeeefx15[_0xf618[52]][_0xeeefx1d],_0xf618[74])?_0xf618[50]:_0xf618[74])};_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xeeefx15[_0xf618[32]],appdata:_0xeeefx15[_0xf618[52]][_0xf618[82]](_0xf618[81]),priority:_0xeeefxe,IntervalId:_0xeeefx15[_0xf618[37]],interval:_0xeeefx15[_0xf618[39]]|| _0xf618[41],isApp:true,appType:_0xeeefx15[_0xf618[63]]|| null,answer:_0xeeefx15[_0xf618[65]]|| false},_0xeeefxf))}}};_0xeeefxe++;if(_0xeeefx15[_0xf618[32]][_0xf618[31]]()=== _0xf618[48]&& _0xeeefx8[_0xf618[55]]&& _0xeeefx8[_0xf618[20]]=== _0xf618[27]){_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[83],appdata:_0xf618[50],priority:_0xeeefxe},_0xeeefxf))}else {_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xf618[84],priority:_0xeeefxe},_0xeeefxf))};_0xeeefxe++;_0xeeefx17[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xeeefx15[_0xf618[32]]+ _0xf618[85],priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++;_0xeeefx10[_0xf618[26]](VoiceExtension[_0xf618[36]](_0xeeefx17,{transaction:_0xeeefx7}))});_0xeeefx13[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[43],appdata:_0xeeefx8[_0xf618[20]]+ _0xf618[86],priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++;if(_0xeeefx8[_0xf618[20]]=== _0xf618[87]|| _0xeeefx8[_0xf618[20]]=== _0xf618[27]){_0xeeefx13[_0xf618[26]](_[_0xf618[25]]({app:_0xf618[88],appdata:_0xf618[50],priority:_0xeeefxe},_0xeeefxf));_0xeeefxe++};_0xeeefx10[_0xf618[26]](VoiceExtension[_0xf618[36]](_0xeeefx13,{transaction:_0xeeefx7}));return _0xeeefx10})[_0xf618[18]]()}}}
\ No newline at end of file