Built motion from commit 9362eee.|1.0.9
[motion.git] / server / api / report_sms_session / report_sms_session.socket.js
index 7eb159d..cd4a9e8 100644 (file)
@@ -1 +1 @@
-var _0xb042=["\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"];_0xb042[0];const ReportSmsSessionEvents=require(_0xb042[1]);const User=require(_0xb042[3])[_0xb042[2]];const Util=require(_0xb042[4]);const _=require(_0xb042[5]);const Promise=require(_0xb042[6]);var events=[_0xb042[7],_0xb042[8]];exports[_0xb042[9]]= function(_0xbf8cx7){for(var _0xbf8cx8=0,_0xbf8cx9=events[_0xb042[10]];_0xbf8cx8< _0xbf8cx9;_0xbf8cx8++){var _0xbf8cxa=events[_0xbf8cx8];var _0xbf8cxb=createListener(_0xb042[11]+ _0xbf8cxa,_0xbf8cx7);ReportSmsSessionEvents[_0xb042[12]](_0xbf8cxa,_0xbf8cxb);_0xbf8cx7[_0xb042[12]](_0xb042[13],removeListener(_0xbf8cxa,_0xbf8cxb))}};function createListener(_0xbf8cxa,_0xbf8cx7){return function(_0xbf8cxd){switch(_0xbf8cxa){case _0xb042[25]:return Promise[_0xb042[24]]([])[_0xb042[23]](getSmsQueues(_0xbf8cx7))[_0xb042[23]](function(_0xbf8cxf){if(_0xbf8cx7[_0xb042[17]]=== _0xb042[18]|| _[_0xb042[20]](_0xbf8cxf[_0xb042[19]],_0xbf8cxd[_0xb042[19]])|| _[_0xb042[20]](_0xbf8cxf[_0xb042[21]],_0xbf8cxd[_0xb042[21]])){_0xbf8cx7[_0xb042[22]](_0xbf8cxa,_0xbf8cxd)}})[_0xb042[16]](function(_0xbf8cxe){console[_0xb042[15]](_0xb042[14],_0xbf8cxe)});case _0xb042[26]:_0xbf8cx7[_0xb042[22]](_0xbf8cxa,_0xbf8cxd);break;default:}}}function removeListener(_0xbf8cxa,_0xbf8cxb){return function(){ReportSmsSessionEvents[_0xb042[27]](_0xbf8cxa,_0xbf8cxb)}}function getSmsQueues(_0xbf8cx12){return function(){switch(_0xbf8cx12[_0xb042[17]]){case _0xb042[36]:return User[_0xb042[35]](_0xbf8cx12[_0xb042[34]],{attributes:[_0xb042[28]]})[_0xb042[23]](Util[_0xb042[33]]({},{attributes:[_0xb042[28]],include:[{raw:true,model:User,attributes:[_0xb042[28]]}]}))[_0xb042[23]](function(_0xbf8cx13){var _0xbf8cx14=[];_0xbf8cx13[_0xb042[32]][_0xb042[31]](function(_0xbf8cx15){_0xbf8cx14= _[_0xb042[30]](_0xbf8cx14,_[_0xb042[29]](_0xbf8cx15.Users,_0xb042[28]))});return {queue:_[_0xb042[29]](_0xbf8cx13[_0xb042[32]],_0xb042[28]),memberid:_0xbf8cx14}});case _0xb042[38]:return User[_0xb042[35]](_0xbf8cx12[_0xb042[34]],{attributes:[_0xb042[28]]})[_0xb042[23]](function(_0xbf8cx16){return _0xbf8cx16[_0xb042[37]]({attributes:[_0xb042[28]]})})[_0xb042[23]](function(_0xbf8cx13){return {queue:_[_0xb042[29]](_0xbf8cx13,_0xb042[28]),memberid:_0xbf8cx12[_0xb042[34]]}});default:return {}}}}
\ No newline at end of file
+var _0x6cd0=["\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"];_0x6cd0[0];const ReportSmsSessionEvents=require(_0x6cd0[1]);const User=require(_0x6cd0[3])[_0x6cd0[2]];const Util=require(_0x6cd0[4]);const _=require(_0x6cd0[5]);const Promise=require(_0x6cd0[6]);var events=[_0x6cd0[7],_0x6cd0[8]];exports[_0x6cd0[9]]= function(_0xe69dx7){for(var _0xe69dx8=0,_0xe69dx9=events[_0x6cd0[10]];_0xe69dx8< _0xe69dx9;_0xe69dx8++){var _0xe69dxa=events[_0xe69dx8];var _0xe69dxb=createListener(_0x6cd0[11]+ _0xe69dxa,_0xe69dx7);ReportSmsSessionEvents[_0x6cd0[12]](_0xe69dxa,_0xe69dxb);_0xe69dx7[_0x6cd0[12]](_0x6cd0[13],removeListener(_0xe69dxa,_0xe69dxb))}};function createListener(_0xe69dxa,_0xe69dx7){return function(_0xe69dxd){switch(_0xe69dxa){case _0x6cd0[25]:return Promise[_0x6cd0[24]]([])[_0x6cd0[23]](getSmsQueues(_0xe69dx7))[_0x6cd0[23]](function(_0xe69dxf){if(_0xe69dx7[_0x6cd0[17]]=== _0x6cd0[18]|| _[_0x6cd0[20]](_0xe69dxf[_0x6cd0[19]],_0xe69dxd[_0x6cd0[19]])|| _[_0x6cd0[20]](_0xe69dxf[_0x6cd0[21]],_0xe69dxd[_0x6cd0[21]])){_0xe69dx7[_0x6cd0[22]](_0xe69dxa,_0xe69dxd)}})[_0x6cd0[16]](function(_0xe69dxe){console[_0x6cd0[15]](_0x6cd0[14],_0xe69dxe)});case _0x6cd0[26]:_0xe69dx7[_0x6cd0[22]](_0xe69dxa,_0xe69dxd);break;default:}}}function removeListener(_0xe69dxa,_0xe69dxb){return function(){ReportSmsSessionEvents[_0x6cd0[27]](_0xe69dxa,_0xe69dxb)}}function getSmsQueues(_0xe69dx12){return function(){switch(_0xe69dx12[_0x6cd0[17]]){case _0x6cd0[36]:return User[_0x6cd0[35]](_0xe69dx12[_0x6cd0[34]],{attributes:[_0x6cd0[28]]})[_0x6cd0[23]](Util[_0x6cd0[33]]({},{attributes:[_0x6cd0[28]],include:[{raw:true,model:User,attributes:[_0x6cd0[28]]}]}))[_0x6cd0[23]](function(_0xe69dx13){var _0xe69dx14=[];_0xe69dx13[_0x6cd0[32]][_0x6cd0[31]](function(_0xe69dx15){_0xe69dx14= _[_0x6cd0[30]](_0xe69dx14,_[_0x6cd0[29]](_0xe69dx15.Users,_0x6cd0[28]))});return {queue:_[_0x6cd0[29]](_0xe69dx13[_0x6cd0[32]],_0x6cd0[28]),memberid:_0xe69dx14}});case _0x6cd0[38]:return User[_0x6cd0[35]](_0xe69dx12[_0x6cd0[34]],{attributes:[_0x6cd0[28]]})[_0x6cd0[23]](function(_0xe69dx16){return _0xe69dx16[_0x6cd0[37]]({attributes:[_0x6cd0[28]]})})[_0x6cd0[23]](function(_0xe69dx13){return {queue:_[_0x6cd0[29]](_0xe69dx13,_0x6cd0[28]),memberid:_0xe69dx12[_0x6cd0[34]]}});default:return {}}}}
\ No newline at end of file