Built motion from commit 12b39f1.|0.0.105
[motion.git] / server / api / report_fax_session / report_fax_session.socket.js
index 8bc8416..9c776b7 100644 (file)
@@ -1 +1 @@
-var _0x61e0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\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","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\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","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\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\x72\x65\x6D\x6F\x76\x65","\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"];_0x61e0[0];var ReportFaxSession=require(_0x61e0[2])[_0x61e0[1]];var User=require(_0x61e0[2])[_0x61e0[3]];var Util=require(_0x61e0[4]);var _=require(_0x61e0[5]);var Promise=require(_0x61e0[6]);exports[_0x61e0[7]]=function(_0xc92ax6){ReportFaxSession[_0x61e0[8]](function(_0xc92ax7){onSave(_0xc92ax6,_0xc92ax7)});ReportFaxSession[_0x61e0[9]](function(_0xc92ax7){onSave(_0xc92ax6,_0xc92ax7)});ReportFaxSession[_0x61e0[10]](function(_0xc92ax7){onRemove(_0xc92ax6,_0xc92ax7)})};function onSave(_0xc92ax6,_0xc92ax7,_0xc92ax9){return Promise[_0x61e0[22]]([])[_0x61e0[21]](getFaxQueues(_0xc92ax6))[_0x61e0[21]](function(_0xc92axb){if(_0xc92ax6[_0x61e0[14]]===_0x61e0[15]||_[_0x61e0[17]](_0xc92axb[_0x61e0[16]],_0xc92ax7[_0x61e0[16]])||_[_0x61e0[17]](_0xc92axb[_0x61e0[18]],_0xc92ax7[_0x61e0[18]])){_0xc92ax6[_0x61e0[20]](_0x61e0[19],_0xc92ax7)}})[_0x61e0[13]](function(_0xc92axa){console[_0x61e0[12]](_0x61e0[11],_0xc92axa)})}function onRemove(_0xc92ax6,_0xc92ax7,_0xc92ax9){_0xc92ax6[_0x61e0[20]](_0x61e0[23],_0xc92ax7)}function getFaxQueues(_0xc92axe){return function(){switch(_0xc92axe[_0x61e0[14]]){case _0x61e0[32]:return User[_0x61e0[31]](_0xc92axe[_0x61e0[30]],{attributes:[_0x61e0[24]]})[_0x61e0[21]](Util[_0x61e0[29]]({},{attributes:[_0x61e0[24]],include:[{raw:true,model:User,attributes:[_0x61e0[24]]}]}))[_0x61e0[21]](function(_0xc92axf){var _0xc92ax10=[];_0xc92axf[_0x61e0[28]][_0x61e0[27]](function(_0xc92ax11){_0xc92ax10=_[_0x61e0[26]](_0xc92ax10,_[_0x61e0[25]](_0xc92ax11.Users,_0x61e0[24]))});return {queue:_[_0x61e0[25]](_0xc92axf[_0x61e0[28]],_0x61e0[24]),memberid:_0xc92ax10}});case _0x61e0[34]:return User[_0x61e0[31]](_0xc92axe[_0x61e0[30]],{attributes:[_0x61e0[24]]})[_0x61e0[21]](function(_0xc92ax12){return _0xc92ax12[_0x61e0[33]]({attributes:[_0x61e0[24]]})})[_0x61e0[21]](function(_0xc92axf){return {queue:_[_0x61e0[25]](_0xc92axf,_0x61e0[24]),memberid:_0xc92axe[_0x61e0[30]]}});default:return {}}}}
\ No newline at end of file
+var _0xec19=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\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","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\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","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\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\x72\x65\x6D\x6F\x76\x65","\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"];_0xec19[0];var ReportFaxSession=require(_0xec19[2])[_0xec19[1]];var User=require(_0xec19[2])[_0xec19[3]];var Util=require(_0xec19[4]);var _=require(_0xec19[5]);var Promise=require(_0xec19[6]);exports[_0xec19[7]]=function(_0xeb6bx6){ReportFaxSession[_0xec19[8]](function(_0xeb6bx7){onSave(_0xeb6bx6,_0xeb6bx7)});ReportFaxSession[_0xec19[9]](function(_0xeb6bx7){onSave(_0xeb6bx6,_0xeb6bx7)});ReportFaxSession[_0xec19[10]](function(_0xeb6bx7){onRemove(_0xeb6bx6,_0xeb6bx7)})};function onSave(_0xeb6bx6,_0xeb6bx7,_0xeb6bx9){return Promise[_0xec19[22]]([])[_0xec19[21]](getFaxQueues(_0xeb6bx6))[_0xec19[21]](function(_0xeb6bxb){if(_0xeb6bx6[_0xec19[14]]===_0xec19[15]||_[_0xec19[17]](_0xeb6bxb[_0xec19[16]],_0xeb6bx7[_0xec19[16]])||_[_0xec19[17]](_0xeb6bxb[_0xec19[18]],_0xeb6bx7[_0xec19[18]])){_0xeb6bx6[_0xec19[20]](_0xec19[19],_0xeb6bx7)}})[_0xec19[13]](function(_0xeb6bxa){console[_0xec19[12]](_0xec19[11],_0xeb6bxa)})}function onRemove(_0xeb6bx6,_0xeb6bx7,_0xeb6bx9){_0xeb6bx6[_0xec19[20]](_0xec19[23],_0xeb6bx7)}function getFaxQueues(_0xeb6bxe){return function(){switch(_0xeb6bxe[_0xec19[14]]){case _0xec19[32]:return User[_0xec19[31]](_0xeb6bxe[_0xec19[30]],{attributes:[_0xec19[24]]})[_0xec19[21]](Util[_0xec19[29]]({},{attributes:[_0xec19[24]],include:[{raw:true,model:User,attributes:[_0xec19[24]]}]}))[_0xec19[21]](function(_0xeb6bxf){var _0xeb6bx10=[];_0xeb6bxf[_0xec19[28]][_0xec19[27]](function(_0xeb6bx11){_0xeb6bx10=_[_0xec19[26]](_0xeb6bx10,_[_0xec19[25]](_0xeb6bx11.Users,_0xec19[24]))});return {queue:_[_0xec19[25]](_0xeb6bxf[_0xec19[28]],_0xec19[24]),memberid:_0xeb6bx10}});case _0xec19[34]:return User[_0xec19[31]](_0xeb6bxe[_0xec19[30]],{attributes:[_0xec19[24]]})[_0xec19[21]](function(_0xeb6bx12){return _0xeb6bx12[_0xec19[33]]({attributes:[_0xec19[24]]})})[_0xec19[21]](function(_0xeb6bxf){return {queue:_[_0xec19[25]](_0xeb6bxf,_0xec19[24]),memberid:_0xeb6bxe[_0xec19[30]]}});default:return {}}}}
\ No newline at end of file