Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index a67ae5b..6d29208 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbfc0=['fields','length','hasOwnProperty','nolimit','sort','where','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','params','find','create','body','describe','eml-format','request-promise','bluebird','mustache','path','to-csv','ejs','fs-extra','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','limit','count','Content-Range','apply','reject','update','destroy','then','error','stack','name','send','index','map','OpenchannelTransferReport','rawAttributes','fieldName','key','model','keys','query','filters','attributes','intersection'];(function(_0xfc1bc2,_0x453ba2){var _0x481891=function(_0x1276e2){while(--_0x1276e2){_0xfc1bc2['push'](_0xfc1bc2['shift']());}};_0x481891(++_0x453ba2);}(_0xbfc0,0x1c4));var _0x0bfc=function(_0x4459b8,_0x3271b8){_0x4459b8=_0x4459b8-0x0;var _0x4a4b07=_0xbfc0[_0x4459b8];return _0x4a4b07;};'use strict';var emlformat=require(_0x0bfc('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x0bfc('0x1'));var moment=require('moment');var BPromise=require(_0x0bfc('0x2'));var Mustache=require(_0x0bfc('0x3'));var util=require('util');var path=require(_0x0bfc('0x4'));var sox=require('sox');var csv=require(_0x0bfc('0x5'));var ejs=require(_0x0bfc('0x6'));var fs=require('fs');var fs_extra=require(_0x0bfc('0x7'));var _=require('lodash');var squel=require(_0x0bfc('0x8'));var crypto=require(_0x0bfc('0x9'));var jsforce=require(_0x0bfc('0xa'));var deskjs=require('desk.js');var toCsv=require(_0x0bfc('0x5'));var querystring=require(_0x0bfc('0xb'));var Papa=require(_0x0bfc('0xc'));var Redis=require(_0x0bfc('0xd'));var authService=require(_0x0bfc('0xe'));var qs=require('../../components/parsers/qs');var as=require(_0x0bfc('0xf'));var hardwareService=require(_0x0bfc('0x10'));var logger=require(_0x0bfc('0x11'))(_0x0bfc('0x12'));var utils=require(_0x0bfc('0x13'));var config=require(_0x0bfc('0x14'));var licenseUtil=require(_0x0bfc('0x15'));var db=require(_0x0bfc('0x16'))['db'];function respondWithStatusCode(_0x358b20,_0x2d3f46){_0x2d3f46=_0x2d3f46||0xcc;return function(_0x35283d){if(_0x35283d){return _0x358b20[_0x0bfc('0x17')](_0x2d3f46);}return _0x358b20['status'](_0x2d3f46)['end']();};}function respondWithResult(_0x1005eb,_0x3a47b0){_0x3a47b0=_0x3a47b0||0xc8;return function(_0x309f15){if(_0x309f15){return _0x1005eb[_0x0bfc('0x18')](_0x3a47b0)[_0x0bfc('0x19')](_0x309f15);}};}function respondWithFilteredResult(_0x4db9fd,_0x19341a){return function(_0x5d59a4){if(_0x5d59a4){var _0x250c44=typeof _0x19341a[_0x0bfc('0x1a')]===_0x0bfc('0x1b')&&typeof _0x19341a[_0x0bfc('0x1c')]===_0x0bfc('0x1b');var _0x5cf91c=_0x5d59a4[_0x0bfc('0x1d')];var _0xbc3d76=_0x250c44?0x0:_0x19341a['offset'];var _0x746a5=_0x250c44?_0x5d59a4['count']:_0x19341a['offset']+_0x19341a[_0x0bfc('0x1c')];var _0x4fd4a3;if(_0x746a5>=_0x5cf91c){_0x746a5=_0x5cf91c;_0x4fd4a3=0xc8;}else{_0x4fd4a3=0xce;}_0x4db9fd[_0x0bfc('0x18')](_0x4fd4a3);return _0x4db9fd['set'](_0x0bfc('0x1e'),_0xbc3d76+'-'+_0x746a5+'/'+_0x5cf91c)['json'](_0x5d59a4);}return null;};}function patchUpdates(_0x2e7427){return function(_0x589751){try{jsonpatch[_0x0bfc('0x1f')](_0x589751,_0x2e7427,!![]);}catch(_0x5cec8b){return BPromise[_0x0bfc('0x20')](_0x5cec8b);}return _0x589751['save']();};}function saveUpdates(_0x5b0942,_0x27eae2){return function(_0x3d710b){if(_0x3d710b){return _0x3d710b[_0x0bfc('0x21')](_0x5b0942)['then'](function(_0x2630f0){return _0x2630f0;});}return null;};}function removeEntity(_0x4a1a76,_0x11469c){return function(_0x1e430e){if(_0x1e430e){return _0x1e430e[_0x0bfc('0x22')]()[_0x0bfc('0x23')](function(){_0x4a1a76[_0x0bfc('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x4a5bca,_0x42f7e7){return function(_0x1eee01){if(!_0x1eee01){_0x4a5bca[_0x0bfc('0x17')](0x194);}return _0x1eee01;};}function handleError(_0x17fdfb,_0x4d055e){_0x4d055e=_0x4d055e||0x1f4;return function(_0xdc6490){logger[_0x0bfc('0x24')](_0xdc6490[_0x0bfc('0x25')]);if(_0xdc6490[_0x0bfc('0x26')]){delete _0xdc6490[_0x0bfc('0x26')];}_0x17fdfb[_0x0bfc('0x18')](_0x4d055e)[_0x0bfc('0x27')](_0xdc6490);};}exports[_0x0bfc('0x28')]=function(_0x5e9e6a,_0x4f7add){var _0xc554bc={},_0x286476={},_0x37edbc={'count':0x0,'rows':[]};var _0x568eab=_[_0x0bfc('0x29')](db[_0x0bfc('0x2a')][_0x0bfc('0x2b')],function(_0x3be91d){return{'name':_0x3be91d[_0x0bfc('0x2c')],'type':_0x3be91d['type'][_0x0bfc('0x2d')]};});_0x286476[_0x0bfc('0x2e')]=_[_0x0bfc('0x29')](_0x568eab,_0x0bfc('0x26'));_0x286476['query']=_[_0x0bfc('0x2f')](_0x5e9e6a[_0x0bfc('0x30')]);_0x286476[_0x0bfc('0x31')]=_['intersection'](_0x286476[_0x0bfc('0x2e')],_0x286476[_0x0bfc('0x30')]);_0xc554bc[_0x0bfc('0x32')]=_[_0x0bfc('0x33')](_0x286476[_0x0bfc('0x2e')],qs['fields'](_0x5e9e6a['query'][_0x0bfc('0x34')]));_0xc554bc[_0x0bfc('0x32')]=_0xc554bc['attributes'][_0x0bfc('0x35')]?_0xc554bc[_0x0bfc('0x32')]:_0x286476[_0x0bfc('0x2e')];if(!_0x5e9e6a[_0x0bfc('0x30')][_0x0bfc('0x36')](_0x0bfc('0x37'))){_0xc554bc['limit']=qs[_0x0bfc('0x1c')](_0x5e9e6a[_0x0bfc('0x30')][_0x0bfc('0x1c')]);_0xc554bc[_0x0bfc('0x1a')]=qs[_0x0bfc('0x1a')](_0x5e9e6a['query']['offset']);}_0xc554bc['order']=qs['sort'](_0x5e9e6a[_0x0bfc('0x30')][_0x0bfc('0x38')]);_0xc554bc[_0x0bfc('0x39')]=qs['filters'](_['pick'](_0x5e9e6a[_0x0bfc('0x30')],_0x286476[_0x0bfc('0x31')]),_0x568eab);if(_0x5e9e6a[_0x0bfc('0x30')][_0x0bfc('0x3a')]){_0xc554bc[_0x0bfc('0x39')]=_[_0x0bfc('0x3b')](_0xc554bc[_0x0bfc('0x39')],{'$or':_[_0x0bfc('0x29')](_0x568eab,function(_0x4edbf7){if(_0x4edbf7['type']!==_0x0bfc('0x3c')){var _0x1bf764={};_0x1bf764[_0x4edbf7[_0x0bfc('0x26')]]={'$like':'%'+_0x5e9e6a[_0x0bfc('0x30')][_0x0bfc('0x3a')]+'%'};return _0x1bf764;}})});}_0xc554bc=_[_0x0bfc('0x3b')]({},_0xc554bc,_0x5e9e6a[_0x0bfc('0x3d')]);var _0x13a860={'where':_0xc554bc[_0x0bfc('0x39')]};return db[_0x0bfc('0x2a')]['count'](_0x13a860)[_0x0bfc('0x23')](function(_0x335b69){_0x37edbc[_0x0bfc('0x1d')]=_0x335b69;if(_0x5e9e6a[_0x0bfc('0x30')][_0x0bfc('0x3e')]){_0xc554bc[_0x0bfc('0x3f')]=[{'all':!![]}];}return db['OpenchannelTransferReport'][_0x0bfc('0x40')](_0xc554bc);})[_0x0bfc('0x23')](function(_0xd420cb){_0x37edbc[_0x0bfc('0x41')]=_0xd420cb;return _0x37edbc;})[_0x0bfc('0x23')](respondWithFilteredResult(_0x4f7add,_0xc554bc))[_0x0bfc('0x42')](handleError(_0x4f7add,null));};exports['show']=function(_0x3f6657,_0x56bab9){var _0x2e67f0={'raw':!![],'where':{'id':_0x3f6657[_0x0bfc('0x43')]['id']}},_0x1d9043={};_0x1d9043[_0x0bfc('0x2e')]=_[_0x0bfc('0x2f')](db['OpenchannelTransferReport']['rawAttributes']);_0x1d9043[_0x0bfc('0x30')]=_[_0x0bfc('0x2f')](_0x3f6657['query']);_0x1d9043[_0x0bfc('0x31')]=_[_0x0bfc('0x33')](_0x1d9043[_0x0bfc('0x2e')],_0x1d9043[_0x0bfc('0x30')]);_0x2e67f0[_0x0bfc('0x32')]=_[_0x0bfc('0x33')](_0x1d9043['model'],qs['fields'](_0x3f6657[_0x0bfc('0x30')]['fields']));_0x2e67f0[_0x0bfc('0x32')]=_0x2e67f0[_0x0bfc('0x32')][_0x0bfc('0x35')]?_0x2e67f0[_0x0bfc('0x32')]:_0x1d9043[_0x0bfc('0x2e')];if(_0x3f6657[_0x0bfc('0x30')][_0x0bfc('0x3e')]){_0x2e67f0[_0x0bfc('0x3f')]=[{'all':!![]}];}_0x2e67f0=_[_0x0bfc('0x3b')]({},_0x2e67f0,_0x3f6657['options']);return db[_0x0bfc('0x2a')][_0x0bfc('0x44')](_0x2e67f0)['then'](handleEntityNotFound(_0x56bab9,null))['then'](respondWithResult(_0x56bab9,null))['catch'](handleError(_0x56bab9,null));};exports['create']=function(_0x1c7e7c,_0xcd9db9){return db['OpenchannelTransferReport'][_0x0bfc('0x45')](_0x1c7e7c[_0x0bfc('0x46')],{})[_0x0bfc('0x23')](respondWithResult(_0xcd9db9,0xc9))[_0x0bfc('0x42')](handleError(_0xcd9db9,null));};exports[_0x0bfc('0x21')]=function(_0x1a9c52,_0x1c07ed){if(_0x1a9c52[_0x0bfc('0x46')]['id']){delete _0x1a9c52['body']['id'];}return db[_0x0bfc('0x2a')][_0x0bfc('0x44')]({'where':{'id':_0x1a9c52[_0x0bfc('0x43')]['id']}})[_0x0bfc('0x23')](handleEntityNotFound(_0x1c07ed,null))[_0x0bfc('0x23')](saveUpdates(_0x1a9c52[_0x0bfc('0x46')],null))[_0x0bfc('0x23')](respondWithResult(_0x1c07ed,null))[_0x0bfc('0x42')](handleError(_0x1c07ed,null));};exports['destroy']=function(_0x1db3ff,_0x39b92f){return db[_0x0bfc('0x2a')][_0x0bfc('0x44')]({'where':{'id':_0x1db3ff['params']['id']}})[_0x0bfc('0x23')](handleEntityNotFound(_0x39b92f,null))['then'](removeEntity(_0x39b92f,null))[_0x0bfc('0x42')](handleError(_0x39b92f,null));};exports[_0x0bfc('0x47')]=function(_0x164a23,_0x32c795){return db[_0x0bfc('0x2a')]['describe']()['then'](respondWithResult(_0x32c795,null))['catch'](handleError(_0x32c795,null));};
\ No newline at end of file
+var _0xc258=['count','set','apply','reject','save','update','destroy','then','sendStatus','stack','index','map','OpenchannelTransferReport','rawAttributes','fieldName','type','key','query','filters','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filter','VIRTUAL','name','merge','options','includeAll','include','findAll','rows','catch','show','keys','find','create','body','params','describe','rimraf','zip-dir','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','offset','undefined','limit'];(function(_0x36952a,_0x392d70){var _0x3eb6b6=function(_0x5cb548){while(--_0x5cb548){_0x36952a['push'](_0x36952a['shift']());}};_0x3eb6b6(++_0x392d70);}(_0xc258,0xc7));var _0x8c25=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xc258[_0x122ef9];return _0x42fba0;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x8c25('0x0'));var zipdir=require(_0x8c25('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0x8c25('0x2'));var moment=require(_0x8c25('0x3'));var BPromise=require(_0x8c25('0x4'));var Mustache=require(_0x8c25('0x5'));var util=require('util');var path=require(_0x8c25('0x6'));var sox=require(_0x8c25('0x7'));var csv=require(_0x8c25('0x8'));var ejs=require(_0x8c25('0x9'));var fs=require('fs');var fs_extra=require(_0x8c25('0xa'));var _=require(_0x8c25('0xb'));var squel=require(_0x8c25('0xc'));var crypto=require(_0x8c25('0xd'));var jsforce=require(_0x8c25('0xe'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x8c25('0xf'));var Papa=require(_0x8c25('0x10'));var Redis=require(_0x8c25('0x11'));var authService=require(_0x8c25('0x12'));var qs=require(_0x8c25('0x13'));var as=require(_0x8c25('0x14'));var hardwareService=require(_0x8c25('0x15'));var logger=require(_0x8c25('0x16'))('api');var utils=require(_0x8c25('0x17'));var config=require(_0x8c25('0x18'));var licenseUtil=require(_0x8c25('0x19'));var db=require(_0x8c25('0x1a'))['db'];function respondWithStatusCode(_0x2ad7c9,_0x108294){_0x108294=_0x108294||0xcc;return function(_0x3ac1ab){if(_0x3ac1ab){return _0x2ad7c9['sendStatus'](_0x108294);}return _0x2ad7c9[_0x8c25('0x1b')](_0x108294)[_0x8c25('0x1c')]();};}function respondWithResult(_0x2037ca,_0x511292){_0x511292=_0x511292||0xc8;return function(_0x1a0337){if(_0x1a0337){return _0x2037ca[_0x8c25('0x1b')](_0x511292)['json'](_0x1a0337);}};}function respondWithFilteredResult(_0x152cc9,_0x35f805){return function(_0x4d5090){if(_0x4d5090){var _0x439cbb=typeof _0x35f805[_0x8c25('0x1d')]===_0x8c25('0x1e')&&typeof _0x35f805[_0x8c25('0x1f')]===_0x8c25('0x1e');var _0x1b02c6=_0x4d5090['count'];var _0x5550e6=_0x439cbb?0x0:_0x35f805[_0x8c25('0x1d')];var _0x48c6c4=_0x439cbb?_0x4d5090[_0x8c25('0x20')]:_0x35f805[_0x8c25('0x1d')]+_0x35f805[_0x8c25('0x1f')];var _0x3f1768;if(_0x48c6c4>=_0x1b02c6){_0x48c6c4=_0x1b02c6;_0x3f1768=0xc8;}else{_0x3f1768=0xce;}_0x152cc9[_0x8c25('0x1b')](_0x3f1768);return _0x152cc9[_0x8c25('0x21')]('Content-Range',_0x5550e6+'-'+_0x48c6c4+'/'+_0x1b02c6)['json'](_0x4d5090);}return null;};}function patchUpdates(_0x144846){return function(_0x43a0d1){try{jsonpatch[_0x8c25('0x22')](_0x43a0d1,_0x144846,!![]);}catch(_0x315236){return BPromise[_0x8c25('0x23')](_0x315236);}return _0x43a0d1[_0x8c25('0x24')]();};}function saveUpdates(_0x5aa79f,_0x33141c){return function(_0x2a1e8f){if(_0x2a1e8f){return _0x2a1e8f[_0x8c25('0x25')](_0x5aa79f)['then'](function(_0x8f62bc){return _0x8f62bc;});}return null;};}function removeEntity(_0x3228a8,_0x159cce){return function(_0xdfac0){if(_0xdfac0){return _0xdfac0[_0x8c25('0x26')]()[_0x8c25('0x27')](function(){_0x3228a8[_0x8c25('0x1b')](0xcc)[_0x8c25('0x1c')]();});}};}function handleEntityNotFound(_0x3e4e79,_0x33a62e){return function(_0x16c80c){if(!_0x16c80c){_0x3e4e79[_0x8c25('0x28')](0x194);}return _0x16c80c;};}function handleError(_0x56c1b0,_0x2bfe2e){_0x2bfe2e=_0x2bfe2e||0x1f4;return function(_0x552bc9){logger['error'](_0x552bc9[_0x8c25('0x29')]);if(_0x552bc9['name']){delete _0x552bc9['name'];}_0x56c1b0['status'](_0x2bfe2e)['send'](_0x552bc9);};}exports[_0x8c25('0x2a')]=function(_0x3c116f,_0x4a6138){var _0x37d674={},_0x31016b={},_0x2d6115={'count':0x0,'rows':[]};var _0x2b22c6=_[_0x8c25('0x2b')](db[_0x8c25('0x2c')][_0x8c25('0x2d')],function(_0x11bf46){return{'name':_0x11bf46[_0x8c25('0x2e')],'type':_0x11bf46[_0x8c25('0x2f')][_0x8c25('0x30')]};});_0x31016b['model']=_['map'](_0x2b22c6,'name');_0x31016b[_0x8c25('0x31')]=_['keys'](_0x3c116f['query']);_0x31016b[_0x8c25('0x32')]=_[_0x8c25('0x33')](_0x31016b[_0x8c25('0x34')],_0x31016b[_0x8c25('0x31')]);_0x37d674[_0x8c25('0x35')]=_[_0x8c25('0x33')](_0x31016b[_0x8c25('0x34')],qs[_0x8c25('0x36')](_0x3c116f[_0x8c25('0x31')][_0x8c25('0x36')]));_0x37d674[_0x8c25('0x35')]=_0x37d674['attributes'][_0x8c25('0x37')]?_0x37d674[_0x8c25('0x35')]:_0x31016b[_0x8c25('0x34')];if(!_0x3c116f[_0x8c25('0x31')][_0x8c25('0x38')](_0x8c25('0x39'))){_0x37d674[_0x8c25('0x1f')]=qs[_0x8c25('0x1f')](_0x3c116f['query']['limit']);_0x37d674[_0x8c25('0x1d')]=qs[_0x8c25('0x1d')](_0x3c116f['query'][_0x8c25('0x1d')]);}_0x37d674['order']=qs[_0x8c25('0x3a')](_0x3c116f['query']['sort']);_0x37d674[_0x8c25('0x3b')]=qs['filters'](_['pick'](_0x3c116f[_0x8c25('0x31')],_0x31016b[_0x8c25('0x32')]),_0x2b22c6);if(_0x3c116f[_0x8c25('0x31')][_0x8c25('0x3c')]){_0x37d674[_0x8c25('0x3b')]=_['merge'](_0x37d674[_0x8c25('0x3b')],{'$or':_[_0x8c25('0x2b')](_0x2b22c6,function(_0x1ac343){if(_0x1ac343[_0x8c25('0x2f')]!==_0x8c25('0x3d')){var _0x17ae05={};_0x17ae05[_0x1ac343[_0x8c25('0x3e')]]={'$like':'%'+_0x3c116f[_0x8c25('0x31')][_0x8c25('0x3c')]+'%'};return _0x17ae05;}})});}_0x37d674=_[_0x8c25('0x3f')]({},_0x37d674,_0x3c116f[_0x8c25('0x40')]);var _0x39d0c2={'where':_0x37d674['where']};return db[_0x8c25('0x2c')][_0x8c25('0x20')](_0x39d0c2)['then'](function(_0x576088){_0x2d6115[_0x8c25('0x20')]=_0x576088;if(_0x3c116f[_0x8c25('0x31')][_0x8c25('0x41')]){_0x37d674[_0x8c25('0x42')]=[{'all':!![]}];}return db[_0x8c25('0x2c')][_0x8c25('0x43')](_0x37d674);})['then'](function(_0x4659e1){_0x2d6115[_0x8c25('0x44')]=_0x4659e1;return _0x2d6115;})[_0x8c25('0x27')](respondWithFilteredResult(_0x4a6138,_0x37d674))[_0x8c25('0x45')](handleError(_0x4a6138,null));};exports[_0x8c25('0x46')]=function(_0x4f3238,_0x594d80){var _0x56a247={'raw':!![],'where':{'id':_0x4f3238['params']['id']}},_0x5acf03={};_0x5acf03[_0x8c25('0x34')]=_[_0x8c25('0x47')](db[_0x8c25('0x2c')][_0x8c25('0x2d')]);_0x5acf03['query']=_[_0x8c25('0x47')](_0x4f3238[_0x8c25('0x31')]);_0x5acf03['filters']=_['intersection'](_0x5acf03[_0x8c25('0x34')],_0x5acf03[_0x8c25('0x31')]);_0x56a247[_0x8c25('0x35')]=_[_0x8c25('0x33')](_0x5acf03['model'],qs[_0x8c25('0x36')](_0x4f3238[_0x8c25('0x31')][_0x8c25('0x36')]));_0x56a247['attributes']=_0x56a247['attributes'][_0x8c25('0x37')]?_0x56a247[_0x8c25('0x35')]:_0x5acf03[_0x8c25('0x34')];if(_0x4f3238[_0x8c25('0x31')]['includeAll']){_0x56a247[_0x8c25('0x42')]=[{'all':!![]}];}_0x56a247=_[_0x8c25('0x3f')]({},_0x56a247,_0x4f3238[_0x8c25('0x40')]);return db[_0x8c25('0x2c')][_0x8c25('0x48')](_0x56a247)[_0x8c25('0x27')](handleEntityNotFound(_0x594d80,null))[_0x8c25('0x27')](respondWithResult(_0x594d80,null))[_0x8c25('0x45')](handleError(_0x594d80,null));};exports[_0x8c25('0x49')]=function(_0x51183d,_0x14900c){return db['OpenchannelTransferReport'][_0x8c25('0x49')](_0x51183d[_0x8c25('0x4a')],{})['then'](respondWithResult(_0x14900c,0xc9))['catch'](handleError(_0x14900c,null));};exports[_0x8c25('0x25')]=function(_0x26db56,_0x4653b8){if(_0x26db56[_0x8c25('0x4a')]['id']){delete _0x26db56[_0x8c25('0x4a')]['id'];}return db[_0x8c25('0x2c')]['find']({'where':{'id':_0x26db56[_0x8c25('0x4b')]['id']}})[_0x8c25('0x27')](handleEntityNotFound(_0x4653b8,null))[_0x8c25('0x27')](saveUpdates(_0x26db56['body'],null))[_0x8c25('0x27')](respondWithResult(_0x4653b8,null))[_0x8c25('0x45')](handleError(_0x4653b8,null));};exports[_0x8c25('0x26')]=function(_0x2104ac,_0xedfc44){return db[_0x8c25('0x2c')][_0x8c25('0x48')]({'where':{'id':_0x2104ac[_0x8c25('0x4b')]['id']}})['then'](handleEntityNotFound(_0xedfc44,null))[_0x8c25('0x27')](removeEntity(_0xedfc44,null))[_0x8c25('0x45')](handleError(_0xedfc44,null));};exports[_0x8c25('0x4c')]=function(_0xed7f45,_0x37f57a){return db[_0x8c25('0x2c')][_0x8c25('0x4c')]()[_0x8c25('0x27')](respondWithResult(_0x37f57a,null))['catch'](handleError(_0x37f57a,null));};
\ No newline at end of file