05872b3282cfd01e701b0a2e2cbacfbf4fc3634d
[motion.git] / server / api / fax_account / fax_account.controller.js
1 var _0xfcdf=["\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"];_0xfcdf[0];var _=require(_0xfcdf[1]);var Util=require(_0xfcdf[2]);var logger=require(_0xfcdf[4])(_0xfcdf[3]);var sequelize=require(_0xfcdf[6])[_0xfcdf[5]];var FaxAccount=require(_0xfcdf[6])[_0xfcdf[7]];var FaxRoom=require(_0xfcdf[6])[_0xfcdf[8]];var FaxApplication=require(_0xfcdf[6])[_0xfcdf[9]];var FaxQueue=require(_0xfcdf[6])[_0xfcdf[10]];var FaxDisposition=require(_0xfcdf[6])[_0xfcdf[11]];var FaxMessage=require(_0xfcdf[6])[_0xfcdf[12]];var FaxAttachment=require(_0xfcdf[6])[_0xfcdf[13]];var User=require(_0xfcdf[6])[_0xfcdf[14]];var Interval=require(_0xfcdf[6])[_0xfcdf[15]];function handleError(_0xd43axf,_0xd43ax10){_0xd43ax10= _0xd43ax10|| 500;return function(_0xd43ax11){logger[_0xfcdf[17]](_0xd43ax11[_0xfcdf[16]]);_0xd43axf[_0xfcdf[19]](_0xd43ax10)[_0xfcdf[18]](_0xd43ax11)}}function responseWithResult(_0xd43axf,_0xd43ax10){_0xd43ax10= _0xd43ax10|| 200;return function(_0xd43ax13){if(_0xd43ax13){_0xd43axf[_0xfcdf[19]](_0xd43ax10)[_0xfcdf[20]](_0xd43ax13)}}}function responseWithoutResult(_0xd43axf,_0xd43ax10){_0xd43ax10= _0xd43ax10|| 204;return function(){_0xd43axf[_0xfcdf[21]](_0xd43ax10)}}function handleEntityNotFound(_0xd43axf){return function(_0xd43ax13){if(!_0xd43ax13){_0xd43axf[_0xfcdf[19]](404)[_0xfcdf[22]]();return null};return _0xd43ax13}}function saveUpdates(_0xd43ax17){return function(_0xd43ax13){return _0xd43ax13[_0xfcdf[24]](_0xd43ax17)[_0xfcdf[23]](function(_0xd43ax18){return _0xd43ax18})}}function removeEntity(_0xd43axf){return function(_0xd43ax13){if(_0xd43ax13){return _0xd43ax13[_0xfcdf[25]]()[_0xfcdf[23]](function(){_0xd43axf[_0xfcdf[19]](204)[_0xfcdf[22]]()})}}}exports[_0xfcdf[26]]= function(_0xd43ax1a,_0xd43axf){return FaxAccount[_0xfcdf[30]](Util[_0xfcdf[29]](_0xd43ax1a[_0xfcdf[28]]))[_0xfcdf[23]](responseWithResult(_0xd43axf))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[31]]= function(_0xd43ax1a,_0xd43axf){return FaxAccount[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](responseWithResult(_0xd43axf))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[35]]= function(_0xd43ax1a,_0xd43axf){return sequelize[_0xfcdf[43]](function(_0xd43ax1b){return FaxAccount[_0xfcdf[35]](_0xd43ax1a[_0xfcdf[42]],{transaction:_0xd43ax1b})})[_0xfcdf[23]](responseWithoutResult(_0xd43axf,201))[_0xfcdf[27]](sequelize.ValidationError,function(_0xd43ax11){_0xd43ax11[_0xfcdf[38]]= _0xfcdf[39];_0xd43ax11[_0xfcdf[40]]= _0xfcdf[41];return _0xd43axf[_0xfcdf[19]](500)[_0xfcdf[18]](_0xd43ax11)})[_0xfcdf[27]](sequelize.UniqueConstraintError,function(_0xd43ax11){return Util[_0xfcdf[37]][_0xfcdf[36]](_0xd43axf,_0xd43ax11)})[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[44]]= function(_0xd43ax1a,_0xd43axf){if(_0xd43ax1a[_0xfcdf[42]][_0xfcdf[32]]){delete _0xd43ax1a[_0xfcdf[42]][_0xfcdf[32]]};return sequelize[_0xfcdf[43]](function(_0xd43ax1b){return FaxAccount[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](function(_0xd43ax1c){return _0xd43ax1c[_0xfcdf[24]](_0xd43ax1a[_0xfcdf[42]],{transaction:_0xd43ax1b})})})[_0xfcdf[23]](responseWithoutResult(_0xd43axf))[_0xfcdf[27]](sequelize.ValidationError,function(_0xd43ax11){_0xd43ax11[_0xfcdf[38]]= _0xfcdf[39];_0xd43ax11[_0xfcdf[40]]= _0xfcdf[41];return _0xd43axf[_0xfcdf[19]](500)[_0xfcdf[18]](_0xd43ax11)})[_0xfcdf[27]](sequelize.UniqueConstraintError,function(_0xd43ax11){return Util[_0xfcdf[37]][_0xfcdf[36]](_0xd43axf,_0xd43ax11)})[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[25]]= function(_0xd43ax1a,_0xd43axf){return sequelize[_0xfcdf[43]](function(_0xd43ax1b){return FaxAccount[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](function(_0xd43ax1c){return _0xd43ax1c[_0xfcdf[25]]()})})[_0xfcdf[23]](function(){_0xd43axf[_0xfcdf[19]](204)[_0xfcdf[22]]()})[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[45]]= function(_0xd43ax1a,_0xd43axf){return FaxAccount[_0xfcdf[25]]({where:{id:_0xd43ax1a[_0xfcdf[28]][_0xfcdf[46]]},individualHooks:true})[_0xfcdf[23]](responseWithoutResult(_0xd43axf))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[47]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){return FaxAccount[_0xfcdf[55]](_0xfcdf[54])[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](function(_0xd43ax1c){return _0xd43ax1c[_0xfcdf[53]](_[_0xfcdf[52]](Util[_0xfcdf[29]](_0xd43ax1a[_0xfcdf[28]]),{include:[{model:FaxQueue,attributes:[_0xfcdf[32],_0xfcdf[49]]},{model:User,attributes:[_0xfcdf[32],_0xfcdf[49],_0xfcdf[50]]},{model:Interval,attributes:[_0xfcdf[32],_0xfcdf[49]]}],order:_0xfcdf[51]}))})[_0xfcdf[23]](function(_0xd43ax1e){return _0xd43axf[_0xfcdf[18]]({count:_0xd43ax1e[_0xfcdf[48]],rows:_0xd43ax1e})})[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[56]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){return FaxApplication[_0xfcdf[59]](_0xfcdf[57],{where:{FaxAccountId:_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]]}})[_0xfcdf[23]](function(_0xd43ax1f){_0xd43ax1a[_0xfcdf[42]][_0xfcdf[57]]= _0xd43ax1f?++_0xd43ax1f:1;_0xd43ax1a[_0xfcdf[42]][_0xfcdf[58]]= _0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]];return FaxApplication[_0xfcdf[35]](_0xd43ax1a[_0xfcdf[42]])})[_0xfcdf[23]](responseWithResult(_0xd43axf,201))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[60]]= function(_0xd43ax1a,_0xd43axf){return FaxApplication[_0xfcdf[25]]({where:{id:_0xd43ax1a[_0xfcdf[28]][_0xfcdf[46]]},individualHooks:true})[_0xfcdf[23]](responseWithoutResult(_0xd43axf))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[61]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){return FaxApplication[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[62]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](removeEntity(_0xd43axf))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[63]]= function(_0xd43ax1a,_0xd43axf){var _0xd43ax20=0;var _0xd43ax21=_0xd43ax1a[_0xfcdf[42]];_0xd43ax21[_0xfcdf[66]](function(_0xd43ax22){delete _0xd43ax22[_0xfcdf[32]];delete _0xd43ax22[_0xfcdf[64]];delete _0xd43ax22[_0xfcdf[65]];_0xd43ax22[_0xfcdf[57]]=  ++_0xd43ax20});return sequelize[_0xfcdf[43]](function(_0xd43ax1b){return FaxApplication[_0xfcdf[25]]({where:{FaxAccountId:_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]]},individualHooks:true,transaction:_0xd43ax1b})[_0xfcdf[23]](function(_0xd43ax23){return FaxApplication[_0xfcdf[67]](_0xd43ax21,{individualHooks:true,transaction:_0xd43ax1b})})})[_0xfcdf[23]](function(_0xd43ax1e){return _0xd43axf[_0xfcdf[19]](200)[_0xfcdf[18]]({count:_0xd43ax1e[_0xfcdf[48]],rows:_0xd43ax1e})})[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[68]]= function(_0xd43ax1a,_0xd43axf){if(_0xd43ax1a[_0xfcdf[42]][_0xfcdf[32]]){delete _0xd43ax1a[_0xfcdf[42]][_0xfcdf[32]]};return FaxApplication[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[62]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](saveUpdates(_0xd43ax1a[_0xfcdf[42]]))[_0xfcdf[23]](responseWithResult(_0xd43axf))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[69]]= function(_0xd43ax1a,_0xd43axf){return FaxApplication[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[62]],{include:[{all:true}]})[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](responseWithResult(_0xd43axf))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[70]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){var _0xd43ax24={where:{FaxAccountId:_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]],$and:[]},include:[],attributes:[_0xfcdf[32],_0xfcdf[71],_0xfcdf[72],_0xfcdf[73],_0xfcdf[74],_0xfcdf[64],_0xfcdf[65]]};if(_0xd43ax1a[_0xfcdf[28]]){if(_0xd43ax1a[_0xfcdf[28]][_0xfcdf[73]]){if(_[_0xfcdf[75]](_0xd43ax1a[_0xfcdf[28]][_0xfcdf[73]])){for(var _0xd43ax25=0;_0xd43ax25< _0xd43ax1a[_0xfcdf[28]][_0xfcdf[73]][_0xfcdf[48]];_0xd43ax25++){_0xd43ax24[_0xfcdf[79]][_0xfcdf[78]][_0xfcdf[77]]({tags:{$like:_0xfcdf[76]+ _0xd43ax1a[_0xfcdf[28]][_0xfcdf[73]][_0xd43ax25]+ _0xfcdf[76]}})}}else {_0xd43ax24[_0xfcdf[79]][_0xfcdf[78]][_0xfcdf[77]]({tags:{$like:_0xfcdf[76]+ _0xd43ax1a[_0xfcdf[28]][_0xfcdf[73]]+ _0xfcdf[76]}})};delete _0xd43ax1a[_0xfcdf[28]][_0xfcdf[73]]};_[_0xfcdf[52]](_0xd43ax24[_0xfcdf[79]],_0xd43ax1a[_0xfcdf[28]])};switch(_0xd43ax1a[_0xfcdf[88]][_0xfcdf[91]]){case _0xfcdf[81]:_0xd43ax24[_0xfcdf[80]][_0xfcdf[77]]({model:User,attributes:[_0xfcdf[32]]});var _0xd43ax26;var _0xd43ax27;var _0xd43ax28;return User[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[88]][_0xfcdf[32]])[_0xfcdf[23]](function(_0xd43ax2c){if(_0xd43ax2c){return _0xd43ax2c[_0xfcdf[90]]()}else {return []}})[_0xfcdf[23]](function(_0xd43ax2b){_0xd43ax27= _[_0xfcdf[84]](_0xd43ax2b,_0xfcdf[32]);return FaxAccount[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]])})[_0xfcdf[23]](function(_0xd43ax29){if(!_0xd43ax29){return _0xd43axf[_0xfcdf[21]](404)};return _0xd43ax29[_0xfcdf[53]]({where:{$or:[{app:_0xfcdf[85]},{app:_0xfcdf[81]}]}})[_0xfcdf[23]](function(_0xd43ax21){_0xd43ax26= _[_0xfcdf[84]](_[_0xfcdf[82]](_0xd43ax21,{"\x61\x70\x70":_0xfcdf[81]}),_0xfcdf[83]);_0xd43ax28= _[_0xfcdf[84]](_[_0xfcdf[82]](_0xd43ax21,{"\x61\x70\x70":_0xfcdf[85]}),_0xfcdf[86]);if(_[_0xfcdf[87]](_0xd43ax27,_0xd43ax28)[_0xfcdf[48]]|| _[_0xfcdf[87]](_0xd43ax26,[_0xd43ax1a[_0xfcdf[88]][_0xfcdf[32]]])[_0xfcdf[48]]){return FaxRoom[_0xfcdf[89]](_0xd43ax24)[_0xfcdf[23]](function(_0xd43ax2a){return _0xd43axf[_0xfcdf[19]](200)[_0xfcdf[18]](_0xd43ax2a)})[_0xfcdf[27]](function(_0xd43ax11){return handleError(_0xd43axf,_0xd43ax11)})}else {return _0xd43axf[_0xfcdf[19]](200)[_0xfcdf[18]]([])}})})[_0xfcdf[27]](handleError(_0xd43axf));default:return FaxRoom[_0xfcdf[89]](_0xd43ax24)[_0xfcdf[23]](function(_0xd43ax2a){return _0xd43axf[_0xfcdf[19]](200)[_0xfcdf[18]](_0xd43ax2a)})[_0xfcdf[27]](handleError(_0xd43axf))}};exports[_0xfcdf[92]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){return FaxAccount[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](function(_0xd43ax1c){return _0xd43ax1c[_0xfcdf[93]]()})[_0xfcdf[23]](function(_0xd43ax2d){return _0xd43axf[_0xfcdf[19]](200)[_0xfcdf[18]]({rows:_0xd43ax2d,count:_0xd43ax2d[_0xfcdf[48]]})})[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[94]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){_0xd43ax1a[_0xfcdf[42]][_0xfcdf[58]]= _0xd43ax1a[_0xfcdf[33]][_0xfcdf[32]];return FaxDisposition[_0xfcdf[35]](_0xd43ax1a[_0xfcdf[42]])[_0xfcdf[23]](responseWithResult(_0xd43axf,201))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[95]]= function(_0xd43ax1a,_0xd43axf){if(_0xd43ax1a[_0xfcdf[42]][_0xfcdf[32]]){delete _0xd43ax1a[_0xfcdf[42]][_0xfcdf[32]]};return FaxDisposition[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[97]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](function(_0xd43ax2e){var _0xd43ax18=_[_0xfcdf[52]](_0xd43ax2e,_0xd43ax1a[_0xfcdf[42]]);return _0xd43ax18[_0xfcdf[96]]()})[_0xfcdf[23]](responseWithResult(_0xd43axf,200))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[98]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){return FaxDisposition[_0xfcdf[34]](_0xd43ax1a[_0xfcdf[33]][_0xfcdf[97]])[_0xfcdf[23]](handleEntityNotFound(_0xd43axf))[_0xfcdf[23]](function(_0xd43ax2f){return _0xd43ax2f[_0xfcdf[25]]()})[_0xfcdf[23]](responseWithoutResult(_0xd43axf,204))[_0xfcdf[27]](handleError(_0xd43axf))};exports[_0xfcdf[99]]= function(_0xd43ax1a,_0xd43axf,_0xd43ax1d){_0xd43ax1a[_0xfcdf[42]][_0xfcdf[83]]= _0xd43ax1a[_0xfcdf[88]][_0xfcdf[32]];return FaxMessage[_0xfcdf[35]](_0xd43ax1a[_0xfcdf[42]],{include:[{model:FaxAttachment}],user:_0xd43ax1a[_0xfcdf[88]]})[_0xfcdf[23]](function(_0xd43ax30){if(_0xd43ax30){_0xd43ax1a[_0xfcdf[103]][_0xfcdf[102]][_0xfcdf[101]][_0xfcdf[18]]({message:_0xfcdf[100],doc:_0xd43ax30,options:{user:_0xd43ax1a[_0xfcdf[88]]}});return _0xd43ax30}})[_0xfcdf[23]](responseWithResult(_0xd43axf,201))[_0xfcdf[27]](handleError(_0xd43axf))}