Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / intZohoField / intZohoField.controller.js
index c23e7cb..d905102 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6ed3=['attributes','length','nolimit','limit','order','sort','pick','merge','where','VIRTUAL','options','ZohoField','includeAll','include','findAll','rows','catch','show','params','rawAttributes','find','create','body','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','to-csv','ejs','squel','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','set','Content-Range','apply','reject','save','update','then','destroy','stack','name','index','map','fieldName','type','key','model','query','keys','filters','intersection','fields'];(function(_0x47a427,_0x27f03f){var _0x3aee89=function(_0x39e44b){while(--_0x39e44b){_0x47a427['push'](_0x47a427['shift']());}};_0x3aee89(++_0x27f03f);}(_0x6ed3,0x17f));var _0x36ed=function(_0x4a92c2,_0x28ed8b){_0x4a92c2=_0x4a92c2-0x0;var _0x7b52f1=_0x6ed3[_0x4a92c2];return _0x7b52f1;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x36ed('0x0'));var rimraf=require(_0x36ed('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x36ed('0x2'));var rp=require(_0x36ed('0x3'));var moment=require(_0x36ed('0x4'));var BPromise=require(_0x36ed('0x5'));var Mustache=require(_0x36ed('0x6'));var util=require(_0x36ed('0x7'));var path=require('path');var sox=require('sox');var csv=require(_0x36ed('0x8'));var ejs=require(_0x36ed('0x9'));var fs=require('fs');var _=require('lodash');var squel=require(_0x36ed('0xa'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x36ed('0xb'));var toCsv=require('to-csv');var querystring=require(_0x36ed('0xc'));var Papa=require(_0x36ed('0xd'));var Redis=require(_0x36ed('0xe'));var authService=require(_0x36ed('0xf'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x36ed('0x10'));var logger=require(_0x36ed('0x11'))(_0x36ed('0x12'));var utils=require(_0x36ed('0x13'));var config=require(_0x36ed('0x14'));var licenseUtil=require('../../config/license/util');var db=require(_0x36ed('0x15'))['db'];function respondWithStatusCode(_0xe4c948,_0x535aa6){_0x535aa6=_0x535aa6||0xcc;return function(_0x3c3c29){if(_0x3c3c29){return _0xe4c948[_0x36ed('0x16')](_0x535aa6);}return _0xe4c948[_0x36ed('0x17')](_0x535aa6)[_0x36ed('0x18')]();};}function respondWithResult(_0x4a40d4,_0x13c7bb){_0x13c7bb=_0x13c7bb||0xc8;return function(_0x4f1bdd){if(_0x4f1bdd){return _0x4a40d4[_0x36ed('0x17')](_0x13c7bb)[_0x36ed('0x19')](_0x4f1bdd);}};}function respondWithFilteredResult(_0x1cf2ec,_0x25a0a6){return function(_0x492c5f){if(_0x492c5f){var _0x58ffee=_0x492c5f[_0x36ed('0x1a')],_0x550092=_0x25a0a6[_0x36ed('0x1b')],_0x17b198=_0x25a0a6[_0x36ed('0x1b')]+_0x25a0a6['limit'],_0x35e7fe;if(_0x17b198>=_0x58ffee){_0x17b198=_0x58ffee;_0x35e7fe=0xc8;}else{_0x35e7fe=0xce;}_0x1cf2ec[_0x36ed('0x17')](_0x35e7fe);return _0x1cf2ec[_0x36ed('0x1c')](_0x36ed('0x1d'),_0x550092+'-'+_0x17b198+'/'+_0x58ffee)[_0x36ed('0x19')](_0x492c5f);}return null;};}function patchUpdates(_0x5643a3){return function(_0x4f061a){try{jsonpatch[_0x36ed('0x1e')](_0x4f061a,_0x5643a3,!![]);}catch(_0x2f3b8e){return BPromise[_0x36ed('0x1f')](_0x2f3b8e);}return _0x4f061a[_0x36ed('0x20')]();};}function saveUpdates(_0x58b8d3,_0x234660){return function(_0x52a4da){if(_0x52a4da){return _0x52a4da[_0x36ed('0x21')](_0x58b8d3)[_0x36ed('0x22')](function(_0x5d1ae2){return _0x5d1ae2;});}return null;};}function removeEntity(_0x1b4281,_0x533f25){return function(_0x4ef3c6){if(_0x4ef3c6){return _0x4ef3c6[_0x36ed('0x23')]()['then'](function(){_0x1b4281['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x41fba0,_0x16515a){return function(_0x4d6f2a){if(!_0x4d6f2a){_0x41fba0[_0x36ed('0x16')](0x194);}return _0x4d6f2a;};}function handleError(_0x7cbc38,_0x47c0fe){_0x47c0fe=_0x47c0fe||0x1f4;return function(_0x2edae5){logger['error'](_0x2edae5[_0x36ed('0x24')]);if(_0x2edae5[_0x36ed('0x25')]){delete _0x2edae5[_0x36ed('0x25')];}_0x7cbc38[_0x36ed('0x17')](_0x47c0fe)['send'](_0x2edae5);};}exports[_0x36ed('0x26')]=function(_0x2c84c3,_0xb9b977){var _0x5d728a={},_0x28450d={},_0x3e837a={'count':0x0,'rows':[]};var _0x4e548a=_[_0x36ed('0x27')](db['ZohoField']['rawAttributes'],function(_0xf997db){return{'name':_0xf997db[_0x36ed('0x28')],'type':_0xf997db[_0x36ed('0x29')][_0x36ed('0x2a')]};});_0x28450d[_0x36ed('0x2b')]=_[_0x36ed('0x27')](_0x4e548a,_0x36ed('0x25'));_0x28450d[_0x36ed('0x2c')]=_[_0x36ed('0x2d')](_0x2c84c3[_0x36ed('0x2c')]);_0x28450d[_0x36ed('0x2e')]=_['intersection'](_0x28450d['model'],_0x28450d[_0x36ed('0x2c')]);_0x5d728a['attributes']=_[_0x36ed('0x2f')](_0x28450d[_0x36ed('0x2b')],qs['fields'](_0x2c84c3[_0x36ed('0x2c')][_0x36ed('0x30')]));_0x5d728a[_0x36ed('0x31')]=_0x5d728a[_0x36ed('0x31')][_0x36ed('0x32')]?_0x5d728a['attributes']:_0x28450d['model'];if(!_0x2c84c3[_0x36ed('0x2c')]['hasOwnProperty'](_0x36ed('0x33'))){_0x5d728a[_0x36ed('0x34')]=qs[_0x36ed('0x34')](_0x2c84c3['query'][_0x36ed('0x34')]);_0x5d728a[_0x36ed('0x1b')]=qs[_0x36ed('0x1b')](_0x2c84c3['query'][_0x36ed('0x1b')]);}_0x5d728a[_0x36ed('0x35')]=qs[_0x36ed('0x36')](_0x2c84c3[_0x36ed('0x2c')][_0x36ed('0x36')]);_0x5d728a['where']=qs[_0x36ed('0x2e')](_[_0x36ed('0x37')](_0x2c84c3['query'],_0x28450d[_0x36ed('0x2e')]),_0x4e548a);if(_0x2c84c3[_0x36ed('0x2c')]['filter']){_0x5d728a['where']=_[_0x36ed('0x38')](_0x5d728a[_0x36ed('0x39')],{'$or':_[_0x36ed('0x27')](_0x4e548a,function(_0x299d55){if(_0x299d55[_0x36ed('0x29')]!==_0x36ed('0x3a')){var _0x26e78d={};_0x26e78d[_0x299d55[_0x36ed('0x25')]]={'$like':'%'+_0x2c84c3[_0x36ed('0x2c')]['filter']+'%'};return _0x26e78d;}})});}_0x5d728a=_[_0x36ed('0x38')]({},_0x5d728a,_0x2c84c3[_0x36ed('0x3b')]);var _0x418db4={'where':_0x5d728a['where']};return db[_0x36ed('0x3c')][_0x36ed('0x1a')](_0x418db4)[_0x36ed('0x22')](function(_0x458806){_0x3e837a[_0x36ed('0x1a')]=_0x458806;if(_0x2c84c3[_0x36ed('0x2c')][_0x36ed('0x3d')]){_0x5d728a[_0x36ed('0x3e')]=[{'all':!![]}];}return db[_0x36ed('0x3c')][_0x36ed('0x3f')](_0x5d728a);})[_0x36ed('0x22')](function(_0x16e26d){_0x3e837a[_0x36ed('0x40')]=_0x16e26d;return _0x3e837a;})[_0x36ed('0x22')](respondWithFilteredResult(_0xb9b977,_0x5d728a))[_0x36ed('0x41')](handleError(_0xb9b977,null));};exports[_0x36ed('0x42')]=function(_0x24ad13,_0x1fa9de){var _0x385ed8={'raw':!![],'where':{'id':_0x24ad13[_0x36ed('0x43')]['id']}},_0x1ead66={};_0x1ead66['model']=_[_0x36ed('0x2d')](db[_0x36ed('0x3c')][_0x36ed('0x44')]);_0x1ead66[_0x36ed('0x2c')]=_[_0x36ed('0x2d')](_0x24ad13['query']);_0x1ead66[_0x36ed('0x2e')]=_[_0x36ed('0x2f')](_0x1ead66[_0x36ed('0x2b')],_0x1ead66[_0x36ed('0x2c')]);_0x385ed8['attributes']=_['intersection'](_0x1ead66[_0x36ed('0x2b')],qs[_0x36ed('0x30')](_0x24ad13[_0x36ed('0x2c')][_0x36ed('0x30')]));_0x385ed8[_0x36ed('0x31')]=_0x385ed8[_0x36ed('0x31')][_0x36ed('0x32')]?_0x385ed8[_0x36ed('0x31')]:_0x1ead66[_0x36ed('0x2b')];if(_0x24ad13[_0x36ed('0x2c')][_0x36ed('0x3d')]){_0x385ed8[_0x36ed('0x3e')]=[{'all':!![]}];}_0x385ed8=_[_0x36ed('0x38')]({},_0x385ed8,_0x24ad13[_0x36ed('0x3b')]);return db['ZohoField'][_0x36ed('0x45')](_0x385ed8)[_0x36ed('0x22')](handleEntityNotFound(_0x1fa9de,null))[_0x36ed('0x22')](respondWithResult(_0x1fa9de,null))[_0x36ed('0x41')](handleError(_0x1fa9de,null));};exports[_0x36ed('0x46')]=function(_0x39d685,_0x15232e){return db[_0x36ed('0x3c')]['create'](_0x39d685[_0x36ed('0x47')],{})['then'](respondWithResult(_0x15232e,0xc9))['catch'](handleError(_0x15232e,null));};exports['update']=function(_0x28d940,_0x443ba1){if(_0x28d940[_0x36ed('0x47')]['id']){delete _0x28d940[_0x36ed('0x47')]['id'];}return db[_0x36ed('0x3c')][_0x36ed('0x45')]({'where':{'id':_0x28d940[_0x36ed('0x43')]['id']}})[_0x36ed('0x22')](handleEntityNotFound(_0x443ba1,null))['then'](saveUpdates(_0x28d940[_0x36ed('0x47')],null))[_0x36ed('0x22')](respondWithResult(_0x443ba1,null))[_0x36ed('0x41')](handleError(_0x443ba1,null));};exports[_0x36ed('0x23')]=function(_0x3a648c,_0x2d5fcf){return db['ZohoField'][_0x36ed('0x45')]({'where':{'id':_0x3a648c[_0x36ed('0x43')]['id']}})[_0x36ed('0x22')](handleEntityNotFound(_0x2d5fcf,null))['then'](removeEntity(_0x2d5fcf,null))['catch'](handleError(_0x2d5fcf,null));};
\ No newline at end of file
+var _0xf2b9=['crypto','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','status','json','offset','limit','count','set','Content-Range','reject','save','update','then','end','error','stack','name','send','index','map','key','model','query','keys','filters','attributes','intersection','fields','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','type','options','ZohoField','includeAll','rows','catch','show','params','rawAttributes','length','include','create','body','find','destroy','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xf2b9,0xcd));var _0x9f2b=function(_0x25123f,_0x1c5c44){_0x25123f=_0x25123f-0x0;var _0x2f7f34=_0xf2b9[_0x25123f];return _0x2f7f34;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x9f2b('0x0'));var rp=require(_0x9f2b('0x1'));var moment=require(_0x9f2b('0x2'));var BPromise=require('bluebird');var Mustache=require(_0x9f2b('0x3'));var util=require(_0x9f2b('0x4'));var path=require(_0x9f2b('0x5'));var sox=require(_0x9f2b('0x6'));var csv=require(_0x9f2b('0x7'));var ejs=require(_0x9f2b('0x8'));var fs=require('fs');var fs_extra=require(_0x9f2b('0x9'));var _=require(_0x9f2b('0xa'));var squel=require('squel');var crypto=require(_0x9f2b('0xb'));var jsforce=require(_0x9f2b('0xc'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x9f2b('0xd'));var Redis=require(_0x9f2b('0xe'));var authService=require(_0x9f2b('0xf'));var qs=require('../../components/parsers/qs');var as=require(_0x9f2b('0x10'));var hardwareService=require(_0x9f2b('0x11'));var logger=require(_0x9f2b('0x12'))(_0x9f2b('0x13'));var utils=require(_0x9f2b('0x14'));var config=require(_0x9f2b('0x15'));var licenseUtil=require(_0x9f2b('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1db75f,_0x4df870){_0x4df870=_0x4df870||0xcc;return function(_0x5ed45a){if(_0x5ed45a){return _0x1db75f['sendStatus'](_0x4df870);}return _0x1db75f[_0x9f2b('0x17')](_0x4df870)['end']();};}function respondWithResult(_0x21e93b,_0x4c08e5){_0x4c08e5=_0x4c08e5||0xc8;return function(_0x512e8e){if(_0x512e8e){return _0x21e93b['status'](_0x4c08e5)[_0x9f2b('0x18')](_0x512e8e);}};}function respondWithFilteredResult(_0x22cc7b,_0xcb6b03){return function(_0x4768f2){if(_0x4768f2){var _0x33c7b6=typeof _0xcb6b03[_0x9f2b('0x19')]==='undefined'&&typeof _0xcb6b03[_0x9f2b('0x1a')]==='undefined';var _0x188ddd=_0x4768f2['count'];var _0x2af7be=_0x33c7b6?0x0:_0xcb6b03[_0x9f2b('0x19')];var _0x5b543e=_0x33c7b6?_0x4768f2[_0x9f2b('0x1b')]:_0xcb6b03[_0x9f2b('0x19')]+_0xcb6b03[_0x9f2b('0x1a')];var _0x30d23d;if(_0x5b543e>=_0x188ddd){_0x5b543e=_0x188ddd;_0x30d23d=0xc8;}else{_0x30d23d=0xce;}_0x22cc7b[_0x9f2b('0x17')](_0x30d23d);return _0x22cc7b[_0x9f2b('0x1c')](_0x9f2b('0x1d'),_0x2af7be+'-'+_0x5b543e+'/'+_0x188ddd)[_0x9f2b('0x18')](_0x4768f2);}return null;};}function patchUpdates(_0x495004){return function(_0x56d362){try{jsonpatch['apply'](_0x56d362,_0x495004,!![]);}catch(_0x52e041){return BPromise[_0x9f2b('0x1e')](_0x52e041);}return _0x56d362[_0x9f2b('0x1f')]();};}function saveUpdates(_0x5ecd29,_0x1bd6e6){return function(_0xff9449){if(_0xff9449){return _0xff9449[_0x9f2b('0x20')](_0x5ecd29)['then'](function(_0x99c6f9){return _0x99c6f9;});}return null;};}function removeEntity(_0xf7dd2a,_0xd22d29){return function(_0x3dcc6e){if(_0x3dcc6e){return _0x3dcc6e['destroy']()[_0x9f2b('0x21')](function(){_0xf7dd2a[_0x9f2b('0x17')](0xcc)[_0x9f2b('0x22')]();});}};}function handleEntityNotFound(_0x2b23fc,_0x49b564){return function(_0x5c98cc){if(!_0x5c98cc){_0x2b23fc['sendStatus'](0x194);}return _0x5c98cc;};}function handleError(_0x4d325b,_0x5e68a1){_0x5e68a1=_0x5e68a1||0x1f4;return function(_0x4c0dcd){logger[_0x9f2b('0x23')](_0x4c0dcd[_0x9f2b('0x24')]);if(_0x4c0dcd[_0x9f2b('0x25')]){delete _0x4c0dcd['name'];}_0x4d325b[_0x9f2b('0x17')](_0x5e68a1)[_0x9f2b('0x26')](_0x4c0dcd);};}exports[_0x9f2b('0x27')]=function(_0x91411d,_0x55256f){var _0x3b4554={},_0x4342f8={},_0x2a6d74={'count':0x0,'rows':[]};var _0x4aeda6=_[_0x9f2b('0x28')](db['ZohoField']['rawAttributes'],function(_0x1b1a07){return{'name':_0x1b1a07['fieldName'],'type':_0x1b1a07['type'][_0x9f2b('0x29')]};});_0x4342f8[_0x9f2b('0x2a')]=_[_0x9f2b('0x28')](_0x4aeda6,_0x9f2b('0x25'));_0x4342f8[_0x9f2b('0x2b')]=_[_0x9f2b('0x2c')](_0x91411d[_0x9f2b('0x2b')]);_0x4342f8[_0x9f2b('0x2d')]=_['intersection'](_0x4342f8[_0x9f2b('0x2a')],_0x4342f8['query']);_0x3b4554[_0x9f2b('0x2e')]=_[_0x9f2b('0x2f')](_0x4342f8[_0x9f2b('0x2a')],qs[_0x9f2b('0x30')](_0x91411d[_0x9f2b('0x2b')]['fields']));_0x3b4554[_0x9f2b('0x2e')]=_0x3b4554['attributes']['length']?_0x3b4554[_0x9f2b('0x2e')]:_0x4342f8['model'];if(!_0x91411d[_0x9f2b('0x2b')][_0x9f2b('0x31')](_0x9f2b('0x32'))){_0x3b4554[_0x9f2b('0x1a')]=qs[_0x9f2b('0x1a')](_0x91411d[_0x9f2b('0x2b')][_0x9f2b('0x1a')]);_0x3b4554[_0x9f2b('0x19')]=qs['offset'](_0x91411d[_0x9f2b('0x2b')][_0x9f2b('0x19')]);}_0x3b4554[_0x9f2b('0x33')]=qs[_0x9f2b('0x34')](_0x91411d[_0x9f2b('0x2b')][_0x9f2b('0x34')]);_0x3b4554[_0x9f2b('0x35')]=qs[_0x9f2b('0x2d')](_[_0x9f2b('0x36')](_0x91411d[_0x9f2b('0x2b')],_0x4342f8['filters']),_0x4aeda6);if(_0x91411d[_0x9f2b('0x2b')][_0x9f2b('0x37')]){_0x3b4554[_0x9f2b('0x35')]=_[_0x9f2b('0x38')](_0x3b4554[_0x9f2b('0x35')],{'$or':_[_0x9f2b('0x28')](_0x4aeda6,function(_0x3d7b15){if(_0x3d7b15[_0x9f2b('0x39')]!=='VIRTUAL'){var _0x55fa3b={};_0x55fa3b[_0x3d7b15[_0x9f2b('0x25')]]={'$like':'%'+_0x91411d[_0x9f2b('0x2b')][_0x9f2b('0x37')]+'%'};return _0x55fa3b;}})});}_0x3b4554=_[_0x9f2b('0x38')]({},_0x3b4554,_0x91411d[_0x9f2b('0x3a')]);var _0xacad44={'where':_0x3b4554['where']};return db[_0x9f2b('0x3b')]['count'](_0xacad44)[_0x9f2b('0x21')](function(_0x5a9b3b){_0x2a6d74[_0x9f2b('0x1b')]=_0x5a9b3b;if(_0x91411d['query'][_0x9f2b('0x3c')]){_0x3b4554['include']=[{'all':!![]}];}return db['ZohoField']['findAll'](_0x3b4554);})[_0x9f2b('0x21')](function(_0x5a62f4){_0x2a6d74[_0x9f2b('0x3d')]=_0x5a62f4;return _0x2a6d74;})[_0x9f2b('0x21')](respondWithFilteredResult(_0x55256f,_0x3b4554))[_0x9f2b('0x3e')](handleError(_0x55256f,null));};exports[_0x9f2b('0x3f')]=function(_0x565e14,_0x532c7b){var _0x43222b={'raw':!![],'where':{'id':_0x565e14[_0x9f2b('0x40')]['id']}},_0x986173={};_0x986173[_0x9f2b('0x2a')]=_[_0x9f2b('0x2c')](db['ZohoField'][_0x9f2b('0x41')]);_0x986173[_0x9f2b('0x2b')]=_[_0x9f2b('0x2c')](_0x565e14[_0x9f2b('0x2b')]);_0x986173[_0x9f2b('0x2d')]=_[_0x9f2b('0x2f')](_0x986173[_0x9f2b('0x2a')],_0x986173[_0x9f2b('0x2b')]);_0x43222b['attributes']=_[_0x9f2b('0x2f')](_0x986173['model'],qs[_0x9f2b('0x30')](_0x565e14[_0x9f2b('0x2b')][_0x9f2b('0x30')]));_0x43222b[_0x9f2b('0x2e')]=_0x43222b['attributes'][_0x9f2b('0x42')]?_0x43222b['attributes']:_0x986173['model'];if(_0x565e14['query'][_0x9f2b('0x3c')]){_0x43222b[_0x9f2b('0x43')]=[{'all':!![]}];}_0x43222b=_['merge']({},_0x43222b,_0x565e14[_0x9f2b('0x3a')]);return db[_0x9f2b('0x3b')]['find'](_0x43222b)['then'](handleEntityNotFound(_0x532c7b,null))[_0x9f2b('0x21')](respondWithResult(_0x532c7b,null))[_0x9f2b('0x3e')](handleError(_0x532c7b,null));};exports[_0x9f2b('0x44')]=function(_0x7b8bf9,_0x4c8535){return db[_0x9f2b('0x3b')][_0x9f2b('0x44')](_0x7b8bf9[_0x9f2b('0x45')],{})['then'](respondWithResult(_0x4c8535,0xc9))[_0x9f2b('0x3e')](handleError(_0x4c8535,null));};exports[_0x9f2b('0x20')]=function(_0x3a9a1,_0x2bdc18){if(_0x3a9a1[_0x9f2b('0x45')]['id']){delete _0x3a9a1[_0x9f2b('0x45')]['id'];}return db[_0x9f2b('0x3b')][_0x9f2b('0x46')]({'where':{'id':_0x3a9a1['params']['id']}})['then'](handleEntityNotFound(_0x2bdc18,null))[_0x9f2b('0x21')](saveUpdates(_0x3a9a1[_0x9f2b('0x45')],null))[_0x9f2b('0x21')](respondWithResult(_0x2bdc18,null))[_0x9f2b('0x3e')](handleError(_0x2bdc18,null));};exports[_0x9f2b('0x47')]=function(_0x587b33,_0x169f23){return db['ZohoField'][_0x9f2b('0x46')]({'where':{'id':_0x587b33[_0x9f2b('0x40')]['id']}})[_0x9f2b('0x21')](handleEntityNotFound(_0x169f23,null))['then'](removeEntity(_0x169f23,null))[_0x9f2b('0x3e')](handleError(_0x169f23,null));};
\ No newline at end of file