Built motion from commit dbc832960.|1.0.25
[motion.git] / server / api / report_fax_session / report_fax_session.socket.js
index a03273b..d46bd02 100644 (file)
@@ -1 +1 @@
-var _0xff2d=["\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"];_0xff2d[0];const ReportFaxSession=require(_0xff2d[1]);const User=require(_0xff2d[3])[_0xff2d[2]];const Util=require(_0xff2d[4]);const _=require(_0xff2d[5]);const Promise=require(_0xff2d[6]);var events=[_0xff2d[7],_0xff2d[8]];exports[_0xff2d[9]]= function(_0xabf0x7){for(var _0xabf0x8=0,_0xabf0x9=events[_0xff2d[10]];_0xabf0x8< _0xabf0x9;_0xabf0x8++){var _0xabf0xa=events[_0xabf0x8];var _0xabf0xb=createListener(_0xff2d[11]+ _0xabf0xa,_0xabf0x7);ReportFaxSession[_0xff2d[12]](_0xabf0xa,_0xabf0xb);_0xabf0x7[_0xff2d[12]](_0xff2d[13],removeListener(_0xabf0xa,_0xabf0xb))}};function createListener(_0xabf0xa,_0xabf0x7){return function(_0xabf0xd){switch(_0xabf0xa){case _0xff2d[25]:return Promise[_0xff2d[24]]([])[_0xff2d[23]](getFaxQueues(_0xabf0x7))[_0xff2d[23]](function(_0xabf0xf){if(_0xabf0x7[_0xff2d[17]]=== _0xff2d[18]|| _[_0xff2d[20]](_0xabf0xf[_0xff2d[19]],_0xabf0xd[_0xff2d[19]])|| _[_0xff2d[20]](_0xabf0xf[_0xff2d[21]],_0xabf0xd[_0xff2d[21]])){_0xabf0x7[_0xff2d[22]](_0xabf0xa,_0xabf0xd)}})[_0xff2d[16]](function(_0xabf0xe){console[_0xff2d[15]](_0xff2d[14],_0xabf0xe)});case _0xff2d[26]:_0xabf0x7[_0xff2d[22]](_0xabf0xa,_0xabf0xd);break;default:}}}function removeListener(_0xabf0xa,_0xabf0xb){return function(){ReportFaxSession[_0xff2d[27]](_0xabf0xa,_0xabf0xb)}}function getFaxQueues(_0xabf0x12){return function(){switch(_0xabf0x12[_0xff2d[17]]){case _0xff2d[36]:return User[_0xff2d[35]](_0xabf0x12[_0xff2d[34]],{attributes:[_0xff2d[28]]})[_0xff2d[23]](Util[_0xff2d[33]]({},{attributes:[_0xff2d[28]],include:[{raw:true,model:User,attributes:[_0xff2d[28]]}]}))[_0xff2d[23]](function(_0xabf0x13){var _0xabf0x14=[];_0xabf0x13[_0xff2d[32]][_0xff2d[31]](function(_0xabf0x15){_0xabf0x14= _[_0xff2d[30]](_0xabf0x14,_[_0xff2d[29]](_0xabf0x15.Users,_0xff2d[28]))});return {queue:_[_0xff2d[29]](_0xabf0x13[_0xff2d[32]],_0xff2d[28]),memberid:_0xabf0x14}});case _0xff2d[38]:return User[_0xff2d[35]](_0xabf0x12[_0xff2d[34]],{attributes:[_0xff2d[28]]})[_0xff2d[23]](function(_0xabf0x16){return _0xabf0x16[_0xff2d[37]]({attributes:[_0xff2d[28]]})})[_0xff2d[23]](function(_0xabf0x13){return {queue:_[_0xff2d[29]](_0xabf0x13,_0xff2d[28]),memberid:_0xabf0x12[_0xff2d[34]]}});default:return {}}}}
\ No newline at end of file
+var _0xcf29=["\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"];_0xcf29[0];const ReportFaxSession=require(_0xcf29[1]);const User=require(_0xcf29[3])[_0xcf29[2]];const Util=require(_0xcf29[4]);const _=require(_0xcf29[5]);const Promise=require(_0xcf29[6]);var events=[_0xcf29[7],_0xcf29[8]];exports[_0xcf29[9]]= function(_0x3385x7){for(var _0x3385x8=0,_0x3385x9=events[_0xcf29[10]];_0x3385x8< _0x3385x9;_0x3385x8++){var _0x3385xa=events[_0x3385x8];var _0x3385xb=createListener(_0xcf29[11]+ _0x3385xa,_0x3385x7);ReportFaxSession[_0xcf29[12]](_0x3385xa,_0x3385xb);_0x3385x7[_0xcf29[12]](_0xcf29[13],removeListener(_0x3385xa,_0x3385xb))}};function createListener(_0x3385xa,_0x3385x7){return function(_0x3385xd){switch(_0x3385xa){case _0xcf29[25]:return Promise[_0xcf29[24]]([])[_0xcf29[23]](getFaxQueues(_0x3385x7))[_0xcf29[23]](function(_0x3385xf){if(_0x3385x7[_0xcf29[17]]=== _0xcf29[18]|| _[_0xcf29[20]](_0x3385xf[_0xcf29[19]],_0x3385xd[_0xcf29[19]])|| _[_0xcf29[20]](_0x3385xf[_0xcf29[21]],_0x3385xd[_0xcf29[21]])){_0x3385x7[_0xcf29[22]](_0x3385xa,_0x3385xd)}})[_0xcf29[16]](function(_0x3385xe){console[_0xcf29[15]](_0xcf29[14],_0x3385xe)});case _0xcf29[26]:_0x3385x7[_0xcf29[22]](_0x3385xa,_0x3385xd);break;default:}}}function removeListener(_0x3385xa,_0x3385xb){return function(){ReportFaxSession[_0xcf29[27]](_0x3385xa,_0x3385xb)}}function getFaxQueues(_0x3385x12){return function(){switch(_0x3385x12[_0xcf29[17]]){case _0xcf29[36]:return User[_0xcf29[35]](_0x3385x12[_0xcf29[34]],{attributes:[_0xcf29[28]]})[_0xcf29[23]](Util[_0xcf29[33]]({},{attributes:[_0xcf29[28]],include:[{raw:true,model:User,attributes:[_0xcf29[28]]}]}))[_0xcf29[23]](function(_0x3385x13){var _0x3385x14=[];_0x3385x13[_0xcf29[32]][_0xcf29[31]](function(_0x3385x15){_0x3385x14= _[_0xcf29[30]](_0x3385x14,_[_0xcf29[29]](_0x3385x15.Users,_0xcf29[28]))});return {queue:_[_0xcf29[29]](_0x3385x13[_0xcf29[32]],_0xcf29[28]),memberid:_0x3385x14}});case _0xcf29[38]:return User[_0xcf29[35]](_0x3385x12[_0xcf29[34]],{attributes:[_0xcf29[28]]})[_0xcf29[23]](function(_0x3385x16){return _0x3385x16[_0xcf29[37]]({attributes:[_0xcf29[28]]})})[_0xcf29[23]](function(_0x3385x13){return {queue:_[_0xcf29[29]](_0x3385x13,_0xcf29[28]),memberid:_0x3385x12[_0xcf29[34]]}});default:return {}}}}
\ No newline at end of file