Built motion from commit bc1ab7c3.|2.0.43
[motion2.git] / server / api / mailDisposition / mailDisposition.controller.js
index 3773226..f462bf2 100644 (file)
@@ -1 +1 @@
-var _0x5345=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x61\x73\x74\x2D\x6A\x73\x6F\x6E\x2D\x70\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x75\x73\x74\x61\x63\x68\x65","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x73\x6F\x78","\x74\x6F\x2D\x63\x73\x76","\x65\x6A\x73","\x66\x73","\x6C\x6F\x64\x61\x73\x68","\x73\x71\x75\x65\x6C","\x63\x72\x79\x70\x74\x6F","\x6A\x73\x66\x6F\x72\x63\x65","\x64\x65\x73\x6B\x2E\x6A\x73","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x70\x61\x72\x73\x65\x72\x73\x2F\x71\x73","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x4D\x61\x69\x6C\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x6E\x6F\x20\x63\x6F\x6E\x74\x65\x6E\x74","\x69\x6E\x66\x6F","\x4D\x61\x69\x6C\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x64\x65\x62\x75\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x65\x6E\x74\x69\x74\x79\x20\x66\x6F\x75\x6E\x64","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6A\x73\x6F\x6E","\x63\x6F\x75\x6E\x74","\x6F\x66\x66\x73\x65\x74","\x6C\x69\x6D\x69\x74","\x65\x6E\x74\x69\x74\x69\x65\x73\x20\x66\x6F\x75\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x52\x61\x6E\x67\x65","\x2D","\x2F","\x73\x65\x74","\x61\x70\x70\x6C\x79","\x72\x65\x6A\x65\x63\x74","\x73\x61\x76\x65","\x65\x6E\x74\x69\x74\x79\x20\x75\x70\x64\x61\x74\x65\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65","\x65\x6E\x74\x69\x74\x79\x20\x72\x65\x6D\x6F\x76\x65\x64","\x64\x65\x73\x74\x72\x6F\x79","\x65\x6E\x74\x69\x74\x79\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x65\x72\x72\x6F\x72","\x69\x6E\x73\x70\x65\x63\x74","\x6E\x61\x6D\x65","\x73\x65\x6E\x64","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x6D\x6F\x64\x65\x6C","\x72\x61\x77\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x4D\x61\x69\x6C\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x6B\x65\x79\x73","\x71\x75\x65\x72\x79","\x66\x69\x6C\x74\x65\x72\x73","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x69\x6F\x6E","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x69\x65\x6C\x64\x73","\x6C\x65\x6E\x67\x74\x68","\x69\x6E\x63\x6C\x75\x64\x65\x41\x6C\x6C","\x69\x6E\x63\x6C\x75\x64\x65","\x6F\x70\x74\x69\x6F\x6E\x73","\x6D\x65\x72\x67\x65","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79"];_0x5345[0];var jsonpatch=require(_0x5345[1]);var rp=require(_0x5345[2]);var moment=require(_0x5345[3]);var BPromise=require(_0x5345[4]);var Mustache=require(_0x5345[5]);var util=require(_0x5345[6]);var path=require(_0x5345[7]);var sox=require(_0x5345[8]);var csv=require(_0x5345[9]);var ejs=require(_0x5345[10]);var fs=require(_0x5345[11]);var _=require(_0x5345[12]);var squel=require(_0x5345[13]);var crypto=require(_0x5345[14]);var jsforce=require(_0x5345[15]);var deskjs=require(_0x5345[16]);var toCsv=require(_0x5345[9]);var querystring=require(_0x5345[17]);var qs=require(_0x5345[18]);var logger=require(_0x5345[20])(_0x5345[19]);var utils=require(_0x5345[21]);var config=require(_0x5345[22]);var db=require(_0x5345[24])[_0x5345[23]];function respondWithStatusCode(_0xa401x19,_0xa401x1a,_0xa401x1b){_0xa401x1a= _0xa401x1a|| 204;return function(_0xa401x1c){if(_0xa401x1c){logger[_0x5345[27]](_0x5345[25],_0xa401x1b,_0xa401x1a,_0x5345[26]);logger[_0x5345[29]](_0x5345[28],_0xa401x1b,_0xa401x1a,_0x5345[26]);return _0xa401x19[_0x5345[30]](_0xa401x1a)};return _0xa401x19[_0x5345[32]](_0xa401x1a)[_0x5345[31]]()}}function respondWithResult(_0xa401x19,_0xa401x1a,_0xa401x1b){_0xa401x1a= _0xa401x1a|| 200;return function(_0xa401x1c){if(_0xa401x1c){logger[_0x5345[27]](_0x5345[25],_0xa401x1b,_0xa401x1a,_0x5345[33]);logger[_0x5345[29]](_0x5345[28],_0xa401x1b,_0xa401x1a,_0x5345[33],JSON[_0x5345[34]](_0xa401x1c));return _0xa401x19[_0x5345[32]](_0xa401x1a)[_0x5345[35]](_0xa401x1c)}}}function respondWithFilteredResult(_0xa401x19,_0xa401x1f,_0xa401x1b){return function(_0xa401x1c){if(_0xa401x1c){var _0xa401x20=_0xa401x1c[_0x5345[36]],_0xa401x21=_0xa401x1f[_0x5345[37]],_0xa401x22=_0xa401x1f[_0x5345[37]]+ _0xa401x1f[_0x5345[38]],_0xa401x1a;if(_0xa401x22>= _0xa401x20){_0xa401x22= _0xa401x20;_0xa401x1a= 200}else {_0xa401x1a= 206};_0xa401x19[_0x5345[32]](_0xa401x1a);logger[_0x5345[27]](_0x5345[25],_0xa401x1b,_0xa401x1a,_0x5345[39]);logger[_0x5345[29]](_0x5345[28],_0xa401x1b,_0xa401x1a,_0x5345[33],JSON[_0x5345[34]](_0xa401x1c));return _0xa401x19[_0x5345[43]](_0x5345[40],_0xa401x21+ _0x5345[41]+ _0xa401x22+ _0x5345[42]+ _0xa401x20)[_0x5345[35]](_0xa401x1c)};return null}}function patchUpdates(_0xa401x24){return function(_0xa401x1c){try{jsonpatch[_0x5345[44]](_0xa401x1c,_0xa401x24,true)}catch(err){return BPromise[_0x5345[45]](err)};return _0xa401x1c[_0x5345[46]]()}}function saveUpdates(_0xa401x26,_0xa401x1a,_0xa401x1b){return function(_0xa401x1c){if(_0xa401x1c){return _0xa401x1c[_0x5345[49]](_0xa401x26)[_0x5345[48]](function(_0xa401x27){logger[_0x5345[27]](_0x5345[25],_0xa401x1b,_0xa401x1a,_0x5345[47]);logger[_0x5345[29]](_0x5345[28],_0xa401x1b,_0xa401x1a,_0x5345[47],JSON[_0x5345[34]](_0xa401x1c));return _0xa401x27})};return null}}function removeEntity(_0xa401x19,_0xa401x1a,_0xa401x1b){return function(_0xa401x1c){if(_0xa401x1c){return _0xa401x1c[_0x5345[51]]()[_0x5345[48]](function(){logger[_0x5345[27]](_0x5345[25],_0xa401x1b,_0xa401x1a,_0x5345[50]);logger[_0x5345[29]](_0x5345[28],_0xa401x1b,_0xa401x1a,_0x5345[50],JSON[_0x5345[34]](_0xa401x1c));_0xa401x19[_0x5345[32]](204)[_0x5345[31]]()})}}}function handleEntityNotFound(_0xa401x19,_0xa401x1a,_0xa401x1b){return function(_0xa401x1c){if(!_0xa401x1c){logger[_0x5345[53]](_0x5345[25],_0xa401x1b,404,_0x5345[52]);_0xa401x19[_0x5345[30]](404)};return _0xa401x1c}}function handleError(_0xa401x19,_0xa401x1a,_0xa401x1b){_0xa401x1a= _0xa401x1a|| 500;return function(_0xa401x2b){logger[_0x5345[53]](_0x5345[25],_0xa401x1b,_0xa401x1a,util[_0x5345[54]](_0xa401x2b,{showHidden:false,depth:null}));delete _0xa401x2b[_0x5345[55]];_0xa401x19[_0x5345[32]](_0xa401x1a)[_0x5345[56]](_0xa401x2b)}}exports[_0x5345[57]]= function(_0xa401x2c,_0xa401x19){var _0xa401x1f={raw:true,where:{id:_0xa401x2c[_0x5345[59]][_0x5345[58]]}},_0xa401x2d={};_0xa401x2d[_0x5345[60]]= _[_0x5345[63]](db[_0x5345[62]][_0x5345[61]]);_0xa401x2d[_0x5345[64]]= _[_0x5345[63]](_0xa401x2c[_0x5345[64]]);_0xa401x2d[_0x5345[65]]= _[_0x5345[66]](_0xa401x2d[_0x5345[60]],_0xa401x2d[_0x5345[64]]);_0xa401x1f[_0x5345[67]]= _[_0x5345[66]](_0xa401x2d[_0x5345[60]],qs[_0x5345[68]](_0xa401x2c[_0x5345[64]][_0x5345[68]]));_0xa401x1f[_0x5345[67]]= (_0xa401x1f[_0x5345[67]][_0x5345[69]])?_0xa401x1f[_0x5345[67]]:_0xa401x2d[_0x5345[60]];if(_0xa401x2c[_0x5345[64]][_0x5345[70]]){_0xa401x1f[_0x5345[71]]= [{all:true}]};_0xa401x1f= _[_0x5345[73]]({},_0xa401x1f,_0xa401x2c[_0x5345[72]]);return db[_0x5345[62]][_0x5345[75]](_0xa401x1f)[_0x5345[48]](handleEntityNotFound(_0xa401x19,null,_0x5345[57]))[_0x5345[48]](respondWithResult(_0xa401x19,null,_0x5345[57]))[_0x5345[74]](handleError(_0xa401x19,null,_0x5345[57]))};exports[_0x5345[76]]= function(_0xa401x2c,_0xa401x19){return db[_0x5345[62]][_0x5345[76]](_0xa401x2c[_0x5345[77]],{})[_0x5345[48]](respondWithResult(_0xa401x19,201,_0x5345[76]))[_0x5345[74]](handleError(_0xa401x19,null,_0x5345[76]))};exports[_0x5345[49]]= function(_0xa401x2c,_0xa401x19){if(_0xa401x2c[_0x5345[77]][_0x5345[58]]){delete _0xa401x2c[_0x5345[77]][_0x5345[58]]};return db[_0x5345[62]][_0x5345[75]]({where:{id:_0xa401x2c[_0x5345[59]][_0x5345[58]]}})[_0x5345[48]](handleEntityNotFound(_0xa401x19,null,_0x5345[49]))[_0x5345[48]](saveUpdates(_0xa401x2c[_0x5345[77]],null,_0x5345[49]))[_0x5345[48]](respondWithResult(_0xa401x19,null,_0x5345[49]))[_0x5345[74]](handleError(_0xa401x19,null,_0x5345[49]))};exports[_0x5345[51]]= function(_0xa401x2c,_0xa401x19){return db[_0x5345[62]][_0x5345[75]]({where:{id:_0xa401x2c[_0x5345[59]][_0x5345[58]]}})[_0x5345[48]](handleEntityNotFound(_0xa401x19,null,_0x5345[51]))[_0x5345[48]](removeEntity(_0xa401x19,null,_0x5345[51]))[_0x5345[74]](handleError(_0xa401x19,null,_0x5345[51]))}
\ No newline at end of file
+var _0x5f33=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x61\x73\x74\x2D\x6A\x73\x6F\x6E\x2D\x70\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x75\x73\x74\x61\x63\x68\x65","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x73\x6F\x78","\x74\x6F\x2D\x63\x73\x76","\x65\x6A\x73","\x66\x73","\x6C\x6F\x64\x61\x73\x68","\x73\x71\x75\x65\x6C","\x63\x72\x79\x70\x74\x6F","\x6A\x73\x66\x6F\x72\x63\x65","\x64\x65\x73\x6B\x2E\x6A\x73","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x70\x61\x72\x73\x65\x72\x73\x2F\x71\x73","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x4D\x61\x69\x6C\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x6E\x6F\x20\x63\x6F\x6E\x74\x65\x6E\x74","\x69\x6E\x66\x6F","\x4D\x61\x69\x6C\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x64\x65\x62\x75\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x65\x6E\x74\x69\x74\x79\x20\x66\x6F\x75\x6E\x64","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6A\x73\x6F\x6E","\x63\x6F\x75\x6E\x74","\x6F\x66\x66\x73\x65\x74","\x6C\x69\x6D\x69\x74","\x65\x6E\x74\x69\x74\x69\x65\x73\x20\x66\x6F\x75\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x52\x61\x6E\x67\x65","\x2D","\x2F","\x73\x65\x74","\x61\x70\x70\x6C\x79","\x72\x65\x6A\x65\x63\x74","\x73\x61\x76\x65","\x65\x6E\x74\x69\x74\x79\x20\x75\x70\x64\x61\x74\x65\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65","\x65\x6E\x74\x69\x74\x79\x20\x72\x65\x6D\x6F\x76\x65\x64","\x64\x65\x73\x74\x72\x6F\x79","\x65\x6E\x74\x69\x74\x79\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x65\x72\x72\x6F\x72","\x69\x6E\x73\x70\x65\x63\x74","\x6E\x61\x6D\x65","\x73\x65\x6E\x64","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x6D\x6F\x64\x65\x6C","\x72\x61\x77\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x4D\x61\x69\x6C\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x6B\x65\x79\x73","\x71\x75\x65\x72\x79","\x66\x69\x6C\x74\x65\x72\x73","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x69\x6F\x6E","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x69\x65\x6C\x64\x73","\x6C\x65\x6E\x67\x74\x68","\x69\x6E\x63\x6C\x75\x64\x65\x41\x6C\x6C","\x69\x6E\x63\x6C\x75\x64\x65","\x6F\x70\x74\x69\x6F\x6E\x73","\x6D\x65\x72\x67\x65","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79"];_0x5f33[0];var jsonpatch=require(_0x5f33[1]);var rp=require(_0x5f33[2]);var moment=require(_0x5f33[3]);var BPromise=require(_0x5f33[4]);var Mustache=require(_0x5f33[5]);var util=require(_0x5f33[6]);var path=require(_0x5f33[7]);var sox=require(_0x5f33[8]);var csv=require(_0x5f33[9]);var ejs=require(_0x5f33[10]);var fs=require(_0x5f33[11]);var _=require(_0x5f33[12]);var squel=require(_0x5f33[13]);var crypto=require(_0x5f33[14]);var jsforce=require(_0x5f33[15]);var deskjs=require(_0x5f33[16]);var toCsv=require(_0x5f33[9]);var querystring=require(_0x5f33[17]);var qs=require(_0x5f33[18]);var logger=require(_0x5f33[20])(_0x5f33[19]);var utils=require(_0x5f33[21]);var config=require(_0x5f33[22]);var db=require(_0x5f33[24])[_0x5f33[23]];function respondWithStatusCode(_0xef3ax19,_0xef3ax1a,_0xef3ax1b){_0xef3ax1a= _0xef3ax1a|| 204;return function(_0xef3ax1c){if(_0xef3ax1c){logger[_0x5f33[27]](_0x5f33[25],_0xef3ax1b,_0xef3ax1a,_0x5f33[26]);logger[_0x5f33[29]](_0x5f33[28],_0xef3ax1b,_0xef3ax1a,_0x5f33[26]);return _0xef3ax19[_0x5f33[30]](_0xef3ax1a)};return _0xef3ax19[_0x5f33[32]](_0xef3ax1a)[_0x5f33[31]]()}}function respondWithResult(_0xef3ax19,_0xef3ax1a,_0xef3ax1b){_0xef3ax1a= _0xef3ax1a|| 200;return function(_0xef3ax1c){if(_0xef3ax1c){logger[_0x5f33[27]](_0x5f33[25],_0xef3ax1b,_0xef3ax1a,_0x5f33[33]);logger[_0x5f33[29]](_0x5f33[28],_0xef3ax1b,_0xef3ax1a,_0x5f33[33],JSON[_0x5f33[34]](_0xef3ax1c));return _0xef3ax19[_0x5f33[32]](_0xef3ax1a)[_0x5f33[35]](_0xef3ax1c)}}}function respondWithFilteredResult(_0xef3ax19,_0xef3ax1f,_0xef3ax1b){return function(_0xef3ax1c){if(_0xef3ax1c){var _0xef3ax20=_0xef3ax1c[_0x5f33[36]],_0xef3ax21=_0xef3ax1f[_0x5f33[37]],_0xef3ax22=_0xef3ax1f[_0x5f33[37]]+ _0xef3ax1f[_0x5f33[38]],_0xef3ax1a;if(_0xef3ax22>= _0xef3ax20){_0xef3ax22= _0xef3ax20;_0xef3ax1a= 200}else {_0xef3ax1a= 206};_0xef3ax19[_0x5f33[32]](_0xef3ax1a);logger[_0x5f33[27]](_0x5f33[25],_0xef3ax1b,_0xef3ax1a,_0x5f33[39]);logger[_0x5f33[29]](_0x5f33[28],_0xef3ax1b,_0xef3ax1a,_0x5f33[33],JSON[_0x5f33[34]](_0xef3ax1c));return _0xef3ax19[_0x5f33[43]](_0x5f33[40],_0xef3ax21+ _0x5f33[41]+ _0xef3ax22+ _0x5f33[42]+ _0xef3ax20)[_0x5f33[35]](_0xef3ax1c)};return null}}function patchUpdates(_0xef3ax24){return function(_0xef3ax1c){try{jsonpatch[_0x5f33[44]](_0xef3ax1c,_0xef3ax24,true)}catch(err){return BPromise[_0x5f33[45]](err)};return _0xef3ax1c[_0x5f33[46]]()}}function saveUpdates(_0xef3ax26,_0xef3ax1a,_0xef3ax1b){return function(_0xef3ax1c){if(_0xef3ax1c){return _0xef3ax1c[_0x5f33[49]](_0xef3ax26)[_0x5f33[48]](function(_0xef3ax27){logger[_0x5f33[27]](_0x5f33[25],_0xef3ax1b,_0xef3ax1a,_0x5f33[47]);logger[_0x5f33[29]](_0x5f33[28],_0xef3ax1b,_0xef3ax1a,_0x5f33[47],JSON[_0x5f33[34]](_0xef3ax1c));return _0xef3ax27})};return null}}function removeEntity(_0xef3ax19,_0xef3ax1a,_0xef3ax1b){return function(_0xef3ax1c){if(_0xef3ax1c){return _0xef3ax1c[_0x5f33[51]]()[_0x5f33[48]](function(){logger[_0x5f33[27]](_0x5f33[25],_0xef3ax1b,_0xef3ax1a,_0x5f33[50]);logger[_0x5f33[29]](_0x5f33[28],_0xef3ax1b,_0xef3ax1a,_0x5f33[50],JSON[_0x5f33[34]](_0xef3ax1c));_0xef3ax19[_0x5f33[32]](204)[_0x5f33[31]]()})}}}function handleEntityNotFound(_0xef3ax19,_0xef3ax1a,_0xef3ax1b){return function(_0xef3ax1c){if(!_0xef3ax1c){logger[_0x5f33[53]](_0x5f33[25],_0xef3ax1b,404,_0x5f33[52]);_0xef3ax19[_0x5f33[30]](404)};return _0xef3ax1c}}function handleError(_0xef3ax19,_0xef3ax1a,_0xef3ax1b){_0xef3ax1a= _0xef3ax1a|| 500;return function(_0xef3ax2b){logger[_0x5f33[53]](_0x5f33[25],_0xef3ax1b,_0xef3ax1a,util[_0x5f33[54]](_0xef3ax2b,{showHidden:false,depth:null}));delete _0xef3ax2b[_0x5f33[55]];_0xef3ax19[_0x5f33[32]](_0xef3ax1a)[_0x5f33[56]](_0xef3ax2b)}}exports[_0x5f33[57]]= function(_0xef3ax2c,_0xef3ax19){var _0xef3ax1f={raw:true,where:{id:_0xef3ax2c[_0x5f33[59]][_0x5f33[58]]}},_0xef3ax2d={};_0xef3ax2d[_0x5f33[60]]= _[_0x5f33[63]](db[_0x5f33[62]][_0x5f33[61]]);_0xef3ax2d[_0x5f33[64]]= _[_0x5f33[63]](_0xef3ax2c[_0x5f33[64]]);_0xef3ax2d[_0x5f33[65]]= _[_0x5f33[66]](_0xef3ax2d[_0x5f33[60]],_0xef3ax2d[_0x5f33[64]]);_0xef3ax1f[_0x5f33[67]]= _[_0x5f33[66]](_0xef3ax2d[_0x5f33[60]],qs[_0x5f33[68]](_0xef3ax2c[_0x5f33[64]][_0x5f33[68]]));_0xef3ax1f[_0x5f33[67]]= (_0xef3ax1f[_0x5f33[67]][_0x5f33[69]])?_0xef3ax1f[_0x5f33[67]]:_0xef3ax2d[_0x5f33[60]];if(_0xef3ax2c[_0x5f33[64]][_0x5f33[70]]){_0xef3ax1f[_0x5f33[71]]= [{all:true}]};_0xef3ax1f= _[_0x5f33[73]]({},_0xef3ax1f,_0xef3ax2c[_0x5f33[72]]);return db[_0x5f33[62]][_0x5f33[75]](_0xef3ax1f)[_0x5f33[48]](handleEntityNotFound(_0xef3ax19,null,_0x5f33[57]))[_0x5f33[48]](respondWithResult(_0xef3ax19,null,_0x5f33[57]))[_0x5f33[74]](handleError(_0xef3ax19,null,_0x5f33[57]))};exports[_0x5f33[76]]= function(_0xef3ax2c,_0xef3ax19){return db[_0x5f33[62]][_0x5f33[76]](_0xef3ax2c[_0x5f33[77]],{})[_0x5f33[48]](respondWithResult(_0xef3ax19,201,_0x5f33[76]))[_0x5f33[74]](handleError(_0xef3ax19,null,_0x5f33[76]))};exports[_0x5f33[49]]= function(_0xef3ax2c,_0xef3ax19){if(_0xef3ax2c[_0x5f33[77]][_0x5f33[58]]){delete _0xef3ax2c[_0x5f33[77]][_0x5f33[58]]};return db[_0x5f33[62]][_0x5f33[75]]({where:{id:_0xef3ax2c[_0x5f33[59]][_0x5f33[58]]}})[_0x5f33[48]](handleEntityNotFound(_0xef3ax19,null,_0x5f33[49]))[_0x5f33[48]](saveUpdates(_0xef3ax2c[_0x5f33[77]],null,_0x5f33[49]))[_0x5f33[48]](respondWithResult(_0xef3ax19,null,_0x5f33[49]))[_0x5f33[74]](handleError(_0xef3ax19,null,_0x5f33[49]))};exports[_0x5f33[51]]= function(_0xef3ax2c,_0xef3ax19){return db[_0x5f33[62]][_0x5f33[75]]({where:{id:_0xef3ax2c[_0x5f33[59]][_0x5f33[58]]}})[_0x5f33[48]](handleEntityNotFound(_0xef3ax19,null,_0x5f33[51]))[_0x5f33[48]](removeEntity(_0xef3ax19,null,_0x5f33[51]))[_0x5f33[74]](handleError(_0xef3ax19,null,_0x5f33[51]))}
\ No newline at end of file