Built motion from commit 3848e0076.|1.0.27
[motion.git] / server / api / report_sms_session / report_sms_session.socket.js
index 883d291..9aed0cd 100644 (file)
@@ -1 +1 @@
-var _0xefd4=["\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"];_0xefd4[0];const ReportSmsSessionEvents=require(_0xefd4[1]);const User=require(_0xefd4[3])[_0xefd4[2]];const Util=require(_0xefd4[4]);const _=require(_0xefd4[5]);const Promise=require(_0xefd4[6]);var events=[_0xefd4[7],_0xefd4[8]];exports[_0xefd4[9]]= function(_0x497bx7){for(var _0x497bx8=0,_0x497bx9=events[_0xefd4[10]];_0x497bx8< _0x497bx9;_0x497bx8++){var _0x497bxa=events[_0x497bx8];var _0x497bxb=createListener(_0xefd4[11]+ _0x497bxa,_0x497bx7);ReportSmsSessionEvents[_0xefd4[12]](_0x497bxa,_0x497bxb);_0x497bx7[_0xefd4[12]](_0xefd4[13],removeListener(_0x497bxa,_0x497bxb))}};function createListener(_0x497bxa,_0x497bx7){return function(_0x497bxd){switch(_0x497bxa){case _0xefd4[25]:return Promise[_0xefd4[24]]([])[_0xefd4[23]](getSmsQueues(_0x497bx7))[_0xefd4[23]](function(_0x497bxf){if(_0x497bx7[_0xefd4[17]]=== _0xefd4[18]|| _[_0xefd4[20]](_0x497bxf[_0xefd4[19]],_0x497bxd[_0xefd4[19]])|| _[_0xefd4[20]](_0x497bxf[_0xefd4[21]],_0x497bxd[_0xefd4[21]])){_0x497bx7[_0xefd4[22]](_0x497bxa,_0x497bxd)}})[_0xefd4[16]](function(_0x497bxe){console[_0xefd4[15]](_0xefd4[14],_0x497bxe)});case _0xefd4[26]:_0x497bx7[_0xefd4[22]](_0x497bxa,_0x497bxd);break;default:}}}function removeListener(_0x497bxa,_0x497bxb){return function(){ReportSmsSessionEvents[_0xefd4[27]](_0x497bxa,_0x497bxb)}}function getSmsQueues(_0x497bx12){return function(){switch(_0x497bx12[_0xefd4[17]]){case _0xefd4[36]:return User[_0xefd4[35]](_0x497bx12[_0xefd4[34]],{attributes:[_0xefd4[28]]})[_0xefd4[23]](Util[_0xefd4[33]]({},{attributes:[_0xefd4[28]],include:[{raw:true,model:User,attributes:[_0xefd4[28]]}]}))[_0xefd4[23]](function(_0x497bx13){var _0x497bx14=[];_0x497bx13[_0xefd4[32]][_0xefd4[31]](function(_0x497bx15){_0x497bx14= _[_0xefd4[30]](_0x497bx14,_[_0xefd4[29]](_0x497bx15.Users,_0xefd4[28]))});return {queue:_[_0xefd4[29]](_0x497bx13[_0xefd4[32]],_0xefd4[28]),memberid:_0x497bx14}});case _0xefd4[38]:return User[_0xefd4[35]](_0x497bx12[_0xefd4[34]],{attributes:[_0xefd4[28]]})[_0xefd4[23]](function(_0x497bx16){return _0x497bx16[_0xefd4[37]]({attributes:[_0xefd4[28]]})})[_0xefd4[23]](function(_0x497bx13){return {queue:_[_0xefd4[29]](_0x497bx13,_0xefd4[28]),memberid:_0x497bx12[_0xefd4[34]]}});default:return {}}}}
\ No newline at end of file
+var _0x99df=["\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"];_0x99df[0];const ReportSmsSessionEvents=require(_0x99df[1]);const User=require(_0x99df[3])[_0x99df[2]];const Util=require(_0x99df[4]);const _=require(_0x99df[5]);const Promise=require(_0x99df[6]);var events=[_0x99df[7],_0x99df[8]];exports[_0x99df[9]]= function(_0xc1b9x7){for(var _0xc1b9x8=0,_0xc1b9x9=events[_0x99df[10]];_0xc1b9x8< _0xc1b9x9;_0xc1b9x8++){var _0xc1b9xa=events[_0xc1b9x8];var _0xc1b9xb=createListener(_0x99df[11]+ _0xc1b9xa,_0xc1b9x7);ReportSmsSessionEvents[_0x99df[12]](_0xc1b9xa,_0xc1b9xb);_0xc1b9x7[_0x99df[12]](_0x99df[13],removeListener(_0xc1b9xa,_0xc1b9xb))}};function createListener(_0xc1b9xa,_0xc1b9x7){return function(_0xc1b9xd){switch(_0xc1b9xa){case _0x99df[25]:return Promise[_0x99df[24]]([])[_0x99df[23]](getSmsQueues(_0xc1b9x7))[_0x99df[23]](function(_0xc1b9xf){if(_0xc1b9x7[_0x99df[17]]=== _0x99df[18]|| _[_0x99df[20]](_0xc1b9xf[_0x99df[19]],_0xc1b9xd[_0x99df[19]])|| _[_0x99df[20]](_0xc1b9xf[_0x99df[21]],_0xc1b9xd[_0x99df[21]])){_0xc1b9x7[_0x99df[22]](_0xc1b9xa,_0xc1b9xd)}})[_0x99df[16]](function(_0xc1b9xe){console[_0x99df[15]](_0x99df[14],_0xc1b9xe)});case _0x99df[26]:_0xc1b9x7[_0x99df[22]](_0xc1b9xa,_0xc1b9xd);break;default:}}}function removeListener(_0xc1b9xa,_0xc1b9xb){return function(){ReportSmsSessionEvents[_0x99df[27]](_0xc1b9xa,_0xc1b9xb)}}function getSmsQueues(_0xc1b9x12){return function(){switch(_0xc1b9x12[_0x99df[17]]){case _0x99df[36]:return User[_0x99df[35]](_0xc1b9x12[_0x99df[34]],{attributes:[_0x99df[28]]})[_0x99df[23]](Util[_0x99df[33]]({},{attributes:[_0x99df[28]],include:[{raw:true,model:User,attributes:[_0x99df[28]]}]}))[_0x99df[23]](function(_0xc1b9x13){var _0xc1b9x14=[];_0xc1b9x13[_0x99df[32]][_0x99df[31]](function(_0xc1b9x15){_0xc1b9x14= _[_0x99df[30]](_0xc1b9x14,_[_0x99df[29]](_0xc1b9x15.Users,_0x99df[28]))});return {queue:_[_0x99df[29]](_0xc1b9x13[_0x99df[32]],_0x99df[28]),memberid:_0xc1b9x14}});case _0x99df[38]:return User[_0x99df[35]](_0xc1b9x12[_0x99df[34]],{attributes:[_0x99df[28]]})[_0x99df[23]](function(_0xc1b9x16){return _0xc1b9x16[_0x99df[37]]({attributes:[_0x99df[28]]})})[_0x99df[23]](function(_0xc1b9x13){return {queue:_[_0x99df[29]](_0xc1b9x13,_0x99df[28]),memberid:_0xc1b9x12[_0x99df[34]]}});default:return {}}}}
\ No newline at end of file