Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.controller.js
index 273028f..1d4589d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1a21=['undefined','limit','count','set','Content-Range','save','update','destroy','then','error','stack','name','send','index','rawAttributes','fieldName','key','model','query','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','map','type','options','FreshsalesField','includeAll','findAll','rows','catch','show','params','keys','include','find','create','body','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','path','to-csv','fs-extra','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset'];(function(_0x34a923,_0x3ce38d){var _0x46442b=function(_0x110960){while(--_0x110960){_0x34a923['push'](_0x34a923['shift']());}};_0x46442b(++_0x3ce38d);}(_0x1a21,0xcd));var _0x11a2=function(_0xdd827a,_0x482ad2){_0xdd827a=_0xdd827a-0x0;var _0x2f46f1=_0x1a21[_0xdd827a];return _0x2f46f1;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x11a2('0x0'));var zipdir=require(_0x11a2('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0x11a2('0x2'));var moment=require(_0x11a2('0x3'));var BPromise=require(_0x11a2('0x4'));var Mustache=require(_0x11a2('0x5'));var util=require(_0x11a2('0x6'));var path=require(_0x11a2('0x7'));var sox=require('sox');var csv=require(_0x11a2('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x11a2('0x9'));var _=require(_0x11a2('0xa'));var squel=require('squel');var crypto=require(_0x11a2('0xb'));var jsforce=require(_0x11a2('0xc'));var deskjs=require(_0x11a2('0xd'));var toCsv=require(_0x11a2('0x8'));var querystring=require(_0x11a2('0xe'));var Papa=require(_0x11a2('0xf'));var Redis=require(_0x11a2('0x10'));var authService=require(_0x11a2('0x11'));var qs=require(_0x11a2('0x12'));var as=require(_0x11a2('0x13'));var hardwareService=require(_0x11a2('0x14'));var logger=require(_0x11a2('0x15'))(_0x11a2('0x16'));var utils=require(_0x11a2('0x17'));var config=require(_0x11a2('0x18'));var licenseUtil=require(_0x11a2('0x19'));var db=require(_0x11a2('0x1a'))['db'];function respondWithStatusCode(_0x2603fd,_0x3af3c2){_0x3af3c2=_0x3af3c2||0xcc;return function(_0x2b8081){if(_0x2b8081){return _0x2603fd[_0x11a2('0x1b')](_0x3af3c2);}return _0x2603fd['status'](_0x3af3c2)[_0x11a2('0x1c')]();};}function respondWithResult(_0x5eacd2,_0x2c142e){_0x2c142e=_0x2c142e||0xc8;return function(_0x1f25fb){if(_0x1f25fb){return _0x5eacd2[_0x11a2('0x1d')](_0x2c142e)[_0x11a2('0x1e')](_0x1f25fb);}};}function respondWithFilteredResult(_0x4c5d69,_0xe22747){return function(_0x2b1e98){if(_0x2b1e98){var _0x39a58d=typeof _0xe22747[_0x11a2('0x1f')]===_0x11a2('0x20')&&typeof _0xe22747[_0x11a2('0x21')]===_0x11a2('0x20');var _0x3d244b=_0x2b1e98[_0x11a2('0x22')];var _0xfa418=_0x39a58d?0x0:_0xe22747[_0x11a2('0x1f')];var _0x5bfbd9=_0x39a58d?_0x2b1e98[_0x11a2('0x22')]:_0xe22747[_0x11a2('0x1f')]+_0xe22747['limit'];var _0x238c37;if(_0x5bfbd9>=_0x3d244b){_0x5bfbd9=_0x3d244b;_0x238c37=0xc8;}else{_0x238c37=0xce;}_0x4c5d69[_0x11a2('0x1d')](_0x238c37);return _0x4c5d69[_0x11a2('0x23')](_0x11a2('0x24'),_0xfa418+'-'+_0x5bfbd9+'/'+_0x3d244b)[_0x11a2('0x1e')](_0x2b1e98);}return null;};}function patchUpdates(_0x33bf62){return function(_0xd2a770){try{jsonpatch['apply'](_0xd2a770,_0x33bf62,!![]);}catch(_0x2466d7){return BPromise['reject'](_0x2466d7);}return _0xd2a770[_0x11a2('0x25')]();};}function saveUpdates(_0x30559b,_0x59ad19){return function(_0x2048dc){if(_0x2048dc){return _0x2048dc[_0x11a2('0x26')](_0x30559b)['then'](function(_0x3dd615){return _0x3dd615;});}return null;};}function removeEntity(_0x95aabd,_0x14ca9b){return function(_0x552587){if(_0x552587){return _0x552587[_0x11a2('0x27')]()[_0x11a2('0x28')](function(){_0x95aabd[_0x11a2('0x1d')](0xcc)[_0x11a2('0x1c')]();});}};}function handleEntityNotFound(_0x5ea9fb,_0x56129d){return function(_0x510b75){if(!_0x510b75){_0x5ea9fb[_0x11a2('0x1b')](0x194);}return _0x510b75;};}function handleError(_0x3c2447,_0xca5a55){_0xca5a55=_0xca5a55||0x1f4;return function(_0x46ceda){logger[_0x11a2('0x29')](_0x46ceda[_0x11a2('0x2a')]);if(_0x46ceda[_0x11a2('0x2b')]){delete _0x46ceda['name'];}_0x3c2447[_0x11a2('0x1d')](_0xca5a55)[_0x11a2('0x2c')](_0x46ceda);};}exports[_0x11a2('0x2d')]=function(_0x389733,_0x41d2e3){var _0x547051={},_0x2b05d0={},_0x3ab636={'count':0x0,'rows':[]};var _0x929ddc=_['map'](db['FreshsalesField'][_0x11a2('0x2e')],function(_0x3ace75){return{'name':_0x3ace75[_0x11a2('0x2f')],'type':_0x3ace75['type'][_0x11a2('0x30')]};});_0x2b05d0[_0x11a2('0x31')]=_['map'](_0x929ddc,_0x11a2('0x2b'));_0x2b05d0[_0x11a2('0x32')]=_['keys'](_0x389733[_0x11a2('0x32')]);_0x2b05d0[_0x11a2('0x33')]=_[_0x11a2('0x34')](_0x2b05d0['model'],_0x2b05d0[_0x11a2('0x32')]);_0x547051['attributes']=_[_0x11a2('0x34')](_0x2b05d0[_0x11a2('0x31')],qs['fields'](_0x389733[_0x11a2('0x32')][_0x11a2('0x35')]));_0x547051[_0x11a2('0x36')]=_0x547051[_0x11a2('0x36')][_0x11a2('0x37')]?_0x547051[_0x11a2('0x36')]:_0x2b05d0[_0x11a2('0x31')];if(!_0x389733[_0x11a2('0x32')][_0x11a2('0x38')](_0x11a2('0x39'))){_0x547051['limit']=qs['limit'](_0x389733[_0x11a2('0x32')][_0x11a2('0x21')]);_0x547051['offset']=qs[_0x11a2('0x1f')](_0x389733[_0x11a2('0x32')][_0x11a2('0x1f')]);}_0x547051[_0x11a2('0x3a')]=qs[_0x11a2('0x3b')](_0x389733[_0x11a2('0x32')][_0x11a2('0x3b')]);_0x547051[_0x11a2('0x3c')]=qs['filters'](_[_0x11a2('0x3d')](_0x389733[_0x11a2('0x32')],_0x2b05d0[_0x11a2('0x33')]),_0x929ddc);if(_0x389733[_0x11a2('0x32')][_0x11a2('0x3e')]){_0x547051[_0x11a2('0x3c')]=_[_0x11a2('0x3f')](_0x547051[_0x11a2('0x3c')],{'$or':_[_0x11a2('0x40')](_0x929ddc,function(_0x1a7973){if(_0x1a7973[_0x11a2('0x41')]!=='VIRTUAL'){var _0x5b82fb={};_0x5b82fb[_0x1a7973[_0x11a2('0x2b')]]={'$like':'%'+_0x389733[_0x11a2('0x32')][_0x11a2('0x3e')]+'%'};return _0x5b82fb;}})});}_0x547051=_[_0x11a2('0x3f')]({},_0x547051,_0x389733[_0x11a2('0x42')]);var _0x129acb={'where':_0x547051[_0x11a2('0x3c')]};return db[_0x11a2('0x43')][_0x11a2('0x22')](_0x129acb)['then'](function(_0x464cc8){_0x3ab636[_0x11a2('0x22')]=_0x464cc8;if(_0x389733[_0x11a2('0x32')][_0x11a2('0x44')]){_0x547051['include']=[{'all':!![]}];}return db['FreshsalesField'][_0x11a2('0x45')](_0x547051);})[_0x11a2('0x28')](function(_0xda4d13){_0x3ab636[_0x11a2('0x46')]=_0xda4d13;return _0x3ab636;})[_0x11a2('0x28')](respondWithFilteredResult(_0x41d2e3,_0x547051))[_0x11a2('0x47')](handleError(_0x41d2e3,null));};exports[_0x11a2('0x48')]=function(_0x1b5192,_0x4d03c7){var _0x595da8={'raw':!![],'where':{'id':_0x1b5192[_0x11a2('0x49')]['id']}},_0xd902e0={};_0xd902e0[_0x11a2('0x31')]=_[_0x11a2('0x4a')](db['FreshsalesField']['rawAttributes']);_0xd902e0[_0x11a2('0x32')]=_[_0x11a2('0x4a')](_0x1b5192[_0x11a2('0x32')]);_0xd902e0[_0x11a2('0x33')]=_[_0x11a2('0x34')](_0xd902e0[_0x11a2('0x31')],_0xd902e0['query']);_0x595da8[_0x11a2('0x36')]=_['intersection'](_0xd902e0[_0x11a2('0x31')],qs['fields'](_0x1b5192[_0x11a2('0x32')][_0x11a2('0x35')]));_0x595da8[_0x11a2('0x36')]=_0x595da8[_0x11a2('0x36')][_0x11a2('0x37')]?_0x595da8['attributes']:_0xd902e0[_0x11a2('0x31')];if(_0x1b5192[_0x11a2('0x32')][_0x11a2('0x44')]){_0x595da8[_0x11a2('0x4b')]=[{'all':!![]}];}_0x595da8=_[_0x11a2('0x3f')]({},_0x595da8,_0x1b5192[_0x11a2('0x42')]);return db[_0x11a2('0x43')][_0x11a2('0x4c')](_0x595da8)[_0x11a2('0x28')](handleEntityNotFound(_0x4d03c7,null))[_0x11a2('0x28')](respondWithResult(_0x4d03c7,null))[_0x11a2('0x47')](handleError(_0x4d03c7,null));};exports[_0x11a2('0x4d')]=function(_0x2a993d,_0x4c254f){return db[_0x11a2('0x43')][_0x11a2('0x4d')](_0x2a993d[_0x11a2('0x4e')],{})['then'](respondWithResult(_0x4c254f,0xc9))[_0x11a2('0x47')](handleError(_0x4c254f,null));};exports[_0x11a2('0x26')]=function(_0x543296,_0x3ec781){if(_0x543296[_0x11a2('0x4e')]['id']){delete _0x543296[_0x11a2('0x4e')]['id'];}return db[_0x11a2('0x43')][_0x11a2('0x4c')]({'where':{'id':_0x543296['params']['id']}})[_0x11a2('0x28')](handleEntityNotFound(_0x3ec781,null))[_0x11a2('0x28')](saveUpdates(_0x543296['body'],null))['then'](respondWithResult(_0x3ec781,null))['catch'](handleError(_0x3ec781,null));};exports['destroy']=function(_0x1b84ba,_0x26495e){return db[_0x11a2('0x43')]['find']({'where':{'id':_0x1b84ba[_0x11a2('0x49')]['id']}})[_0x11a2('0x28')](handleEntityNotFound(_0x26495e,null))[_0x11a2('0x28')](removeEntity(_0x26495e,null))[_0x11a2('0x47')](handleError(_0x26495e,null));};
\ No newline at end of file
+var _0x2aaf=['../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','status','offset','undefined','limit','count','set','Content-Range','json','apply','reject','save','update','then','destroy','error','stack','name','index','map','FreshsalesField','model','query','keys','filters','intersection','attributes','fields','length','nolimit','order','sort','where','filter','merge','type','VIRTUAL','options','includeAll','include','findAll','catch','params','rawAttributes','find','create','body','eml-format','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch'];(function(_0x2113d5,_0x49869b){var _0xd073a1=function(_0x22e5d6){while(--_0x22e5d6){_0x2113d5['push'](_0x2113d5['shift']());}};_0xd073a1(++_0x49869b);}(_0x2aaf,0x19d));var _0xf2aa=function(_0x487673,_0x322403){_0x487673=_0x487673-0x0;var _0x314277=_0x2aaf[_0x487673];return _0x314277;};'use strict';var emlformat=require(_0xf2aa('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0xf2aa('0x1'));var rp=require(_0xf2aa('0x2'));var moment=require(_0xf2aa('0x3'));var BPromise=require(_0xf2aa('0x4'));var Mustache=require(_0xf2aa('0x5'));var util=require('util');var path=require(_0xf2aa('0x6'));var sox=require(_0xf2aa('0x7'));var csv=require(_0xf2aa('0x8'));var ejs=require(_0xf2aa('0x9'));var fs=require('fs');var fs_extra=require(_0xf2aa('0xa'));var _=require('lodash');var squel=require('squel');var crypto=require(_0xf2aa('0xb'));var jsforce=require(_0xf2aa('0xc'));var deskjs=require(_0xf2aa('0xd'));var toCsv=require('to-csv');var querystring=require(_0xf2aa('0xe'));var Papa=require('papaparse');var Redis=require(_0xf2aa('0xf'));var authService=require(_0xf2aa('0x10'));var qs=require(_0xf2aa('0x11'));var as=require(_0xf2aa('0x12'));var hardwareService=require(_0xf2aa('0x13'));var logger=require('../../config/logger')(_0xf2aa('0x14'));var utils=require(_0xf2aa('0x15'));var config=require(_0xf2aa('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0xf2aa('0x17'))['db'];function respondWithStatusCode(_0x1b440c,_0x511f49){_0x511f49=_0x511f49||0xcc;return function(_0x105e41){if(_0x105e41){return _0x1b440c[_0xf2aa('0x18')](_0x511f49);}return _0x1b440c['status'](_0x511f49)[_0xf2aa('0x19')]();};}function respondWithResult(_0x23f238,_0x46f770){_0x46f770=_0x46f770||0xc8;return function(_0x33c6f8){if(_0x33c6f8){return _0x23f238[_0xf2aa('0x1a')](_0x46f770)['json'](_0x33c6f8);}};}function respondWithFilteredResult(_0x44991f,_0x1a83d8){return function(_0x4e9de9){if(_0x4e9de9){var _0x302dc6=typeof _0x1a83d8[_0xf2aa('0x1b')]===_0xf2aa('0x1c')&&typeof _0x1a83d8[_0xf2aa('0x1d')]==='undefined';var _0x4640a5=_0x4e9de9[_0xf2aa('0x1e')];var _0x926451=_0x302dc6?0x0:_0x1a83d8['offset'];var _0x318021=_0x302dc6?_0x4e9de9[_0xf2aa('0x1e')]:_0x1a83d8[_0xf2aa('0x1b')]+_0x1a83d8[_0xf2aa('0x1d')];var _0x35f2b7;if(_0x318021>=_0x4640a5){_0x318021=_0x4640a5;_0x35f2b7=0xc8;}else{_0x35f2b7=0xce;}_0x44991f[_0xf2aa('0x1a')](_0x35f2b7);return _0x44991f[_0xf2aa('0x1f')](_0xf2aa('0x20'),_0x926451+'-'+_0x318021+'/'+_0x4640a5)[_0xf2aa('0x21')](_0x4e9de9);}return null;};}function patchUpdates(_0x54f4b3){return function(_0x4df46c){try{jsonpatch[_0xf2aa('0x22')](_0x4df46c,_0x54f4b3,!![]);}catch(_0x419d21){return BPromise[_0xf2aa('0x23')](_0x419d21);}return _0x4df46c[_0xf2aa('0x24')]();};}function saveUpdates(_0x1b788b,_0x2ee934){return function(_0x7d8371){if(_0x7d8371){return _0x7d8371[_0xf2aa('0x25')](_0x1b788b)[_0xf2aa('0x26')](function(_0x4982ae){return _0x4982ae;});}return null;};}function removeEntity(_0x57dd2d,_0x21d48c){return function(_0x170ae7){if(_0x170ae7){return _0x170ae7[_0xf2aa('0x27')]()['then'](function(){_0x57dd2d['status'](0xcc)[_0xf2aa('0x19')]();});}};}function handleEntityNotFound(_0x2001da,_0x322d87){return function(_0x57a578){if(!_0x57a578){_0x2001da['sendStatus'](0x194);}return _0x57a578;};}function handleError(_0x5b1ec7,_0x38d534){_0x38d534=_0x38d534||0x1f4;return function(_0x4ce73f){logger[_0xf2aa('0x28')](_0x4ce73f[_0xf2aa('0x29')]);if(_0x4ce73f[_0xf2aa('0x2a')]){delete _0x4ce73f[_0xf2aa('0x2a')];}_0x5b1ec7['status'](_0x38d534)['send'](_0x4ce73f);};}exports[_0xf2aa('0x2b')]=function(_0x41a0e3,_0x33dbd1){var _0x4512dc={},_0x490d78={},_0x335702={'count':0x0,'rows':[]};var _0x127705=_[_0xf2aa('0x2c')](db[_0xf2aa('0x2d')]['rawAttributes'],function(_0x2d4bd7){return{'name':_0x2d4bd7['fieldName'],'type':_0x2d4bd7['type']['key']};});_0x490d78[_0xf2aa('0x2e')]=_['map'](_0x127705,_0xf2aa('0x2a'));_0x490d78[_0xf2aa('0x2f')]=_[_0xf2aa('0x30')](_0x41a0e3['query']);_0x490d78[_0xf2aa('0x31')]=_[_0xf2aa('0x32')](_0x490d78[_0xf2aa('0x2e')],_0x490d78[_0xf2aa('0x2f')]);_0x4512dc[_0xf2aa('0x33')]=_['intersection'](_0x490d78[_0xf2aa('0x2e')],qs[_0xf2aa('0x34')](_0x41a0e3[_0xf2aa('0x2f')][_0xf2aa('0x34')]));_0x4512dc[_0xf2aa('0x33')]=_0x4512dc[_0xf2aa('0x33')][_0xf2aa('0x35')]?_0x4512dc[_0xf2aa('0x33')]:_0x490d78[_0xf2aa('0x2e')];if(!_0x41a0e3[_0xf2aa('0x2f')]['hasOwnProperty'](_0xf2aa('0x36'))){_0x4512dc[_0xf2aa('0x1d')]=qs['limit'](_0x41a0e3[_0xf2aa('0x2f')][_0xf2aa('0x1d')]);_0x4512dc[_0xf2aa('0x1b')]=qs[_0xf2aa('0x1b')](_0x41a0e3[_0xf2aa('0x2f')]['offset']);}_0x4512dc[_0xf2aa('0x37')]=qs[_0xf2aa('0x38')](_0x41a0e3['query'][_0xf2aa('0x38')]);_0x4512dc[_0xf2aa('0x39')]=qs[_0xf2aa('0x31')](_['pick'](_0x41a0e3[_0xf2aa('0x2f')],_0x490d78[_0xf2aa('0x31')]),_0x127705);if(_0x41a0e3[_0xf2aa('0x2f')][_0xf2aa('0x3a')]){_0x4512dc['where']=_[_0xf2aa('0x3b')](_0x4512dc[_0xf2aa('0x39')],{'$or':_[_0xf2aa('0x2c')](_0x127705,function(_0x27013e){if(_0x27013e[_0xf2aa('0x3c')]!==_0xf2aa('0x3d')){var _0x5def8a={};_0x5def8a[_0x27013e[_0xf2aa('0x2a')]]={'$like':'%'+_0x41a0e3[_0xf2aa('0x2f')][_0xf2aa('0x3a')]+'%'};return _0x5def8a;}})});}_0x4512dc=_[_0xf2aa('0x3b')]({},_0x4512dc,_0x41a0e3[_0xf2aa('0x3e')]);var _0x77d6e={'where':_0x4512dc[_0xf2aa('0x39')]};return db['FreshsalesField'][_0xf2aa('0x1e')](_0x77d6e)[_0xf2aa('0x26')](function(_0x192ce1){_0x335702[_0xf2aa('0x1e')]=_0x192ce1;if(_0x41a0e3[_0xf2aa('0x2f')][_0xf2aa('0x3f')]){_0x4512dc[_0xf2aa('0x40')]=[{'all':!![]}];}return db[_0xf2aa('0x2d')][_0xf2aa('0x41')](_0x4512dc);})[_0xf2aa('0x26')](function(_0x3935e7){_0x335702['rows']=_0x3935e7;return _0x335702;})['then'](respondWithFilteredResult(_0x33dbd1,_0x4512dc))[_0xf2aa('0x42')](handleError(_0x33dbd1,null));};exports['show']=function(_0x24822d,_0x2897d5){var _0x5c20ca={'raw':!![],'where':{'id':_0x24822d[_0xf2aa('0x43')]['id']}},_0x97544b={};_0x97544b[_0xf2aa('0x2e')]=_['keys'](db[_0xf2aa('0x2d')][_0xf2aa('0x44')]);_0x97544b[_0xf2aa('0x2f')]=_['keys'](_0x24822d['query']);_0x97544b[_0xf2aa('0x31')]=_[_0xf2aa('0x32')](_0x97544b[_0xf2aa('0x2e')],_0x97544b[_0xf2aa('0x2f')]);_0x5c20ca[_0xf2aa('0x33')]=_[_0xf2aa('0x32')](_0x97544b[_0xf2aa('0x2e')],qs[_0xf2aa('0x34')](_0x24822d[_0xf2aa('0x2f')]['fields']));_0x5c20ca[_0xf2aa('0x33')]=_0x5c20ca[_0xf2aa('0x33')][_0xf2aa('0x35')]?_0x5c20ca[_0xf2aa('0x33')]:_0x97544b['model'];if(_0x24822d[_0xf2aa('0x2f')][_0xf2aa('0x3f')]){_0x5c20ca[_0xf2aa('0x40')]=[{'all':!![]}];}_0x5c20ca=_[_0xf2aa('0x3b')]({},_0x5c20ca,_0x24822d[_0xf2aa('0x3e')]);return db[_0xf2aa('0x2d')][_0xf2aa('0x45')](_0x5c20ca)['then'](handleEntityNotFound(_0x2897d5,null))['then'](respondWithResult(_0x2897d5,null))[_0xf2aa('0x42')](handleError(_0x2897d5,null));};exports[_0xf2aa('0x46')]=function(_0x4b37fc,_0xa077ce){return db['FreshsalesField'][_0xf2aa('0x46')](_0x4b37fc[_0xf2aa('0x47')],{})[_0xf2aa('0x26')](respondWithResult(_0xa077ce,0xc9))[_0xf2aa('0x42')](handleError(_0xa077ce,null));};exports[_0xf2aa('0x25')]=function(_0x2e82d5,_0x3cd738){if(_0x2e82d5[_0xf2aa('0x47')]['id']){delete _0x2e82d5[_0xf2aa('0x47')]['id'];}return db[_0xf2aa('0x2d')][_0xf2aa('0x45')]({'where':{'id':_0x2e82d5[_0xf2aa('0x43')]['id']}})['then'](handleEntityNotFound(_0x3cd738,null))[_0xf2aa('0x26')](saveUpdates(_0x2e82d5[_0xf2aa('0x47')],null))[_0xf2aa('0x26')](respondWithResult(_0x3cd738,null))['catch'](handleError(_0x3cd738,null));};exports[_0xf2aa('0x27')]=function(_0x30aee9,_0x44f073){return db[_0xf2aa('0x2d')][_0xf2aa('0x45')]({'where':{'id':_0x30aee9[_0xf2aa('0x43')]['id']}})[_0xf2aa('0x26')](handleEntityNotFound(_0x44f073,null))[_0xf2aa('0x26')](removeEntity(_0x44f073,null))[_0xf2aa('0x42')](handleError(_0x44f073,null));};
\ No newline at end of file