Built motion from commit 943eae279.|1.0.24
[motion.git] / server / utils / voice_extension.js
index d990937..2876148 100644 (file)
@@ -1 +1 @@
-var _0x36ba=["\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"];_0x36ba[0];var _=require(_0x36ba[1]);var util=require(_0x36ba[2]);var Interval=require(_0x36ba[4])[_0x36ba[3]];var sequelize=require(_0x36ba[4])[_0x36ba[5]];var VoiceExtension=require(_0x36ba[4])[_0x36ba[6]];exports[_0x36ba[7]]= createApplications;exports[_0x36ba[8]]= function(_0xf35bx6,_0xf35bx7){var sequelize=require(_0x36ba[4])[_0x36ba[5]];var VoiceExtension=require(_0x36ba[4])[_0x36ba[6]];if(_0xf35bx6[_0x36ba[10]][_0x36ba[9]]){delete _0xf35bx6[_0x36ba[10]][_0x36ba[9]]};return VoiceExtension[_0x36ba[17]](_0xf35bx6[_0x36ba[10]],{where:{id:_0xf35bx6[_0x36ba[15]][_0x36ba[9]]},transaction:_0xf35bx7})[_0x36ba[11]](function(_0xf35bx8){if(_0xf35bx6[_0x36ba[10]][_0x36ba[12]]){_0xf35bx6[_0x36ba[10]][_0x36ba[9]]= _0xf35bx6[_0x36ba[15]][_0x36ba[9]];return VoiceExtension[_0x36ba[16]]({where:{VoiceExtensionId:_0xf35bx6[_0x36ba[15]][_0x36ba[9]]},transaction:_0xf35bx7})}})[_0x36ba[11]](function(){if(_0xf35bx6[_0x36ba[10]][_0x36ba[12]]&& Array[_0x36ba[13]](_0xf35bx6[_0x36ba[10]].Applications)&& _0xf35bx6[_0x36ba[10]][_0x36ba[12]][_0x36ba[14]]){return _0xf35bx6[_0x36ba[10]]}})[_0x36ba[11]](createApplications(_0xf35bx6[_0x36ba[10]].Applications,_0xf35bx7))};function createApplications(_0xf35bxa,_0xf35bx7){var Interval=require(_0x36ba[4])[_0x36ba[3]];var VoiceExtension=require(_0x36ba[4])[_0x36ba[6]];return function(_0xf35bx8){if(_0xf35bx8){return Interval[_0x36ba[89]]()[_0x36ba[11]](function(_0xf35bxb){var _0xf35bxc=false;var _0xf35bxd=false;var _0xf35bxe=2;var _0xf35bxf={exten:_0xf35bx8[_0x36ba[19]],type:_0xf35bx8[_0x36ba[20]],context:_0xf35bx8[_0x36ba[21]],VoiceExtensionId:_0xf35bx8[_0x36ba[9]]};var _0xf35bx10=[];var _0xf35bx11=8;var _0xf35bx12=[],_0xf35bx13=[];_0xf35bx12[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[22],appdata:util[_0x36ba[24]](_0x36ba[23],_0xf35bx8[_0x36ba[20]]),priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++;if(_0xf35bx8[_0x36ba[20]]=== _0x36ba[27]){_0xf35bx12[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[22],appdata:util[_0x36ba[24]](_0x36ba[28],_0xf35bx8[_0x36ba[29]]|| _0x36ba[30]),priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++};var _0xf35bx14=_[_0x36ba[34]](_0xf35bxa,function(_0xf35bx15){return _0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[33]});if(_0xf35bx14){_0xf35bx12[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[22],appdata:_0x36ba[35],priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++};_0xf35bx10[_0x36ba[26]](VoiceExtension[_0x36ba[36]](_0xf35bx12,{transaction:_0xf35bx7}));_0xf35bxa[_0x36ba[47]](function(_0xf35bx15){var _0xf35bx16=[];var _0xf35bx17=[];if(_0xf35bx15[_0x36ba[37]]){var _0xf35bx18=_[_0x36ba[38]](_0xf35bxb,{IntervalId:_0xf35bx15[_0x36ba[37]]});_0xf35bx16= _0xf35bx18[_0x36ba[14]]?_[_0x36ba[40]](_0xf35bx18,_0x36ba[39]):[_0x36ba[41]];var _0xf35bx19=_[_0x36ba[34]](_0xf35bxb,{id:_0xf35bx15[_0x36ba[37]]});_0xf35bx15[_0x36ba[39]]= _0xf35bx19?_0xf35bx19[_0x36ba[42]]:_0x36ba[41]}else {_0xf35bx16= [_0xf35bx15[_0x36ba[39]]]};_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0xf35bx15[_0x36ba[32]]+ _0x36ba[44],priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++;var _0xf35bx1a=_0xf35bx16[_0x36ba[14]];_0xf35bx16[_0x36ba[47]](function(_0xf35bx1b,_0xf35bx1c){_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[45],appdata:util[_0x36ba[24]](_0x36ba[46],_0xf35bx1b,_0xf35bx8[_0x36ba[21]],_0xf35bxe+ (_0xf35bx1a- _0xf35bx1c),_0xf35bx8[_0x36ba[21]],((_0xf35bx1c+ 1)< _0xf35bx1a)?_0xf35bxe+ 1:_0xf35bxe+ _0xf35bx11),priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++});if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]&& _0xf35bx8[_0x36ba[20]]=== _0x36ba[27]){_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[22],appdata:util[_0x36ba[24]](_0x36ba[49],_0xf35bx8[_0x36ba[9]]|| _0x36ba[50]),priority:_0xf35bxe},_0xf35bxf))}else {_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0x36ba[51],priority:_0xf35bxe},_0xf35bxf))};_0xf35bxe++;if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]&& _0xf35bx8[_0x36ba[20]]=== _0x36ba[27]&& _0xf35bx15[_0x36ba[52]][1]){_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[22],appdata:util[_0x36ba[24]](_0x36ba[53],_0xf35bx15[_0x36ba[52]][1]),priority:_0xf35bxe},_0xf35bxf))}else {_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0x36ba[54],priority:_0xf35bxe},_0xf35bxf))};_0xf35bxe++;if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]&& _0xf35bx8[_0x36ba[55]]&& _0xf35bx8[_0x36ba[20]]=== _0x36ba[27]){_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[56],appdata:_0x36ba[57]+ (_0xf35bx8[_0x36ba[58]]|| _0x36ba[59])+ _0x36ba[60],priority:_0xf35bxe},_0xf35bxf))}else {_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0x36ba[61],priority:_0xf35bxe},_0xf35bxf))};_0xf35bxe++;if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[62]&& _0xf35bx15[_0x36ba[63]]!== _0x36ba[64]&&  !_0xf35bx15[_0x36ba[65]]&&  !_0xf35bxd&&  !_0xf35bxc){_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[66],appdata:_0x36ba[50],priority:_0xf35bxe},_0xf35bxf));_0xf35bxd= true}else {_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0x36ba[67],priority:_0xf35bxe},_0xf35bxf))};_0xf35bxe++;if((_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[62]|| _0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[68])&& _0xf35bx15[_0x36ba[63]]!== _0x36ba[64]&& _0xf35bx15[_0x36ba[65]]&&  !_0xf35bxc){_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[69],appdata:_0x36ba[50],priority:_0xf35bxe},_0xf35bxf));_0xf35bxc= true;_0xf35bxd= true}else {_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0x36ba[70],priority:_0xf35bxe},_0xf35bxf))};_0xf35bxe++;if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]&& _0xf35bx15[_0x36ba[63]]=== _0x36ba[71]){_0xf35bx15[_0x36ba[52]][4]= _0xf35bx15[_0x36ba[52]][4]|| _0x36ba[50];_0xf35bx15[_0x36ba[52]][4]+= (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][4],_0x36ba[72])?_0x36ba[50]:_0x36ba[72])+ (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][4],_0x36ba[74])?_0x36ba[50]:_0x36ba[74]);_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0xf35bx15[_0x36ba[32]],appdata:util[_0x36ba[24]](_0x36ba[75],_0xf35bx15[_0x36ba[52]][0],_0xf35bx15[_0x36ba[52]][2]|| _0x36ba[50],_0xf35bx8[_0x36ba[76]]|| 0,_0xf35bx15[_0x36ba[52]][3]|| _0x36ba[50],_0xf35bx15[_0x36ba[52]][4]|| _0x36ba[50],_0xf35bx15[_0x36ba[52]][5]|| _0x36ba[50]),priority:_0xf35bxe,IntervalId:_0xf35bx15[_0x36ba[37]]|| null,interval:_0xf35bx15[_0x36ba[39]]|| _0x36ba[41],isApp:true,callerID:_0xf35bx15[_0x36ba[52]][1]|| null,appType:_0xf35bx15[_0x36ba[63]]},_0xf35bxf))}else {if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]&& _0xf35bx15[_0x36ba[63]]=== _0x36ba[77]){_0xf35bx15[_0x36ba[52]][3]= _0xf35bx15[_0x36ba[52]][3]|| _0x36ba[50];_0xf35bx15[_0x36ba[52]][3]+= (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][3],_0x36ba[72])?_0x36ba[50]:_0x36ba[72])+ (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][3],_0x36ba[74])?_0x36ba[50]:_0x36ba[74]);_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0xf35bx15[_0x36ba[32]],appdata:util[_0x36ba[24]](_0x36ba[78],_0xf35bx15[_0x36ba[52]][0],_0xf35bx15[_0x36ba[52]][1],_0xf35bx15[_0x36ba[52]][2]|| _0x36ba[50],_0xf35bx15[_0x36ba[52]][3]|| _0x36ba[50],_0xf35bx15[_0x36ba[52]][4]|| _0x36ba[50]),priority:_0xf35bxe,IntervalId:_0xf35bx15[_0x36ba[37]]|| null,interval:_0xf35bx15[_0x36ba[39]]|| _0x36ba[41],isApp:true,appType:_0xf35bx15[_0x36ba[63]]},_0xf35bxf))}else {if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]&& _0xf35bx15[_0x36ba[63]]=== _0x36ba[79]){_0xf35bx15[_0x36ba[52]][2]= _0xf35bx15[_0x36ba[52]][2]|| _0x36ba[50];_0xf35bx15[_0x36ba[52]][2]+= (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][2],_0x36ba[72])?_0x36ba[50]:_0x36ba[72])+ (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][2],_0x36ba[74])?_0x36ba[50]:_0x36ba[74]);_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0xf35bx15[_0x36ba[32]],appdata:util[_0x36ba[24]](_0x36ba[80],_0xf35bx15[_0x36ba[52]][0],_0xf35bx15[_0x36ba[52]][1]|| _0x36ba[50],_0xf35bx15[_0x36ba[52]][2]|| _0x36ba[50],_0xf35bx15[_0x36ba[52]][3]|| _0x36ba[50]),priority:_0xf35bxe,IntervalId:_0xf35bx15[_0x36ba[37]]|| null,interval:_0xf35bx15[_0x36ba[39]]|| _0x36ba[41],isApp:true,appType:_0xf35bx15[_0x36ba[63]]},_0xf35bxf))}else {if((_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]|| _0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[62])&& _0xf35bx15[_0x36ba[63]]!== _0x36ba[64]){var _0xf35bx1d=_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]?2:1;_0xf35bx15[_0x36ba[52]][_0xf35bx1d]= _0xf35bx15[_0x36ba[52]][_0xf35bx1d]|| _0x36ba[50];_0xf35bx15[_0x36ba[52]][_0xf35bx1d]+= (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][_0xf35bx1d],_0x36ba[72])?_0x36ba[50]:_0x36ba[72])+ (_[_0x36ba[73]](_0xf35bx15[_0x36ba[52]][_0xf35bx1d],_0x36ba[74])?_0x36ba[50]:_0x36ba[74])};_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0xf35bx15[_0x36ba[32]],appdata:_0xf35bx15[_0x36ba[52]][_0x36ba[82]](_0x36ba[81]),priority:_0xf35bxe,IntervalId:_0xf35bx15[_0x36ba[37]],interval:_0xf35bx15[_0x36ba[39]]|| _0x36ba[41],isApp:true,appType:_0xf35bx15[_0x36ba[63]]|| null,answer:_0xf35bx15[_0x36ba[65]]|| false},_0xf35bxf))}}};_0xf35bxe++;if(_0xf35bx15[_0x36ba[32]][_0x36ba[31]]()=== _0x36ba[48]&& _0xf35bx8[_0x36ba[55]]&& _0xf35bx8[_0x36ba[20]]=== _0x36ba[27]){_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[83],appdata:_0x36ba[50],priority:_0xf35bxe},_0xf35bxf))}else {_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0x36ba[84],priority:_0xf35bxe},_0xf35bxf))};_0xf35bxe++;_0xf35bx17[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0xf35bx15[_0x36ba[32]]+ _0x36ba[85],priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++;_0xf35bx10[_0x36ba[26]](VoiceExtension[_0x36ba[36]](_0xf35bx17,{transaction:_0xf35bx7}))});_0xf35bx13[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[43],appdata:_0xf35bx8[_0x36ba[20]]+ _0x36ba[86],priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++;if(_0xf35bx8[_0x36ba[20]]=== _0x36ba[87]|| _0xf35bx8[_0x36ba[20]]=== _0x36ba[27]){_0xf35bx13[_0x36ba[26]](_[_0x36ba[25]]({app:_0x36ba[88],appdata:_0x36ba[50],priority:_0xf35bxe},_0xf35bxf));_0xf35bxe++};_0xf35bx10[_0x36ba[26]](VoiceExtension[_0x36ba[36]](_0xf35bx13,{transaction:_0xf35bx7}));return _0xf35bx10})[_0x36ba[18]]()}}}
\ No newline at end of file
+var _0x8acb=["\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"];_0x8acb[0];var _=require(_0x8acb[1]);var util=require(_0x8acb[2]);var Interval=require(_0x8acb[4])[_0x8acb[3]];var sequelize=require(_0x8acb[4])[_0x8acb[5]];var VoiceExtension=require(_0x8acb[4])[_0x8acb[6]];exports[_0x8acb[7]]= createApplications;exports[_0x8acb[8]]= function(_0x87afx6,_0x87afx7){var sequelize=require(_0x8acb[4])[_0x8acb[5]];var VoiceExtension=require(_0x8acb[4])[_0x8acb[6]];if(_0x87afx6[_0x8acb[10]][_0x8acb[9]]){delete _0x87afx6[_0x8acb[10]][_0x8acb[9]]};return VoiceExtension[_0x8acb[17]](_0x87afx6[_0x8acb[10]],{where:{id:_0x87afx6[_0x8acb[15]][_0x8acb[9]]},transaction:_0x87afx7})[_0x8acb[11]](function(_0x87afx8){if(_0x87afx6[_0x8acb[10]][_0x8acb[12]]){_0x87afx6[_0x8acb[10]][_0x8acb[9]]= _0x87afx6[_0x8acb[15]][_0x8acb[9]];return VoiceExtension[_0x8acb[16]]({where:{VoiceExtensionId:_0x87afx6[_0x8acb[15]][_0x8acb[9]]},transaction:_0x87afx7})}})[_0x8acb[11]](function(){if(_0x87afx6[_0x8acb[10]][_0x8acb[12]]&& Array[_0x8acb[13]](_0x87afx6[_0x8acb[10]].Applications)&& _0x87afx6[_0x8acb[10]][_0x8acb[12]][_0x8acb[14]]){return _0x87afx6[_0x8acb[10]]}})[_0x8acb[11]](createApplications(_0x87afx6[_0x8acb[10]].Applications,_0x87afx7))};function createApplications(_0x87afxa,_0x87afx7){var Interval=require(_0x8acb[4])[_0x8acb[3]];var VoiceExtension=require(_0x8acb[4])[_0x8acb[6]];return function(_0x87afx8){if(_0x87afx8){return Interval[_0x8acb[89]]()[_0x8acb[11]](function(_0x87afxb){var _0x87afxc=false;var _0x87afxd=false;var _0x87afxe=2;var _0x87afxf={exten:_0x87afx8[_0x8acb[19]],type:_0x87afx8[_0x8acb[20]],context:_0x87afx8[_0x8acb[21]],VoiceExtensionId:_0x87afx8[_0x8acb[9]]};var _0x87afx10=[];var _0x87afx11=8;var _0x87afx12=[],_0x87afx13=[];_0x87afx12[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[22],appdata:util[_0x8acb[24]](_0x8acb[23],_0x87afx8[_0x8acb[20]]),priority:_0x87afxe},_0x87afxf));_0x87afxe++;if(_0x87afx8[_0x8acb[20]]=== _0x8acb[27]){_0x87afx12[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[22],appdata:util[_0x8acb[24]](_0x8acb[28],_0x87afx8[_0x8acb[29]]|| _0x8acb[30]),priority:_0x87afxe},_0x87afxf));_0x87afxe++};var _0x87afx14=_[_0x8acb[34]](_0x87afxa,function(_0x87afx15){return _0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[33]});if(_0x87afx14){_0x87afx12[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[22],appdata:_0x8acb[35],priority:_0x87afxe},_0x87afxf));_0x87afxe++};_0x87afx10[_0x8acb[26]](VoiceExtension[_0x8acb[36]](_0x87afx12,{transaction:_0x87afx7}));_0x87afxa[_0x8acb[47]](function(_0x87afx15){var _0x87afx16=[];var _0x87afx17=[];if(_0x87afx15[_0x8acb[37]]){var _0x87afx18=_[_0x8acb[38]](_0x87afxb,{IntervalId:_0x87afx15[_0x8acb[37]]});_0x87afx16= _0x87afx18[_0x8acb[14]]?_[_0x8acb[40]](_0x87afx18,_0x8acb[39]):[_0x8acb[41]];var _0x87afx19=_[_0x8acb[34]](_0x87afxb,{id:_0x87afx15[_0x8acb[37]]});_0x87afx15[_0x8acb[39]]= _0x87afx19?_0x87afx19[_0x8acb[42]]:_0x8acb[41]}else {_0x87afx16= [_0x87afx15[_0x8acb[39]]]};_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x87afx15[_0x8acb[32]]+ _0x8acb[44],priority:_0x87afxe},_0x87afxf));_0x87afxe++;var _0x87afx1a=_0x87afx16[_0x8acb[14]];_0x87afx16[_0x8acb[47]](function(_0x87afx1b,_0x87afx1c){_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[45],appdata:util[_0x8acb[24]](_0x8acb[46],_0x87afx1b,_0x87afx8[_0x8acb[21]],_0x87afxe+ (_0x87afx1a- _0x87afx1c),_0x87afx8[_0x8acb[21]],((_0x87afx1c+ 1)< _0x87afx1a)?_0x87afxe+ 1:_0x87afxe+ _0x87afx11),priority:_0x87afxe},_0x87afxf));_0x87afxe++});if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]&& _0x87afx8[_0x8acb[20]]=== _0x8acb[27]){_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[22],appdata:util[_0x8acb[24]](_0x8acb[49],_0x87afx8[_0x8acb[9]]|| _0x8acb[50]),priority:_0x87afxe},_0x87afxf))}else {_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x8acb[51],priority:_0x87afxe},_0x87afxf))};_0x87afxe++;if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]&& _0x87afx8[_0x8acb[20]]=== _0x8acb[27]&& _0x87afx15[_0x8acb[52]][1]){_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[22],appdata:util[_0x8acb[24]](_0x8acb[53],_0x87afx15[_0x8acb[52]][1]),priority:_0x87afxe},_0x87afxf))}else {_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x8acb[54],priority:_0x87afxe},_0x87afxf))};_0x87afxe++;if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]&& _0x87afx8[_0x8acb[55]]&& _0x87afx8[_0x8acb[20]]=== _0x8acb[27]){_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[56],appdata:_0x8acb[57]+ (_0x87afx8[_0x8acb[58]]|| _0x8acb[59])+ _0x8acb[60],priority:_0x87afxe},_0x87afxf))}else {_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x8acb[61],priority:_0x87afxe},_0x87afxf))};_0x87afxe++;if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[62]&& _0x87afx15[_0x8acb[63]]!== _0x8acb[64]&&  !_0x87afx15[_0x8acb[65]]&&  !_0x87afxd&&  !_0x87afxc){_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[66],appdata:_0x8acb[50],priority:_0x87afxe},_0x87afxf));_0x87afxd= true}else {_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x8acb[67],priority:_0x87afxe},_0x87afxf))};_0x87afxe++;if((_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[62]|| _0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[68])&& _0x87afx15[_0x8acb[63]]!== _0x8acb[64]&& _0x87afx15[_0x8acb[65]]&&  !_0x87afxc){_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[69],appdata:_0x8acb[50],priority:_0x87afxe},_0x87afxf));_0x87afxc= true;_0x87afxd= true}else {_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x8acb[70],priority:_0x87afxe},_0x87afxf))};_0x87afxe++;if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]&& _0x87afx15[_0x8acb[63]]=== _0x8acb[71]){_0x87afx15[_0x8acb[52]][4]= _0x87afx15[_0x8acb[52]][4]|| _0x8acb[50];_0x87afx15[_0x8acb[52]][4]+= (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][4],_0x8acb[72])?_0x8acb[50]:_0x8acb[72])+ (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][4],_0x8acb[74])?_0x8acb[50]:_0x8acb[74]);_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x87afx15[_0x8acb[32]],appdata:util[_0x8acb[24]](_0x8acb[75],_0x87afx15[_0x8acb[52]][0],_0x87afx15[_0x8acb[52]][2]|| _0x8acb[50],_0x87afx8[_0x8acb[76]]|| 0,_0x87afx15[_0x8acb[52]][3]|| _0x8acb[50],_0x87afx15[_0x8acb[52]][4]|| _0x8acb[50],_0x87afx15[_0x8acb[52]][5]|| _0x8acb[50]),priority:_0x87afxe,IntervalId:_0x87afx15[_0x8acb[37]]|| null,interval:_0x87afx15[_0x8acb[39]]|| _0x8acb[41],isApp:true,callerID:_0x87afx15[_0x8acb[52]][1]|| null,appType:_0x87afx15[_0x8acb[63]]},_0x87afxf))}else {if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]&& _0x87afx15[_0x8acb[63]]=== _0x8acb[77]){_0x87afx15[_0x8acb[52]][3]= _0x87afx15[_0x8acb[52]][3]|| _0x8acb[50];_0x87afx15[_0x8acb[52]][3]+= (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][3],_0x8acb[72])?_0x8acb[50]:_0x8acb[72])+ (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][3],_0x8acb[74])?_0x8acb[50]:_0x8acb[74]);_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x87afx15[_0x8acb[32]],appdata:util[_0x8acb[24]](_0x8acb[78],_0x87afx15[_0x8acb[52]][0],_0x87afx15[_0x8acb[52]][1],_0x87afx15[_0x8acb[52]][2]|| _0x8acb[50],_0x87afx15[_0x8acb[52]][3]|| _0x8acb[50],_0x87afx15[_0x8acb[52]][4]|| _0x8acb[50]),priority:_0x87afxe,IntervalId:_0x87afx15[_0x8acb[37]]|| null,interval:_0x87afx15[_0x8acb[39]]|| _0x8acb[41],isApp:true,appType:_0x87afx15[_0x8acb[63]]},_0x87afxf))}else {if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]&& _0x87afx15[_0x8acb[63]]=== _0x8acb[79]){_0x87afx15[_0x8acb[52]][2]= _0x87afx15[_0x8acb[52]][2]|| _0x8acb[50];_0x87afx15[_0x8acb[52]][2]+= (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][2],_0x8acb[72])?_0x8acb[50]:_0x8acb[72])+ (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][2],_0x8acb[74])?_0x8acb[50]:_0x8acb[74]);_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x87afx15[_0x8acb[32]],appdata:util[_0x8acb[24]](_0x8acb[80],_0x87afx15[_0x8acb[52]][0],_0x87afx15[_0x8acb[52]][1]|| _0x8acb[50],_0x87afx15[_0x8acb[52]][2]|| _0x8acb[50],_0x87afx15[_0x8acb[52]][3]|| _0x8acb[50]),priority:_0x87afxe,IntervalId:_0x87afx15[_0x8acb[37]]|| null,interval:_0x87afx15[_0x8acb[39]]|| _0x8acb[41],isApp:true,appType:_0x87afx15[_0x8acb[63]]},_0x87afxf))}else {if((_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]|| _0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[62])&& _0x87afx15[_0x8acb[63]]!== _0x8acb[64]){var _0x87afx1d=_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]?2:1;_0x87afx15[_0x8acb[52]][_0x87afx1d]= _0x87afx15[_0x8acb[52]][_0x87afx1d]|| _0x8acb[50];_0x87afx15[_0x8acb[52]][_0x87afx1d]+= (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][_0x87afx1d],_0x8acb[72])?_0x8acb[50]:_0x8acb[72])+ (_[_0x8acb[73]](_0x87afx15[_0x8acb[52]][_0x87afx1d],_0x8acb[74])?_0x8acb[50]:_0x8acb[74])};_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x87afx15[_0x8acb[32]],appdata:_0x87afx15[_0x8acb[52]][_0x8acb[82]](_0x8acb[81]),priority:_0x87afxe,IntervalId:_0x87afx15[_0x8acb[37]],interval:_0x87afx15[_0x8acb[39]]|| _0x8acb[41],isApp:true,appType:_0x87afx15[_0x8acb[63]]|| null,answer:_0x87afx15[_0x8acb[65]]|| false},_0x87afxf))}}};_0x87afxe++;if(_0x87afx15[_0x8acb[32]][_0x8acb[31]]()=== _0x8acb[48]&& _0x87afx8[_0x8acb[55]]&& _0x87afx8[_0x8acb[20]]=== _0x8acb[27]){_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[83],appdata:_0x8acb[50],priority:_0x87afxe},_0x87afxf))}else {_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x8acb[84],priority:_0x87afxe},_0x87afxf))};_0x87afxe++;_0x87afx17[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x87afx15[_0x8acb[32]]+ _0x8acb[85],priority:_0x87afxe},_0x87afxf));_0x87afxe++;_0x87afx10[_0x8acb[26]](VoiceExtension[_0x8acb[36]](_0x87afx17,{transaction:_0x87afx7}))});_0x87afx13[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[43],appdata:_0x87afx8[_0x8acb[20]]+ _0x8acb[86],priority:_0x87afxe},_0x87afxf));_0x87afxe++;if(_0x87afx8[_0x8acb[20]]=== _0x8acb[87]|| _0x87afx8[_0x8acb[20]]=== _0x8acb[27]){_0x87afx13[_0x8acb[26]](_[_0x8acb[25]]({app:_0x8acb[88],appdata:_0x8acb[50],priority:_0x87afxe},_0x87afxf));_0x87afxe++};_0x87afx10[_0x8acb[26]](VoiceExtension[_0x8acb[36]](_0x87afx13,{transaction:_0x87afx7}));return _0x87afx10})[_0x8acb[18]]()}}}
\ No newline at end of file