Built motion from commit d6d69adf.|2.6.33
[motion2.git] / server / api / intZohoField / intZohoField.controller.js
index ed77fa3..7d362fb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa44c=['params','rawAttributes','length','find','catch','create','body','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','to-csv','ejs','fs-extra','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','json','offset','undefined','limit','count','set','apply','save','update','then','destroy','error','stack','send','index','map','ZohoField','fieldName','type','key','name','query','keys','filters','intersection','model','attributes','fields','nolimit','order','sort','pick','filter','merge','where','VIRTUAL','options','includeAll','include','findAll','rows','show'];(function(_0x3c3e20,_0x50ec3f){var _0x5e43e9=function(_0x169eec){while(--_0x169eec){_0x3c3e20['push'](_0x3c3e20['shift']());}};_0x5e43e9(++_0x50ec3f);}(_0xa44c,0x18d));var _0xca44=function(_0x59b0ba,_0x2a0c73){_0x59b0ba=_0x59b0ba-0x0;var _0x50fa2e=_0xa44c[_0x59b0ba];return _0x50fa2e;};'use strict';var emlformat=require(_0xca44('0x0'));var rimraf=require(_0xca44('0x1'));var zipdir=require(_0xca44('0x2'));var jsonpatch=require(_0xca44('0x3'));var rp=require(_0xca44('0x4'));var moment=require('moment');var BPromise=require(_0xca44('0x5'));var Mustache=require(_0xca44('0x6'));var util=require(_0xca44('0x7'));var path=require(_0xca44('0x8'));var sox=require('sox');var csv=require(_0xca44('0x9'));var ejs=require(_0xca44('0xa'));var fs=require('fs');var fs_extra=require(_0xca44('0xb'));var _=require('lodash');var squel=require(_0xca44('0xc'));var crypto=require(_0xca44('0xd'));var jsforce=require(_0xca44('0xe'));var deskjs=require(_0xca44('0xf'));var toCsv=require(_0xca44('0x9'));var querystring=require(_0xca44('0x10'));var Papa=require(_0xca44('0x11'));var Redis=require(_0xca44('0x12'));var authService=require('../../components/auth/service');var qs=require(_0xca44('0x13'));var as=require(_0xca44('0x14'));var hardwareService=require(_0xca44('0x15'));var logger=require(_0xca44('0x16'))(_0xca44('0x17'));var utils=require(_0xca44('0x18'));var config=require(_0xca44('0x19'));var licenseUtil=require(_0xca44('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0xa43cfe,_0x4865c6){_0x4865c6=_0x4865c6||0xcc;return function(_0x1dc22f){if(_0x1dc22f){return _0xa43cfe[_0xca44('0x1b')](_0x4865c6);}return _0xa43cfe[_0xca44('0x1c')](_0x4865c6)['end']();};}function respondWithResult(_0x380cce,_0x4c20bd){_0x4c20bd=_0x4c20bd||0xc8;return function(_0xf00ec7){if(_0xf00ec7){return _0x380cce[_0xca44('0x1c')](_0x4c20bd)[_0xca44('0x1d')](_0xf00ec7);}};}function respondWithFilteredResult(_0x1a21a5,_0x2fcb08){return function(_0x5bb0f8){if(_0x5bb0f8){var _0x2c765b=typeof _0x2fcb08[_0xca44('0x1e')]===_0xca44('0x1f')&&typeof _0x2fcb08[_0xca44('0x20')]===_0xca44('0x1f');var _0x46221c=_0x5bb0f8[_0xca44('0x21')];var _0x53e8cc=_0x2c765b?0x0:_0x2fcb08[_0xca44('0x1e')];var _0x222f78=_0x2c765b?_0x5bb0f8['count']:_0x2fcb08[_0xca44('0x1e')]+_0x2fcb08[_0xca44('0x20')];var _0x3f5bb0;if(_0x222f78>=_0x46221c){_0x222f78=_0x46221c;_0x3f5bb0=0xc8;}else{_0x3f5bb0=0xce;}_0x1a21a5[_0xca44('0x1c')](_0x3f5bb0);return _0x1a21a5[_0xca44('0x22')]('Content-Range',_0x53e8cc+'-'+_0x222f78+'/'+_0x46221c)['json'](_0x5bb0f8);}return null;};}function patchUpdates(_0xb49965){return function(_0x48c16a){try{jsonpatch[_0xca44('0x23')](_0x48c16a,_0xb49965,!![]);}catch(_0x533781){return BPromise['reject'](_0x533781);}return _0x48c16a[_0xca44('0x24')]();};}function saveUpdates(_0x201bc3,_0x20a0ef){return function(_0x1b78c8){if(_0x1b78c8){return _0x1b78c8[_0xca44('0x25')](_0x201bc3)[_0xca44('0x26')](function(_0x4e9c95){return _0x4e9c95;});}return null;};}function removeEntity(_0x4d1da0,_0x212af5){return function(_0x18b06c){if(_0x18b06c){return _0x18b06c[_0xca44('0x27')]()[_0xca44('0x26')](function(){_0x4d1da0[_0xca44('0x1c')](0xcc)['end']();});}};}function handleEntityNotFound(_0xee0574,_0x45eb27){return function(_0x3612aa){if(!_0x3612aa){_0xee0574['sendStatus'](0x194);}return _0x3612aa;};}function handleError(_0x24a6d7,_0x412a05){_0x412a05=_0x412a05||0x1f4;return function(_0x3f8a71){logger[_0xca44('0x28')](_0x3f8a71[_0xca44('0x29')]);if(_0x3f8a71['name']){delete _0x3f8a71['name'];}_0x24a6d7[_0xca44('0x1c')](_0x412a05)[_0xca44('0x2a')](_0x3f8a71);};}exports[_0xca44('0x2b')]=function(_0x3b3e12,_0xb8a63a){var _0x3513c6={},_0x4d5fad={},_0x1e25dd={'count':0x0,'rows':[]};var _0x89dc66=_[_0xca44('0x2c')](db[_0xca44('0x2d')]['rawAttributes'],function(_0x3e995c){return{'name':_0x3e995c[_0xca44('0x2e')],'type':_0x3e995c[_0xca44('0x2f')][_0xca44('0x30')]};});_0x4d5fad['model']=_[_0xca44('0x2c')](_0x89dc66,_0xca44('0x31'));_0x4d5fad[_0xca44('0x32')]=_[_0xca44('0x33')](_0x3b3e12[_0xca44('0x32')]);_0x4d5fad[_0xca44('0x34')]=_[_0xca44('0x35')](_0x4d5fad[_0xca44('0x36')],_0x4d5fad[_0xca44('0x32')]);_0x3513c6[_0xca44('0x37')]=_[_0xca44('0x35')](_0x4d5fad['model'],qs[_0xca44('0x38')](_0x3b3e12['query']['fields']));_0x3513c6['attributes']=_0x3513c6['attributes']['length']?_0x3513c6[_0xca44('0x37')]:_0x4d5fad[_0xca44('0x36')];if(!_0x3b3e12[_0xca44('0x32')]['hasOwnProperty'](_0xca44('0x39'))){_0x3513c6[_0xca44('0x20')]=qs[_0xca44('0x20')](_0x3b3e12[_0xca44('0x32')]['limit']);_0x3513c6[_0xca44('0x1e')]=qs[_0xca44('0x1e')](_0x3b3e12[_0xca44('0x32')][_0xca44('0x1e')]);}_0x3513c6[_0xca44('0x3a')]=qs[_0xca44('0x3b')](_0x3b3e12[_0xca44('0x32')][_0xca44('0x3b')]);_0x3513c6['where']=qs['filters'](_[_0xca44('0x3c')](_0x3b3e12[_0xca44('0x32')],_0x4d5fad[_0xca44('0x34')]),_0x89dc66);if(_0x3b3e12[_0xca44('0x32')][_0xca44('0x3d')]){_0x3513c6['where']=_[_0xca44('0x3e')](_0x3513c6[_0xca44('0x3f')],{'$or':_[_0xca44('0x2c')](_0x89dc66,function(_0x2d7d24){if(_0x2d7d24[_0xca44('0x2f')]!==_0xca44('0x40')){var _0x4aa32a={};_0x4aa32a[_0x2d7d24[_0xca44('0x31')]]={'$like':'%'+_0x3b3e12[_0xca44('0x32')][_0xca44('0x3d')]+'%'};return _0x4aa32a;}})});}_0x3513c6=_[_0xca44('0x3e')]({},_0x3513c6,_0x3b3e12[_0xca44('0x41')]);var _0x53fdbe={'where':_0x3513c6[_0xca44('0x3f')]};return db['ZohoField'][_0xca44('0x21')](_0x53fdbe)[_0xca44('0x26')](function(_0x163ed1){_0x1e25dd['count']=_0x163ed1;if(_0x3b3e12[_0xca44('0x32')][_0xca44('0x42')]){_0x3513c6[_0xca44('0x43')]=[{'all':!![]}];}return db[_0xca44('0x2d')][_0xca44('0x44')](_0x3513c6);})[_0xca44('0x26')](function(_0x22d2d3){_0x1e25dd[_0xca44('0x45')]=_0x22d2d3;return _0x1e25dd;})[_0xca44('0x26')](respondWithFilteredResult(_0xb8a63a,_0x3513c6))['catch'](handleError(_0xb8a63a,null));};exports[_0xca44('0x46')]=function(_0x3502b2,_0x2cf6b4){var _0x3b3f44={'raw':!![],'where':{'id':_0x3502b2[_0xca44('0x47')]['id']}},_0x2de870={};_0x2de870['model']=_[_0xca44('0x33')](db['ZohoField'][_0xca44('0x48')]);_0x2de870[_0xca44('0x32')]=_[_0xca44('0x33')](_0x3502b2[_0xca44('0x32')]);_0x2de870[_0xca44('0x34')]=_['intersection'](_0x2de870[_0xca44('0x36')],_0x2de870[_0xca44('0x32')]);_0x3b3f44[_0xca44('0x37')]=_[_0xca44('0x35')](_0x2de870[_0xca44('0x36')],qs[_0xca44('0x38')](_0x3502b2[_0xca44('0x32')]['fields']));_0x3b3f44['attributes']=_0x3b3f44[_0xca44('0x37')][_0xca44('0x49')]?_0x3b3f44[_0xca44('0x37')]:_0x2de870[_0xca44('0x36')];if(_0x3502b2[_0xca44('0x32')]['includeAll']){_0x3b3f44[_0xca44('0x43')]=[{'all':!![]}];}_0x3b3f44=_[_0xca44('0x3e')]({},_0x3b3f44,_0x3502b2['options']);return db['ZohoField'][_0xca44('0x4a')](_0x3b3f44)[_0xca44('0x26')](handleEntityNotFound(_0x2cf6b4,null))[_0xca44('0x26')](respondWithResult(_0x2cf6b4,null))[_0xca44('0x4b')](handleError(_0x2cf6b4,null));};exports[_0xca44('0x4c')]=function(_0x43092b,_0x2ba788){return db['ZohoField'][_0xca44('0x4c')](_0x43092b[_0xca44('0x4d')],{})[_0xca44('0x26')](respondWithResult(_0x2ba788,0xc9))[_0xca44('0x4b')](handleError(_0x2ba788,null));};exports[_0xca44('0x25')]=function(_0x8e77ac,_0x1964ec){if(_0x8e77ac[_0xca44('0x4d')]['id']){delete _0x8e77ac[_0xca44('0x4d')]['id'];}return db['ZohoField'][_0xca44('0x4a')]({'where':{'id':_0x8e77ac[_0xca44('0x47')]['id']}})['then'](handleEntityNotFound(_0x1964ec,null))[_0xca44('0x26')](saveUpdates(_0x8e77ac[_0xca44('0x4d')],null))[_0xca44('0x26')](respondWithResult(_0x1964ec,null))['catch'](handleError(_0x1964ec,null));};exports[_0xca44('0x27')]=function(_0x150332,_0x5908dd){return db['ZohoField'][_0xca44('0x4a')]({'where':{'id':_0x150332[_0xca44('0x47')]['id']}})[_0xca44('0x26')](handleEntityNotFound(_0x5908dd,null))['then'](removeEntity(_0x5908dd,null))[_0xca44('0x4b')](handleError(_0x5908dd,null));};
\ No newline at end of file
+var _0x1f0b=['error','stack','name','send','index','map','ZohoField','rawAttributes','fieldName','type','key','model','query','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','options','includeAll','include','findAll','rows','catch','params','keys','find','create','body','update','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','sox','to-csv','ejs','lodash','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','json','offset','undefined','limit','count','Content-Range','apply','reject','destroy','then','sendStatus'];(function(_0x242cb9,_0x1ef332){var _0x58737f=function(_0x6bf943){while(--_0x6bf943){_0x242cb9['push'](_0x242cb9['shift']());}};_0x58737f(++_0x1ef332);}(_0x1f0b,0x100));var _0xb1f0=function(_0x4a1b3c,_0x20aa97){_0x4a1b3c=_0x4a1b3c-0x0;var _0xe314d7=_0x1f0b[_0x4a1b3c];return _0xe314d7;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xb1f0('0x0'));var zipdir=require(_0xb1f0('0x1'));var jsonpatch=require(_0xb1f0('0x2'));var rp=require(_0xb1f0('0x3'));var moment=require(_0xb1f0('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xb1f0('0x5'));var util=require(_0xb1f0('0x6'));var path=require('path');var sox=require(_0xb1f0('0x7'));var csv=require(_0xb1f0('0x8'));var ejs=require(_0xb1f0('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xb1f0('0xa'));var squel=require('squel');var crypto=require(_0xb1f0('0xb'));var jsforce=require(_0xb1f0('0xc'));var deskjs=require(_0xb1f0('0xd'));var toCsv=require(_0xb1f0('0x8'));var querystring=require(_0xb1f0('0xe'));var Papa=require('papaparse');var Redis=require(_0xb1f0('0xf'));var authService=require(_0xb1f0('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0xb1f0('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xb1f0('0x12'))(_0xb1f0('0x13'));var utils=require(_0xb1f0('0x14'));var config=require(_0xb1f0('0x15'));var licenseUtil=require(_0xb1f0('0x16'));var db=require(_0xb1f0('0x17'))['db'];function respondWithStatusCode(_0x3f7a3c,_0x3bc9dd){_0x3bc9dd=_0x3bc9dd||0xcc;return function(_0x25e8d1){if(_0x25e8d1){return _0x3f7a3c['sendStatus'](_0x3bc9dd);}return _0x3f7a3c[_0xb1f0('0x18')](_0x3bc9dd)['end']();};}function respondWithResult(_0x52c46f,_0x5f0362){_0x5f0362=_0x5f0362||0xc8;return function(_0x516e04){if(_0x516e04){return _0x52c46f[_0xb1f0('0x18')](_0x5f0362)[_0xb1f0('0x19')](_0x516e04);}};}function respondWithFilteredResult(_0x3f4b2f,_0x45140a){return function(_0x4f2180){if(_0x4f2180){var _0xfc2271=typeof _0x45140a[_0xb1f0('0x1a')]===_0xb1f0('0x1b')&&typeof _0x45140a[_0xb1f0('0x1c')]===_0xb1f0('0x1b');var _0x2a41a0=_0x4f2180['count'];var _0x851c0c=_0xfc2271?0x0:_0x45140a[_0xb1f0('0x1a')];var _0x39f687=_0xfc2271?_0x4f2180[_0xb1f0('0x1d')]:_0x45140a[_0xb1f0('0x1a')]+_0x45140a[_0xb1f0('0x1c')];var _0x42d31b;if(_0x39f687>=_0x2a41a0){_0x39f687=_0x2a41a0;_0x42d31b=0xc8;}else{_0x42d31b=0xce;}_0x3f4b2f[_0xb1f0('0x18')](_0x42d31b);return _0x3f4b2f['set'](_0xb1f0('0x1e'),_0x851c0c+'-'+_0x39f687+'/'+_0x2a41a0)[_0xb1f0('0x19')](_0x4f2180);}return null;};}function patchUpdates(_0x20bc21){return function(_0x1b4477){try{jsonpatch[_0xb1f0('0x1f')](_0x1b4477,_0x20bc21,!![]);}catch(_0x5bb3c3){return BPromise[_0xb1f0('0x20')](_0x5bb3c3);}return _0x1b4477['save']();};}function saveUpdates(_0x49a8f3,_0x447493){return function(_0x1218f1){if(_0x1218f1){return _0x1218f1['update'](_0x49a8f3)['then'](function(_0x47899e){return _0x47899e;});}return null;};}function removeEntity(_0x2be2fe,_0xafaefc){return function(_0x402309){if(_0x402309){return _0x402309[_0xb1f0('0x21')]()[_0xb1f0('0x22')](function(){_0x2be2fe[_0xb1f0('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x5707da,_0x3b0dc5){return function(_0x2f12d0){if(!_0x2f12d0){_0x5707da[_0xb1f0('0x23')](0x194);}return _0x2f12d0;};}function handleError(_0xbb9169,_0x12e06f){_0x12e06f=_0x12e06f||0x1f4;return function(_0x2c6c71){logger[_0xb1f0('0x24')](_0x2c6c71[_0xb1f0('0x25')]);if(_0x2c6c71['name']){delete _0x2c6c71[_0xb1f0('0x26')];}_0xbb9169['status'](_0x12e06f)[_0xb1f0('0x27')](_0x2c6c71);};}exports[_0xb1f0('0x28')]=function(_0x2b224c,_0x268671){var _0x2a8b58={},_0x2c989e={},_0x4c309a={'count':0x0,'rows':[]};var _0x3dc4e8=_[_0xb1f0('0x29')](db[_0xb1f0('0x2a')][_0xb1f0('0x2b')],function(_0x268998){return{'name':_0x268998[_0xb1f0('0x2c')],'type':_0x268998[_0xb1f0('0x2d')][_0xb1f0('0x2e')]};});_0x2c989e[_0xb1f0('0x2f')]=_['map'](_0x3dc4e8,_0xb1f0('0x26'));_0x2c989e[_0xb1f0('0x30')]=_['keys'](_0x2b224c[_0xb1f0('0x30')]);_0x2c989e[_0xb1f0('0x31')]=_[_0xb1f0('0x32')](_0x2c989e[_0xb1f0('0x2f')],_0x2c989e[_0xb1f0('0x30')]);_0x2a8b58['attributes']=_[_0xb1f0('0x32')](_0x2c989e['model'],qs['fields'](_0x2b224c[_0xb1f0('0x30')][_0xb1f0('0x33')]));_0x2a8b58[_0xb1f0('0x34')]=_0x2a8b58['attributes'][_0xb1f0('0x35')]?_0x2a8b58[_0xb1f0('0x34')]:_0x2c989e[_0xb1f0('0x2f')];if(!_0x2b224c[_0xb1f0('0x30')][_0xb1f0('0x36')](_0xb1f0('0x37'))){_0x2a8b58[_0xb1f0('0x1c')]=qs[_0xb1f0('0x1c')](_0x2b224c[_0xb1f0('0x30')]['limit']);_0x2a8b58[_0xb1f0('0x1a')]=qs[_0xb1f0('0x1a')](_0x2b224c['query'][_0xb1f0('0x1a')]);}_0x2a8b58['order']=qs[_0xb1f0('0x38')](_0x2b224c[_0xb1f0('0x30')][_0xb1f0('0x38')]);_0x2a8b58[_0xb1f0('0x39')]=qs[_0xb1f0('0x31')](_[_0xb1f0('0x3a')](_0x2b224c[_0xb1f0('0x30')],_0x2c989e[_0xb1f0('0x31')]),_0x3dc4e8);if(_0x2b224c['query'][_0xb1f0('0x3b')]){_0x2a8b58[_0xb1f0('0x39')]=_[_0xb1f0('0x3c')](_0x2a8b58[_0xb1f0('0x39')],{'$or':_[_0xb1f0('0x29')](_0x3dc4e8,function(_0x32bacc){if(_0x32bacc[_0xb1f0('0x2d')]!=='VIRTUAL'){var _0x5b8beb={};_0x5b8beb[_0x32bacc['name']]={'$like':'%'+_0x2b224c['query'][_0xb1f0('0x3b')]+'%'};return _0x5b8beb;}})});}_0x2a8b58=_[_0xb1f0('0x3c')]({},_0x2a8b58,_0x2b224c[_0xb1f0('0x3d')]);var _0x31f01b={'where':_0x2a8b58['where']};return db[_0xb1f0('0x2a')][_0xb1f0('0x1d')](_0x31f01b)[_0xb1f0('0x22')](function(_0x39fc50){_0x4c309a['count']=_0x39fc50;if(_0x2b224c[_0xb1f0('0x30')][_0xb1f0('0x3e')]){_0x2a8b58[_0xb1f0('0x3f')]=[{'all':!![]}];}return db[_0xb1f0('0x2a')][_0xb1f0('0x40')](_0x2a8b58);})[_0xb1f0('0x22')](function(_0x2ba6fc){_0x4c309a[_0xb1f0('0x41')]=_0x2ba6fc;return _0x4c309a;})[_0xb1f0('0x22')](respondWithFilteredResult(_0x268671,_0x2a8b58))[_0xb1f0('0x42')](handleError(_0x268671,null));};exports['show']=function(_0x5dce81,_0x33b3da){var _0x1b5042={'raw':!![],'where':{'id':_0x5dce81[_0xb1f0('0x43')]['id']}},_0x2b5af5={};_0x2b5af5['model']=_[_0xb1f0('0x44')](db['ZohoField'][_0xb1f0('0x2b')]);_0x2b5af5[_0xb1f0('0x30')]=_['keys'](_0x5dce81[_0xb1f0('0x30')]);_0x2b5af5[_0xb1f0('0x31')]=_[_0xb1f0('0x32')](_0x2b5af5['model'],_0x2b5af5[_0xb1f0('0x30')]);_0x1b5042[_0xb1f0('0x34')]=_[_0xb1f0('0x32')](_0x2b5af5[_0xb1f0('0x2f')],qs[_0xb1f0('0x33')](_0x5dce81['query'][_0xb1f0('0x33')]));_0x1b5042[_0xb1f0('0x34')]=_0x1b5042[_0xb1f0('0x34')]['length']?_0x1b5042[_0xb1f0('0x34')]:_0x2b5af5[_0xb1f0('0x2f')];if(_0x5dce81['query'][_0xb1f0('0x3e')]){_0x1b5042['include']=[{'all':!![]}];}_0x1b5042=_[_0xb1f0('0x3c')]({},_0x1b5042,_0x5dce81[_0xb1f0('0x3d')]);return db[_0xb1f0('0x2a')][_0xb1f0('0x45')](_0x1b5042)[_0xb1f0('0x22')](handleEntityNotFound(_0x33b3da,null))[_0xb1f0('0x22')](respondWithResult(_0x33b3da,null))['catch'](handleError(_0x33b3da,null));};exports[_0xb1f0('0x46')]=function(_0x2d76c3,_0x43159b){return db[_0xb1f0('0x2a')][_0xb1f0('0x46')](_0x2d76c3[_0xb1f0('0x47')],{})[_0xb1f0('0x22')](respondWithResult(_0x43159b,0xc9))['catch'](handleError(_0x43159b,null));};exports[_0xb1f0('0x48')]=function(_0x208a9f,_0x32e883){if(_0x208a9f[_0xb1f0('0x47')]['id']){delete _0x208a9f[_0xb1f0('0x47')]['id'];}return db[_0xb1f0('0x2a')][_0xb1f0('0x45')]({'where':{'id':_0x208a9f[_0xb1f0('0x43')]['id']}})['then'](handleEntityNotFound(_0x32e883,null))[_0xb1f0('0x22')](saveUpdates(_0x208a9f[_0xb1f0('0x47')],null))['then'](respondWithResult(_0x32e883,null))[_0xb1f0('0x42')](handleError(_0x32e883,null));};exports[_0xb1f0('0x21')]=function(_0x6f7a6d,_0x6e9b92){return db['ZohoField'][_0xb1f0('0x45')]({'where':{'id':_0x6f7a6d[_0xb1f0('0x43')]['id']}})['then'](handleEntityNotFound(_0x6e9b92,null))[_0xb1f0('0x22')](removeEntity(_0x6e9b92,null))[_0xb1f0('0x42')](handleError(_0x6e9b92,null));};
\ No newline at end of file