Built motion from commit d9055ebe5.|1.0.37
[motion.git] / server / api / fax_account / fax_account.controller.js
index 0600422..d97f2bb 100644 (file)
@@ -1 +1 @@
-var _0x92e6=["\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","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x46\x61\x78\x51\x75\x65\x75\x65","\x46\x61\x78\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\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\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\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","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\x6D\x65\x73\x73\x61\x67\x65","\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2F\x63\x6F\x6E\x74\x65\x78\x74\x20\x63\x6F\x6D\x62\x69\x6E\x61\x74\x69\x6F\x6E\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x52\x4F\x55\x54\x45","\x62\x6F\x64\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x73\x68\x6F\x77\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x6E\x61\x6D\x65","\x6F\x6E\x6C\x69\x6E\x65","\x70\x72\x69\x6F\x72\x69\x74\x79\x20\x41\x53\x43","\x6D\x65\x72\x67\x65","\x67\x65\x74\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x61\x75\x6C\x74","\x73\x63\x6F\x70\x65","\x63\x72\x65\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x70\x72\x69\x6F\x72\x69\x74\x79","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x61\x70\x70\x49\x64","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x66\x6F\x72\x45\x61\x63\x68","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x73\x68\x6F\x77\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74\x46\x61\x78\x52\x6F\x6F\x6D\x73","\x63\x6F\x6E\x74\x61\x63\x74","\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x74\x61\x67\x73","\x6C\x61\x73\x74\x45\x76\x65\x6E\x74","\x69\x73\x41\x72\x72\x61\x79","\x25","\x70\x75\x73\x68","\x24\x61\x6E\x64","\x77\x68\x65\x72\x65","\x69\x6E\x63\x6C\x75\x64\x65","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64","\x55\x73\x65\x72\x49\x64","\x6D\x61\x70","\x71\x75\x65\x75\x65","\x46\x61\x78\x51\x75\x65\x75\x65\x49\x64","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x69\x6F\x6E","\x75\x73\x65\x72","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x72\x6F\x6C\x65","\x67\x65\x74\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x67\x65\x74\x46\x61\x78\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x63\x72\x65\x61\x74\x65\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x73\x61\x76\x65","\x64\x69\x73\x70\x49\x64","\x64\x65\x73\x74\x72\x6F\x79\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x66\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x6D\x69","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70"];_0x92e6[0];var _=require(_0x92e6[1]);var Util=require(_0x92e6[2]);var logger=require(_0x92e6[4])(_0x92e6[3]);var sequelize=require(_0x92e6[6])[_0x92e6[5]];var FaxAccount=require(_0x92e6[6])[_0x92e6[7]];var FaxRoom=require(_0x92e6[6])[_0x92e6[8]];var FaxApplication=require(_0x92e6[6])[_0x92e6[9]];var FaxQueue=require(_0x92e6[6])[_0x92e6[10]];var FaxDisposition=require(_0x92e6[6])[_0x92e6[11]];var FaxMessage=require(_0x92e6[6])[_0x92e6[12]];var FaxAttachment=require(_0x92e6[6])[_0x92e6[13]];var User=require(_0x92e6[6])[_0x92e6[14]];var Interval=require(_0x92e6[6])[_0x92e6[15]];function handleError(_0xbfafxf,_0xbfafx10){_0xbfafx10= _0xbfafx10|| 500;return function(_0xbfafx11){logger[_0x92e6[17]](_0xbfafx11[_0x92e6[16]]);_0xbfafxf[_0x92e6[19]](_0xbfafx10)[_0x92e6[18]](_0xbfafx11)}}function responseWithResult(_0xbfafxf,_0xbfafx10){_0xbfafx10= _0xbfafx10|| 200;return function(_0xbfafx13){if(_0xbfafx13){_0xbfafxf[_0x92e6[19]](_0xbfafx10)[_0x92e6[20]](_0xbfafx13)}}}function responseWithoutResult(_0xbfafxf,_0xbfafx10){_0xbfafx10= _0xbfafx10|| 204;return function(){_0xbfafxf[_0x92e6[21]](_0xbfafx10)}}function handleEntityNotFound(_0xbfafxf){return function(_0xbfafx13){if(!_0xbfafx13){_0xbfafxf[_0x92e6[19]](404)[_0x92e6[22]]();return null};return _0xbfafx13}}function saveUpdates(_0xbfafx17){return function(_0xbfafx13){return _0xbfafx13[_0x92e6[24]](_0xbfafx17)[_0x92e6[23]](function(_0xbfafx18){return _0xbfafx18})}}function removeEntity(_0xbfafxf){return function(_0xbfafx13){if(_0xbfafx13){return _0xbfafx13[_0x92e6[25]]()[_0x92e6[23]](function(){_0xbfafxf[_0x92e6[19]](204)[_0x92e6[22]]()})}}}exports[_0x92e6[26]]= function(_0xbfafx1a,_0xbfafxf){return FaxAccount[_0x92e6[30]](Util[_0x92e6[29]](_0xbfafx1a[_0x92e6[28]]))[_0x92e6[23]](responseWithResult(_0xbfafxf))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[31]]= function(_0xbfafx1a,_0xbfafxf){return FaxAccount[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[32]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](responseWithResult(_0xbfafxf))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[35]]= function(_0xbfafx1a,_0xbfafxf){return sequelize[_0x92e6[43]](function(_0xbfafx1b){return FaxAccount[_0x92e6[35]](_0xbfafx1a[_0x92e6[42]],{transaction:_0xbfafx1b})})[_0x92e6[23]](responseWithoutResult(_0xbfafxf,201))[_0x92e6[27]](sequelize.ValidationError,function(_0xbfafx11){_0xbfafx11[_0x92e6[38]]= _0x92e6[39];_0xbfafx11[_0x92e6[40]]= _0x92e6[41];return _0xbfafxf[_0x92e6[19]](500)[_0x92e6[18]](_0xbfafx11)})[_0x92e6[27]](sequelize.UniqueConstraintError,function(_0xbfafx11){return Util[_0x92e6[37]][_0x92e6[36]](_0xbfafxf,_0xbfafx11)})[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[44]]= function(_0xbfafx1a,_0xbfafxf){if(_0xbfafx1a[_0x92e6[42]][_0x92e6[32]]){delete _0xbfafx1a[_0x92e6[42]][_0x92e6[32]]};return sequelize[_0x92e6[43]](function(_0xbfafx1b){return FaxAccount[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[32]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](function(_0xbfafx1c){return _0xbfafx1c[_0x92e6[24]](_0xbfafx1a[_0x92e6[42]],{transaction:_0xbfafx1b})})})[_0x92e6[23]](responseWithoutResult(_0xbfafxf))[_0x92e6[27]](sequelize.ValidationError,function(_0xbfafx11){_0xbfafx11[_0x92e6[38]]= _0x92e6[39];_0xbfafx11[_0x92e6[40]]= _0x92e6[41];return _0xbfafxf[_0x92e6[19]](500)[_0x92e6[18]](_0xbfafx11)})[_0x92e6[27]](sequelize.UniqueConstraintError,function(_0xbfafx11){return Util[_0x92e6[37]][_0x92e6[36]](_0xbfafxf,_0xbfafx11)})[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[25]]= function(_0xbfafx1a,_0xbfafxf){return sequelize[_0x92e6[43]](function(_0xbfafx1b){return FaxAccount[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[32]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](function(_0xbfafx1c){return _0xbfafx1c[_0x92e6[25]]()})})[_0x92e6[23]](function(){_0xbfafxf[_0x92e6[19]](204)[_0x92e6[22]]()})[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[45]]= function(_0xbfafx1a,_0xbfafxf){return FaxAccount[_0x92e6[25]]({where:{id:_0xbfafx1a[_0x92e6[28]][_0x92e6[46]]},individualHooks:true})[_0x92e6[23]](responseWithoutResult(_0xbfafxf))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[47]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){return FaxAccount[_0x92e6[55]](_0x92e6[54])[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[32]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](function(_0xbfafx1c){return _0xbfafx1c[_0x92e6[53]](_[_0x92e6[52]](Util[_0x92e6[29]](_0xbfafx1a[_0x92e6[28]]),{include:[{model:FaxQueue,attributes:[_0x92e6[32],_0x92e6[49]]},{model:User,attributes:[_0x92e6[32],_0x92e6[49],_0x92e6[50]]},{model:Interval,attributes:[_0x92e6[32],_0x92e6[49]]}],order:_0x92e6[51]}))})[_0x92e6[23]](function(_0xbfafx1e){return _0xbfafxf[_0x92e6[18]]({count:_0xbfafx1e[_0x92e6[48]],rows:_0xbfafx1e})})[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[56]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){return FaxApplication[_0x92e6[59]](_0x92e6[57],{where:{FaxAccountId:_0xbfafx1a[_0x92e6[33]][_0x92e6[32]]}})[_0x92e6[23]](function(_0xbfafx1f){_0xbfafx1a[_0x92e6[42]][_0x92e6[57]]= _0xbfafx1f?++_0xbfafx1f:1;_0xbfafx1a[_0x92e6[42]][_0x92e6[58]]= _0xbfafx1a[_0x92e6[33]][_0x92e6[32]];return FaxApplication[_0x92e6[35]](_0xbfafx1a[_0x92e6[42]])})[_0x92e6[23]](responseWithResult(_0xbfafxf,201))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[60]]= function(_0xbfafx1a,_0xbfafxf){return FaxApplication[_0x92e6[25]]({where:{id:_0xbfafx1a[_0x92e6[28]][_0x92e6[46]]},individualHooks:true})[_0x92e6[23]](responseWithoutResult(_0xbfafxf))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[61]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){return FaxApplication[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[62]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](removeEntity(_0xbfafxf))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[63]]= function(_0xbfafx1a,_0xbfafxf){var _0xbfafx20=0;var _0xbfafx21=_0xbfafx1a[_0x92e6[42]];_0xbfafx21[_0x92e6[66]](function(_0xbfafx22){delete _0xbfafx22[_0x92e6[32]];delete _0xbfafx22[_0x92e6[64]];delete _0xbfafx22[_0x92e6[65]];_0xbfafx22[_0x92e6[57]]=  ++_0xbfafx20});return sequelize[_0x92e6[43]](function(_0xbfafx1b){return FaxApplication[_0x92e6[25]]({where:{FaxAccountId:_0xbfafx1a[_0x92e6[33]][_0x92e6[32]]},individualHooks:true,transaction:_0xbfafx1b})[_0x92e6[23]](function(_0xbfafx23){return FaxApplication[_0x92e6[67]](_0xbfafx21,{individualHooks:true,transaction:_0xbfafx1b})})})[_0x92e6[23]](function(_0xbfafx1e){return _0xbfafxf[_0x92e6[19]](200)[_0x92e6[18]]({count:_0xbfafx1e[_0x92e6[48]],rows:_0xbfafx1e})})[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[68]]= function(_0xbfafx1a,_0xbfafxf){if(_0xbfafx1a[_0x92e6[42]][_0x92e6[32]]){delete _0xbfafx1a[_0x92e6[42]][_0x92e6[32]]};return FaxApplication[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[62]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](saveUpdates(_0xbfafx1a[_0x92e6[42]]))[_0x92e6[23]](responseWithResult(_0xbfafxf))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[69]]= function(_0xbfafx1a,_0xbfafxf){return FaxApplication[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[62]],{include:[{all:true}]})[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](responseWithResult(_0xbfafxf))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[70]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){var _0xbfafx24={where:{FaxAccountId:_0xbfafx1a[_0x92e6[33]][_0x92e6[32]],$and:[]},include:[],attributes:[_0x92e6[32],_0x92e6[71],_0x92e6[72],_0x92e6[73],_0x92e6[74],_0x92e6[64],_0x92e6[65]]};if(_0xbfafx1a[_0x92e6[28]]){if(_0xbfafx1a[_0x92e6[28]][_0x92e6[73]]){if(_[_0x92e6[75]](_0xbfafx1a[_0x92e6[28]][_0x92e6[73]])){for(var _0xbfafx25=0;_0xbfafx25< _0xbfafx1a[_0x92e6[28]][_0x92e6[73]][_0x92e6[48]];_0xbfafx25++){_0xbfafx24[_0x92e6[79]][_0x92e6[78]][_0x92e6[77]]({tags:{$like:_0x92e6[76]+ _0xbfafx1a[_0x92e6[28]][_0x92e6[73]][_0xbfafx25]+ _0x92e6[76]}})}}else {_0xbfafx24[_0x92e6[79]][_0x92e6[78]][_0x92e6[77]]({tags:{$like:_0x92e6[76]+ _0xbfafx1a[_0x92e6[28]][_0x92e6[73]]+ _0x92e6[76]}})};delete _0xbfafx1a[_0x92e6[28]][_0x92e6[73]]};_[_0x92e6[52]](_0xbfafx24[_0x92e6[79]],_0xbfafx1a[_0x92e6[28]])};switch(_0xbfafx1a[_0x92e6[88]][_0x92e6[91]]){case _0x92e6[81]:_0xbfafx24[_0x92e6[80]][_0x92e6[77]]({model:User,attributes:[_0x92e6[32]]});var _0xbfafx26;var _0xbfafx27;var _0xbfafx28;return User[_0x92e6[34]](_0xbfafx1a[_0x92e6[88]][_0x92e6[32]])[_0x92e6[23]](function(_0xbfafx2c){if(_0xbfafx2c){return _0xbfafx2c[_0x92e6[90]]()}else {return []}})[_0x92e6[23]](function(_0xbfafx2b){_0xbfafx27= _[_0x92e6[84]](_0xbfafx2b,_0x92e6[32]);return FaxAccount[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[32]])})[_0x92e6[23]](function(_0xbfafx29){if(!_0xbfafx29){return _0xbfafxf[_0x92e6[21]](404)};return _0xbfafx29[_0x92e6[53]]({where:{$or:[{app:_0x92e6[85]},{app:_0x92e6[81]}]}})[_0x92e6[23]](function(_0xbfafx21){_0xbfafx26= _[_0x92e6[84]](_[_0x92e6[82]](_0xbfafx21,{"\x61\x70\x70":_0x92e6[81]}),_0x92e6[83]);_0xbfafx28= _[_0x92e6[84]](_[_0x92e6[82]](_0xbfafx21,{"\x61\x70\x70":_0x92e6[85]}),_0x92e6[86]);if(_[_0x92e6[87]](_0xbfafx27,_0xbfafx28)[_0x92e6[48]]|| _[_0x92e6[87]](_0xbfafx26,[_0xbfafx1a[_0x92e6[88]][_0x92e6[32]]])[_0x92e6[48]]){return FaxRoom[_0x92e6[89]](_0xbfafx24)[_0x92e6[23]](function(_0xbfafx2a){return _0xbfafxf[_0x92e6[19]](200)[_0x92e6[18]](_0xbfafx2a)})[_0x92e6[27]](function(_0xbfafx11){return handleError(_0xbfafxf,_0xbfafx11)})}else {return _0xbfafxf[_0x92e6[19]](200)[_0x92e6[18]]([])}})})[_0x92e6[27]](handleError(_0xbfafxf));default:return FaxRoom[_0x92e6[89]](_0xbfafx24)[_0x92e6[23]](function(_0xbfafx2a){return _0xbfafxf[_0x92e6[19]](200)[_0x92e6[18]](_0xbfafx2a)})[_0x92e6[27]](handleError(_0xbfafxf))}};exports[_0x92e6[92]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){return FaxAccount[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[32]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](function(_0xbfafx1c){return _0xbfafx1c[_0x92e6[93]]()})[_0x92e6[23]](function(_0xbfafx2d){return _0xbfafxf[_0x92e6[19]](200)[_0x92e6[18]]({rows:_0xbfafx2d,count:_0xbfafx2d[_0x92e6[48]]})})[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[94]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){_0xbfafx1a[_0x92e6[42]][_0x92e6[58]]= _0xbfafx1a[_0x92e6[33]][_0x92e6[32]];return FaxDisposition[_0x92e6[35]](_0xbfafx1a[_0x92e6[42]])[_0x92e6[23]](responseWithResult(_0xbfafxf,201))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[95]]= function(_0xbfafx1a,_0xbfafxf){if(_0xbfafx1a[_0x92e6[42]][_0x92e6[32]]){delete _0xbfafx1a[_0x92e6[42]][_0x92e6[32]]};return FaxDisposition[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[97]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](function(_0xbfafx2e){var _0xbfafx18=_[_0x92e6[52]](_0xbfafx2e,_0xbfafx1a[_0x92e6[42]]);return _0xbfafx18[_0x92e6[96]]()})[_0x92e6[23]](responseWithResult(_0xbfafxf,200))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[98]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){return FaxDisposition[_0x92e6[34]](_0xbfafx1a[_0x92e6[33]][_0x92e6[97]])[_0x92e6[23]](handleEntityNotFound(_0xbfafxf))[_0x92e6[23]](function(_0xbfafx2f){return _0xbfafx2f[_0x92e6[25]]()})[_0x92e6[23]](responseWithoutResult(_0xbfafxf,204))[_0x92e6[27]](handleError(_0xbfafxf))};exports[_0x92e6[99]]= function(_0xbfafx1a,_0xbfafxf,_0xbfafx1d){_0xbfafx1a[_0x92e6[42]][_0x92e6[83]]= _0xbfafx1a[_0x92e6[88]][_0x92e6[32]];return FaxMessage[_0x92e6[35]](_0xbfafx1a[_0x92e6[42]],{include:[{model:FaxAttachment}],user:_0xbfafx1a[_0x92e6[88]]})[_0x92e6[23]](function(_0xbfafx30){if(_0xbfafx30){_0xbfafx1a[_0x92e6[103]][_0x92e6[102]][_0x92e6[101]][_0x92e6[18]]({message:_0x92e6[100],doc:_0xbfafx30,options:{user:_0xbfafx1a[_0x92e6[88]]}});return _0xbfafx30}})[_0x92e6[23]](responseWithResult(_0xbfafxf,201))[_0x92e6[27]](handleError(_0xbfafxf))}
\ No newline at end of file
+var _0xae78=["\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","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x46\x61\x78\x51\x75\x65\x75\x65","\x46\x61\x78\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\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\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\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","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\x6D\x65\x73\x73\x61\x67\x65","\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2F\x63\x6F\x6E\x74\x65\x78\x74\x20\x63\x6F\x6D\x62\x69\x6E\x61\x74\x69\x6F\x6E\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x52\x4F\x55\x54\x45","\x62\x6F\x64\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x73\x68\x6F\x77\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x6E\x61\x6D\x65","\x6F\x6E\x6C\x69\x6E\x65","\x70\x72\x69\x6F\x72\x69\x74\x79\x20\x41\x53\x43","\x6D\x65\x72\x67\x65","\x67\x65\x74\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x61\x75\x6C\x74","\x73\x63\x6F\x70\x65","\x63\x72\x65\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x70\x72\x69\x6F\x72\x69\x74\x79","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x61\x70\x70\x49\x64","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x66\x6F\x72\x45\x61\x63\x68","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x73\x68\x6F\x77\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74\x46\x61\x78\x52\x6F\x6F\x6D\x73","\x63\x6F\x6E\x74\x61\x63\x74","\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x74\x61\x67\x73","\x6C\x61\x73\x74\x45\x76\x65\x6E\x74","\x69\x73\x41\x72\x72\x61\x79","\x25","\x70\x75\x73\x68","\x24\x61\x6E\x64","\x77\x68\x65\x72\x65","\x69\x6E\x63\x6C\x75\x64\x65","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64","\x55\x73\x65\x72\x49\x64","\x6D\x61\x70","\x71\x75\x65\x75\x65","\x46\x61\x78\x51\x75\x65\x75\x65\x49\x64","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x69\x6F\x6E","\x75\x73\x65\x72","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x72\x6F\x6C\x65","\x67\x65\x74\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x67\x65\x74\x46\x61\x78\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x63\x72\x65\x61\x74\x65\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x73\x61\x76\x65","\x64\x69\x73\x70\x49\x64","\x64\x65\x73\x74\x72\x6F\x79\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x66\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x6D\x69","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70"];_0xae78[0];var _=require(_0xae78[1]);var Util=require(_0xae78[2]);var logger=require(_0xae78[4])(_0xae78[3]);var sequelize=require(_0xae78[6])[_0xae78[5]];var FaxAccount=require(_0xae78[6])[_0xae78[7]];var FaxRoom=require(_0xae78[6])[_0xae78[8]];var FaxApplication=require(_0xae78[6])[_0xae78[9]];var FaxQueue=require(_0xae78[6])[_0xae78[10]];var FaxDisposition=require(_0xae78[6])[_0xae78[11]];var FaxMessage=require(_0xae78[6])[_0xae78[12]];var FaxAttachment=require(_0xae78[6])[_0xae78[13]];var User=require(_0xae78[6])[_0xae78[14]];var Interval=require(_0xae78[6])[_0xae78[15]];function handleError(_0xb124xf,_0xb124x10){_0xb124x10= _0xb124x10|| 500;return function(_0xb124x11){logger[_0xae78[17]](_0xb124x11[_0xae78[16]]);_0xb124xf[_0xae78[19]](_0xb124x10)[_0xae78[18]](_0xb124x11)}}function responseWithResult(_0xb124xf,_0xb124x10){_0xb124x10= _0xb124x10|| 200;return function(_0xb124x13){if(_0xb124x13){_0xb124xf[_0xae78[19]](_0xb124x10)[_0xae78[20]](_0xb124x13)}}}function responseWithoutResult(_0xb124xf,_0xb124x10){_0xb124x10= _0xb124x10|| 204;return function(){_0xb124xf[_0xae78[21]](_0xb124x10)}}function handleEntityNotFound(_0xb124xf){return function(_0xb124x13){if(!_0xb124x13){_0xb124xf[_0xae78[19]](404)[_0xae78[22]]();return null};return _0xb124x13}}function saveUpdates(_0xb124x17){return function(_0xb124x13){return _0xb124x13[_0xae78[24]](_0xb124x17)[_0xae78[23]](function(_0xb124x18){return _0xb124x18})}}function removeEntity(_0xb124xf){return function(_0xb124x13){if(_0xb124x13){return _0xb124x13[_0xae78[25]]()[_0xae78[23]](function(){_0xb124xf[_0xae78[19]](204)[_0xae78[22]]()})}}}exports[_0xae78[26]]= function(_0xb124x1a,_0xb124xf){return FaxAccount[_0xae78[30]](Util[_0xae78[29]](_0xb124x1a[_0xae78[28]]))[_0xae78[23]](responseWithResult(_0xb124xf))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[31]]= function(_0xb124x1a,_0xb124xf){return FaxAccount[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[32]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](responseWithResult(_0xb124xf))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[35]]= function(_0xb124x1a,_0xb124xf){return sequelize[_0xae78[43]](function(_0xb124x1b){return FaxAccount[_0xae78[35]](_0xb124x1a[_0xae78[42]],{transaction:_0xb124x1b})})[_0xae78[23]](responseWithoutResult(_0xb124xf,201))[_0xae78[27]](sequelize.ValidationError,function(_0xb124x11){_0xb124x11[_0xae78[38]]= _0xae78[39];_0xb124x11[_0xae78[40]]= _0xae78[41];return _0xb124xf[_0xae78[19]](500)[_0xae78[18]](_0xb124x11)})[_0xae78[27]](sequelize.UniqueConstraintError,function(_0xb124x11){return Util[_0xae78[37]][_0xae78[36]](_0xb124xf,_0xb124x11)})[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[44]]= function(_0xb124x1a,_0xb124xf){if(_0xb124x1a[_0xae78[42]][_0xae78[32]]){delete _0xb124x1a[_0xae78[42]][_0xae78[32]]};return sequelize[_0xae78[43]](function(_0xb124x1b){return FaxAccount[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[32]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](function(_0xb124x1c){return _0xb124x1c[_0xae78[24]](_0xb124x1a[_0xae78[42]],{transaction:_0xb124x1b})})})[_0xae78[23]](responseWithoutResult(_0xb124xf))[_0xae78[27]](sequelize.ValidationError,function(_0xb124x11){_0xb124x11[_0xae78[38]]= _0xae78[39];_0xb124x11[_0xae78[40]]= _0xae78[41];return _0xb124xf[_0xae78[19]](500)[_0xae78[18]](_0xb124x11)})[_0xae78[27]](sequelize.UniqueConstraintError,function(_0xb124x11){return Util[_0xae78[37]][_0xae78[36]](_0xb124xf,_0xb124x11)})[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[25]]= function(_0xb124x1a,_0xb124xf){return sequelize[_0xae78[43]](function(_0xb124x1b){return FaxAccount[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[32]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](function(_0xb124x1c){return _0xb124x1c[_0xae78[25]]()})})[_0xae78[23]](function(){_0xb124xf[_0xae78[19]](204)[_0xae78[22]]()})[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[45]]= function(_0xb124x1a,_0xb124xf){return FaxAccount[_0xae78[25]]({where:{id:_0xb124x1a[_0xae78[28]][_0xae78[46]]},individualHooks:true})[_0xae78[23]](responseWithoutResult(_0xb124xf))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[47]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){return FaxAccount[_0xae78[55]](_0xae78[54])[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[32]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](function(_0xb124x1c){return _0xb124x1c[_0xae78[53]](_[_0xae78[52]](Util[_0xae78[29]](_0xb124x1a[_0xae78[28]]),{include:[{model:FaxQueue,attributes:[_0xae78[32],_0xae78[49]]},{model:User,attributes:[_0xae78[32],_0xae78[49],_0xae78[50]]},{model:Interval,attributes:[_0xae78[32],_0xae78[49]]}],order:_0xae78[51]}))})[_0xae78[23]](function(_0xb124x1e){return _0xb124xf[_0xae78[18]]({count:_0xb124x1e[_0xae78[48]],rows:_0xb124x1e})})[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[56]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){return FaxApplication[_0xae78[59]](_0xae78[57],{where:{FaxAccountId:_0xb124x1a[_0xae78[33]][_0xae78[32]]}})[_0xae78[23]](function(_0xb124x1f){_0xb124x1a[_0xae78[42]][_0xae78[57]]= _0xb124x1f?++_0xb124x1f:1;_0xb124x1a[_0xae78[42]][_0xae78[58]]= _0xb124x1a[_0xae78[33]][_0xae78[32]];return FaxApplication[_0xae78[35]](_0xb124x1a[_0xae78[42]])})[_0xae78[23]](responseWithResult(_0xb124xf,201))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[60]]= function(_0xb124x1a,_0xb124xf){return FaxApplication[_0xae78[25]]({where:{id:_0xb124x1a[_0xae78[28]][_0xae78[46]]},individualHooks:true})[_0xae78[23]](responseWithoutResult(_0xb124xf))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[61]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){return FaxApplication[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[62]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](removeEntity(_0xb124xf))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[63]]= function(_0xb124x1a,_0xb124xf){var _0xb124x20=0;var _0xb124x21=_0xb124x1a[_0xae78[42]];_0xb124x21[_0xae78[66]](function(_0xb124x22){delete _0xb124x22[_0xae78[32]];delete _0xb124x22[_0xae78[64]];delete _0xb124x22[_0xae78[65]];_0xb124x22[_0xae78[57]]=  ++_0xb124x20});return sequelize[_0xae78[43]](function(_0xb124x1b){return FaxApplication[_0xae78[25]]({where:{FaxAccountId:_0xb124x1a[_0xae78[33]][_0xae78[32]]},individualHooks:true,transaction:_0xb124x1b})[_0xae78[23]](function(_0xb124x23){return FaxApplication[_0xae78[67]](_0xb124x21,{individualHooks:true,transaction:_0xb124x1b})})})[_0xae78[23]](function(_0xb124x1e){return _0xb124xf[_0xae78[19]](200)[_0xae78[18]]({count:_0xb124x1e[_0xae78[48]],rows:_0xb124x1e})})[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[68]]= function(_0xb124x1a,_0xb124xf){if(_0xb124x1a[_0xae78[42]][_0xae78[32]]){delete _0xb124x1a[_0xae78[42]][_0xae78[32]]};return FaxApplication[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[62]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](saveUpdates(_0xb124x1a[_0xae78[42]]))[_0xae78[23]](responseWithResult(_0xb124xf))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[69]]= function(_0xb124x1a,_0xb124xf){return FaxApplication[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[62]],{include:[{all:true}]})[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](responseWithResult(_0xb124xf))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[70]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){var _0xb124x24={where:{FaxAccountId:_0xb124x1a[_0xae78[33]][_0xae78[32]],$and:[]},include:[],attributes:[_0xae78[32],_0xae78[71],_0xae78[72],_0xae78[73],_0xae78[74],_0xae78[64],_0xae78[65]]};if(_0xb124x1a[_0xae78[28]]){if(_0xb124x1a[_0xae78[28]][_0xae78[73]]){if(_[_0xae78[75]](_0xb124x1a[_0xae78[28]][_0xae78[73]])){for(var _0xb124x25=0;_0xb124x25< _0xb124x1a[_0xae78[28]][_0xae78[73]][_0xae78[48]];_0xb124x25++){_0xb124x24[_0xae78[79]][_0xae78[78]][_0xae78[77]]({tags:{$like:_0xae78[76]+ _0xb124x1a[_0xae78[28]][_0xae78[73]][_0xb124x25]+ _0xae78[76]}})}}else {_0xb124x24[_0xae78[79]][_0xae78[78]][_0xae78[77]]({tags:{$like:_0xae78[76]+ _0xb124x1a[_0xae78[28]][_0xae78[73]]+ _0xae78[76]}})};delete _0xb124x1a[_0xae78[28]][_0xae78[73]]};_[_0xae78[52]](_0xb124x24[_0xae78[79]],_0xb124x1a[_0xae78[28]])};switch(_0xb124x1a[_0xae78[88]][_0xae78[91]]){case _0xae78[81]:_0xb124x24[_0xae78[80]][_0xae78[77]]({model:User,attributes:[_0xae78[32]]});var _0xb124x26;var _0xb124x27;var _0xb124x28;return User[_0xae78[34]](_0xb124x1a[_0xae78[88]][_0xae78[32]])[_0xae78[23]](function(_0xb124x2c){if(_0xb124x2c){return _0xb124x2c[_0xae78[90]]()}else {return []}})[_0xae78[23]](function(_0xb124x2b){_0xb124x27= _[_0xae78[84]](_0xb124x2b,_0xae78[32]);return FaxAccount[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[32]])})[_0xae78[23]](function(_0xb124x29){if(!_0xb124x29){return _0xb124xf[_0xae78[21]](404)};return _0xb124x29[_0xae78[53]]({where:{$or:[{app:_0xae78[85]},{app:_0xae78[81]}]}})[_0xae78[23]](function(_0xb124x21){_0xb124x26= _[_0xae78[84]](_[_0xae78[82]](_0xb124x21,{"\x61\x70\x70":_0xae78[81]}),_0xae78[83]);_0xb124x28= _[_0xae78[84]](_[_0xae78[82]](_0xb124x21,{"\x61\x70\x70":_0xae78[85]}),_0xae78[86]);if(_[_0xae78[87]](_0xb124x27,_0xb124x28)[_0xae78[48]]|| _[_0xae78[87]](_0xb124x26,[_0xb124x1a[_0xae78[88]][_0xae78[32]]])[_0xae78[48]]){return FaxRoom[_0xae78[89]](_0xb124x24)[_0xae78[23]](function(_0xb124x2a){return _0xb124xf[_0xae78[19]](200)[_0xae78[18]](_0xb124x2a)})[_0xae78[27]](function(_0xb124x11){return handleError(_0xb124xf,_0xb124x11)})}else {return _0xb124xf[_0xae78[19]](200)[_0xae78[18]]([])}})})[_0xae78[27]](handleError(_0xb124xf));default:return FaxRoom[_0xae78[89]](_0xb124x24)[_0xae78[23]](function(_0xb124x2a){return _0xb124xf[_0xae78[19]](200)[_0xae78[18]](_0xb124x2a)})[_0xae78[27]](handleError(_0xb124xf))}};exports[_0xae78[92]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){return FaxAccount[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[32]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](function(_0xb124x1c){return _0xb124x1c[_0xae78[93]]()})[_0xae78[23]](function(_0xb124x2d){return _0xb124xf[_0xae78[19]](200)[_0xae78[18]]({rows:_0xb124x2d,count:_0xb124x2d[_0xae78[48]]})})[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[94]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){_0xb124x1a[_0xae78[42]][_0xae78[58]]= _0xb124x1a[_0xae78[33]][_0xae78[32]];return FaxDisposition[_0xae78[35]](_0xb124x1a[_0xae78[42]])[_0xae78[23]](responseWithResult(_0xb124xf,201))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[95]]= function(_0xb124x1a,_0xb124xf){if(_0xb124x1a[_0xae78[42]][_0xae78[32]]){delete _0xb124x1a[_0xae78[42]][_0xae78[32]]};return FaxDisposition[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[97]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](function(_0xb124x2e){var _0xb124x18=_[_0xae78[52]](_0xb124x2e,_0xb124x1a[_0xae78[42]]);return _0xb124x18[_0xae78[96]]()})[_0xae78[23]](responseWithResult(_0xb124xf,200))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[98]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){return FaxDisposition[_0xae78[34]](_0xb124x1a[_0xae78[33]][_0xae78[97]])[_0xae78[23]](handleEntityNotFound(_0xb124xf))[_0xae78[23]](function(_0xb124x2f){return _0xb124x2f[_0xae78[25]]()})[_0xae78[23]](responseWithoutResult(_0xb124xf,204))[_0xae78[27]](handleError(_0xb124xf))};exports[_0xae78[99]]= function(_0xb124x1a,_0xb124xf,_0xb124x1d){_0xb124x1a[_0xae78[42]][_0xae78[83]]= _0xb124x1a[_0xae78[88]][_0xae78[32]];return FaxMessage[_0xae78[35]](_0xb124x1a[_0xae78[42]],{include:[{model:FaxAttachment}],user:_0xb124x1a[_0xae78[88]]})[_0xae78[23]](function(_0xb124x30){if(_0xb124x30){_0xb124x1a[_0xae78[103]][_0xae78[102]][_0xae78[101]][_0xae78[18]]({message:_0xae78[100],doc:_0xb124x30,options:{user:_0xb124x1a[_0xae78[88]]}});return _0xb124x30}})[_0xae78[23]](responseWithResult(_0xb124xf,201))[_0xae78[27]](handleError(_0xb124xf))}
\ No newline at end of file