Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / faxQueueReport / faxQueueReport.controller.js
index 0834986..17713d0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2c4a=['options','find','create','body','params','describe','html-pdf','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','json','count','offset','Content-Range','apply','reject','update','then','destroy','error','stack','name','send','map','FaxQueueReport','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','limit','order','sort','filter','where','merge','VIRTUAL','includeAll','include','rows','catch','show','rawAttributes'];(function(_0x52bc22,_0x2e0f62){var _0xe287bc=function(_0x1af407){while(--_0x1af407){_0x52bc22['push'](_0x52bc22['shift']());}};_0xe287bc(++_0x2e0f62);}(_0x2c4a,0x9e));var _0xa2c4=function(_0x59447,_0x381f76){_0x59447=_0x59447-0x0;var _0x34ded2=_0x2c4a[_0x59447];return _0x34ded2;};'use strict';var pdf=require(_0xa2c4('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xa2c4('0x1'));var zipdir=require(_0xa2c4('0x2'));var jsonpatch=require(_0xa2c4('0x3'));var rp=require('request-promise');var moment=require(_0xa2c4('0x4'));var BPromise=require(_0xa2c4('0x5'));var Mustache=require(_0xa2c4('0x6'));var util=require(_0xa2c4('0x7'));var path=require(_0xa2c4('0x8'));var sox=require(_0xa2c4('0x9'));var csv=require(_0xa2c4('0xa'));var ejs=require(_0xa2c4('0xb'));var fs=require('fs');var _=require(_0xa2c4('0xc'));var squel=require('squel');var crypto=require(_0xa2c4('0xd'));var jsforce=require(_0xa2c4('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xa2c4('0xa'));var querystring=require(_0xa2c4('0xf'));var Papa=require(_0xa2c4('0x10'));var Redis=require(_0xa2c4('0x11'));var authService=require(_0xa2c4('0x12'));var qs=require(_0xa2c4('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xa2c4('0x14'));var logger=require(_0xa2c4('0x15'))(_0xa2c4('0x16'));var utils=require(_0xa2c4('0x17'));var config=require(_0xa2c4('0x18'));var licenseUtil=require(_0xa2c4('0x19'));var db=require(_0xa2c4('0x1a'))['db'];function respondWithStatusCode(_0x43c70d,_0x2f71d6){_0x2f71d6=_0x2f71d6||0xcc;return function(_0x329e6f){if(_0x329e6f){return _0x43c70d[_0xa2c4('0x1b')](_0x2f71d6);}return _0x43c70d['status'](_0x2f71d6)[_0xa2c4('0x1c')]();};}function respondWithResult(_0x4b3cdf,_0x42be24){_0x42be24=_0x42be24||0xc8;return function(_0x2de7e9){if(_0x2de7e9){return _0x4b3cdf[_0xa2c4('0x1d')](_0x42be24)[_0xa2c4('0x1e')](_0x2de7e9);}};}function respondWithFilteredResult(_0x240066,_0x5d7fdd){return function(_0x3a8113){if(_0x3a8113){var _0x25c92b=_0x3a8113[_0xa2c4('0x1f')],_0x44805d=_0x5d7fdd[_0xa2c4('0x20')],_0x3898c5=_0x5d7fdd[_0xa2c4('0x20')]+_0x5d7fdd['limit'],_0x2ad735;if(_0x3898c5>=_0x25c92b){_0x3898c5=_0x25c92b;_0x2ad735=0xc8;}else{_0x2ad735=0xce;}_0x240066[_0xa2c4('0x1d')](_0x2ad735);return _0x240066['set'](_0xa2c4('0x21'),_0x44805d+'-'+_0x3898c5+'/'+_0x25c92b)[_0xa2c4('0x1e')](_0x3a8113);}return null;};}function patchUpdates(_0xe5b401){return function(_0x933836){try{jsonpatch[_0xa2c4('0x22')](_0x933836,_0xe5b401,!![]);}catch(_0x2fd9fc){return BPromise[_0xa2c4('0x23')](_0x2fd9fc);}return _0x933836['save']();};}function saveUpdates(_0x213bc3,_0x5d10d0){return function(_0x29279d){if(_0x29279d){return _0x29279d[_0xa2c4('0x24')](_0x213bc3)[_0xa2c4('0x25')](function(_0xa8aa2b){return _0xa8aa2b;});}return null;};}function removeEntity(_0x39891d,_0x411290){return function(_0x5eb4d0){if(_0x5eb4d0){return _0x5eb4d0[_0xa2c4('0x26')]()['then'](function(){_0x39891d[_0xa2c4('0x1d')](0xcc)[_0xa2c4('0x1c')]();});}};}function handleEntityNotFound(_0x2196d3,_0x47ccdc){return function(_0x186446){if(!_0x186446){_0x2196d3[_0xa2c4('0x1b')](0x194);}return _0x186446;};}function handleError(_0x424c7f,_0x3850a8){_0x3850a8=_0x3850a8||0x1f4;return function(_0x4c2ef7){logger[_0xa2c4('0x27')](_0x4c2ef7[_0xa2c4('0x28')]);if(_0x4c2ef7[_0xa2c4('0x29')]){delete _0x4c2ef7[_0xa2c4('0x29')];}_0x424c7f['status'](_0x3850a8)[_0xa2c4('0x2a')](_0x4c2ef7);};}exports['index']=function(_0x412ee6,_0x4481f8){var _0x4e503d={},_0x22a7b7={},_0x33ffdf={'count':0x0,'rows':[]};var _0x3e0aa0=_[_0xa2c4('0x2b')](db[_0xa2c4('0x2c')]['rawAttributes'],function(_0x40e518){return{'name':_0x40e518[_0xa2c4('0x2d')],'type':_0x40e518[_0xa2c4('0x2e')][_0xa2c4('0x2f')]};});_0x22a7b7[_0xa2c4('0x30')]=_[_0xa2c4('0x2b')](_0x3e0aa0,'name');_0x22a7b7[_0xa2c4('0x31')]=_[_0xa2c4('0x32')](_0x412ee6[_0xa2c4('0x31')]);_0x22a7b7[_0xa2c4('0x33')]=_[_0xa2c4('0x34')](_0x22a7b7[_0xa2c4('0x30')],_0x22a7b7[_0xa2c4('0x31')]);_0x4e503d['attributes']=_[_0xa2c4('0x34')](_0x22a7b7['model'],qs[_0xa2c4('0x35')](_0x412ee6[_0xa2c4('0x31')][_0xa2c4('0x35')]));_0x4e503d[_0xa2c4('0x36')]=_0x4e503d[_0xa2c4('0x36')][_0xa2c4('0x37')]?_0x4e503d[_0xa2c4('0x36')]:_0x22a7b7[_0xa2c4('0x30')];if(!_0x412ee6[_0xa2c4('0x31')][_0xa2c4('0x38')]('nolimit')){_0x4e503d[_0xa2c4('0x39')]=qs['limit'](_0x412ee6['query'][_0xa2c4('0x39')]);_0x4e503d[_0xa2c4('0x20')]=qs[_0xa2c4('0x20')](_0x412ee6[_0xa2c4('0x31')][_0xa2c4('0x20')]);}_0x4e503d[_0xa2c4('0x3a')]=qs['sort'](_0x412ee6[_0xa2c4('0x31')][_0xa2c4('0x3b')]);_0x4e503d['where']=qs[_0xa2c4('0x33')](_['pick'](_0x412ee6[_0xa2c4('0x31')],_0x22a7b7[_0xa2c4('0x33')]),_0x3e0aa0);if(_0x412ee6['query'][_0xa2c4('0x3c')]){_0x4e503d[_0xa2c4('0x3d')]=_[_0xa2c4('0x3e')](_0x4e503d[_0xa2c4('0x3d')],{'$or':_[_0xa2c4('0x2b')](_0x3e0aa0,function(_0xcfa4c2){if(_0xcfa4c2[_0xa2c4('0x2e')]!==_0xa2c4('0x3f')){var _0x50c29f={};_0x50c29f[_0xcfa4c2[_0xa2c4('0x29')]]={'$like':'%'+_0x412ee6[_0xa2c4('0x31')][_0xa2c4('0x3c')]+'%'};return _0x50c29f;}})});}_0x4e503d=_['merge']({},_0x4e503d,_0x412ee6['options']);var _0x545de3={'where':_0x4e503d[_0xa2c4('0x3d')]};return db[_0xa2c4('0x2c')][_0xa2c4('0x1f')](_0x545de3)[_0xa2c4('0x25')](function(_0x3086d0){_0x33ffdf[_0xa2c4('0x1f')]=_0x3086d0;if(_0x412ee6[_0xa2c4('0x31')][_0xa2c4('0x40')]){_0x4e503d[_0xa2c4('0x41')]=[{'all':!![]}];}return db[_0xa2c4('0x2c')]['findAll'](_0x4e503d);})['then'](function(_0x4dd480){_0x33ffdf[_0xa2c4('0x42')]=_0x4dd480;return _0x33ffdf;})[_0xa2c4('0x25')](respondWithFilteredResult(_0x4481f8,_0x4e503d))[_0xa2c4('0x43')](handleError(_0x4481f8,null));};exports[_0xa2c4('0x44')]=function(_0x3d3e8c,_0x1a71af){var _0x67e8e3={'raw':!![],'where':{'id':_0x3d3e8c['params']['id']}},_0x40e667={};_0x40e667['model']=_[_0xa2c4('0x32')](db[_0xa2c4('0x2c')][_0xa2c4('0x45')]);_0x40e667[_0xa2c4('0x31')]=_[_0xa2c4('0x32')](_0x3d3e8c['query']);_0x40e667[_0xa2c4('0x33')]=_[_0xa2c4('0x34')](_0x40e667[_0xa2c4('0x30')],_0x40e667[_0xa2c4('0x31')]);_0x67e8e3['attributes']=_['intersection'](_0x40e667['model'],qs[_0xa2c4('0x35')](_0x3d3e8c[_0xa2c4('0x31')]['fields']));_0x67e8e3[_0xa2c4('0x36')]=_0x67e8e3['attributes'][_0xa2c4('0x37')]?_0x67e8e3[_0xa2c4('0x36')]:_0x40e667[_0xa2c4('0x30')];if(_0x3d3e8c[_0xa2c4('0x31')][_0xa2c4('0x40')]){_0x67e8e3[_0xa2c4('0x41')]=[{'all':!![]}];}_0x67e8e3=_[_0xa2c4('0x3e')]({},_0x67e8e3,_0x3d3e8c[_0xa2c4('0x46')]);return db[_0xa2c4('0x2c')][_0xa2c4('0x47')](_0x67e8e3)[_0xa2c4('0x25')](handleEntityNotFound(_0x1a71af,null))['then'](respondWithResult(_0x1a71af,null))[_0xa2c4('0x43')](handleError(_0x1a71af,null));};exports[_0xa2c4('0x48')]=function(_0x3dd2e7,_0x577a1b){return db[_0xa2c4('0x2c')][_0xa2c4('0x48')](_0x3dd2e7[_0xa2c4('0x49')],{})['then'](respondWithResult(_0x577a1b,0xc9))[_0xa2c4('0x43')](handleError(_0x577a1b,null));};exports[_0xa2c4('0x24')]=function(_0xd748f9,_0x2fa618){if(_0xd748f9[_0xa2c4('0x49')]['id']){delete _0xd748f9[_0xa2c4('0x49')]['id'];}return db[_0xa2c4('0x2c')][_0xa2c4('0x47')]({'where':{'id':_0xd748f9[_0xa2c4('0x4a')]['id']}})[_0xa2c4('0x25')](handleEntityNotFound(_0x2fa618,null))[_0xa2c4('0x25')](saveUpdates(_0xd748f9[_0xa2c4('0x49')],null))[_0xa2c4('0x25')](respondWithResult(_0x2fa618,null))['catch'](handleError(_0x2fa618,null));};exports[_0xa2c4('0x26')]=function(_0x272831,_0x16edcc){return db[_0xa2c4('0x2c')][_0xa2c4('0x47')]({'where':{'id':_0x272831['params']['id']}})['then'](handleEntityNotFound(_0x16edcc,null))[_0xa2c4('0x25')](removeEntity(_0x16edcc,null))[_0xa2c4('0x43')](handleError(_0x16edcc,null));};exports[_0xa2c4('0x4b')]=function(_0x5d7b33,_0x14f0da){return db[_0xa2c4('0x2c')][_0xa2c4('0x4b')]()[_0xa2c4('0x25')](respondWithResult(_0x14f0da,null))[_0xa2c4('0x43')](handleError(_0x14f0da,null));};
\ No newline at end of file
+var _0xb575=['util','sox','to-csv','ejs','fs-extra','lodash','crypto','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','save','update','then','destroy','error','stack','name','send','index','FaxQueueReport','rawAttributes','fieldName','type','key','map','query','keys','intersection','model','fields','attributes','length','hasOwnProperty','nolimit','order','sort','filters','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','find','create','body','eml-format','rimraf','fast-json-patch','mustache'];(function(_0x5a9540,_0x3d06ab){var _0x1b1ec8=function(_0x4a725d){while(--_0x4a725d){_0x5a9540['push'](_0x5a9540['shift']());}};_0x1b1ec8(++_0x3d06ab);}(_0xb575,0xda));var _0x5b57=function(_0x38d423,_0x1397c1){_0x38d423=_0x38d423-0x0;var _0xf9e3c5=_0xb575[_0x38d423];return _0xf9e3c5;};'use strict';var emlformat=require(_0x5b57('0x0'));var rimraf=require(_0x5b57('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x5b57('0x2'));var rp=require('request-promise');var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x5b57('0x3'));var util=require(_0x5b57('0x4'));var path=require('path');var sox=require(_0x5b57('0x5'));var csv=require(_0x5b57('0x6'));var ejs=require(_0x5b57('0x7'));var fs=require('fs');var fs_extra=require(_0x5b57('0x8'));var _=require(_0x5b57('0x9'));var squel=require('squel');var crypto=require(_0x5b57('0xa'));var jsforce=require('jsforce');var deskjs=require(_0x5b57('0xb'));var toCsv=require(_0x5b57('0x6'));var querystring=require(_0x5b57('0xc'));var Papa=require('papaparse');var Redis=require(_0x5b57('0xd'));var authService=require(_0x5b57('0xe'));var qs=require(_0x5b57('0xf'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x5b57('0x10'));var logger=require(_0x5b57('0x11'))('api');var utils=require('../../config/utils');var config=require(_0x5b57('0x12'));var licenseUtil=require(_0x5b57('0x13'));var db=require(_0x5b57('0x14'))['db'];function respondWithStatusCode(_0xd897ba,_0x355dab){_0x355dab=_0x355dab||0xcc;return function(_0x45cb5c){if(_0x45cb5c){return _0xd897ba[_0x5b57('0x15')](_0x355dab);}return _0xd897ba[_0x5b57('0x16')](_0x355dab)[_0x5b57('0x17')]();};}function respondWithResult(_0x42ba90,_0x53df3e){_0x53df3e=_0x53df3e||0xc8;return function(_0x16ffe0){if(_0x16ffe0){return _0x42ba90[_0x5b57('0x16')](_0x53df3e)[_0x5b57('0x18')](_0x16ffe0);}};}function respondWithFilteredResult(_0x4ba858,_0x2a0a1b){return function(_0x3b4631){if(_0x3b4631){var _0x132430=typeof _0x2a0a1b[_0x5b57('0x19')]===_0x5b57('0x1a')&&typeof _0x2a0a1b[_0x5b57('0x1b')]===_0x5b57('0x1a');var _0x32f18d=_0x3b4631['count'];var _0x336db6=_0x132430?0x0:_0x2a0a1b[_0x5b57('0x19')];var _0x2cb809=_0x132430?_0x3b4631[_0x5b57('0x1c')]:_0x2a0a1b[_0x5b57('0x19')]+_0x2a0a1b[_0x5b57('0x1b')];var _0x5f0dc6;if(_0x2cb809>=_0x32f18d){_0x2cb809=_0x32f18d;_0x5f0dc6=0xc8;}else{_0x5f0dc6=0xce;}_0x4ba858[_0x5b57('0x16')](_0x5f0dc6);return _0x4ba858[_0x5b57('0x1d')](_0x5b57('0x1e'),_0x336db6+'-'+_0x2cb809+'/'+_0x32f18d)[_0x5b57('0x18')](_0x3b4631);}return null;};}function patchUpdates(_0x53378c){return function(_0x3c7f4f){try{jsonpatch[_0x5b57('0x1f')](_0x3c7f4f,_0x53378c,!![]);}catch(_0x3cb5c0){return BPromise['reject'](_0x3cb5c0);}return _0x3c7f4f[_0x5b57('0x20')]();};}function saveUpdates(_0xd8567a,_0x3a4488){return function(_0x28721f){if(_0x28721f){return _0x28721f[_0x5b57('0x21')](_0xd8567a)[_0x5b57('0x22')](function(_0x4a4ed8){return _0x4a4ed8;});}return null;};}function removeEntity(_0x139214,_0x50ea5f){return function(_0x11c149){if(_0x11c149){return _0x11c149[_0x5b57('0x23')]()['then'](function(){_0x139214['status'](0xcc)[_0x5b57('0x17')]();});}};}function handleEntityNotFound(_0x5eab3d,_0x120dc6){return function(_0xc173a4){if(!_0xc173a4){_0x5eab3d[_0x5b57('0x15')](0x194);}return _0xc173a4;};}function handleError(_0x20a95a,_0x39b2f4){_0x39b2f4=_0x39b2f4||0x1f4;return function(_0x17ac8b){logger[_0x5b57('0x24')](_0x17ac8b[_0x5b57('0x25')]);if(_0x17ac8b[_0x5b57('0x26')]){delete _0x17ac8b[_0x5b57('0x26')];}_0x20a95a[_0x5b57('0x16')](_0x39b2f4)[_0x5b57('0x27')](_0x17ac8b);};}exports[_0x5b57('0x28')]=function(_0x53c81b,_0xc59d9f){var _0x42664f={},_0x3e8bc6={},_0x4da4a8={'count':0x0,'rows':[]};var _0x42b276=_['map'](db[_0x5b57('0x29')][_0x5b57('0x2a')],function(_0x33b262){return{'name':_0x33b262[_0x5b57('0x2b')],'type':_0x33b262[_0x5b57('0x2c')][_0x5b57('0x2d')]};});_0x3e8bc6['model']=_[_0x5b57('0x2e')](_0x42b276,_0x5b57('0x26'));_0x3e8bc6[_0x5b57('0x2f')]=_[_0x5b57('0x30')](_0x53c81b[_0x5b57('0x2f')]);_0x3e8bc6['filters']=_[_0x5b57('0x31')](_0x3e8bc6['model'],_0x3e8bc6[_0x5b57('0x2f')]);_0x42664f['attributes']=_[_0x5b57('0x31')](_0x3e8bc6[_0x5b57('0x32')],qs[_0x5b57('0x33')](_0x53c81b[_0x5b57('0x2f')][_0x5b57('0x33')]));_0x42664f[_0x5b57('0x34')]=_0x42664f[_0x5b57('0x34')][_0x5b57('0x35')]?_0x42664f[_0x5b57('0x34')]:_0x3e8bc6[_0x5b57('0x32')];if(!_0x53c81b['query'][_0x5b57('0x36')](_0x5b57('0x37'))){_0x42664f[_0x5b57('0x1b')]=qs[_0x5b57('0x1b')](_0x53c81b[_0x5b57('0x2f')][_0x5b57('0x1b')]);_0x42664f[_0x5b57('0x19')]=qs[_0x5b57('0x19')](_0x53c81b[_0x5b57('0x2f')][_0x5b57('0x19')]);}_0x42664f[_0x5b57('0x38')]=qs[_0x5b57('0x39')](_0x53c81b[_0x5b57('0x2f')][_0x5b57('0x39')]);_0x42664f['where']=qs[_0x5b57('0x3a')](_['pick'](_0x53c81b[_0x5b57('0x2f')],_0x3e8bc6[_0x5b57('0x3a')]),_0x42b276);if(_0x53c81b[_0x5b57('0x2f')][_0x5b57('0x3b')]){_0x42664f[_0x5b57('0x3c')]=_[_0x5b57('0x3d')](_0x42664f[_0x5b57('0x3c')],{'$or':_['map'](_0x42b276,function(_0x25a1be){if(_0x25a1be[_0x5b57('0x2c')]!==_0x5b57('0x3e')){var _0x569c87={};_0x569c87[_0x25a1be[_0x5b57('0x26')]]={'$like':'%'+_0x53c81b[_0x5b57('0x2f')]['filter']+'%'};return _0x569c87;}})});}_0x42664f=_[_0x5b57('0x3d')]({},_0x42664f,_0x53c81b[_0x5b57('0x3f')]);var _0xa417ce={'where':_0x42664f['where']};return db['FaxQueueReport'][_0x5b57('0x1c')](_0xa417ce)[_0x5b57('0x22')](function(_0x529d25){_0x4da4a8[_0x5b57('0x1c')]=_0x529d25;if(_0x53c81b['query'][_0x5b57('0x40')]){_0x42664f[_0x5b57('0x41')]=[{'all':!![]}];}return db['FaxQueueReport'][_0x5b57('0x42')](_0x42664f);})[_0x5b57('0x22')](function(_0x16a177){_0x4da4a8[_0x5b57('0x43')]=_0x16a177;return _0x4da4a8;})[_0x5b57('0x22')](respondWithFilteredResult(_0xc59d9f,_0x42664f))[_0x5b57('0x44')](handleError(_0xc59d9f,null));};exports[_0x5b57('0x45')]=function(_0x4d80e7,_0x4a0431){var _0x140d23={'raw':!![],'where':{'id':_0x4d80e7[_0x5b57('0x46')]['id']}},_0x48fb91={};_0x48fb91['model']=_[_0x5b57('0x30')](db[_0x5b57('0x29')][_0x5b57('0x2a')]);_0x48fb91[_0x5b57('0x2f')]=_[_0x5b57('0x30')](_0x4d80e7[_0x5b57('0x2f')]);_0x48fb91[_0x5b57('0x3a')]=_[_0x5b57('0x31')](_0x48fb91[_0x5b57('0x32')],_0x48fb91[_0x5b57('0x2f')]);_0x140d23[_0x5b57('0x34')]=_[_0x5b57('0x31')](_0x48fb91[_0x5b57('0x32')],qs[_0x5b57('0x33')](_0x4d80e7[_0x5b57('0x2f')][_0x5b57('0x33')]));_0x140d23[_0x5b57('0x34')]=_0x140d23[_0x5b57('0x34')][_0x5b57('0x35')]?_0x140d23['attributes']:_0x48fb91[_0x5b57('0x32')];if(_0x4d80e7[_0x5b57('0x2f')][_0x5b57('0x40')]){_0x140d23['include']=[{'all':!![]}];}_0x140d23=_[_0x5b57('0x3d')]({},_0x140d23,_0x4d80e7[_0x5b57('0x3f')]);return db[_0x5b57('0x29')][_0x5b57('0x47')](_0x140d23)['then'](handleEntityNotFound(_0x4a0431,null))['then'](respondWithResult(_0x4a0431,null))['catch'](handleError(_0x4a0431,null));};exports[_0x5b57('0x48')]=function(_0x3aabe2,_0x5e6129){return db[_0x5b57('0x29')][_0x5b57('0x48')](_0x3aabe2[_0x5b57('0x49')],{})[_0x5b57('0x22')](respondWithResult(_0x5e6129,0xc9))[_0x5b57('0x44')](handleError(_0x5e6129,null));};exports[_0x5b57('0x21')]=function(_0x22ea65,_0x2027b4){if(_0x22ea65[_0x5b57('0x49')]['id']){delete _0x22ea65[_0x5b57('0x49')]['id'];}return db[_0x5b57('0x29')][_0x5b57('0x47')]({'where':{'id':_0x22ea65[_0x5b57('0x46')]['id']}})[_0x5b57('0x22')](handleEntityNotFound(_0x2027b4,null))[_0x5b57('0x22')](saveUpdates(_0x22ea65[_0x5b57('0x49')],null))[_0x5b57('0x22')](respondWithResult(_0x2027b4,null))[_0x5b57('0x44')](handleError(_0x2027b4,null));};exports[_0x5b57('0x23')]=function(_0x115dda,_0x4761ab){return db[_0x5b57('0x29')]['find']({'where':{'id':_0x115dda['params']['id']}})[_0x5b57('0x22')](handleEntityNotFound(_0x4761ab,null))['then'](removeEntity(_0x4761ab,null))[_0x5b57('0x44')](handleError(_0x4761ab,null));};exports['describe']=function(_0x9ad4eb,_0x302176){return db[_0x5b57('0x29')]['describe']()['then'](respondWithResult(_0x302176,null))['catch'](handleError(_0x302176,null));};
\ No newline at end of file