-var _0x82a3=["\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","\x63\x68\x61\x6E\x73\x70\x79","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x6E\x61\x6D\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\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","\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","\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","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x73\x61\x76\x65","\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","\x44\x69\x61\x6C","\x65\x78\x70\x6F\x72\x74\x73"];_0x82a3[0];var fs=require(_0x82a3[1]);var util=require(_0x82a3[2]);var path=require(_0x82a3[3]);var config=require(_0x82a3[4]);var UserModel=require(_0x82a3[6])[_0x82a3[5]];var VoiceExtension=require(_0x82a3[6])[_0x82a3[7]];var ChanSpy=require(_0x82a3[6])[_0x82a3[8]];var sequelize=require(_0x82a3[6])[_0x82a3[9]];function User(){UserModel[_0x82a3[11]](function(_0x5a82xa){createCallerID(_0x5a82xa);createExtension(_0x5a82xa);if(_0x5a82xa[_0x82a3[10]]){createChanspy(_0x5a82xa)}});UserModel[_0x82a3[14]](function(_0x5a82xa){updateExtension(_0x5a82xa);createCallerID(_0x5a82xa);if((_0x5a82xa[_0x82a3[10]]&&_0x5a82xa[_0x82a3[12]](_0x82a3[10]))){createChanspy(_0x5a82xa)}else {if(_0x5a82xa[_0x82a3[10]]&&!_0x5a82xa[_0x82a3[12]](_0x82a3[10])&&_0x5a82xa[_0x82a3[12]](_0x82a3[13])){deleteChanSpy(_0x5a82xa);createChanspy(_0x5a82xa)}else {if(!_0x5a82xa[_0x82a3[10]]&&_0x5a82xa[_0x82a3[12]](_0x82a3[10])){deleteChanSpy(_0x5a82xa)}}}})}function createChanspy(_0x5a82xa){return sequelize[_0x82a3[35]](function(_0x5a82xd){return ChanSpy[_0x82a3[34]]()[_0x82a3[33]](function(_0x5a82xe){var _0x5a82xf=[];_0x5a82xe[_0x82a3[32]](function(_0x5a82x10){var _0x5a82x11=[];var _0x5a82x12=1;if(_0x5a82x10[_0x82a3[18]]){_0x5a82x11[_0x82a3[27]]({context:_0x82a3[19],exten:util[_0x82a3[22]](_0x82a3[20],_0x5a82x10[_0x82a3[21]],_0x5a82xa[_0x82a3[13]]),priority:_0x5a82x12,app:_0x82a3[23],appdata:_0x5a82x10[_0x82a3[24]],UserId:_0x5a82xa[_0x82a3[25]],ChanSpyId:_0x5a82x10[_0x82a3[25]],type:_0x82a3[26]});_0x5a82x12++};_0x5a82x11[_0x82a3[27]]({context:_0x82a3[19],exten:util[_0x82a3[22]](_0x82a3[20],_0x5a82x10[_0x82a3[21]],_0x5a82xa[_0x82a3[13]]),priority:_0x5a82x12,app:_0x82a3[8],appdata:util[_0x82a3[22]](_0x82a3[28],_0x5a82xa[_0x82a3[13]],_0x5a82x10[_0x82a3[29]]),UserId:_0x5a82xa[_0x82a3[25]],ChanSpyId:_0x5a82x10[_0x82a3[25]],type:_0x82a3[26]});_0x5a82x12=1;if(_0x5a82x10[_0x82a3[18]]){_0x5a82x11[_0x82a3[27]]({context:_0x82a3[19],exten:util[_0x82a3[22]](_0x82a3[20],_0x5a82x10[_0x82a3[21]],_0x5a82xa[_0x82a3[30]]),priority:_0x5a82x12,app:_0x82a3[23],appdata:_0x5a82x10[_0x82a3[24]],UserId:_0x5a82xa[_0x82a3[25]],ChanSpyId:_0x5a82x10[_0x82a3[25]],type:_0x82a3[26]});_0x5a82x12++};_0x5a82x11[_0x82a3[27]]({context:_0x82a3[19],exten:util[_0x82a3[22]](_0x82a3[20],_0x5a82x10[_0x82a3[21]],_0x5a82xa[_0x82a3[30]]),priority:_0x5a82x12,app:_0x82a3[8],appdata:util[_0x82a3[22]](_0x82a3[28],_0x5a82xa[_0x82a3[13]],_0x5a82x10[_0x82a3[29]]),UserId:_0x5a82xa[_0x82a3[25]],ChanSpyId:_0x5a82x10[_0x82a3[25]],type:_0x82a3[26]});_0x5a82xf[_0x82a3[27]](VoiceExtension[_0x82a3[31]](_0x5a82x11,{transaction:_0x5a82xd}))});return _0x5a82xf})[_0x82a3[17]]()})[_0x82a3[16]](function(_0x5a82xc){console[_0x82a3[15]](_0x5a82xc)})}function deleteChanSpy(_0x5a82xa){return sequelize[_0x82a3[35]](function(_0x5a82xd){return VoiceExtension[_0x82a3[36]]({where:{UserId:_0x5a82xa[_0x82a3[25]],ChanSpyId:{$ne:null}},transaction:_0x5a82xd})})[_0x82a3[16]](function(_0x5a82xc){console[_0x82a3[15]](_0x5a82xc)})}function createCallerID(_0x5a82xa){if(_0x5a82xa[_0x82a3[37]]&&_0x5a82xa[_0x82a3[30]]){_0x5a82xa[_0x82a3[38]]=util[_0x82a3[22]](_0x82a3[39],_0x5a82xa[_0x82a3[37]],_0x5a82xa[_0x82a3[30]]);_0x5a82xa[_0x82a3[40]]()};return}function updateExtension(_0x5a82xa){if(_0x5a82xa[_0x82a3[12]](_0x82a3[13])){_0x5a82xa[_0x82a3[45]]()[_0x82a3[33]](function(_0x5a82x16){_0x5a82x16[_0x82a3[32]](function(_0x5a82x10){_0x5a82x10[_0x82a3[41]]=(_0x5a82x10[_0x82a3[41]]===_0x5a82xa[_0x82a3[42]][_0x82a3[30]])?_0x5a82xa[_0x82a3[30]]:_0x5a82xa[_0x82a3[13]];_0x5a82x10[_0x82a3[43]]=_0x82a3[44]+_0x5a82xa[_0x82a3[13]];_0x5a82x10[_0x82a3[40]]()})})[_0x82a3[16]](function(_0x5a82xc){console[_0x82a3[15]](_0x5a82xc)})}}function createExtension(_0x5a82xa){if(_0x5a82xa[_0x82a3[30]]){var _0x5a82x18=[{context:_0x82a3[19],exten:_0x5a82xa[_0x82a3[30]],priority:1,app:_0x82a3[46],appdata:_0x82a3[44]+_0x5a82xa[_0x82a3[13]],UserId:_0x5a82xa[_0x82a3[25]],type:_0x82a3[26]},{context:_0x82a3[19],exten:_0x5a82xa[_0x82a3[13]],priority:1,app:_0x82a3[46],appdata:_0x82a3[44]+_0x5a82xa[_0x82a3[13]],UserId:_0x5a82xa[_0x82a3[25]],type:_0x82a3[26]}];return VoiceExtension[_0x82a3[31]](_0x5a82x18)[_0x82a3[16]](function(_0x5a82xc){console[_0x82a3[15]](_0x5a82xc)})}}module[_0x82a3[47]]=User
\ No newline at end of file
+var _0xbddb=["\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","\x61\x70\x70","\x44\x69\x61\x6C","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F","\x2C\x74\x54\x78\x58","\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","\x53\x65\x74","\x43\x44\x52\x28\x74\x79\x70\x65\x29\x3D\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x48\x61\x6E\x67\x75\x70","","\x65\x78\x70\x6F\x72\x74\x73"];_0xbddb[0];var fs=require(_0xbddb[1]);var util=require(_0xbddb[2]);var path=require(_0xbddb[3]);var config=require(_0xbddb[4]);var UserModel=require(_0xbddb[6])[_0xbddb[5]];var VoiceExtension=require(_0xbddb[6])[_0xbddb[7]];var ChanSpy=require(_0xbddb[6])[_0xbddb[8]];var sequelize=require(_0xbddb[6])[_0xbddb[9]];var Promise=require(_0xbddb[10]);function User(){UserModel[_0xbddb[16]](function(_0x792axb,_0x792axc){delete _0x792axb[_0xbddb[12]][_0xbddb[11]];return Promise[_0xbddb[15]]([])[_0xbddb[14]](createCallerID(_0x792axb,_0x792axc))[_0xbddb[14]](createExtension(_0x792axb,_0x792axc))[_0xbddb[14]](function(){if(_0x792axb[_0xbddb[13]]){createChanspy(_0x792axb,_0x792axc)}})});UserModel[_0xbddb[19]](function(_0x792axb,_0x792axc){if(_0x792axb[_0xbddb[17]](_0xbddb[11])){throw new sequelize.Error(_0xbddb[18])}});UserModel[_0xbddb[26]](function(_0x792axb,_0x792axc){if(!_0x792axb[_0xbddb[17]](_0xbddb[20])&& !_0x792axb[_0xbddb[17]](_0xbddb[21])&& !_0x792axb[_0xbddb[17]](_0xbddb[22])&& !_0x792axb[_0xbddb[17]](_0xbddb[23])&& !_0x792axb[_0xbddb[17]](_0xbddb[24])){return Promise[_0xbddb[15]]([])[_0xbddb[14]](updateExtension(_0x792axb,_0x792axc))[_0xbddb[14]](createCallerID(_0x792axb,_0x792axc))[_0xbddb[14]](function(){if((_0x792axb[_0xbddb[13]]&& _0x792axb[_0xbddb[17]](_0xbddb[13]))){createChanspy(_0x792axb,_0x792axc)}})[_0xbddb[14]](function(){if(_0x792axb[_0xbddb[13]]&& !_0x792axb[_0xbddb[17]](_0xbddb[13])&& _0x792axb[_0xbddb[17]](_0xbddb[25])){deleteChanSpy(_0x792axb,_0x792axc)}})[_0xbddb[14]](function(){if(_0x792axb[_0xbddb[13]]&& !_0x792axb[_0xbddb[17]](_0xbddb[13])&& _0x792axb[_0xbddb[17]](_0xbddb[25])){createChanspy(_0x792axb,_0x792axc)}})[_0xbddb[14]](function(){if(!_0x792axb[_0xbddb[13]]&& _0x792axb[_0xbddb[17]](_0xbddb[13])){deleteChanSpy(_0x792axb,_0x792axc)}})}})}function createChanspy(_0x792axb,_0x792axc){console[_0xbddb[28]](_0xbddb[27]);return function(){return ChanSpy[_0xbddb[44]]()[_0xbddb[14]](function(_0x792axe){var _0x792axf=[];_0x792axe[_0xbddb[43]](function(_0x792ax10){var _0x792ax11=[];var _0x792ax12=1;if(_0x792ax10[_0xbddb[29]]){_0x792ax11[_0xbddb[38]]({context:_0xbddb[30],exten:util[_0xbddb[33]](_0xbddb[31],_0x792ax10[_0xbddb[32]],_0x792axb[_0xbddb[25]]),priority:_0x792ax12,app:_0xbddb[34],appdata:_0x792ax10[_0xbddb[35]],UserId:_0x792axb[_0xbddb[36]],ChanSpyId:_0x792ax10[_0xbddb[36]],type:_0xbddb[37]});_0x792ax12++};_0x792ax11[_0xbddb[38]]({context:_0xbddb[30],exten:util[_0xbddb[33]](_0xbddb[31],_0x792ax10[_0xbddb[32]],_0x792axb[_0xbddb[25]]),priority:_0x792ax12,app:_0xbddb[8],appdata:util[_0xbddb[33]](_0xbddb[39],_0x792axb[_0xbddb[25]],_0x792ax10[_0xbddb[40]]),UserId:_0x792axb[_0xbddb[36]],ChanSpyId:_0x792ax10[_0xbddb[36]],type:_0xbddb[37]});_0x792ax12= 1;if(_0x792ax10[_0xbddb[29]]){_0x792ax11[_0xbddb[38]]({context:_0xbddb[30],exten:util[_0xbddb[33]](_0xbddb[31],_0x792ax10[_0xbddb[32]],_0x792axb[_0xbddb[11]]),priority:_0x792ax12,app:_0xbddb[34],appdata:_0x792ax10[_0xbddb[35]],UserId:_0x792axb[_0xbddb[36]],ChanSpyId:_0x792ax10[_0xbddb[36]],type:_0xbddb[37]});_0x792ax12++};_0x792ax11[_0xbddb[38]]({context:_0xbddb[30],exten:util[_0xbddb[33]](_0xbddb[31],_0x792ax10[_0xbddb[32]],_0x792axb[_0xbddb[11]]),priority:_0x792ax12,app:_0xbddb[8],appdata:util[_0xbddb[33]](_0xbddb[39],_0x792axb[_0xbddb[25]],_0x792ax10[_0xbddb[40]]),UserId:_0x792axb[_0xbddb[36]],ChanSpyId:_0x792ax10[_0xbddb[36]],type:_0xbddb[37]});_0x792axf[_0xbddb[38]](VoiceExtension[_0xbddb[42]](_0x792ax11,{transaction:_0x792axc[_0xbddb[41]]}))});return _0x792axf})[_0xbddb[15]]()}}function deleteChanSpy(_0x792axb,_0x792axc){console[_0xbddb[28]](_0xbddb[45]);return function(){return VoiceExtension[_0xbddb[46]]({where:{UserId:_0x792axb[_0xbddb[36]],ChanSpyId:{$ne:null}},transaction:_0x792axc[_0xbddb[41]]})}}function createCallerID(_0x792axb,_0x792axc){return function(){if(_0x792axb[_0xbddb[47]]&& _0x792axb[_0xbddb[11]]&& _0x792axb[_0xbddb[17]](_0xbddb[47])){console[_0xbddb[28]](_0xbddb[48]);_0x792axb[_0xbddb[22]]= util[_0xbddb[33]](_0xbddb[49],_0x792axb[_0xbddb[47]],_0x792axb[_0xbddb[11]]);return _0x792axb[_0xbddb[50]]({transaction:_0x792axc[_0xbddb[41]]})};return}}function updateExtension(_0x792axb,_0x792axc){return function(){if(_0x792axb[_0xbddb[17]](_0xbddb[25])){console[_0xbddb[28]](_0xbddb[51]);return _0x792axb[_0xbddb[59]]()[_0xbddb[14]](function(_0x792ax16){var _0x792ax17,_0x792ax18=[];_0x792ax16[_0xbddb[43]](function(_0x792ax10){_0x792ax17= false;if(_0x792ax10[_0xbddb[52]]!== _0xbddb[53]+ _0x792axb[_0xbddb[11]]){_0x792ax10[_0xbddb[52]]= _0x792axb[_0xbddb[25]];_0x792ax17= true};if(_0x792ax10[_0xbddb[54]]=== _0xbddb[55]){_0x792ax10[_0xbddb[56]]= _0xbddb[57]+ _0x792axb[_0xbddb[25]]+ _0xbddb[58];_0x792ax17= true};if(_0x792ax17){_0x792ax18[_0xbddb[38]](_0x792ax10[_0xbddb[50]]({transaction:_0x792axc[_0xbddb[41]]}))}});return _0x792ax18})[_0xbddb[15]]()}}}function createExtension(_0x792axb,_0x792axc){console[_0xbddb[28]](_0xbddb[60]);return function(){var _0x792ax1a=[{context:_0xbddb[30],exten:_0xbddb[53]+ _0x792axb[_0xbddb[11]],priority:1,app:_0xbddb[61],appdata:_0xbddb[62],UserId:_0x792axb[_0xbddb[36]],type:_0xbddb[37]},{context:_0xbddb[30],exten:_0xbddb[53]+ _0x792axb[_0xbddb[11]],priority:2,app:_0xbddb[55],appdata:_0xbddb[57]+ _0x792axb[_0xbddb[25]]+ _0xbddb[58],UserId:_0x792axb[_0xbddb[36]],type:_0xbddb[37]},{context:_0xbddb[30],exten:_0xbddb[53]+ _0x792axb[_0xbddb[11]],priority:3,app:_0xbddb[63],appdata:_0xbddb[64],UserId:_0x792axb[_0xbddb[36]],type:_0xbddb[37]},{context:_0xbddb[30],exten:_0x792axb[_0xbddb[25]],priority:1,app:_0xbddb[61],appdata:_0xbddb[62],UserId:_0x792axb[_0xbddb[36]],type:_0xbddb[37]},{context:_0xbddb[30],exten:_0x792axb[_0xbddb[25]],priority:2,app:_0xbddb[55],appdata:_0xbddb[57]+ _0x792axb[_0xbddb[25]]+ _0xbddb[58],UserId:_0x792axb[_0xbddb[36]],type:_0xbddb[37]},{context:_0xbddb[30],exten:_0x792axb[_0xbddb[25]],priority:3,app:_0xbddb[63],appdata:_0xbddb[64],UserId:_0x792axb[_0xbddb[36]],type:_0xbddb[37]}];return VoiceExtension[_0xbddb[42]](_0x792ax1a,{transaction:_0x792axc[_0xbddb[41]]})}}module[_0xbddb[65]]= User
\ No newline at end of file