Built motion from commit f9ccdb65b.|1.0.22
[motion.git] / server / api / fax_queue / fax_queue.controller.js
index 6439f90..8793ed3 100644 (file)
@@ -1 +1 @@
-var _0xabdf=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x62\x6F\x64\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x6E\x61\x6D\x65","\x61\x64\x64\x55\x73\x65\x72\x73","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xabdf[0];var _=require(_0xabdf[1]);var Util=require(_0xabdf[2]);var logger=require(_0xabdf[4])(_0xabdf[3]);var User=require(_0xabdf[6])[_0xabdf[5]];var FaxQueue=require(_0xabdf[6])[_0xabdf[7]];var UserHasFaxQueue=require(_0xabdf[6])[_0xabdf[8]];exports[_0xabdf[9]]= function(_0x19a6x7,_0x19a6x8){switch(_0x19a6x7[_0xabdf[17]][_0xabdf[21]]){case _0xabdf[17]:return User[_0xabdf[18]](_0x19a6x7[_0xabdf[17]][_0xabdf[16]],{attributes:[_0xabdf[16]]})[_0xabdf[13]](Util[_0xabdf[15]](_0x19a6x7[_0xabdf[14]]))[_0xabdf[13]](function(_0x19a6xa){_0x19a6x8[_0xabdf[12]](200)[_0xabdf[11]](_0x19a6xa)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)});default:return FaxQueue[_0xabdf[20]](Util[_0xabdf[19]](_0x19a6x7[_0xabdf[14]]))[_0xabdf[13]](function(_0x19a6xa){_0x19a6x8[_0xabdf[12]](200)[_0xabdf[11]](_0x19a6xa)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})}};exports[_0xabdf[22]]= function(_0x19a6x7,_0x19a6x8){return FaxQueue[_0xabdf[18]](_0x19a6x7[_0xabdf[24]][_0xabdf[16]])[_0xabdf[13]](function(_0x19a6xb){if(!_0x19a6xb){return _0x19a6x8[_0xabdf[23]](404)};return _0x19a6x8[_0xabdf[11]](_0x19a6xb)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})};exports[_0xabdf[25]]= function(_0x19a6x7,_0x19a6x8){var _0x19a6xc;return FaxQueue[_0xabdf[25]](_0x19a6x7[_0xabdf[27]])[_0xabdf[13]](function(_0x19a6xd){_0x19a6xc= _0x19a6xd;if(_0x19a6x7[_0xabdf[27]][_0xabdf[26]]){return _0x19a6xc[_0xabdf[30]](_0x19a6x7[_0xabdf[27]][_0xabdf[26]],{penalty:_0x19a6x7[_0xabdf[27]][_0xabdf[28]]|| 0,queue:_0x19a6xc[_0xabdf[29]]})}})[_0xabdf[13]](function(){return _0x19a6x8[_0xabdf[12]](201)[_0xabdf[11]](_0x19a6xc)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})};exports[_0xabdf[31]]= function(_0x19a6x7,_0x19a6x8){if(_0x19a6x7[_0xabdf[27]][_0xabdf[16]]){delete _0x19a6x7[_0xabdf[27]][_0xabdf[16]]};return FaxQueue[_0xabdf[18]](_0x19a6x7[_0xabdf[24]][_0xabdf[16]])[_0xabdf[13]](function(_0x19a6xb){if(!_0x19a6xb){return _0x19a6x8[_0xabdf[23]](404)};var _0x19a6xe=_[_0xabdf[32]](_0x19a6xb,_0x19a6x7[_0xabdf[27]]);return _0x19a6xe[_0xabdf[33]]()})[_0xabdf[13]](function(_0x19a6xb){return _0x19a6x8[_0xabdf[12]](200)[_0xabdf[11]](_0x19a6xb)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})};exports[_0xabdf[34]]= function(_0x19a6x7,_0x19a6x8){return FaxQueue[_0xabdf[18]](_0x19a6x7[_0xabdf[24]][_0xabdf[16]])[_0xabdf[13]](function(_0x19a6xb){if(!_0x19a6xb){return _0x19a6x8[_0xabdf[23]](404)};return _0x19a6xb[_0xabdf[34]]()})[_0xabdf[13]](function(){return _0x19a6x8[_0xabdf[23]](204)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})};exports[_0xabdf[35]]= function(_0x19a6x7,_0x19a6x8,_0x19a6xf){return FaxQueue[_0xabdf[18]](_0x19a6x7[_0xabdf[24]][_0xabdf[16]])[_0xabdf[13]](function(_0x19a6xd){if(!_0x19a6xd){return _0x19a6x8[_0xabdf[23]](404)};var _0x19a6x10=_[_0xabdf[36]](_0x19a6x7[_0xabdf[27]][_0xabdf[26]],function(_0x19a6x11){return {UserId:_0x19a6x11,penalty:_0x19a6x7[_0xabdf[27]][_0xabdf[28]],FaxQueueId:_0x19a6xd[_0xabdf[16]],queue:_0x19a6xd[_0xabdf[29]]}});return UserHasFaxQueue[_0xabdf[37]](_0x19a6x10,{individualHooks:true})})[_0xabdf[13]](function(){return _0x19a6x8[_0xabdf[23]](200)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})};exports[_0xabdf[38]]= function(_0x19a6x7,_0x19a6x8){return FaxQueue[_0xabdf[18]](_0x19a6x7[_0xabdf[24]][_0xabdf[16]])[_0xabdf[13]](function(_0x19a6x13){if(!_0x19a6x13){return _0x19a6x8[_0xabdf[23]](404)};return _0x19a6x13[_0xabdf[43]]({where:{role:_0xabdf[40]},attributes:[_0xabdf[16],_0xabdf[29],_0xabdf[41],_0xabdf[42]]})})[_0xabdf[13]](function(_0x19a6x12){return _0x19a6x8[_0xabdf[12]](200)[_0xabdf[11]]({rows:_0x19a6x12,count:_0x19a6x12[_0xabdf[39]]})})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})};exports[_0xabdf[44]]= function(_0x19a6x7,_0x19a6x8,_0x19a6xf){return FaxQueue[_0xabdf[18]](_0x19a6x7[_0xabdf[24]][_0xabdf[16]])[_0xabdf[13]](function(_0x19a6x13){if(!_0x19a6x13){return _0x19a6x8[_0xabdf[23]](404)};return _0x19a6x13[_0xabdf[45]](_0x19a6x7[_0xabdf[14]][_0xabdf[26]],{individualHooks:true})})[_0xabdf[13]](function(){return _0x19a6x8[_0xabdf[23]](202)})[_0xabdf[10]](function(_0x19a6x9){return _0x19a6xf(_0x19a6x9)})};exports[_0xabdf[46]]= function(_0x19a6x7,_0x19a6x8){return FaxQueue[_0xabdf[34]]({where:{id:_0x19a6x7[_0xabdf[14]][_0xabdf[47]]},individualHooks:true})[_0xabdf[13]](function(){return _0x19a6x8[_0xabdf[23]](204)})[_0xabdf[10]](function(_0x19a6x9){return handleError(_0x19a6x8,_0x19a6x9)})};function handleError(_0x19a6x8,_0x19a6x9){logger[_0xabdf[49]](_0x19a6x9[_0xabdf[48]]);return _0x19a6x8[_0xabdf[12]](500)[_0xabdf[11]](_0x19a6x9)}
\ No newline at end of file
+var _0x49f6=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x62\x6F\x64\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x6E\x61\x6D\x65","\x61\x64\x64\x55\x73\x65\x72\x73","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x49f6[0];var _=require(_0x49f6[1]);var Util=require(_0x49f6[2]);var logger=require(_0x49f6[4])(_0x49f6[3]);var User=require(_0x49f6[6])[_0x49f6[5]];var FaxQueue=require(_0x49f6[6])[_0x49f6[7]];var UserHasFaxQueue=require(_0x49f6[6])[_0x49f6[8]];exports[_0x49f6[9]]= function(_0x2391x7,_0x2391x8){switch(_0x2391x7[_0x49f6[17]][_0x49f6[21]]){case _0x49f6[17]:return User[_0x49f6[18]](_0x2391x7[_0x49f6[17]][_0x49f6[16]],{attributes:[_0x49f6[16]]})[_0x49f6[13]](Util[_0x49f6[15]](_0x2391x7[_0x49f6[14]]))[_0x49f6[13]](function(_0x2391xa){_0x2391x8[_0x49f6[12]](200)[_0x49f6[11]](_0x2391xa)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)});default:return FaxQueue[_0x49f6[20]](Util[_0x49f6[19]](_0x2391x7[_0x49f6[14]]))[_0x49f6[13]](function(_0x2391xa){_0x2391x8[_0x49f6[12]](200)[_0x49f6[11]](_0x2391xa)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})}};exports[_0x49f6[22]]= function(_0x2391x7,_0x2391x8){return FaxQueue[_0x49f6[18]](_0x2391x7[_0x49f6[24]][_0x49f6[16]])[_0x49f6[13]](function(_0x2391xb){if(!_0x2391xb){return _0x2391x8[_0x49f6[23]](404)};return _0x2391x8[_0x49f6[11]](_0x2391xb)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})};exports[_0x49f6[25]]= function(_0x2391x7,_0x2391x8){var _0x2391xc;return FaxQueue[_0x49f6[25]](_0x2391x7[_0x49f6[27]])[_0x49f6[13]](function(_0x2391xd){_0x2391xc= _0x2391xd;if(_0x2391x7[_0x49f6[27]][_0x49f6[26]]){return _0x2391xc[_0x49f6[30]](_0x2391x7[_0x49f6[27]][_0x49f6[26]],{penalty:_0x2391x7[_0x49f6[27]][_0x49f6[28]]|| 0,queue:_0x2391xc[_0x49f6[29]]})}})[_0x49f6[13]](function(){return _0x2391x8[_0x49f6[12]](201)[_0x49f6[11]](_0x2391xc)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})};exports[_0x49f6[31]]= function(_0x2391x7,_0x2391x8){if(_0x2391x7[_0x49f6[27]][_0x49f6[16]]){delete _0x2391x7[_0x49f6[27]][_0x49f6[16]]};return FaxQueue[_0x49f6[18]](_0x2391x7[_0x49f6[24]][_0x49f6[16]])[_0x49f6[13]](function(_0x2391xb){if(!_0x2391xb){return _0x2391x8[_0x49f6[23]](404)};var _0x2391xe=_[_0x49f6[32]](_0x2391xb,_0x2391x7[_0x49f6[27]]);return _0x2391xe[_0x49f6[33]]()})[_0x49f6[13]](function(_0x2391xb){return _0x2391x8[_0x49f6[12]](200)[_0x49f6[11]](_0x2391xb)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})};exports[_0x49f6[34]]= function(_0x2391x7,_0x2391x8){return FaxQueue[_0x49f6[18]](_0x2391x7[_0x49f6[24]][_0x49f6[16]])[_0x49f6[13]](function(_0x2391xb){if(!_0x2391xb){return _0x2391x8[_0x49f6[23]](404)};return _0x2391xb[_0x49f6[34]]()})[_0x49f6[13]](function(){return _0x2391x8[_0x49f6[23]](204)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})};exports[_0x49f6[35]]= function(_0x2391x7,_0x2391x8,_0x2391xf){return FaxQueue[_0x49f6[18]](_0x2391x7[_0x49f6[24]][_0x49f6[16]])[_0x49f6[13]](function(_0x2391xd){if(!_0x2391xd){return _0x2391x8[_0x49f6[23]](404)};var _0x2391x10=_[_0x49f6[36]](_0x2391x7[_0x49f6[27]][_0x49f6[26]],function(_0x2391x11){return {UserId:_0x2391x11,penalty:_0x2391x7[_0x49f6[27]][_0x49f6[28]],FaxQueueId:_0x2391xd[_0x49f6[16]],queue:_0x2391xd[_0x49f6[29]]}});return UserHasFaxQueue[_0x49f6[37]](_0x2391x10,{individualHooks:true})})[_0x49f6[13]](function(){return _0x2391x8[_0x49f6[23]](200)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})};exports[_0x49f6[38]]= function(_0x2391x7,_0x2391x8){return FaxQueue[_0x49f6[18]](_0x2391x7[_0x49f6[24]][_0x49f6[16]])[_0x49f6[13]](function(_0x2391x13){if(!_0x2391x13){return _0x2391x8[_0x49f6[23]](404)};return _0x2391x13[_0x49f6[43]]({where:{role:_0x49f6[40]},attributes:[_0x49f6[16],_0x49f6[29],_0x49f6[41],_0x49f6[42]]})})[_0x49f6[13]](function(_0x2391x12){return _0x2391x8[_0x49f6[12]](200)[_0x49f6[11]]({rows:_0x2391x12,count:_0x2391x12[_0x49f6[39]]})})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})};exports[_0x49f6[44]]= function(_0x2391x7,_0x2391x8,_0x2391xf){return FaxQueue[_0x49f6[18]](_0x2391x7[_0x49f6[24]][_0x49f6[16]])[_0x49f6[13]](function(_0x2391x13){if(!_0x2391x13){return _0x2391x8[_0x49f6[23]](404)};return _0x2391x13[_0x49f6[45]](_0x2391x7[_0x49f6[14]][_0x49f6[26]],{individualHooks:true})})[_0x49f6[13]](function(){return _0x2391x8[_0x49f6[23]](202)})[_0x49f6[10]](function(_0x2391x9){return _0x2391xf(_0x2391x9)})};exports[_0x49f6[46]]= function(_0x2391x7,_0x2391x8){return FaxQueue[_0x49f6[34]]({where:{id:_0x2391x7[_0x49f6[14]][_0x49f6[47]]},individualHooks:true})[_0x49f6[13]](function(){return _0x2391x8[_0x49f6[23]](204)})[_0x49f6[10]](function(_0x2391x9){return handleError(_0x2391x8,_0x2391x9)})};function handleError(_0x2391x8,_0x2391x9){logger[_0x49f6[49]](_0x2391x9[_0x49f6[48]]);return _0x2391x8[_0x49f6[12]](500)[_0x49f6[11]](_0x2391x9)}
\ No newline at end of file