Built motion from commit 5b01f56.|0.0.106
[motion.git] / server / api / report_fax_room / report_fax_room.controller.js
index fe81b26..8a9fe14 100644 (file)
@@ -1 +1 @@
-var _0x75b6=["\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","\x46\x61\x78\x52\x6F\x6F\x6D","\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"];_0x75b6[0];var _=require(_0x75b6[1]);var Util=require(_0x75b6[2]);var ReportFaxRoom=require(_0x75b6[4])[_0x75b6[3]];var FaxRoom=require(_0x75b6[4])[_0x75b6[5]];var ReportFaxRoomHistory=require(_0x75b6[4])[_0x75b6[7]][_0x75b6[6]];var User=require(_0x75b6[4])[_0x75b6[8]];var FaxQueue=require(_0x75b6[4])[_0x75b6[9]];function handleError(_0xfcd9x9,_0xfcd9xa){_0xfcd9xa=_0xfcd9xa||500;return function(_0xfcd9xb){_0xfcd9x9[_0x75b6[11]](_0xfcd9xa)[_0x75b6[10]](_0xfcd9xb)}}function responseWithResult(_0xfcd9x9,_0xfcd9xa){_0xfcd9xa=_0xfcd9xa||200;return function(_0xfcd9xd){if(_0xfcd9xd){_0xfcd9x9[_0x75b6[11]](_0xfcd9xa)[_0x75b6[12]](_0xfcd9xd)}}}function responseWithoutResult(_0xfcd9x9,_0xfcd9xa){_0xfcd9xa=_0xfcd9xa||204;return function(){_0xfcd9x9[_0x75b6[13]](_0xfcd9xa)}}function handleEntityNotFound(_0xfcd9x9){return function(_0xfcd9xd){if(!_0xfcd9xd){_0xfcd9x9[_0x75b6[11]](404)[_0x75b6[14]]();return null};return _0xfcd9xd}}function saveUpdates(_0xfcd9x11){return function(_0xfcd9xd){return _0xfcd9xd[_0x75b6[16]](_0xfcd9x11)[_0x75b6[15]](function(_0xfcd9x12){return _0xfcd9x12})}}function removeEntity(_0xfcd9x9){return function(_0xfcd9xd){if(_0xfcd9xd){return _0xfcd9xd[_0x75b6[17]]()[_0x75b6[15]](function(){_0xfcd9x9[_0x75b6[11]](204)[_0x75b6[14]]()})}}}function getFaxQueues(_0xfcd9x15){return function(){switch(_0xfcd9x15[_0x75b6[26]]){case _0x75b6[25]:return User[_0x75b6[24]](_0xfcd9x15[_0x75b6[18]],{attributes:[_0x75b6[18]]})[_0x75b6[15]](Util[_0x75b6[23]]({},{attributes:[_0x75b6[18]],include:[{raw:true,model:User,attributes:[_0x75b6[18]]}]}))[_0x75b6[15]](function(_0xfcd9x16){var _0xfcd9x17=[];_0xfcd9x16[_0x75b6[22]][_0x75b6[21]](function(_0xfcd9x18){_0xfcd9x17=_[_0x75b6[20]](_0xfcd9x17,_[_0x75b6[19]](_0xfcd9x18.Users,_0x75b6[18]))});return {where:{$or:{queue:_[_0x75b6[19]](_0xfcd9x16[_0x75b6[22]],_0x75b6[18]),memberid:_0xfcd9x17}}}});default:return {}}}}exports[_0x75b6[27]]=function(_0xfcd9x19,_0xfcd9x9){return Promise[_0x75b6[32]]([])[_0x75b6[15]](getFaxQueues(_0xfcd9x19[_0x75b6[25]]))[_0x75b6[15]](function(_0xfcd9x1b){return FaxRoom[_0x75b6[31]](_[_0x75b6[30]]({where:{status:_0x75b6[29]}},_0xfcd9x1b))})[_0x75b6[15]](function(_0xfcd9x1a){return _0xfcd9x9[_0x75b6[11]](200)[_0x75b6[10]]({value:_0xfcd9x1a})})[_0x75b6[28]](handleError(_0xfcd9x9))};exports[_0x75b6[33]]=function(_0xfcd9x19,_0xfcd9x9){return Promise[_0x75b6[32]]([])[_0x75b6[15]](getFaxQueues(_0xfcd9x19[_0x75b6[25]]))[_0x75b6[15]](function(_0xfcd9x1b){return FaxRoom[_0x75b6[31]](_[_0x75b6[30]]({where:{status:_0x75b6[34]}},_0xfcd9x1b))})[_0x75b6[15]](function(_0xfcd9x1a){return _0xfcd9x9[_0x75b6[11]](200)[_0x75b6[10]]({value:_0xfcd9x1a})})[_0x75b6[28]](handleError(_0xfcd9x9))};exports[_0x75b6[35]]=function(_0xfcd9x19,_0xfcd9x9){return Promise[_0x75b6[32]]([])[_0x75b6[15]](getFaxQueues(_0xfcd9x19[_0x75b6[25]]))[_0x75b6[15]](function(_0xfcd9x1b){return FaxRoom[_0x75b6[31]](_[_0x75b6[30]]({where:{status:_0x75b6[36]}},_0xfcd9x1b))})[_0x75b6[15]](function(_0xfcd9x1a){return _0xfcd9x9[_0x75b6[11]](200)[_0x75b6[10]]({value:_0xfcd9x1a})})[_0x75b6[28]](handleError(_0xfcd9x9))};exports[_0x75b6[37]]=function(_0xfcd9x19,_0xfcd9x9){return Promise[_0x75b6[32]]([])[_0x75b6[15]](getFaxQueues(_0xfcd9x19[_0x75b6[25]]))[_0x75b6[15]](function(_0xfcd9x1b){return FaxRoom[_0x75b6[31]](_[_0x75b6[30]]({where:{status:_0x75b6[38]}},_0xfcd9x1b))})[_0x75b6[15]](function(_0xfcd9x1a){return _0xfcd9x9[_0x75b6[11]](200)[_0x75b6[10]]({value:_0xfcd9x1a})})[_0x75b6[28]](handleError(_0xfcd9x9))};exports[_0x75b6[39]]=function(_0xfcd9x19,_0xfcd9x9,_0xfcd9x1c){return ReportFaxRoom[_0x75b6[42]](Util[_0x75b6[41]](_0xfcd9x19[_0x75b6[40]]))[_0x75b6[15]](function(_0xfcd9x1d){return _0xfcd9x9[_0x75b6[11]](200)[_0x75b6[10]](_0xfcd9x1d)})[_0x75b6[28]](handleError(_0xfcd9x9))};exports[_0x75b6[43]]=function(_0xfcd9x19,_0xfcd9x9){return ReportFaxRoomHistory[_0x75b6[43]]()[_0x75b6[15]](responseWithResult(_0xfcd9x9))[_0x75b6[28]](handleError(_0xfcd9x9))}
\ No newline at end of file
+var _0x808e=["\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","\x46\x61\x78\x52\x6F\x6F\x6D","\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"];_0x808e[0];var _=require(_0x808e[1]);var Util=require(_0x808e[2]);var ReportFaxRoom=require(_0x808e[4])[_0x808e[3]];var FaxRoom=require(_0x808e[4])[_0x808e[5]];var ReportFaxRoomHistory=require(_0x808e[4])[_0x808e[7]][_0x808e[6]];var User=require(_0x808e[4])[_0x808e[8]];var FaxQueue=require(_0x808e[4])[_0x808e[9]];function handleError(_0x8017x9,_0x8017xa){_0x8017xa=_0x8017xa||500;return function(_0x8017xb){_0x8017x9[_0x808e[11]](_0x8017xa)[_0x808e[10]](_0x8017xb)}}function responseWithResult(_0x8017x9,_0x8017xa){_0x8017xa=_0x8017xa||200;return function(_0x8017xd){if(_0x8017xd){_0x8017x9[_0x808e[11]](_0x8017xa)[_0x808e[12]](_0x8017xd)}}}function responseWithoutResult(_0x8017x9,_0x8017xa){_0x8017xa=_0x8017xa||204;return function(){_0x8017x9[_0x808e[13]](_0x8017xa)}}function handleEntityNotFound(_0x8017x9){return function(_0x8017xd){if(!_0x8017xd){_0x8017x9[_0x808e[11]](404)[_0x808e[14]]();return null};return _0x8017xd}}function saveUpdates(_0x8017x11){return function(_0x8017xd){return _0x8017xd[_0x808e[16]](_0x8017x11)[_0x808e[15]](function(_0x8017x12){return _0x8017x12})}}function removeEntity(_0x8017x9){return function(_0x8017xd){if(_0x8017xd){return _0x8017xd[_0x808e[17]]()[_0x808e[15]](function(){_0x8017x9[_0x808e[11]](204)[_0x808e[14]]()})}}}function getFaxQueues(_0x8017x15){return function(){switch(_0x8017x15[_0x808e[26]]){case _0x808e[25]:return User[_0x808e[24]](_0x8017x15[_0x808e[18]],{attributes:[_0x808e[18]]})[_0x808e[15]](Util[_0x808e[23]]({},{attributes:[_0x808e[18]],include:[{raw:true,model:User,attributes:[_0x808e[18]]}]}))[_0x808e[15]](function(_0x8017x16){var _0x8017x17=[];_0x8017x16[_0x808e[22]][_0x808e[21]](function(_0x8017x18){_0x8017x17=_[_0x808e[20]](_0x8017x17,_[_0x808e[19]](_0x8017x18.Users,_0x808e[18]))});return {where:{$or:{queue:_[_0x808e[19]](_0x8017x16[_0x808e[22]],_0x808e[18]),memberid:_0x8017x17}}}});default:return {}}}}exports[_0x808e[27]]=function(_0x8017x19,_0x8017x9){return Promise[_0x808e[32]]([])[_0x808e[15]](getFaxQueues(_0x8017x19[_0x808e[25]]))[_0x808e[15]](function(_0x8017x1b){return FaxRoom[_0x808e[31]](_[_0x808e[30]]({where:{status:_0x808e[29]}},_0x8017x1b))})[_0x808e[15]](function(_0x8017x1a){return _0x8017x9[_0x808e[11]](200)[_0x808e[10]]({value:_0x8017x1a})})[_0x808e[28]](handleError(_0x8017x9))};exports[_0x808e[33]]=function(_0x8017x19,_0x8017x9){return Promise[_0x808e[32]]([])[_0x808e[15]](getFaxQueues(_0x8017x19[_0x808e[25]]))[_0x808e[15]](function(_0x8017x1b){return FaxRoom[_0x808e[31]](_[_0x808e[30]]({where:{status:_0x808e[34]}},_0x8017x1b))})[_0x808e[15]](function(_0x8017x1a){return _0x8017x9[_0x808e[11]](200)[_0x808e[10]]({value:_0x8017x1a})})[_0x808e[28]](handleError(_0x8017x9))};exports[_0x808e[35]]=function(_0x8017x19,_0x8017x9){return Promise[_0x808e[32]]([])[_0x808e[15]](getFaxQueues(_0x8017x19[_0x808e[25]]))[_0x808e[15]](function(_0x8017x1b){return FaxRoom[_0x808e[31]](_[_0x808e[30]]({where:{status:_0x808e[36]}},_0x8017x1b))})[_0x808e[15]](function(_0x8017x1a){return _0x8017x9[_0x808e[11]](200)[_0x808e[10]]({value:_0x8017x1a})})[_0x808e[28]](handleError(_0x8017x9))};exports[_0x808e[37]]=function(_0x8017x19,_0x8017x9){return Promise[_0x808e[32]]([])[_0x808e[15]](getFaxQueues(_0x8017x19[_0x808e[25]]))[_0x808e[15]](function(_0x8017x1b){return FaxRoom[_0x808e[31]](_[_0x808e[30]]({where:{status:_0x808e[38]}},_0x8017x1b))})[_0x808e[15]](function(_0x8017x1a){return _0x8017x9[_0x808e[11]](200)[_0x808e[10]]({value:_0x8017x1a})})[_0x808e[28]](handleError(_0x8017x9))};exports[_0x808e[39]]=function(_0x8017x19,_0x8017x9,_0x8017x1c){return ReportFaxRoom[_0x808e[42]](Util[_0x808e[41]](_0x8017x19[_0x808e[40]]))[_0x808e[15]](function(_0x8017x1d){return _0x8017x9[_0x808e[11]](200)[_0x808e[10]](_0x8017x1d)})[_0x808e[28]](handleError(_0x8017x9))};exports[_0x808e[43]]=function(_0x8017x19,_0x8017x9){return ReportFaxRoomHistory[_0x808e[43]]()[_0x808e[15]](responseWithResult(_0x8017x9))[_0x808e[28]](handleError(_0x8017x9))}
\ No newline at end of file