1 var _0xb085=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x65\x76\x65\x6E\x74\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x72\x65\x70\x6F\x72\x74\x20\x73\x6D\x73\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x61\x66\x74\x65\x72\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x71\x75\x65\x75\x65","\x65\x6D\x69\x74","\x74\x68\x65\x6E","\x61\x6C\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x69\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x75\x73\x65\x72\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74"];_0xb085[0];const ReportSmsSessionEvents=require(_0xb085[1]);const User=require(_0xb085[3])[_0xb085[2]];const Util=require(_0xb085[4]);const _=require(_0xb085[5]);const Promise=require(_0xb085[6]);var events=[_0xb085[7],_0xb085[8]];exports[_0xb085[9]]= function(_0x261cx7){for(var _0x261cx8=0,_0x261cx9=events[_0xb085[10]];_0x261cx8< _0x261cx9;_0x261cx8++){var _0x261cxa=events[_0x261cx8];var _0x261cxb=createListener(_0xb085[11]+ _0x261cxa,_0x261cx7);ReportSmsSessionEvents[_0xb085[12]](_0x261cxa,_0x261cxb);_0x261cx7[_0xb085[12]](_0xb085[13],removeListener(_0x261cxa,_0x261cxb))}};function createListener(_0x261cxa,_0x261cx7){return function(_0x261cxd){switch(_0x261cxa){case _0xb085[25]:return Promise[_0xb085[24]]([])[_0xb085[23]](getSmsQueues(_0x261cx7))[_0xb085[23]](function(_0x261cxf){if(_0x261cx7[_0xb085[17]]=== _0xb085[18]|| _[_0xb085[20]](_0x261cxf[_0xb085[19]],_0x261cxd[_0xb085[19]])|| _[_0xb085[20]](_0x261cxf[_0xb085[21]],_0x261cxd[_0xb085[21]])){_0x261cx7[_0xb085[22]](_0x261cxa,_0x261cxd)}})[_0xb085[16]](function(_0x261cxe){console[_0xb085[15]](_0xb085[14],_0x261cxe)});case _0xb085[26]:_0x261cx7[_0xb085[22]](_0x261cxa,_0x261cxd);break;default:}}}function removeListener(_0x261cxa,_0x261cxb){return function(){ReportSmsSessionEvents[_0xb085[27]](_0x261cxa,_0x261cxb)}}function getSmsQueues(_0x261cx12){return function(){switch(_0x261cx12[_0xb085[17]]){case _0xb085[36]:return User[_0xb085[35]](_0x261cx12[_0xb085[34]],{attributes:[_0xb085[28]]})[_0xb085[23]](Util[_0xb085[33]]({},{attributes:[_0xb085[28]],include:[{raw:true,model:User,attributes:[_0xb085[28]]}]}))[_0xb085[23]](function(_0x261cx13){var _0x261cx14=[];_0x261cx13[_0xb085[32]][_0xb085[31]](function(_0x261cx15){_0x261cx14= _[_0xb085[30]](_0x261cx14,_[_0xb085[29]](_0x261cx15.Users,_0xb085[28]))});return {queue:_[_0xb085[29]](_0x261cx13[_0xb085[32]],_0xb085[28]),memberid:_0x261cx14}});case _0xb085[38]:return User[_0xb085[35]](_0x261cx12[_0xb085[34]],{attributes:[_0xb085[28]]})[_0xb085[23]](function(_0x261cx16){return _0x261cx16[_0xb085[37]]({attributes:[_0xb085[28]]})})[_0xb085[23]](function(_0x261cx13){return {queue:_[_0xb085[29]](_0x261cx13,_0xb085[28]),memberid:_0x261cx12[_0xb085[34]]}});default:return {}}}}