Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index aeaf385..afaa092 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2f4b=['../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','offset','undefined','count','limit','Content-Range','json','reject','save','then','error','stack','name','send','index','map','fieldName','type','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','merge','filter','options','include','findAll','catch','OpenchannelTransferReport','rawAttributes','includeAll','find','create','body','params','destroy','describe','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','desk.js','../../components/parsers/qs','../../config/license/hardware'];(function(_0x53199f,_0x1dac3a){var _0x1f9609=function(_0x452065){while(--_0x452065){_0x53199f['push'](_0x53199f['shift']());}};_0x1f9609(++_0x1dac3a);}(_0x2f4b,0x1df));var _0xb2f4=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x2f4b[_0x17d9e3];return _0x14192d;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0xb2f4('0x0'));var jsonpatch=require(_0xb2f4('0x1'));var rp=require(_0xb2f4('0x2'));var moment=require(_0xb2f4('0x3'));var BPromise=require(_0xb2f4('0x4'));var Mustache=require(_0xb2f4('0x5'));var util=require(_0xb2f4('0x6'));var path=require(_0xb2f4('0x7'));var sox=require(_0xb2f4('0x8'));var csv=require(_0xb2f4('0x9'));var ejs=require(_0xb2f4('0xa'));var fs=require('fs');var fs_extra=require(_0xb2f4('0xb'));var _=require(_0xb2f4('0xc'));var squel=require(_0xb2f4('0xd'));var crypto=require('crypto');var jsforce=require(_0xb2f4('0xe'));var deskjs=require(_0xb2f4('0xf'));var toCsv=require(_0xb2f4('0x9'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0xb2f4('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xb2f4('0x11'));var logger=require(_0xb2f4('0x12'))(_0xb2f4('0x13'));var utils=require('../../config/utils');var config=require(_0xb2f4('0x14'));var licenseUtil=require(_0xb2f4('0x15'));var db=require(_0xb2f4('0x16'))['db'];function respondWithStatusCode(_0x3600e9,_0x1df541){_0x1df541=_0x1df541||0xcc;return function(_0x337cb6){if(_0x337cb6){return _0x3600e9[_0xb2f4('0x17')](_0x1df541);}return _0x3600e9['status'](_0x1df541)[_0xb2f4('0x18')]();};}function respondWithResult(_0x130668,_0x1a46f9){_0x1a46f9=_0x1a46f9||0xc8;return function(_0x45671e){if(_0x45671e){return _0x130668[_0xb2f4('0x19')](_0x1a46f9)['json'](_0x45671e);}};}function respondWithFilteredResult(_0x4b29ce,_0x56f45d){return function(_0x5101f6){if(_0x5101f6){var _0x50c2fa=typeof _0x56f45d[_0xb2f4('0x1a')]===_0xb2f4('0x1b')&&typeof _0x56f45d['limit']===_0xb2f4('0x1b');var _0x3ec162=_0x5101f6[_0xb2f4('0x1c')];var _0x1815af=_0x50c2fa?0x0:_0x56f45d[_0xb2f4('0x1a')];var _0x37bcea=_0x50c2fa?_0x5101f6[_0xb2f4('0x1c')]:_0x56f45d[_0xb2f4('0x1a')]+_0x56f45d[_0xb2f4('0x1d')];var _0x2751fe;if(_0x37bcea>=_0x3ec162){_0x37bcea=_0x3ec162;_0x2751fe=0xc8;}else{_0x2751fe=0xce;}_0x4b29ce['status'](_0x2751fe);return _0x4b29ce['set'](_0xb2f4('0x1e'),_0x1815af+'-'+_0x37bcea+'/'+_0x3ec162)[_0xb2f4('0x1f')](_0x5101f6);}return null;};}function patchUpdates(_0x1fc001){return function(_0x37c39a){try{jsonpatch['apply'](_0x37c39a,_0x1fc001,!![]);}catch(_0x4993b9){return BPromise[_0xb2f4('0x20')](_0x4993b9);}return _0x37c39a[_0xb2f4('0x21')]();};}function saveUpdates(_0x5e5239,_0x2ae282){return function(_0xd1f9c4){if(_0xd1f9c4){return _0xd1f9c4['update'](_0x5e5239)[_0xb2f4('0x22')](function(_0x3674e9){return _0x3674e9;});}return null;};}function removeEntity(_0x221418,_0x1458e6){return function(_0x24069f){if(_0x24069f){return _0x24069f['destroy']()[_0xb2f4('0x22')](function(){_0x221418[_0xb2f4('0x19')](0xcc)[_0xb2f4('0x18')]();});}};}function handleEntityNotFound(_0x515407,_0x35d75f){return function(_0x2f446d){if(!_0x2f446d){_0x515407[_0xb2f4('0x17')](0x194);}return _0x2f446d;};}function handleError(_0x5f08ad,_0x17f663){_0x17f663=_0x17f663||0x1f4;return function(_0x36af95){logger[_0xb2f4('0x23')](_0x36af95[_0xb2f4('0x24')]);if(_0x36af95[_0xb2f4('0x25')]){delete _0x36af95[_0xb2f4('0x25')];}_0x5f08ad['status'](_0x17f663)[_0xb2f4('0x26')](_0x36af95);};}exports[_0xb2f4('0x27')]=function(_0x5cc12c,_0x16e972){var _0x4f6811={},_0x234a7e={},_0x3a6b34={'count':0x0,'rows':[]};var _0x1f74d5=_[_0xb2f4('0x28')](db['OpenchannelTransferReport']['rawAttributes'],function(_0x12b132){return{'name':_0x12b132[_0xb2f4('0x29')],'type':_0x12b132[_0xb2f4('0x2a')]['key']};});_0x234a7e[_0xb2f4('0x2b')]=_[_0xb2f4('0x28')](_0x1f74d5,_0xb2f4('0x25'));_0x234a7e[_0xb2f4('0x2c')]=_[_0xb2f4('0x2d')](_0x5cc12c['query']);_0x234a7e[_0xb2f4('0x2e')]=_[_0xb2f4('0x2f')](_0x234a7e[_0xb2f4('0x2b')],_0x234a7e[_0xb2f4('0x2c')]);_0x4f6811['attributes']=_[_0xb2f4('0x2f')](_0x234a7e[_0xb2f4('0x2b')],qs[_0xb2f4('0x30')](_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x30')]));_0x4f6811[_0xb2f4('0x31')]=_0x4f6811[_0xb2f4('0x31')][_0xb2f4('0x32')]?_0x4f6811[_0xb2f4('0x31')]:_0x234a7e[_0xb2f4('0x2b')];if(!_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x33')](_0xb2f4('0x34'))){_0x4f6811[_0xb2f4('0x1d')]=qs[_0xb2f4('0x1d')](_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x1d')]);_0x4f6811[_0xb2f4('0x1a')]=qs[_0xb2f4('0x1a')](_0x5cc12c['query'][_0xb2f4('0x1a')]);}_0x4f6811[_0xb2f4('0x35')]=qs[_0xb2f4('0x36')](_0x5cc12c[_0xb2f4('0x2c')]['sort']);_0x4f6811[_0xb2f4('0x37')]=qs['filters'](_['pick'](_0x5cc12c[_0xb2f4('0x2c')],_0x234a7e[_0xb2f4('0x2e')]),_0x1f74d5);if(_0x5cc12c[_0xb2f4('0x2c')]['filter']){_0x4f6811['where']=_[_0xb2f4('0x38')](_0x4f6811[_0xb2f4('0x37')],{'$or':_[_0xb2f4('0x28')](_0x1f74d5,function(_0x2351a1){if(_0x2351a1[_0xb2f4('0x2a')]!=='VIRTUAL'){var _0x54198a={};_0x54198a[_0x2351a1[_0xb2f4('0x25')]]={'$like':'%'+_0x5cc12c[_0xb2f4('0x2c')][_0xb2f4('0x39')]+'%'};return _0x54198a;}})});}_0x4f6811=_['merge']({},_0x4f6811,_0x5cc12c[_0xb2f4('0x3a')]);var _0xe72428={'where':_0x4f6811[_0xb2f4('0x37')]};return db['OpenchannelTransferReport'][_0xb2f4('0x1c')](_0xe72428)[_0xb2f4('0x22')](function(_0x2426e1){_0x3a6b34[_0xb2f4('0x1c')]=_0x2426e1;if(_0x5cc12c[_0xb2f4('0x2c')]['includeAll']){_0x4f6811[_0xb2f4('0x3b')]=[{'all':!![]}];}return db['OpenchannelTransferReport'][_0xb2f4('0x3c')](_0x4f6811);})[_0xb2f4('0x22')](function(_0x294f83){_0x3a6b34['rows']=_0x294f83;return _0x3a6b34;})[_0xb2f4('0x22')](respondWithFilteredResult(_0x16e972,_0x4f6811))[_0xb2f4('0x3d')](handleError(_0x16e972,null));};exports['show']=function(_0x38e02e,_0xd0312a){var _0x2a1838={'raw':!![],'where':{'id':_0x38e02e['params']['id']}},_0x1f5341={};_0x1f5341['model']=_[_0xb2f4('0x2d')](db[_0xb2f4('0x3e')][_0xb2f4('0x3f')]);_0x1f5341[_0xb2f4('0x2c')]=_[_0xb2f4('0x2d')](_0x38e02e['query']);_0x1f5341[_0xb2f4('0x2e')]=_[_0xb2f4('0x2f')](_0x1f5341[_0xb2f4('0x2b')],_0x1f5341[_0xb2f4('0x2c')]);_0x2a1838['attributes']=_[_0xb2f4('0x2f')](_0x1f5341[_0xb2f4('0x2b')],qs[_0xb2f4('0x30')](_0x38e02e['query'][_0xb2f4('0x30')]));_0x2a1838['attributes']=_0x2a1838[_0xb2f4('0x31')][_0xb2f4('0x32')]?_0x2a1838[_0xb2f4('0x31')]:_0x1f5341[_0xb2f4('0x2b')];if(_0x38e02e[_0xb2f4('0x2c')][_0xb2f4('0x40')]){_0x2a1838[_0xb2f4('0x3b')]=[{'all':!![]}];}_0x2a1838=_['merge']({},_0x2a1838,_0x38e02e['options']);return db['OpenchannelTransferReport'][_0xb2f4('0x41')](_0x2a1838)['then'](handleEntityNotFound(_0xd0312a,null))[_0xb2f4('0x22')](respondWithResult(_0xd0312a,null))[_0xb2f4('0x3d')](handleError(_0xd0312a,null));};exports[_0xb2f4('0x42')]=function(_0x289c1c,_0x554d4a){return db[_0xb2f4('0x3e')][_0xb2f4('0x42')](_0x289c1c[_0xb2f4('0x43')],{})[_0xb2f4('0x22')](respondWithResult(_0x554d4a,0xc9))[_0xb2f4('0x3d')](handleError(_0x554d4a,null));};exports['update']=function(_0x1dfbc9,_0x563796){if(_0x1dfbc9[_0xb2f4('0x43')]['id']){delete _0x1dfbc9[_0xb2f4('0x43')]['id'];}return db[_0xb2f4('0x3e')][_0xb2f4('0x41')]({'where':{'id':_0x1dfbc9[_0xb2f4('0x44')]['id']}})[_0xb2f4('0x22')](handleEntityNotFound(_0x563796,null))[_0xb2f4('0x22')](saveUpdates(_0x1dfbc9['body'],null))[_0xb2f4('0x22')](respondWithResult(_0x563796,null))[_0xb2f4('0x3d')](handleError(_0x563796,null));};exports[_0xb2f4('0x45')]=function(_0x22cc3c,_0x471370){return db[_0xb2f4('0x3e')][_0xb2f4('0x41')]({'where':{'id':_0x22cc3c[_0xb2f4('0x44')]['id']}})[_0xb2f4('0x22')](handleEntityNotFound(_0x471370,null))[_0xb2f4('0x22')](removeEntity(_0x471370,null))[_0xb2f4('0x3d')](handleError(_0x471370,null));};exports[_0xb2f4('0x46')]=function(_0x228e01,_0x2018fd){return db[_0xb2f4('0x3e')]['describe']()[_0xb2f4('0x22')](respondWithResult(_0x2018fd,null))[_0xb2f4('0x3d')](handleError(_0x2018fd,null));};
\ No newline at end of file
+var _0x9352=['filters','intersection','fields','attributes','length','nolimit','order','sort','filter','where','count','includeAll','include','findAll','catch','show','params','merge','options','find','create','body','describe','eml-format','rimraf','request-promise','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','sendStatus','status','end','json','offset','undefined','limit','set','Content-Range','reject','save','update','then','destroy','error','name','send','index','map','OpenchannelTransferReport','rawAttributes','fieldName','type','model','query','keys'];(function(_0x5696e5,_0x1790e3){var _0x1e6f57=function(_0xda93de){while(--_0xda93de){_0x5696e5['push'](_0x5696e5['shift']());}};_0x1e6f57(++_0x1790e3);}(_0x9352,0xa9));var _0x2935=function(_0x2cff85,_0x5b6cb2){_0x2cff85=_0x2cff85-0x0;var _0x29dbff=_0x9352[_0x2cff85];return _0x29dbff;};'use strict';var emlformat=require(_0x2935('0x0'));var rimraf=require(_0x2935('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x2935('0x2'));var moment=require('moment');var BPromise=require(_0x2935('0x3'));var Mustache=require('mustache');var util=require(_0x2935('0x4'));var path=require(_0x2935('0x5'));var sox=require(_0x2935('0x6'));var csv=require(_0x2935('0x7'));var ejs=require(_0x2935('0x8'));var fs=require('fs');var fs_extra=require(_0x2935('0x9'));var _=require(_0x2935('0xa'));var squel=require(_0x2935('0xb'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x2935('0xc'));var toCsv=require(_0x2935('0x7'));var querystring=require(_0x2935('0xd'));var Papa=require(_0x2935('0xe'));var Redis=require(_0x2935('0xf'));var authService=require(_0x2935('0x10'));var qs=require(_0x2935('0x11'));var as=require(_0x2935('0x12'));var hardwareService=require(_0x2935('0x13'));var logger=require(_0x2935('0x14'))(_0x2935('0x15'));var utils=require('../../config/utils');var config=require(_0x2935('0x16'));var licenseUtil=require(_0x2935('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x2df463,_0x592280){_0x592280=_0x592280||0xcc;return function(_0x57016b){if(_0x57016b){return _0x2df463[_0x2935('0x18')](_0x592280);}return _0x2df463[_0x2935('0x19')](_0x592280)[_0x2935('0x1a')]();};}function respondWithResult(_0x1d7777,_0x1793ec){_0x1793ec=_0x1793ec||0xc8;return function(_0x109c2f){if(_0x109c2f){return _0x1d7777[_0x2935('0x19')](_0x1793ec)[_0x2935('0x1b')](_0x109c2f);}};}function respondWithFilteredResult(_0x3227c6,_0x24a9b4){return function(_0x5d3d43){if(_0x5d3d43){var _0x1fc5e8=typeof _0x24a9b4[_0x2935('0x1c')]===_0x2935('0x1d')&&typeof _0x24a9b4[_0x2935('0x1e')]===_0x2935('0x1d');var _0x5af25b=_0x5d3d43['count'];var _0x44923c=_0x1fc5e8?0x0:_0x24a9b4[_0x2935('0x1c')];var _0x125e7b=_0x1fc5e8?_0x5d3d43['count']:_0x24a9b4[_0x2935('0x1c')]+_0x24a9b4[_0x2935('0x1e')];var _0x5aa518;if(_0x125e7b>=_0x5af25b){_0x125e7b=_0x5af25b;_0x5aa518=0xc8;}else{_0x5aa518=0xce;}_0x3227c6[_0x2935('0x19')](_0x5aa518);return _0x3227c6[_0x2935('0x1f')](_0x2935('0x20'),_0x44923c+'-'+_0x125e7b+'/'+_0x5af25b)[_0x2935('0x1b')](_0x5d3d43);}return null;};}function patchUpdates(_0x32a327){return function(_0x408e22){try{jsonpatch['apply'](_0x408e22,_0x32a327,!![]);}catch(_0x5c60e1){return BPromise[_0x2935('0x21')](_0x5c60e1);}return _0x408e22[_0x2935('0x22')]();};}function saveUpdates(_0x4d5a7e,_0x5c1dcb){return function(_0x531f7c){if(_0x531f7c){return _0x531f7c[_0x2935('0x23')](_0x4d5a7e)[_0x2935('0x24')](function(_0x274c8){return _0x274c8;});}return null;};}function removeEntity(_0x27ec0b,_0x15a481){return function(_0x13bdb5){if(_0x13bdb5){return _0x13bdb5[_0x2935('0x25')]()['then'](function(){_0x27ec0b[_0x2935('0x19')](0xcc)[_0x2935('0x1a')]();});}};}function handleEntityNotFound(_0xc92adc,_0x2caab0){return function(_0x2277d9){if(!_0x2277d9){_0xc92adc[_0x2935('0x18')](0x194);}return _0x2277d9;};}function handleError(_0xc88df,_0xbc88b2){_0xbc88b2=_0xbc88b2||0x1f4;return function(_0x5ee609){logger[_0x2935('0x26')](_0x5ee609['stack']);if(_0x5ee609['name']){delete _0x5ee609[_0x2935('0x27')];}_0xc88df[_0x2935('0x19')](_0xbc88b2)[_0x2935('0x28')](_0x5ee609);};}exports[_0x2935('0x29')]=function(_0x5f4f96,_0x3326dc){var _0x475bbd={},_0x1c7d5f={},_0x3d4309={'count':0x0,'rows':[]};var _0x445120=_[_0x2935('0x2a')](db[_0x2935('0x2b')][_0x2935('0x2c')],function(_0x43bf02){return{'name':_0x43bf02[_0x2935('0x2d')],'type':_0x43bf02[_0x2935('0x2e')]['key']};});_0x1c7d5f[_0x2935('0x2f')]=_[_0x2935('0x2a')](_0x445120,_0x2935('0x27'));_0x1c7d5f[_0x2935('0x30')]=_[_0x2935('0x31')](_0x5f4f96['query']);_0x1c7d5f[_0x2935('0x32')]=_[_0x2935('0x33')](_0x1c7d5f[_0x2935('0x2f')],_0x1c7d5f['query']);_0x475bbd['attributes']=_[_0x2935('0x33')](_0x1c7d5f[_0x2935('0x2f')],qs[_0x2935('0x34')](_0x5f4f96[_0x2935('0x30')][_0x2935('0x34')]));_0x475bbd[_0x2935('0x35')]=_0x475bbd[_0x2935('0x35')][_0x2935('0x36')]?_0x475bbd[_0x2935('0x35')]:_0x1c7d5f[_0x2935('0x2f')];if(!_0x5f4f96[_0x2935('0x30')]['hasOwnProperty'](_0x2935('0x37'))){_0x475bbd[_0x2935('0x1e')]=qs[_0x2935('0x1e')](_0x5f4f96[_0x2935('0x30')][_0x2935('0x1e')]);_0x475bbd[_0x2935('0x1c')]=qs[_0x2935('0x1c')](_0x5f4f96[_0x2935('0x30')][_0x2935('0x1c')]);}_0x475bbd[_0x2935('0x38')]=qs[_0x2935('0x39')](_0x5f4f96[_0x2935('0x30')]['sort']);_0x475bbd['where']=qs[_0x2935('0x32')](_['pick'](_0x5f4f96[_0x2935('0x30')],_0x1c7d5f['filters']),_0x445120);if(_0x5f4f96[_0x2935('0x30')]['filter']){_0x475bbd['where']=_['merge'](_0x475bbd['where'],{'$or':_[_0x2935('0x2a')](_0x445120,function(_0x20f948){if(_0x20f948[_0x2935('0x2e')]!=='VIRTUAL'){var _0x83afd7={};_0x83afd7[_0x20f948[_0x2935('0x27')]]={'$like':'%'+_0x5f4f96[_0x2935('0x30')][_0x2935('0x3a')]+'%'};return _0x83afd7;}})});}_0x475bbd=_['merge']({},_0x475bbd,_0x5f4f96['options']);var _0x2deab1={'where':_0x475bbd[_0x2935('0x3b')]};return db[_0x2935('0x2b')]['count'](_0x2deab1)['then'](function(_0x9ec12c){_0x3d4309[_0x2935('0x3c')]=_0x9ec12c;if(_0x5f4f96[_0x2935('0x30')][_0x2935('0x3d')]){_0x475bbd[_0x2935('0x3e')]=[{'all':!![]}];}return db[_0x2935('0x2b')][_0x2935('0x3f')](_0x475bbd);})[_0x2935('0x24')](function(_0x4f284a){_0x3d4309['rows']=_0x4f284a;return _0x3d4309;})['then'](respondWithFilteredResult(_0x3326dc,_0x475bbd))[_0x2935('0x40')](handleError(_0x3326dc,null));};exports[_0x2935('0x41')]=function(_0x36ccb0,_0x16c265){var _0x5da963={'raw':!![],'where':{'id':_0x36ccb0[_0x2935('0x42')]['id']}},_0x59c942={};_0x59c942[_0x2935('0x2f')]=_['keys'](db[_0x2935('0x2b')]['rawAttributes']);_0x59c942[_0x2935('0x30')]=_[_0x2935('0x31')](_0x36ccb0['query']);_0x59c942[_0x2935('0x32')]=_['intersection'](_0x59c942[_0x2935('0x2f')],_0x59c942[_0x2935('0x30')]);_0x5da963['attributes']=_[_0x2935('0x33')](_0x59c942['model'],qs[_0x2935('0x34')](_0x36ccb0[_0x2935('0x30')]['fields']));_0x5da963['attributes']=_0x5da963[_0x2935('0x35')][_0x2935('0x36')]?_0x5da963[_0x2935('0x35')]:_0x59c942[_0x2935('0x2f')];if(_0x36ccb0[_0x2935('0x30')]['includeAll']){_0x5da963[_0x2935('0x3e')]=[{'all':!![]}];}_0x5da963=_[_0x2935('0x43')]({},_0x5da963,_0x36ccb0[_0x2935('0x44')]);return db['OpenchannelTransferReport'][_0x2935('0x45')](_0x5da963)[_0x2935('0x24')](handleEntityNotFound(_0x16c265,null))[_0x2935('0x24')](respondWithResult(_0x16c265,null))['catch'](handleError(_0x16c265,null));};exports[_0x2935('0x46')]=function(_0x3f437c,_0x4ddccf){return db[_0x2935('0x2b')][_0x2935('0x46')](_0x3f437c[_0x2935('0x47')],{})[_0x2935('0x24')](respondWithResult(_0x4ddccf,0xc9))[_0x2935('0x40')](handleError(_0x4ddccf,null));};exports[_0x2935('0x23')]=function(_0x4c4faa,_0x4c8305){if(_0x4c4faa[_0x2935('0x47')]['id']){delete _0x4c4faa['body']['id'];}return db[_0x2935('0x2b')][_0x2935('0x45')]({'where':{'id':_0x4c4faa[_0x2935('0x42')]['id']}})['then'](handleEntityNotFound(_0x4c8305,null))['then'](saveUpdates(_0x4c4faa[_0x2935('0x47')],null))[_0x2935('0x24')](respondWithResult(_0x4c8305,null))[_0x2935('0x40')](handleError(_0x4c8305,null));};exports['destroy']=function(_0x286d5f,_0x4775cd){return db[_0x2935('0x2b')][_0x2935('0x45')]({'where':{'id':_0x286d5f[_0x2935('0x42')]['id']}})[_0x2935('0x24')](handleEntityNotFound(_0x4775cd,null))[_0x2935('0x24')](removeEntity(_0x4775cd,null))[_0x2935('0x40')](handleError(_0x4775cd,null));};exports[_0x2935('0x48')]=function(_0x404d57,_0x1a2f78){return db[_0x2935('0x2b')][_0x2935('0x48')]()[_0x2935('0x24')](respondWithResult(_0x1a2f78,null))['catch'](handleError(_0x1a2f78,null));};
\ No newline at end of file