Built motion from commit ab2cbc7.|0.0.98
[motion.git] / server / api / report_fax_room / report_fax_room.controller.js
index 5d24c88..30b491d 100644 (file)
@@ -1 +1 @@
-var _0xe7e0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x52\x6F\x6F\x6D\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x55\x73\x65\x72","\x46\x61\x78\x51\x75\x65\x75\x65","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\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","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x72\x6F\x6C\x65","\x6F\x70\x65\x6E","\x63\x61\x74\x63\x68","\x4F\x50\x45\x4E","\x6D\x65\x72\x67\x65","\x63\x6F\x75\x6E\x74","\x61\x6C\x6C","\x63\x6C\x6F\x73\x65\x64","\x43\x4C\x4F\x53\x45\x44","\x6E\x65\x77","\x4E\x45\x57","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x69\x6E\x64\x65\x78","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0xe7e0[0];var _=require(_0xe7e0[1]);var Util=require(_0xe7e0[2]);var ReportFaxRoom=require(_0xe7e0[4])[_0xe7e0[3]];var ReportFaxRoomHistory=require(_0xe7e0[4])[_0xe7e0[6]][_0xe7e0[5]];var User=require(_0xe7e0[4])[_0xe7e0[7]];var FaxQueue=require(_0xe7e0[4])[_0xe7e0[8]];function handleError(_0xc0c9x8,_0xc0c9x9){_0xc0c9x9=_0xc0c9x9||500;return function(_0xc0c9xa){_0xc0c9x8[_0xe7e0[10]](_0xc0c9x9)[_0xe7e0[9]](_0xc0c9xa)}}function responseWithResult(_0xc0c9x8,_0xc0c9x9){_0xc0c9x9=_0xc0c9x9||200;return function(_0xc0c9xc){if(_0xc0c9xc){_0xc0c9x8[_0xe7e0[10]](_0xc0c9x9)[_0xe7e0[11]](_0xc0c9xc)}}}function responseWithoutResult(_0xc0c9x8,_0xc0c9x9){_0xc0c9x9=_0xc0c9x9||204;return function(){_0xc0c9x8[_0xe7e0[12]](_0xc0c9x9)}}function handleEntityNotFound(_0xc0c9x8){return function(_0xc0c9xc){if(!_0xc0c9xc){_0xc0c9x8[_0xe7e0[10]](404)[_0xe7e0[13]]();return null};return _0xc0c9xc}}function saveUpdates(_0xc0c9x10){return function(_0xc0c9xc){return _0xc0c9xc[_0xe7e0[15]](_0xc0c9x10)[_0xe7e0[14]](function(_0xc0c9x11){return _0xc0c9x11})}}function removeEntity(_0xc0c9x8){return function(_0xc0c9xc){if(_0xc0c9xc){return _0xc0c9xc[_0xe7e0[16]]()[_0xe7e0[14]](function(){_0xc0c9x8[_0xe7e0[10]](204)[_0xe7e0[13]]()})}}}function getFaxQueues(_0xc0c9x14){return function(){switch(_0xc0c9x14[_0xe7e0[25]]){case _0xe7e0[24]:return User[_0xe7e0[23]](_0xc0c9x14[_0xe7e0[17]],{attributes:[_0xe7e0[17]]})[_0xe7e0[14]](Util[_0xe7e0[22]]({},{attributes:[_0xe7e0[17]],include:[{raw:true,model:User,attributes:[_0xe7e0[17]]}]}))[_0xe7e0[14]](function(_0xc0c9x15){var _0xc0c9x16=[];_0xc0c9x15[_0xe7e0[21]][_0xe7e0[20]](function(_0xc0c9x17){_0xc0c9x16=_[_0xe7e0[19]](_0xc0c9x16,_[_0xe7e0[18]](_0xc0c9x17.Users,_0xe7e0[17]))});return {where:{$or:{queue:_[_0xe7e0[18]](_0xc0c9x15[_0xe7e0[21]],_0xe7e0[17]),memberid:_0xc0c9x16}}}});default:return {}}}}exports[_0xe7e0[26]]=function(_0xc0c9x18,_0xc0c9x8){return Promise[_0xe7e0[31]]([])[_0xe7e0[14]](getFaxQueues(_0xc0c9x18[_0xe7e0[24]]))[_0xe7e0[14]](function(_0xc0c9x1a){return ReportFaxRoom[_0xe7e0[30]](_[_0xe7e0[29]]({where:{status:_0xe7e0[28]}},_0xc0c9x1a))})[_0xe7e0[14]](function(_0xc0c9x19){return _0xc0c9x8[_0xe7e0[10]](200)[_0xe7e0[9]]({value:_0xc0c9x19})})[_0xe7e0[27]](handleError(_0xc0c9x8))};exports[_0xe7e0[32]]=function(_0xc0c9x18,_0xc0c9x8){return Promise[_0xe7e0[31]]([])[_0xe7e0[14]](getFaxQueues(_0xc0c9x18[_0xe7e0[24]]))[_0xe7e0[14]](function(_0xc0c9x1a){return ReportFaxRoom[_0xe7e0[30]](_[_0xe7e0[29]]({where:{status:_0xe7e0[33]}},_0xc0c9x1a))})[_0xe7e0[14]](function(_0xc0c9x19){return _0xc0c9x8[_0xe7e0[10]](200)[_0xe7e0[9]]({value:_0xc0c9x19})})[_0xe7e0[27]](handleError(_0xc0c9x8))};exports[_0xe7e0[34]]=function(_0xc0c9x18,_0xc0c9x8){return Promise[_0xe7e0[31]]([])[_0xe7e0[14]](getFaxQueues(_0xc0c9x18[_0xe7e0[24]]))[_0xe7e0[14]](function(_0xc0c9x1a){return ReportFaxRoom[_0xe7e0[30]](_[_0xe7e0[29]]({where:{status:_0xe7e0[35]}},_0xc0c9x1a))})[_0xe7e0[14]](function(_0xc0c9x19){return _0xc0c9x8[_0xe7e0[10]](200)[_0xe7e0[9]]({value:_0xc0c9x19})})[_0xe7e0[27]](handleError(_0xc0c9x8))};exports[_0xe7e0[36]]=function(_0xc0c9x18,_0xc0c9x8){return Promise[_0xe7e0[31]]([])[_0xe7e0[14]](getFaxQueues(_0xc0c9x18[_0xe7e0[24]]))[_0xe7e0[14]](function(_0xc0c9x1a){return ReportFaxRoom[_0xe7e0[30]](_[_0xe7e0[29]]({where:{status:_0xe7e0[37]}},_0xc0c9x1a))})[_0xe7e0[14]](function(_0xc0c9x19){return _0xc0c9x8[_0xe7e0[10]](200)[_0xe7e0[9]]({value:_0xc0c9x19})})[_0xe7e0[27]](handleError(_0xc0c9x8))};exports[_0xe7e0[38]]=function(_0xc0c9x18,_0xc0c9x8,_0xc0c9x1b){return ReportFaxRoom[_0xe7e0[41]](Util[_0xe7e0[40]](_0xc0c9x18[_0xe7e0[39]]))[_0xe7e0[14]](function(_0xc0c9x1c){return _0xc0c9x8[_0xe7e0[10]](200)[_0xe7e0[9]](_0xc0c9x1c)})[_0xe7e0[27]](handleError(_0xc0c9x8))};exports[_0xe7e0[42]]=function(_0xc0c9x18,_0xc0c9x8){return ReportFaxRoomHistory[_0xe7e0[42]]()[_0xe7e0[14]](responseWithResult(_0xc0c9x8))[_0xe7e0[27]](handleError(_0xc0c9x8))}
\ No newline at end of file
+var _0xd8f6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x52\x6F\x6F\x6D\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x55\x73\x65\x72","\x46\x61\x78\x51\x75\x65\x75\x65","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\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","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x72\x6F\x6C\x65","\x6F\x70\x65\x6E","\x63\x61\x74\x63\x68","\x4F\x50\x45\x4E","\x6D\x65\x72\x67\x65","\x63\x6F\x75\x6E\x74","\x61\x6C\x6C","\x63\x6C\x6F\x73\x65\x64","\x43\x4C\x4F\x53\x45\x44","\x6E\x65\x77","\x4E\x45\x57","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x69\x6E\x64\x65\x78","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0xd8f6[0];var _=require(_0xd8f6[1]);var Util=require(_0xd8f6[2]);var ReportFaxRoom=require(_0xd8f6[4])[_0xd8f6[3]];var ReportFaxRoomHistory=require(_0xd8f6[4])[_0xd8f6[6]][_0xd8f6[5]];var User=require(_0xd8f6[4])[_0xd8f6[7]];var FaxQueue=require(_0xd8f6[4])[_0xd8f6[8]];function handleError(_0xa477x8,_0xa477x9){_0xa477x9=_0xa477x9||500;return function(_0xa477xa){_0xa477x8[_0xd8f6[10]](_0xa477x9)[_0xd8f6[9]](_0xa477xa)}}function responseWithResult(_0xa477x8,_0xa477x9){_0xa477x9=_0xa477x9||200;return function(_0xa477xc){if(_0xa477xc){_0xa477x8[_0xd8f6[10]](_0xa477x9)[_0xd8f6[11]](_0xa477xc)}}}function responseWithoutResult(_0xa477x8,_0xa477x9){_0xa477x9=_0xa477x9||204;return function(){_0xa477x8[_0xd8f6[12]](_0xa477x9)}}function handleEntityNotFound(_0xa477x8){return function(_0xa477xc){if(!_0xa477xc){_0xa477x8[_0xd8f6[10]](404)[_0xd8f6[13]]();return null};return _0xa477xc}}function saveUpdates(_0xa477x10){return function(_0xa477xc){return _0xa477xc[_0xd8f6[15]](_0xa477x10)[_0xd8f6[14]](function(_0xa477x11){return _0xa477x11})}}function removeEntity(_0xa477x8){return function(_0xa477xc){if(_0xa477xc){return _0xa477xc[_0xd8f6[16]]()[_0xd8f6[14]](function(){_0xa477x8[_0xd8f6[10]](204)[_0xd8f6[13]]()})}}}function getFaxQueues(_0xa477x14){return function(){switch(_0xa477x14[_0xd8f6[25]]){case _0xd8f6[24]:return User[_0xd8f6[23]](_0xa477x14[_0xd8f6[17]],{attributes:[_0xd8f6[17]]})[_0xd8f6[14]](Util[_0xd8f6[22]]({},{attributes:[_0xd8f6[17]],include:[{raw:true,model:User,attributes:[_0xd8f6[17]]}]}))[_0xd8f6[14]](function(_0xa477x15){var _0xa477x16=[];_0xa477x15[_0xd8f6[21]][_0xd8f6[20]](function(_0xa477x17){_0xa477x16=_[_0xd8f6[19]](_0xa477x16,_[_0xd8f6[18]](_0xa477x17.Users,_0xd8f6[17]))});return {where:{$or:{queue:_[_0xd8f6[18]](_0xa477x15[_0xd8f6[21]],_0xd8f6[17]),memberid:_0xa477x16}}}});default:return {}}}}exports[_0xd8f6[26]]=function(_0xa477x18,_0xa477x8){return Promise[_0xd8f6[31]]([])[_0xd8f6[14]](getFaxQueues(_0xa477x18[_0xd8f6[24]]))[_0xd8f6[14]](function(_0xa477x1a){return ReportFaxRoom[_0xd8f6[30]](_[_0xd8f6[29]]({where:{status:_0xd8f6[28]}},_0xa477x1a))})[_0xd8f6[14]](function(_0xa477x19){return _0xa477x8[_0xd8f6[10]](200)[_0xd8f6[9]]({value:_0xa477x19})})[_0xd8f6[27]](handleError(_0xa477x8))};exports[_0xd8f6[32]]=function(_0xa477x18,_0xa477x8){return Promise[_0xd8f6[31]]([])[_0xd8f6[14]](getFaxQueues(_0xa477x18[_0xd8f6[24]]))[_0xd8f6[14]](function(_0xa477x1a){return ReportFaxRoom[_0xd8f6[30]](_[_0xd8f6[29]]({where:{status:_0xd8f6[33]}},_0xa477x1a))})[_0xd8f6[14]](function(_0xa477x19){return _0xa477x8[_0xd8f6[10]](200)[_0xd8f6[9]]({value:_0xa477x19})})[_0xd8f6[27]](handleError(_0xa477x8))};exports[_0xd8f6[34]]=function(_0xa477x18,_0xa477x8){return Promise[_0xd8f6[31]]([])[_0xd8f6[14]](getFaxQueues(_0xa477x18[_0xd8f6[24]]))[_0xd8f6[14]](function(_0xa477x1a){return ReportFaxRoom[_0xd8f6[30]](_[_0xd8f6[29]]({where:{status:_0xd8f6[35]}},_0xa477x1a))})[_0xd8f6[14]](function(_0xa477x19){return _0xa477x8[_0xd8f6[10]](200)[_0xd8f6[9]]({value:_0xa477x19})})[_0xd8f6[27]](handleError(_0xa477x8))};exports[_0xd8f6[36]]=function(_0xa477x18,_0xa477x8){return Promise[_0xd8f6[31]]([])[_0xd8f6[14]](getFaxQueues(_0xa477x18[_0xd8f6[24]]))[_0xd8f6[14]](function(_0xa477x1a){return ReportFaxRoom[_0xd8f6[30]](_[_0xd8f6[29]]({where:{status:_0xd8f6[37]}},_0xa477x1a))})[_0xd8f6[14]](function(_0xa477x19){return _0xa477x8[_0xd8f6[10]](200)[_0xd8f6[9]]({value:_0xa477x19})})[_0xd8f6[27]](handleError(_0xa477x8))};exports[_0xd8f6[38]]=function(_0xa477x18,_0xa477x8,_0xa477x1b){return ReportFaxRoom[_0xd8f6[41]](Util[_0xd8f6[40]](_0xa477x18[_0xd8f6[39]]))[_0xd8f6[14]](function(_0xa477x1c){return _0xa477x8[_0xd8f6[10]](200)[_0xd8f6[9]](_0xa477x1c)})[_0xd8f6[27]](handleError(_0xa477x8))};exports[_0xd8f6[42]]=function(_0xa477x18,_0xa477x8){return ReportFaxRoomHistory[_0xd8f6[42]]()[_0xd8f6[14]](responseWithResult(_0xa477x8))[_0xd8f6[27]](handleError(_0xa477x8))}
\ No newline at end of file