Built motion from commit d127c62.|0.0.151
[motion.git] / server / config / tools / user.js
index 88ac1b6..d562f9e 100644 (file)
@@ -1 +1 @@
-var _0xaf3c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x43\x68\x61\x6E\x53\x70\x79","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x5F\x63\x68\x61\x6E\x67\x65\x64","\x63\x68\x61\x6E\x73\x70\x79","\x74\x68\x65\x6E","\x61\x6C\x6C","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x74\x68\x65\x20\x69\x6E\x74\x65\x72\x6E\x61\x6C\x20\x6F\x66\x20\x61\x20\x55\x73\x65\x72\x2F\x41\x67\x65\x6E\x74\x2F\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x71\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x6C\x61\x73\x74\x4C\x6F\x67\x69\x6E\x41\x74","\x6F\x6E\x6C\x69\x6E\x65","\x6E\x61\x6D\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x6E\x73\x70\x79\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x75\x74\x68","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x25\x73\x25\x73","\x70\x72\x65\x66\x69\x78","\x66\x6F\x72\x6D\x61\x74","\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x69\x64","\x73\x79\x73\x74\x65\x6D","\x70\x75\x73\x68","\x53\x49\x50\x2F\x25\x73\x2C\x25\x73","\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x6F\x72\x45\x61\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x44\x65\x6C\x65\x74\x69\x6E\x67\x20\x63\x68\x61\x6E\x73\x70\x79\x2E\x2E\x2E","\x64\x65\x73\x74\x72\x6F\x79","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x63\x61\x6C\x6C\x65\x72\x49\x44\x2E\x2E\x2E","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x73\x61\x76\x65","\x55\x70\x64\x61\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2E\x2E\x2E","\x65\x78\x74\x65\x6E","\x5F\x70\x72\x65\x76\x69\x6F\x75\x73\x44\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F","\x67\x65\x74\x55\x73\x65\x72\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2E\x2E\x2E","\x5F","\x53\x65\x74","\x43\x44\x52\x28\x74\x79\x70\x65\x29\x3D\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x44\x69\x61\x6C","\x48\x61\x6E\x67\x75\x70","","\x65\x78\x70\x6F\x72\x74\x73"];_0xaf3c[0];var fs=require(_0xaf3c[1]);var util=require(_0xaf3c[2]);var path=require(_0xaf3c[3]);var config=require(_0xaf3c[4]);var UserModel=require(_0xaf3c[6])[_0xaf3c[5]];var VoiceExtension=require(_0xaf3c[6])[_0xaf3c[7]];var ChanSpy=require(_0xaf3c[6])[_0xaf3c[8]];var sequelize=require(_0xaf3c[6])[_0xaf3c[9]];var Promise=require(_0xaf3c[10]);function User(){UserModel[_0xaf3c[16]](function(_0xb186xb,_0xb186xc){delete _0xb186xb[_0xaf3c[12]][_0xaf3c[11]];return Promise[_0xaf3c[15]]([])[_0xaf3c[14]](createCallerID(_0xb186xb,_0xb186xc))[_0xaf3c[14]](createExtension(_0xb186xb,_0xb186xc))[_0xaf3c[14]](function(){if(_0xb186xb[_0xaf3c[13]]){createChanspy(_0xb186xb,_0xb186xc)}})});UserModel[_0xaf3c[19]](function(_0xb186xb,_0xb186xc){if(_0xb186xb[_0xaf3c[17]](_0xaf3c[11])){throw  new sequelize.Error(_0xaf3c[18])}});UserModel[_0xaf3c[26]](function(_0xb186xb,_0xb186xc){if(!_0xb186xb[_0xaf3c[17]](_0xaf3c[20])&&!_0xb186xb[_0xaf3c[17]](_0xaf3c[21])&&!_0xb186xb[_0xaf3c[17]](_0xaf3c[22])&&!_0xb186xb[_0xaf3c[17]](_0xaf3c[23])&&!_0xb186xb[_0xaf3c[17]](_0xaf3c[24])){return Promise[_0xaf3c[15]]([])[_0xaf3c[14]](updateExtension(_0xb186xb,_0xb186xc))[_0xaf3c[14]](createCallerID(_0xb186xb,_0xb186xc))[_0xaf3c[14]](function(){if((_0xb186xb[_0xaf3c[13]]&&_0xb186xb[_0xaf3c[17]](_0xaf3c[13]))){createChanspy(_0xb186xb,_0xb186xc)}})[_0xaf3c[14]](function(){if(_0xb186xb[_0xaf3c[13]]&&!_0xb186xb[_0xaf3c[17]](_0xaf3c[13])&&_0xb186xb[_0xaf3c[17]](_0xaf3c[25])){deleteChanSpy(_0xb186xb,_0xb186xc)}})[_0xaf3c[14]](function(){if(_0xb186xb[_0xaf3c[13]]&&!_0xb186xb[_0xaf3c[17]](_0xaf3c[13])&&_0xb186xb[_0xaf3c[17]](_0xaf3c[25])){createChanspy(_0xb186xb,_0xb186xc)}})[_0xaf3c[14]](function(){if(!_0xb186xb[_0xaf3c[13]]&&_0xb186xb[_0xaf3c[17]](_0xaf3c[13])){deleteChanSpy(_0xb186xb,_0xb186xc)}})}})}function createChanspy(_0xb186xb,_0xb186xc){console[_0xaf3c[28]](_0xaf3c[27]);return function(){return ChanSpy[_0xaf3c[44]]()[_0xaf3c[14]](function(_0xb186xe){var _0xb186xf=[];_0xb186xe[_0xaf3c[43]](function(_0xb186x10){var _0xb186x11=[];var _0xb186x12=1;if(_0xb186x10[_0xaf3c[29]]){_0xb186x11[_0xaf3c[38]]({context:_0xaf3c[30],exten:util[_0xaf3c[33]](_0xaf3c[31],_0xb186x10[_0xaf3c[32]],_0xb186xb[_0xaf3c[25]]),priority:_0xb186x12,app:_0xaf3c[34],appdata:_0xb186x10[_0xaf3c[35]],UserId:_0xb186xb[_0xaf3c[36]],ChanSpyId:_0xb186x10[_0xaf3c[36]],type:_0xaf3c[37]});_0xb186x12++};_0xb186x11[_0xaf3c[38]]({context:_0xaf3c[30],exten:util[_0xaf3c[33]](_0xaf3c[31],_0xb186x10[_0xaf3c[32]],_0xb186xb[_0xaf3c[25]]),priority:_0xb186x12,app:_0xaf3c[8],appdata:util[_0xaf3c[33]](_0xaf3c[39],_0xb186xb[_0xaf3c[25]],_0xb186x10[_0xaf3c[40]]),UserId:_0xb186xb[_0xaf3c[36]],ChanSpyId:_0xb186x10[_0xaf3c[36]],type:_0xaf3c[37]});_0xb186x12=1;if(_0xb186x10[_0xaf3c[29]]){_0xb186x11[_0xaf3c[38]]({context:_0xaf3c[30],exten:util[_0xaf3c[33]](_0xaf3c[31],_0xb186x10[_0xaf3c[32]],_0xb186xb[_0xaf3c[11]]),priority:_0xb186x12,app:_0xaf3c[34],appdata:_0xb186x10[_0xaf3c[35]],UserId:_0xb186xb[_0xaf3c[36]],ChanSpyId:_0xb186x10[_0xaf3c[36]],type:_0xaf3c[37]});_0xb186x12++};_0xb186x11[_0xaf3c[38]]({context:_0xaf3c[30],exten:util[_0xaf3c[33]](_0xaf3c[31],_0xb186x10[_0xaf3c[32]],_0xb186xb[_0xaf3c[11]]),priority:_0xb186x12,app:_0xaf3c[8],appdata:util[_0xaf3c[33]](_0xaf3c[39],_0xb186xb[_0xaf3c[25]],_0xb186x10[_0xaf3c[40]]),UserId:_0xb186xb[_0xaf3c[36]],ChanSpyId:_0xb186x10[_0xaf3c[36]],type:_0xaf3c[37]});_0xb186xf[_0xaf3c[38]](VoiceExtension[_0xaf3c[42]](_0xb186x11,{transaction:_0xb186xc[_0xaf3c[41]]}))});return _0xb186xf})[_0xaf3c[15]]()}}function deleteChanSpy(_0xb186xb,_0xb186xc){console[_0xaf3c[28]](_0xaf3c[45]);return function(){return VoiceExtension[_0xaf3c[46]]({where:{UserId:_0xb186xb[_0xaf3c[36]],ChanSpyId:{$ne:null}},transaction:_0xb186xc[_0xaf3c[41]]})}}function createCallerID(_0xb186xb,_0xb186xc){return function(){if(_0xb186xb[_0xaf3c[47]]&&_0xb186xb[_0xaf3c[11]]&&_0xb186xb[_0xaf3c[17]](_0xaf3c[47])){console[_0xaf3c[28]](_0xaf3c[48]);_0xb186xb[_0xaf3c[22]]=util[_0xaf3c[33]](_0xaf3c[49],_0xb186xb[_0xaf3c[47]],_0xb186xb[_0xaf3c[11]]);return _0xb186xb[_0xaf3c[50]]({transaction:_0xb186xc[_0xaf3c[41]]})};return}}function updateExtension(_0xb186xb,_0xb186xc){return function(){if(_0xb186xb[_0xaf3c[17]](_0xaf3c[25])){console[_0xaf3c[28]](_0xaf3c[51]);return _0xb186xb[_0xaf3c[56]]()[_0xaf3c[14]](function(_0xb186x16){_0xb186x16[_0xaf3c[43]](function(_0xb186x10){_0xb186x10[_0xaf3c[52]]=(_0xb186x10[_0xaf3c[52]]===_0xb186xb[_0xaf3c[53]][_0xaf3c[11]])?_0xb186xb[_0xaf3c[11]]:_0xb186xb[_0xaf3c[25]];_0xb186x10[_0xaf3c[54]]=_0xaf3c[55]+_0xb186xb[_0xaf3c[25]];return _0xb186x10[_0xaf3c[50]]({transaction:_0xb186xc[_0xaf3c[41]]})})})}}}function createExtension(_0xb186xb,_0xb186xc){console[_0xaf3c[28]](_0xaf3c[57]);return function(){var _0xb186x18=[{context:_0xaf3c[30],exten:_0xaf3c[58]+_0xb186xb[_0xaf3c[11]],priority:1,app:_0xaf3c[59],appdata:_0xaf3c[60],UserId:_0xb186xb[_0xaf3c[36]],type:_0xaf3c[37]},{context:_0xaf3c[30],exten:_0xaf3c[58]+_0xb186xb[_0xaf3c[11]],priority:2,app:_0xaf3c[61],appdata:_0xaf3c[55]+_0xb186xb[_0xaf3c[25]],UserId:_0xb186xb[_0xaf3c[36]],type:_0xaf3c[37]},{context:_0xaf3c[30],exten:_0xaf3c[58]+_0xb186xb[_0xaf3c[11]],priority:3,app:_0xaf3c[62],appdata:_0xaf3c[63],UserId:_0xb186xb[_0xaf3c[36]],type:_0xaf3c[37]},{context:_0xaf3c[30],exten:_0xb186xb[_0xaf3c[25]],priority:1,app:_0xaf3c[59],appdata:_0xaf3c[60],UserId:_0xb186xb[_0xaf3c[36]],type:_0xaf3c[37]},{context:_0xaf3c[30],exten:_0xb186xb[_0xaf3c[25]],priority:2,app:_0xaf3c[61],appdata:_0xaf3c[55]+_0xb186xb[_0xaf3c[25]],UserId:_0xb186xb[_0xaf3c[36]],type:_0xaf3c[37]},{context:_0xaf3c[30],exten:_0xb186xb[_0xaf3c[25]],priority:3,app:_0xaf3c[62],appdata:_0xaf3c[63],UserId:_0xb186xb[_0xaf3c[36]],type:_0xaf3c[37]}];return VoiceExtension[_0xaf3c[42]](_0xb186x18,{transaction:_0xb186xc[_0xaf3c[41]]})}}module[_0xaf3c[64]]=User
\ No newline at end of file
+var _0xebc2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x43\x68\x61\x6E\x53\x70\x79","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x6E\x73\x70\x79\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x6C\x6C","\x61\x75\x74\x68","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x25\x73\x25\x73","\x70\x72\x65\x66\x69\x78","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x69\x64","\x73\x79\x73\x74\x65\x6D","\x70\x75\x73\x68","\x53\x49\x50\x2F\x25\x73\x2C\x25\x73","\x6F\x70\x74\x69\x6F\x6E\x73","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x44\x65\x6C\x65\x74\x69\x6E\x67\x20\x63\x68\x61\x6E\x73\x70\x79\x2E\x2E\x2E","\x64\x65\x73\x74\x72\x6F\x79","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x5F\x63\x68\x61\x6E\x67\x65\x64","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x63\x61\x6C\x6C\x65\x72\x49\x44\x2E\x2E\x2E","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x73\x61\x76\x65","\x72\x65\x73\x6F\x6C\x76\x65","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2E\x2E\x2E","\x5F","\x53\x65\x74","\x43\x44\x52\x28\x74\x79\x70\x65\x29\x3D\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x44\x69\x61\x6C","\x53\x49\x50\x2F","\x2C\x2C\x74\x54\x78\x58","\x48\x61\x6E\x67\x75\x70","","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x71\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x6C\x61\x73\x74\x4C\x6F\x67\x69\x6E\x41\x74","\x6F\x6E\x6C\x69\x6E\x65","\x65\x72\x72","\x73\x74\x61\x63\x6B","\x63\x61\x74\x63\x68","\x63\x68\x61\x6E\x73\x70\x79","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65"];_0xebc2[0];var fs=require(_0xebc2[1]);var util=require(_0xebc2[2]);var path=require(_0xebc2[3]);var config=require(_0xebc2[4]);var UserModel=require(_0xebc2[6])[_0xebc2[5]];var VoiceExtension=require(_0xebc2[6])[_0xebc2[7]];var ChanSpy=require(_0xebc2[6])[_0xebc2[8]];var sequelize=require(_0xebc2[6])[_0xebc2[9]];var BPromise=require(_0xebc2[10]);function createChanspy(_0x3081xb,_0x3081xc){console[_0xebc2[12]](_0xebc2[11]);return ChanSpy[_0xebc2[32]]()[_0xebc2[31]](function(_0x3081xd){var _0x3081xe=[];_0x3081xd[_0xebc2[30]](function(_0x3081xf){var _0x3081x10=[];var _0x3081x11=1;if(_0x3081xf[_0xebc2[14]]){_0x3081x10[_0xebc2[24]]({context:_0xebc2[15],exten:util[_0xebc2[19]](_0xebc2[16],_0x3081xf[_0xebc2[17]],_0x3081xb[_0xebc2[18]]),priority:_0x3081x11,app:_0xebc2[20],appdata:_0x3081xf[_0xebc2[21]],UserId:_0x3081xb[_0xebc2[22]],ChanSpyId:_0x3081xf[_0xebc2[22]],type:_0xebc2[23]});_0x3081x11++};_0x3081x10[_0xebc2[24]]({context:_0xebc2[15],exten:util[_0xebc2[19]](_0xebc2[16],_0x3081xf[_0xebc2[17]],_0x3081xb[_0xebc2[18]]),priority:_0x3081x11,app:_0xebc2[8],appdata:util[_0xebc2[19]](_0xebc2[25],_0x3081xb[_0xebc2[18]],_0x3081xf[_0xebc2[26]]),UserId:_0x3081xb[_0xebc2[22]],ChanSpyId:_0x3081xf[_0xebc2[22]],type:_0xebc2[23]});_0x3081x11= 1;if(_0x3081xf[_0xebc2[14]]){_0x3081x10[_0xebc2[24]]({context:_0xebc2[15],exten:util[_0xebc2[19]](_0xebc2[16],_0x3081xf[_0xebc2[17]],_0x3081xb[_0xebc2[27]]),priority:_0x3081x11,app:_0xebc2[20],appdata:_0x3081xf[_0xebc2[21]],UserId:_0x3081xb[_0xebc2[22]],ChanSpyId:_0x3081xf[_0xebc2[22]],type:_0xebc2[23]});_0x3081x11++};_0x3081x10[_0xebc2[24]]({context:_0xebc2[15],exten:util[_0xebc2[19]](_0xebc2[16],_0x3081xf[_0xebc2[17]],_0x3081xb[_0xebc2[27]]),priority:_0x3081x11,app:_0xebc2[8],appdata:util[_0xebc2[19]](_0xebc2[25],_0x3081xb[_0xebc2[18]],_0x3081xf[_0xebc2[26]]),UserId:_0x3081xb[_0xebc2[22]],ChanSpyId:_0x3081xf[_0xebc2[22]],type:_0xebc2[23]});_0x3081xe[_0xebc2[24]](VoiceExtension[_0xebc2[29]](_0x3081x10,{transaction:_0x3081xc[_0xebc2[28]]|| null}))});return _0x3081xe})[_0xebc2[13]]()}function deleteChanSpy(_0x3081xb,_0x3081xc){console[_0xebc2[12]](_0xebc2[33]);return VoiceExtension[_0xebc2[34]]({where:{UserId:_0x3081xb[_0xebc2[22]],ChanSpyId:{$ne:null}},transaction:_0x3081xc[_0xebc2[28]]|| null})}function createCallerID(_0x3081xb,_0x3081xc){return function(){if(_0x3081xb[_0xebc2[35]]&& _0x3081xb[_0xebc2[27]]&& _0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[35])){console[_0xebc2[12]](_0xebc2[38]);_0x3081xb[_0xebc2[39]]= util[_0xebc2[19]](_0xebc2[40],_0x3081xb[_0xebc2[35]],_0x3081xb[_0xebc2[27]]);return _0x3081xb[_0xebc2[41]]({transaction:_0x3081xc[_0xebc2[28]]|| null})}else {return BPromise[_0xebc2[42]]()}}}function createExtension(_0x3081xb,_0x3081xc){console[_0xebc2[12]](_0xebc2[43]);return function(){var _0x3081x15=[{context:_0xebc2[15],exten:_0xebc2[44]+ _0x3081xb[_0xebc2[27]],priority:1,app:_0xebc2[45],appdata:_0xebc2[46],UserId:_0x3081xb[_0xebc2[22]],type:_0xebc2[23]},{context:_0xebc2[15],exten:_0xebc2[44]+ _0x3081xb[_0xebc2[27]],priority:2,app:_0xebc2[47],appdata:_0xebc2[48]+ _0x3081xb[_0xebc2[18]]+ _0xebc2[49],UserId:_0x3081xb[_0xebc2[22]],type:_0xebc2[23]},{context:_0xebc2[15],exten:_0xebc2[44]+ _0x3081xb[_0xebc2[27]],priority:3,app:_0xebc2[50],appdata:_0xebc2[51],UserId:_0x3081xb[_0xebc2[22]],type:_0xebc2[23]},{context:_0xebc2[15],exten:_0x3081xb[_0xebc2[18]],priority:1,app:_0xebc2[45],appdata:_0xebc2[46],UserId:_0x3081xb[_0xebc2[22]],type:_0xebc2[23]},{context:_0xebc2[15],exten:_0x3081xb[_0xebc2[18]],priority:2,app:_0xebc2[47],appdata:_0xebc2[48]+ _0x3081xb[_0xebc2[18]]+ _0xebc2[49],UserId:_0x3081xb[_0xebc2[22]],type:_0xebc2[23]},{context:_0xebc2[15],exten:_0x3081xb[_0xebc2[18]],priority:3,app:_0xebc2[50],appdata:_0xebc2[51],UserId:_0x3081xb[_0xebc2[22]],type:_0xebc2[23]}];return VoiceExtension[_0xebc2[29]](_0x3081x15,{transaction:_0x3081xc[_0xebc2[28]]|| null})}}exports[_0xebc2[52]]= function(_0x3081xc){return function(_0x3081xb){if(!_0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[53])&& !_0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[54])&& !_0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[39])&& !_0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[55])&& !_0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[56])){return BPromise[_0xebc2[42]]()[_0xebc2[31]](createCallerID(_0x3081xb,_0x3081xc))[_0xebc2[31]](function(){if((_0x3081xb[_0xebc2[60]]&& _0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[60]))){return createChanspy(_0x3081xb,_0x3081xc)}})[_0xebc2[31]](function(){if(_0x3081xb[_0xebc2[60]]&& !_0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[60])&& _0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[18])){return deleteChanSpy(_0x3081xb,_0x3081xc)}})[_0xebc2[31]](function(){if(_0x3081xb[_0xebc2[60]]&& !_0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[60])&& _0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[18])){return createChanspy(_0x3081xb,_0x3081xc)}})[_0xebc2[31]](function(){if(!_0x3081xb[_0xebc2[60]]&& _0x3081xb[_0xebc2[37]][_0xebc2[36]](_0xebc2[60])){return deleteChanSpy(_0x3081xb,_0x3081xc)}})[_0xebc2[59]](function(_0x3081x16){console[_0xebc2[12]](_0xebc2[57],_0x3081x16[_0xebc2[58]])})[_0xebc2[31]](function(){return _0x3081xb})}else {return BPromise[_0xebc2[42]]()[_0xebc2[31]](function(){return _0x3081xb})}}};exports[_0xebc2[61]]= function(_0x3081xc){return function(_0x3081xb){delete _0x3081xb[_0xebc2[37]][_0xebc2[27]];return Promise[_0xebc2[13]]([])[_0xebc2[31]](createCallerID(_0x3081xb,_0x3081xc))[_0xebc2[31]](createExtension(_0x3081xb,_0x3081xc))[_0xebc2[31]](function(){if(_0x3081xb[_0xebc2[60]]){return createChanspy(_0x3081xb,_0x3081xc)}})[_0xebc2[31]](function(){return _0x3081xb})}}
\ No newline at end of file