Built motion from commit 3537c3f88.|1.0.22
[motion.git] / server / api / report_fax_session / report_fax_session.socket.js
index 3a4b54f..eeec24b 100644 (file)
@@ -1 +1 @@
-var _0xfe6b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\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\x66\x61\x78\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\x66\x61\x78\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\x66\x61\x78\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\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\x46\x61\x78\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\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74"];_0xfe6b[0];const ReportFaxSession=require(_0xfe6b[1]);const User=require(_0xfe6b[3])[_0xfe6b[2]];const Util=require(_0xfe6b[4]);const _=require(_0xfe6b[5]);const Promise=require(_0xfe6b[6]);var events=[_0xfe6b[7],_0xfe6b[8]];exports[_0xfe6b[9]]= function(_0xfcc6x7){for(var _0xfcc6x8=0,_0xfcc6x9=events[_0xfe6b[10]];_0xfcc6x8< _0xfcc6x9;_0xfcc6x8++){var _0xfcc6xa=events[_0xfcc6x8];var _0xfcc6xb=createListener(_0xfe6b[11]+ _0xfcc6xa,_0xfcc6x7);ReportFaxSession[_0xfe6b[12]](_0xfcc6xa,_0xfcc6xb);_0xfcc6x7[_0xfe6b[12]](_0xfe6b[13],removeListener(_0xfcc6xa,_0xfcc6xb))}};function createListener(_0xfcc6xa,_0xfcc6x7){return function(_0xfcc6xd){switch(_0xfcc6xa){case _0xfe6b[25]:return Promise[_0xfe6b[24]]([])[_0xfe6b[23]](getFaxQueues(_0xfcc6x7))[_0xfe6b[23]](function(_0xfcc6xf){if(_0xfcc6x7[_0xfe6b[17]]=== _0xfe6b[18]|| _[_0xfe6b[20]](_0xfcc6xf[_0xfe6b[19]],_0xfcc6xd[_0xfe6b[19]])|| _[_0xfe6b[20]](_0xfcc6xf[_0xfe6b[21]],_0xfcc6xd[_0xfe6b[21]])){_0xfcc6x7[_0xfe6b[22]](_0xfcc6xa,_0xfcc6xd)}})[_0xfe6b[16]](function(_0xfcc6xe){console[_0xfe6b[15]](_0xfe6b[14],_0xfcc6xe)});case _0xfe6b[26]:_0xfcc6x7[_0xfe6b[22]](_0xfcc6xa,_0xfcc6xd);break;default:}}}function removeListener(_0xfcc6xa,_0xfcc6xb){return function(){ReportFaxSession[_0xfe6b[27]](_0xfcc6xa,_0xfcc6xb)}}function getFaxQueues(_0xfcc6x12){return function(){switch(_0xfcc6x12[_0xfe6b[17]]){case _0xfe6b[36]:return User[_0xfe6b[35]](_0xfcc6x12[_0xfe6b[34]],{attributes:[_0xfe6b[28]]})[_0xfe6b[23]](Util[_0xfe6b[33]]({},{attributes:[_0xfe6b[28]],include:[{raw:true,model:User,attributes:[_0xfe6b[28]]}]}))[_0xfe6b[23]](function(_0xfcc6x13){var _0xfcc6x14=[];_0xfcc6x13[_0xfe6b[32]][_0xfe6b[31]](function(_0xfcc6x15){_0xfcc6x14= _[_0xfe6b[30]](_0xfcc6x14,_[_0xfe6b[29]](_0xfcc6x15.Users,_0xfe6b[28]))});return {queue:_[_0xfe6b[29]](_0xfcc6x13[_0xfe6b[32]],_0xfe6b[28]),memberid:_0xfcc6x14}});case _0xfe6b[38]:return User[_0xfe6b[35]](_0xfcc6x12[_0xfe6b[34]],{attributes:[_0xfe6b[28]]})[_0xfe6b[23]](function(_0xfcc6x16){return _0xfcc6x16[_0xfe6b[37]]({attributes:[_0xfe6b[28]]})})[_0xfe6b[23]](function(_0xfcc6x13){return {queue:_[_0xfe6b[29]](_0xfcc6x13,_0xfe6b[28]),memberid:_0xfcc6x12[_0xfe6b[34]]}});default:return {}}}}
\ No newline at end of file
+var _0x753c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\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\x66\x61\x78\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\x66\x61\x78\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\x66\x61\x78\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\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\x46\x61\x78\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\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74"];_0x753c[0];const ReportFaxSession=require(_0x753c[1]);const User=require(_0x753c[3])[_0x753c[2]];const Util=require(_0x753c[4]);const _=require(_0x753c[5]);const Promise=require(_0x753c[6]);var events=[_0x753c[7],_0x753c[8]];exports[_0x753c[9]]= function(_0x4221x7){for(var _0x4221x8=0,_0x4221x9=events[_0x753c[10]];_0x4221x8< _0x4221x9;_0x4221x8++){var _0x4221xa=events[_0x4221x8];var _0x4221xb=createListener(_0x753c[11]+ _0x4221xa,_0x4221x7);ReportFaxSession[_0x753c[12]](_0x4221xa,_0x4221xb);_0x4221x7[_0x753c[12]](_0x753c[13],removeListener(_0x4221xa,_0x4221xb))}};function createListener(_0x4221xa,_0x4221x7){return function(_0x4221xd){switch(_0x4221xa){case _0x753c[25]:return Promise[_0x753c[24]]([])[_0x753c[23]](getFaxQueues(_0x4221x7))[_0x753c[23]](function(_0x4221xf){if(_0x4221x7[_0x753c[17]]=== _0x753c[18]|| _[_0x753c[20]](_0x4221xf[_0x753c[19]],_0x4221xd[_0x753c[19]])|| _[_0x753c[20]](_0x4221xf[_0x753c[21]],_0x4221xd[_0x753c[21]])){_0x4221x7[_0x753c[22]](_0x4221xa,_0x4221xd)}})[_0x753c[16]](function(_0x4221xe){console[_0x753c[15]](_0x753c[14],_0x4221xe)});case _0x753c[26]:_0x4221x7[_0x753c[22]](_0x4221xa,_0x4221xd);break;default:}}}function removeListener(_0x4221xa,_0x4221xb){return function(){ReportFaxSession[_0x753c[27]](_0x4221xa,_0x4221xb)}}function getFaxQueues(_0x4221x12){return function(){switch(_0x4221x12[_0x753c[17]]){case _0x753c[36]:return User[_0x753c[35]](_0x4221x12[_0x753c[34]],{attributes:[_0x753c[28]]})[_0x753c[23]](Util[_0x753c[33]]({},{attributes:[_0x753c[28]],include:[{raw:true,model:User,attributes:[_0x753c[28]]}]}))[_0x753c[23]](function(_0x4221x13){var _0x4221x14=[];_0x4221x13[_0x753c[32]][_0x753c[31]](function(_0x4221x15){_0x4221x14= _[_0x753c[30]](_0x4221x14,_[_0x753c[29]](_0x4221x15.Users,_0x753c[28]))});return {queue:_[_0x753c[29]](_0x4221x13[_0x753c[32]],_0x753c[28]),memberid:_0x4221x14}});case _0x753c[38]:return User[_0x753c[35]](_0x4221x12[_0x753c[34]],{attributes:[_0x753c[28]]})[_0x753c[23]](function(_0x4221x16){return _0x4221x16[_0x753c[37]]({attributes:[_0x753c[28]]})})[_0x753c[23]](function(_0x4221x13){return {queue:_[_0x753c[29]](_0x4221x13,_0x753c[28]),memberid:_0x4221x12[_0x753c[34]]}});default:return {}}}}
\ No newline at end of file