Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.controller.js
index aeaf385..5b62ebe 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 _0x74ea=['type','merge','options','includeAll','include','findAll','rows','catch','params','rawAttributes','length','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','lodash','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','stack','name','send','index','map','OpenchannelTransferReport','key','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','nolimit','sort','where','pick','filter'];(function(_0x3b4b1d,_0x15029e){var _0x488c36=function(_0x56c8b3){while(--_0x56c8b3){_0x3b4b1d['push'](_0x3b4b1d['shift']());}};_0x488c36(++_0x15029e);}(_0x74ea,0xf6));var _0xa74e=function(_0x40d058,_0x33bf7c){_0x40d058=_0x40d058-0x0;var _0x48464=_0x74ea[_0x40d058];return _0x48464;};'use strict';var emlformat=require(_0xa74e('0x0'));var rimraf=require(_0xa74e('0x1'));var zipdir=require(_0xa74e('0x2'));var jsonpatch=require(_0xa74e('0x3'));var rp=require(_0xa74e('0x4'));var moment=require(_0xa74e('0x5'));var BPromise=require(_0xa74e('0x6'));var Mustache=require(_0xa74e('0x7'));var util=require(_0xa74e('0x8'));var path=require('path');var sox=require(_0xa74e('0x9'));var csv=require(_0xa74e('0xa'));var ejs=require(_0xa74e('0xb'));var fs=require('fs');var fs_extra=require(_0xa74e('0xc'));var _=require(_0xa74e('0xd'));var squel=require('squel');var crypto=require(_0xa74e('0xe'));var jsforce=require('jsforce');var deskjs=require(_0xa74e('0xf'));var toCsv=require('to-csv');var querystring=require(_0xa74e('0x10'));var Papa=require(_0xa74e('0x11'));var Redis=require(_0xa74e('0x12'));var authService=require(_0xa74e('0x13'));var qs=require(_0xa74e('0x14'));var as=require(_0xa74e('0x15'));var hardwareService=require(_0xa74e('0x16'));var logger=require('../../config/logger')(_0xa74e('0x17'));var utils=require('../../config/utils');var config=require(_0xa74e('0x18'));var licenseUtil=require(_0xa74e('0x19'));var db=require(_0xa74e('0x1a'))['db'];function respondWithStatusCode(_0x4db034,_0x15edfd){_0x15edfd=_0x15edfd||0xcc;return function(_0x33e191){if(_0x33e191){return _0x4db034[_0xa74e('0x1b')](_0x15edfd);}return _0x4db034[_0xa74e('0x1c')](_0x15edfd)[_0xa74e('0x1d')]();};}function respondWithResult(_0x415bef,_0x52fe5b){_0x52fe5b=_0x52fe5b||0xc8;return function(_0x50e7ff){if(_0x50e7ff){return _0x415bef[_0xa74e('0x1c')](_0x52fe5b)[_0xa74e('0x1e')](_0x50e7ff);}};}function respondWithFilteredResult(_0xb5ff08,_0x5733ca){return function(_0x2b88fc){if(_0x2b88fc){var _0x59d795=typeof _0x5733ca[_0xa74e('0x1f')]===_0xa74e('0x20')&&typeof _0x5733ca[_0xa74e('0x21')]===_0xa74e('0x20');var _0x34edc6=_0x2b88fc[_0xa74e('0x22')];var _0x307f2c=_0x59d795?0x0:_0x5733ca[_0xa74e('0x1f')];var _0x10f4b0=_0x59d795?_0x2b88fc[_0xa74e('0x22')]:_0x5733ca[_0xa74e('0x1f')]+_0x5733ca['limit'];var _0x3a6d05;if(_0x10f4b0>=_0x34edc6){_0x10f4b0=_0x34edc6;_0x3a6d05=0xc8;}else{_0x3a6d05=0xce;}_0xb5ff08['status'](_0x3a6d05);return _0xb5ff08[_0xa74e('0x23')](_0xa74e('0x24'),_0x307f2c+'-'+_0x10f4b0+'/'+_0x34edc6)[_0xa74e('0x1e')](_0x2b88fc);}return null;};}function patchUpdates(_0x39bf40){return function(_0x45e6b8){try{jsonpatch[_0xa74e('0x25')](_0x45e6b8,_0x39bf40,!![]);}catch(_0x43dd3b){return BPromise[_0xa74e('0x26')](_0x43dd3b);}return _0x45e6b8[_0xa74e('0x27')]();};}function saveUpdates(_0x4da8e8,_0x52a5a9){return function(_0x1d2587){if(_0x1d2587){return _0x1d2587[_0xa74e('0x28')](_0x4da8e8)[_0xa74e('0x29')](function(_0x4ed885){return _0x4ed885;});}return null;};}function removeEntity(_0x334cb1,_0xc9b060){return function(_0x1a50f9){if(_0x1a50f9){return _0x1a50f9['destroy']()['then'](function(){_0x334cb1['status'](0xcc)[_0xa74e('0x1d')]();});}};}function handleEntityNotFound(_0x1ce2d1,_0xe362f5){return function(_0x46c302){if(!_0x46c302){_0x1ce2d1['sendStatus'](0x194);}return _0x46c302;};}function handleError(_0xad8f56,_0x44045f){_0x44045f=_0x44045f||0x1f4;return function(_0xd16aa5){logger['error'](_0xd16aa5[_0xa74e('0x2a')]);if(_0xd16aa5[_0xa74e('0x2b')]){delete _0xd16aa5[_0xa74e('0x2b')];}_0xad8f56[_0xa74e('0x1c')](_0x44045f)[_0xa74e('0x2c')](_0xd16aa5);};}exports[_0xa74e('0x2d')]=function(_0x3a2411,_0x4967ea){var _0x389092={},_0x449654={},_0x1fe29f={'count':0x0,'rows':[]};var _0x3cc8f8=_[_0xa74e('0x2e')](db[_0xa74e('0x2f')]['rawAttributes'],function(_0xf0c7cf){return{'name':_0xf0c7cf['fieldName'],'type':_0xf0c7cf['type'][_0xa74e('0x30')]};});_0x449654[_0xa74e('0x31')]=_[_0xa74e('0x2e')](_0x3cc8f8,'name');_0x449654[_0xa74e('0x32')]=_[_0xa74e('0x33')](_0x3a2411[_0xa74e('0x32')]);_0x449654[_0xa74e('0x34')]=_[_0xa74e('0x35')](_0x449654[_0xa74e('0x31')],_0x449654[_0xa74e('0x32')]);_0x389092[_0xa74e('0x36')]=_[_0xa74e('0x35')](_0x449654[_0xa74e('0x31')],qs[_0xa74e('0x37')](_0x3a2411[_0xa74e('0x32')][_0xa74e('0x37')]));_0x389092[_0xa74e('0x36')]=_0x389092['attributes']['length']?_0x389092[_0xa74e('0x36')]:_0x449654[_0xa74e('0x31')];if(!_0x3a2411[_0xa74e('0x32')][_0xa74e('0x38')](_0xa74e('0x39'))){_0x389092[_0xa74e('0x21')]=qs[_0xa74e('0x21')](_0x3a2411['query'][_0xa74e('0x21')]);_0x389092['offset']=qs[_0xa74e('0x1f')](_0x3a2411['query']['offset']);}_0x389092['order']=qs[_0xa74e('0x3a')](_0x3a2411[_0xa74e('0x32')][_0xa74e('0x3a')]);_0x389092[_0xa74e('0x3b')]=qs[_0xa74e('0x34')](_[_0xa74e('0x3c')](_0x3a2411[_0xa74e('0x32')],_0x449654[_0xa74e('0x34')]),_0x3cc8f8);if(_0x3a2411[_0xa74e('0x32')][_0xa74e('0x3d')]){_0x389092[_0xa74e('0x3b')]=_['merge'](_0x389092[_0xa74e('0x3b')],{'$or':_['map'](_0x3cc8f8,function(_0x23d77e){if(_0x23d77e[_0xa74e('0x3e')]!=='VIRTUAL'){var _0x52b2b7={};_0x52b2b7[_0x23d77e['name']]={'$like':'%'+_0x3a2411['query'][_0xa74e('0x3d')]+'%'};return _0x52b2b7;}})});}_0x389092=_[_0xa74e('0x3f')]({},_0x389092,_0x3a2411[_0xa74e('0x40')]);var _0x5d1263={'where':_0x389092[_0xa74e('0x3b')]};return db[_0xa74e('0x2f')]['count'](_0x5d1263)[_0xa74e('0x29')](function(_0x5b8a55){_0x1fe29f[_0xa74e('0x22')]=_0x5b8a55;if(_0x3a2411[_0xa74e('0x32')][_0xa74e('0x41')]){_0x389092[_0xa74e('0x42')]=[{'all':!![]}];}return db['OpenchannelTransferReport'][_0xa74e('0x43')](_0x389092);})[_0xa74e('0x29')](function(_0x1bc722){_0x1fe29f[_0xa74e('0x44')]=_0x1bc722;return _0x1fe29f;})[_0xa74e('0x29')](respondWithFilteredResult(_0x4967ea,_0x389092))[_0xa74e('0x45')](handleError(_0x4967ea,null));};exports['show']=function(_0x5d2f8b,_0x48e096){var _0x3bfe08={'raw':!![],'where':{'id':_0x5d2f8b[_0xa74e('0x46')]['id']}},_0xb756fb={};_0xb756fb['model']=_[_0xa74e('0x33')](db[_0xa74e('0x2f')][_0xa74e('0x47')]);_0xb756fb[_0xa74e('0x32')]=_[_0xa74e('0x33')](_0x5d2f8b[_0xa74e('0x32')]);_0xb756fb[_0xa74e('0x34')]=_[_0xa74e('0x35')](_0xb756fb[_0xa74e('0x31')],_0xb756fb[_0xa74e('0x32')]);_0x3bfe08[_0xa74e('0x36')]=_[_0xa74e('0x35')](_0xb756fb[_0xa74e('0x31')],qs['fields'](_0x5d2f8b['query'][_0xa74e('0x37')]));_0x3bfe08[_0xa74e('0x36')]=_0x3bfe08[_0xa74e('0x36')][_0xa74e('0x48')]?_0x3bfe08[_0xa74e('0x36')]:_0xb756fb['model'];if(_0x5d2f8b[_0xa74e('0x32')][_0xa74e('0x41')]){_0x3bfe08[_0xa74e('0x42')]=[{'all':!![]}];}_0x3bfe08=_[_0xa74e('0x3f')]({},_0x3bfe08,_0x5d2f8b['options']);return db[_0xa74e('0x2f')][_0xa74e('0x49')](_0x3bfe08)[_0xa74e('0x29')](handleEntityNotFound(_0x48e096,null))[_0xa74e('0x29')](respondWithResult(_0x48e096,null))[_0xa74e('0x45')](handleError(_0x48e096,null));};exports['create']=function(_0x377b4a,_0x448824){return db[_0xa74e('0x2f')][_0xa74e('0x4a')](_0x377b4a[_0xa74e('0x4b')],{})[_0xa74e('0x29')](respondWithResult(_0x448824,0xc9))[_0xa74e('0x45')](handleError(_0x448824,null));};exports[_0xa74e('0x28')]=function(_0x36e9ff,_0x1d5b13){if(_0x36e9ff[_0xa74e('0x4b')]['id']){delete _0x36e9ff['body']['id'];}return db[_0xa74e('0x2f')][_0xa74e('0x49')]({'where':{'id':_0x36e9ff[_0xa74e('0x46')]['id']}})[_0xa74e('0x29')](handleEntityNotFound(_0x1d5b13,null))['then'](saveUpdates(_0x36e9ff[_0xa74e('0x4b')],null))[_0xa74e('0x29')](respondWithResult(_0x1d5b13,null))['catch'](handleError(_0x1d5b13,null));};exports['destroy']=function(_0xccecda,_0x5619ad){return db[_0xa74e('0x2f')]['find']({'where':{'id':_0xccecda[_0xa74e('0x46')]['id']}})[_0xa74e('0x29')](handleEntityNotFound(_0x5619ad,null))[_0xa74e('0x29')](removeEntity(_0x5619ad,null))[_0xa74e('0x45')](handleError(_0x5619ad,null));};exports[_0xa74e('0x4c')]=function(_0x16eaf2,_0x8ad717){return db[_0xa74e('0x2f')][_0xa74e('0x4c')]()[_0xa74e('0x29')](respondWithResult(_0x8ad717,null))[_0xa74e('0x45')](handleError(_0x8ad717,null));};
\ No newline at end of file