Built motion from commit dec9cf4.|0.0.134
[motion.git] / server / api / report_fax_session / report_fax_session.socket.js
index e4b17e5..c3366cf 100644 (file)
@@ -1 +1 @@
-var _0x3dfb=["\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"];_0x3dfb[0];const ReportFaxSession=require(_0x3dfb[1]);const User=require(_0x3dfb[3])[_0x3dfb[2]];const Util=require(_0x3dfb[4]);const _=require(_0x3dfb[5]);const Promise=require(_0x3dfb[6]);var events=[_0x3dfb[7],_0x3dfb[8]];exports[_0x3dfb[9]]= function(_0x8855x7){for(var _0x8855x8=0,_0x8855x9=events[_0x3dfb[10]];_0x8855x8< _0x8855x9;_0x8855x8++){var _0x8855xa=events[_0x8855x8];var _0x8855xb=createListener(_0x3dfb[11]+ _0x8855xa,_0x8855x7);ReportFaxSession[_0x3dfb[12]](_0x8855xa,_0x8855xb);_0x8855x7[_0x3dfb[12]](_0x3dfb[13],removeListener(_0x8855xa,_0x8855xb))}};function createListener(_0x8855xa,_0x8855x7){return function(_0x8855xd){switch(_0x8855xa){case _0x3dfb[25]:return Promise[_0x3dfb[24]]([])[_0x3dfb[23]](getFaxQueues(_0x8855x7))[_0x3dfb[23]](function(_0x8855xf){if(_0x8855x7[_0x3dfb[17]]=== _0x3dfb[18]|| _[_0x3dfb[20]](_0x8855xf[_0x3dfb[19]],_0x8855xd[_0x3dfb[19]])|| _[_0x3dfb[20]](_0x8855xf[_0x3dfb[21]],_0x8855xd[_0x3dfb[21]])){_0x8855x7[_0x3dfb[22]](_0x8855xa,_0x8855xd)}})[_0x3dfb[16]](function(_0x8855xe){console[_0x3dfb[15]](_0x3dfb[14],_0x8855xe)});case _0x3dfb[26]:_0x8855x7[_0x3dfb[22]](_0x8855xa,_0x8855xd);break;default:}}}function removeListener(_0x8855xa,_0x8855xb){return function(){ReportFaxSession[_0x3dfb[27]](_0x8855xa,_0x8855xb)}}function getFaxQueues(_0x8855x12){return function(){switch(_0x8855x12[_0x3dfb[17]]){case _0x3dfb[36]:return User[_0x3dfb[35]](_0x8855x12[_0x3dfb[34]],{attributes:[_0x3dfb[28]]})[_0x3dfb[23]](Util[_0x3dfb[33]]({},{attributes:[_0x3dfb[28]],include:[{raw:true,model:User,attributes:[_0x3dfb[28]]}]}))[_0x3dfb[23]](function(_0x8855x13){var _0x8855x14=[];_0x8855x13[_0x3dfb[32]][_0x3dfb[31]](function(_0x8855x15){_0x8855x14= _[_0x3dfb[30]](_0x8855x14,_[_0x3dfb[29]](_0x8855x15.Users,_0x3dfb[28]))});return {queue:_[_0x3dfb[29]](_0x8855x13[_0x3dfb[32]],_0x3dfb[28]),memberid:_0x8855x14}});case _0x3dfb[38]:return User[_0x3dfb[35]](_0x8855x12[_0x3dfb[34]],{attributes:[_0x3dfb[28]]})[_0x3dfb[23]](function(_0x8855x16){return _0x8855x16[_0x3dfb[37]]({attributes:[_0x3dfb[28]]})})[_0x3dfb[23]](function(_0x8855x13){return {queue:_[_0x3dfb[29]](_0x8855x13,_0x3dfb[28]),memberid:_0x8855x12[_0x3dfb[34]]}});default:return {}}}}
\ No newline at end of file
+var _0xa2af=["\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"];_0xa2af[0];const ReportFaxSession=require(_0xa2af[1]);const User=require(_0xa2af[3])[_0xa2af[2]];const Util=require(_0xa2af[4]);const _=require(_0xa2af[5]);const Promise=require(_0xa2af[6]);var events=[_0xa2af[7],_0xa2af[8]];exports[_0xa2af[9]]= function(_0x5aa1x7){for(var _0x5aa1x8=0,_0x5aa1x9=events[_0xa2af[10]];_0x5aa1x8< _0x5aa1x9;_0x5aa1x8++){var _0x5aa1xa=events[_0x5aa1x8];var _0x5aa1xb=createListener(_0xa2af[11]+ _0x5aa1xa,_0x5aa1x7);ReportFaxSession[_0xa2af[12]](_0x5aa1xa,_0x5aa1xb);_0x5aa1x7[_0xa2af[12]](_0xa2af[13],removeListener(_0x5aa1xa,_0x5aa1xb))}};function createListener(_0x5aa1xa,_0x5aa1x7){return function(_0x5aa1xd){switch(_0x5aa1xa){case _0xa2af[25]:return Promise[_0xa2af[24]]([])[_0xa2af[23]](getFaxQueues(_0x5aa1x7))[_0xa2af[23]](function(_0x5aa1xf){if(_0x5aa1x7[_0xa2af[17]]=== _0xa2af[18]|| _[_0xa2af[20]](_0x5aa1xf[_0xa2af[19]],_0x5aa1xd[_0xa2af[19]])|| _[_0xa2af[20]](_0x5aa1xf[_0xa2af[21]],_0x5aa1xd[_0xa2af[21]])){_0x5aa1x7[_0xa2af[22]](_0x5aa1xa,_0x5aa1xd)}})[_0xa2af[16]](function(_0x5aa1xe){console[_0xa2af[15]](_0xa2af[14],_0x5aa1xe)});case _0xa2af[26]:_0x5aa1x7[_0xa2af[22]](_0x5aa1xa,_0x5aa1xd);break;default:}}}function removeListener(_0x5aa1xa,_0x5aa1xb){return function(){ReportFaxSession[_0xa2af[27]](_0x5aa1xa,_0x5aa1xb)}}function getFaxQueues(_0x5aa1x12){return function(){switch(_0x5aa1x12[_0xa2af[17]]){case _0xa2af[36]:return User[_0xa2af[35]](_0x5aa1x12[_0xa2af[34]],{attributes:[_0xa2af[28]]})[_0xa2af[23]](Util[_0xa2af[33]]({},{attributes:[_0xa2af[28]],include:[{raw:true,model:User,attributes:[_0xa2af[28]]}]}))[_0xa2af[23]](function(_0x5aa1x13){var _0x5aa1x14=[];_0x5aa1x13[_0xa2af[32]][_0xa2af[31]](function(_0x5aa1x15){_0x5aa1x14= _[_0xa2af[30]](_0x5aa1x14,_[_0xa2af[29]](_0x5aa1x15.Users,_0xa2af[28]))});return {queue:_[_0xa2af[29]](_0x5aa1x13[_0xa2af[32]],_0xa2af[28]),memberid:_0x5aa1x14}});case _0xa2af[38]:return User[_0xa2af[35]](_0x5aa1x12[_0xa2af[34]],{attributes:[_0xa2af[28]]})[_0xa2af[23]](function(_0x5aa1x16){return _0x5aa1x16[_0xa2af[37]]({attributes:[_0xa2af[28]]})})[_0xa2af[23]](function(_0x5aa1x13){return {queue:_[_0xa2af[29]](_0x5aa1x13,_0xa2af[28]),memberid:_0x5aa1x12[_0xa2af[34]]}});default:return {}}}}
\ No newline at end of file