Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.controller.js
index 6f91c89..1f2cf61 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe2b5=['moment','bluebird','util','path','sox','to-csv','fs-extra','squel','crypto','jsforce','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','undefined','limit','count','offset','set','Content-Range','json','apply','reject','save','update','then','destroy','end','error','stack','name','index','map','rawAttributes','fieldName','key','model','query','filters','attributes','fields','length','hasOwnProperty','nolimit','order','sort','pick','where','merge','type','filter','options','includeAll','include','SugarcrmField','catch','params','keys','intersection','create','body','find','eml-format','rimraf','zip-dir','fast-json-patch'];(function(_0x1d2bc8,_0x2860bc){var _0x1857e1=function(_0x3a3073){while(--_0x3a3073){_0x1d2bc8['push'](_0x1d2bc8['shift']());}};_0x1857e1(++_0x2860bc);}(_0xe2b5,0x90));var _0x5e2b=function(_0x24237f,_0x4cf32c){_0x24237f=_0x24237f-0x0;var _0x48298e=_0xe2b5[_0x24237f];return _0x48298e;};'use strict';var emlformat=require(_0x5e2b('0x0'));var rimraf=require(_0x5e2b('0x1'));var zipdir=require(_0x5e2b('0x2'));var jsonpatch=require(_0x5e2b('0x3'));var rp=require('request-promise');var moment=require(_0x5e2b('0x4'));var BPromise=require(_0x5e2b('0x5'));var Mustache=require('mustache');var util=require(_0x5e2b('0x6'));var path=require(_0x5e2b('0x7'));var sox=require(_0x5e2b('0x8'));var csv=require(_0x5e2b('0x9'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x5e2b('0xa'));var _=require('lodash');var squel=require(_0x5e2b('0xb'));var crypto=require(_0x5e2b('0xc'));var jsforce=require(_0x5e2b('0xd'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x5e2b('0xe'));var Redis=require('ioredis');var authService=require(_0x5e2b('0xf'));var qs=require(_0x5e2b('0x10'));var as=require(_0x5e2b('0x11'));var hardwareService=require(_0x5e2b('0x12'));var logger=require(_0x5e2b('0x13'))(_0x5e2b('0x14'));var utils=require(_0x5e2b('0x15'));var config=require(_0x5e2b('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0x5e2b('0x17'))['db'];function respondWithStatusCode(_0x539766,_0x574519){_0x574519=_0x574519||0xcc;return function(_0x325fe7){if(_0x325fe7){return _0x539766[_0x5e2b('0x18')](_0x574519);}return _0x539766['status'](_0x574519)['end']();};}function respondWithResult(_0x3091c5,_0x4c1d8f){_0x4c1d8f=_0x4c1d8f||0xc8;return function(_0x18cdd5){if(_0x18cdd5){return _0x3091c5[_0x5e2b('0x19')](_0x4c1d8f)['json'](_0x18cdd5);}};}function respondWithFilteredResult(_0x2a28d1,_0x52ed4c){return function(_0x582ce9){if(_0x582ce9){var _0x14f08e=typeof _0x52ed4c['offset']===_0x5e2b('0x1a')&&typeof _0x52ed4c[_0x5e2b('0x1b')]===_0x5e2b('0x1a');var _0x32fea5=_0x582ce9[_0x5e2b('0x1c')];var _0x44e419=_0x14f08e?0x0:_0x52ed4c[_0x5e2b('0x1d')];var _0x6e4c6=_0x14f08e?_0x582ce9[_0x5e2b('0x1c')]:_0x52ed4c[_0x5e2b('0x1d')]+_0x52ed4c['limit'];var _0x26b2fc;if(_0x6e4c6>=_0x32fea5){_0x6e4c6=_0x32fea5;_0x26b2fc=0xc8;}else{_0x26b2fc=0xce;}_0x2a28d1[_0x5e2b('0x19')](_0x26b2fc);return _0x2a28d1[_0x5e2b('0x1e')](_0x5e2b('0x1f'),_0x44e419+'-'+_0x6e4c6+'/'+_0x32fea5)[_0x5e2b('0x20')](_0x582ce9);}return null;};}function patchUpdates(_0x1febe7){return function(_0x1f4a46){try{jsonpatch[_0x5e2b('0x21')](_0x1f4a46,_0x1febe7,!![]);}catch(_0x1c56ba){return BPromise[_0x5e2b('0x22')](_0x1c56ba);}return _0x1f4a46[_0x5e2b('0x23')]();};}function saveUpdates(_0x195403,_0x329452){return function(_0x403403){if(_0x403403){return _0x403403[_0x5e2b('0x24')](_0x195403)[_0x5e2b('0x25')](function(_0x35cea5){return _0x35cea5;});}return null;};}function removeEntity(_0x1c3bb4,_0x5895e5){return function(_0xbdf943){if(_0xbdf943){return _0xbdf943[_0x5e2b('0x26')]()[_0x5e2b('0x25')](function(){_0x1c3bb4['status'](0xcc)[_0x5e2b('0x27')]();});}};}function handleEntityNotFound(_0x26a4fa,_0x43b354){return function(_0x1b89d2){if(!_0x1b89d2){_0x26a4fa['sendStatus'](0x194);}return _0x1b89d2;};}function handleError(_0x5f0765,_0x41fb61){_0x41fb61=_0x41fb61||0x1f4;return function(_0x3da5b7){logger[_0x5e2b('0x28')](_0x3da5b7[_0x5e2b('0x29')]);if(_0x3da5b7[_0x5e2b('0x2a')]){delete _0x3da5b7[_0x5e2b('0x2a')];}_0x5f0765['status'](_0x41fb61)['send'](_0x3da5b7);};}exports[_0x5e2b('0x2b')]=function(_0x233894,_0x1a760c){var _0x43277d={},_0xffe396={},_0x2a38a0={'count':0x0,'rows':[]};var _0x3a311f=_[_0x5e2b('0x2c')](db['SugarcrmField'][_0x5e2b('0x2d')],function(_0x5df5f2){return{'name':_0x5df5f2[_0x5e2b('0x2e')],'type':_0x5df5f2['type'][_0x5e2b('0x2f')]};});_0xffe396[_0x5e2b('0x30')]=_['map'](_0x3a311f,_0x5e2b('0x2a'));_0xffe396[_0x5e2b('0x31')]=_['keys'](_0x233894[_0x5e2b('0x31')]);_0xffe396[_0x5e2b('0x32')]=_['intersection'](_0xffe396[_0x5e2b('0x30')],_0xffe396[_0x5e2b('0x31')]);_0x43277d[_0x5e2b('0x33')]=_['intersection'](_0xffe396[_0x5e2b('0x30')],qs[_0x5e2b('0x34')](_0x233894[_0x5e2b('0x31')][_0x5e2b('0x34')]));_0x43277d['attributes']=_0x43277d[_0x5e2b('0x33')][_0x5e2b('0x35')]?_0x43277d[_0x5e2b('0x33')]:_0xffe396[_0x5e2b('0x30')];if(!_0x233894[_0x5e2b('0x31')][_0x5e2b('0x36')](_0x5e2b('0x37'))){_0x43277d[_0x5e2b('0x1b')]=qs[_0x5e2b('0x1b')](_0x233894['query'][_0x5e2b('0x1b')]);_0x43277d[_0x5e2b('0x1d')]=qs['offset'](_0x233894['query'][_0x5e2b('0x1d')]);}_0x43277d[_0x5e2b('0x38')]=qs[_0x5e2b('0x39')](_0x233894[_0x5e2b('0x31')][_0x5e2b('0x39')]);_0x43277d['where']=qs[_0x5e2b('0x32')](_[_0x5e2b('0x3a')](_0x233894[_0x5e2b('0x31')],_0xffe396['filters']),_0x3a311f);if(_0x233894[_0x5e2b('0x31')]['filter']){_0x43277d[_0x5e2b('0x3b')]=_[_0x5e2b('0x3c')](_0x43277d[_0x5e2b('0x3b')],{'$or':_[_0x5e2b('0x2c')](_0x3a311f,function(_0x404458){if(_0x404458[_0x5e2b('0x3d')]!=='VIRTUAL'){var _0x4371dc={};_0x4371dc[_0x404458['name']]={'$like':'%'+_0x233894[_0x5e2b('0x31')][_0x5e2b('0x3e')]+'%'};return _0x4371dc;}})});}_0x43277d=_[_0x5e2b('0x3c')]({},_0x43277d,_0x233894[_0x5e2b('0x3f')]);var _0x1d8c86={'where':_0x43277d[_0x5e2b('0x3b')]};return db['SugarcrmField'][_0x5e2b('0x1c')](_0x1d8c86)['then'](function(_0x13e732){_0x2a38a0[_0x5e2b('0x1c')]=_0x13e732;if(_0x233894[_0x5e2b('0x31')][_0x5e2b('0x40')]){_0x43277d[_0x5e2b('0x41')]=[{'all':!![]}];}return db[_0x5e2b('0x42')]['findAll'](_0x43277d);})[_0x5e2b('0x25')](function(_0xee253f){_0x2a38a0['rows']=_0xee253f;return _0x2a38a0;})[_0x5e2b('0x25')](respondWithFilteredResult(_0x1a760c,_0x43277d))[_0x5e2b('0x43')](handleError(_0x1a760c,null));};exports['show']=function(_0x1a1692,_0x1a9847){var _0x3172f7={'raw':!![],'where':{'id':_0x1a1692[_0x5e2b('0x44')]['id']}},_0x313883={};_0x313883[_0x5e2b('0x30')]=_[_0x5e2b('0x45')](db[_0x5e2b('0x42')][_0x5e2b('0x2d')]);_0x313883[_0x5e2b('0x31')]=_['keys'](_0x1a1692['query']);_0x313883[_0x5e2b('0x32')]=_[_0x5e2b('0x46')](_0x313883[_0x5e2b('0x30')],_0x313883[_0x5e2b('0x31')]);_0x3172f7['attributes']=_[_0x5e2b('0x46')](_0x313883[_0x5e2b('0x30')],qs[_0x5e2b('0x34')](_0x1a1692[_0x5e2b('0x31')][_0x5e2b('0x34')]));_0x3172f7[_0x5e2b('0x33')]=_0x3172f7[_0x5e2b('0x33')][_0x5e2b('0x35')]?_0x3172f7[_0x5e2b('0x33')]:_0x313883[_0x5e2b('0x30')];if(_0x1a1692['query'][_0x5e2b('0x40')]){_0x3172f7[_0x5e2b('0x41')]=[{'all':!![]}];}_0x3172f7=_[_0x5e2b('0x3c')]({},_0x3172f7,_0x1a1692[_0x5e2b('0x3f')]);return db['SugarcrmField']['find'](_0x3172f7)[_0x5e2b('0x25')](handleEntityNotFound(_0x1a9847,null))['then'](respondWithResult(_0x1a9847,null))[_0x5e2b('0x43')](handleError(_0x1a9847,null));};exports[_0x5e2b('0x47')]=function(_0x34fcd0,_0xbad77d){return db[_0x5e2b('0x42')][_0x5e2b('0x47')](_0x34fcd0[_0x5e2b('0x48')],{})[_0x5e2b('0x25')](respondWithResult(_0xbad77d,0xc9))[_0x5e2b('0x43')](handleError(_0xbad77d,null));};exports[_0x5e2b('0x24')]=function(_0x32da5d,_0x5e112f){if(_0x32da5d[_0x5e2b('0x48')]['id']){delete _0x32da5d[_0x5e2b('0x48')]['id'];}return db[_0x5e2b('0x42')][_0x5e2b('0x49')]({'where':{'id':_0x32da5d[_0x5e2b('0x44')]['id']}})[_0x5e2b('0x25')](handleEntityNotFound(_0x5e112f,null))[_0x5e2b('0x25')](saveUpdates(_0x32da5d[_0x5e2b('0x48')],null))[_0x5e2b('0x25')](respondWithResult(_0x5e112f,null))[_0x5e2b('0x43')](handleError(_0x5e112f,null));};exports[_0x5e2b('0x26')]=function(_0x33048b,_0x642558){return db[_0x5e2b('0x42')][_0x5e2b('0x49')]({'where':{'id':_0x33048b[_0x5e2b('0x44')]['id']}})[_0x5e2b('0x25')](handleEntityNotFound(_0x642558,null))[_0x5e2b('0x25')](removeEntity(_0x642558,null))[_0x5e2b('0x43')](handleError(_0x642558,null));};
\ No newline at end of file
+var _0xd8c2=['../../config/utils','../../config/license/util','../../mysqldb','end','status','json','offset','limit','undefined','count','apply','save','update','then','destroy','sendStatus','error','stack','name','index','map','SugarcrmField','rawAttributes','fieldName','key','model','query','keys','filters','attributes','intersection','fields','nolimit','order','sort','where','pick','filter','type','VIRTUAL','merge','options','includeAll','include','rows','show','params','find','catch','create','body','zip-dir','moment','mustache','util','sox','to-csv','ejs','squel','crypto','querystring','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api'];(function(_0x2fc6cf,_0x2bb133){var _0xf2ade3=function(_0x522b04){while(--_0x522b04){_0x2fc6cf['push'](_0x2fc6cf['shift']());}};_0xf2ade3(++_0x2bb133);}(_0xd8c2,0x182));var _0x2d8c=function(_0x4966ad,_0x398da6){_0x4966ad=_0x4966ad-0x0;var _0x27efb8=_0xd8c2[_0x4966ad];return _0x27efb8;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x2d8c('0x0'));var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0x2d8c('0x1'));var BPromise=require('bluebird');var Mustache=require(_0x2d8c('0x2'));var util=require(_0x2d8c('0x3'));var path=require('path');var sox=require(_0x2d8c('0x4'));var csv=require(_0x2d8c('0x5'));var ejs=require(_0x2d8c('0x6'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x2d8c('0x7'));var crypto=require(_0x2d8c('0x8'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0x2d8c('0x5'));var querystring=require(_0x2d8c('0x9'));var Papa=require(_0x2d8c('0xa'));var Redis=require(_0x2d8c('0xb'));var authService=require(_0x2d8c('0xc'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x2d8c('0xd'));var logger=require(_0x2d8c('0xe'))(_0x2d8c('0xf'));var utils=require(_0x2d8c('0x10'));var config=require('../../config/environment');var licenseUtil=require(_0x2d8c('0x11'));var db=require(_0x2d8c('0x12'))['db'];function respondWithStatusCode(_0x2838c7,_0x2d562d){_0x2d562d=_0x2d562d||0xcc;return function(_0x3850da){if(_0x3850da){return _0x2838c7['sendStatus'](_0x2d562d);}return _0x2838c7['status'](_0x2d562d)[_0x2d8c('0x13')]();};}function respondWithResult(_0x5ea38a,_0x120d37){_0x120d37=_0x120d37||0xc8;return function(_0x3ed465){if(_0x3ed465){return _0x5ea38a[_0x2d8c('0x14')](_0x120d37)[_0x2d8c('0x15')](_0x3ed465);}};}function respondWithFilteredResult(_0x853ee2,_0x52e513){return function(_0x4e6255){if(_0x4e6255){var _0x491666=typeof _0x52e513[_0x2d8c('0x16')]==='undefined'&&typeof _0x52e513[_0x2d8c('0x17')]===_0x2d8c('0x18');var _0x263301=_0x4e6255[_0x2d8c('0x19')];var _0x389401=_0x491666?0x0:_0x52e513['offset'];var _0x2bdb95=_0x491666?_0x4e6255[_0x2d8c('0x19')]:_0x52e513[_0x2d8c('0x16')]+_0x52e513[_0x2d8c('0x17')];var _0xe3a42;if(_0x2bdb95>=_0x263301){_0x2bdb95=_0x263301;_0xe3a42=0xc8;}else{_0xe3a42=0xce;}_0x853ee2[_0x2d8c('0x14')](_0xe3a42);return _0x853ee2['set']('Content-Range',_0x389401+'-'+_0x2bdb95+'/'+_0x263301)[_0x2d8c('0x15')](_0x4e6255);}return null;};}function patchUpdates(_0x1f6a87){return function(_0x4767a8){try{jsonpatch[_0x2d8c('0x1a')](_0x4767a8,_0x1f6a87,!![]);}catch(_0x4eb7cc){return BPromise['reject'](_0x4eb7cc);}return _0x4767a8[_0x2d8c('0x1b')]();};}function saveUpdates(_0x352f31,_0x5431ea){return function(_0x493769){if(_0x493769){return _0x493769[_0x2d8c('0x1c')](_0x352f31)[_0x2d8c('0x1d')](function(_0x127453){return _0x127453;});}return null;};}function removeEntity(_0x573d84,_0x324256){return function(_0x20a081){if(_0x20a081){return _0x20a081[_0x2d8c('0x1e')]()['then'](function(){_0x573d84[_0x2d8c('0x14')](0xcc)[_0x2d8c('0x13')]();});}};}function handleEntityNotFound(_0x1fabe9,_0x4a0e46){return function(_0x161931){if(!_0x161931){_0x1fabe9[_0x2d8c('0x1f')](0x194);}return _0x161931;};}function handleError(_0x574ee6,_0x5eab9c){_0x5eab9c=_0x5eab9c||0x1f4;return function(_0x21ab1d){logger[_0x2d8c('0x20')](_0x21ab1d[_0x2d8c('0x21')]);if(_0x21ab1d['name']){delete _0x21ab1d[_0x2d8c('0x22')];}_0x574ee6['status'](_0x5eab9c)['send'](_0x21ab1d);};}exports[_0x2d8c('0x23')]=function(_0x312a1f,_0x1288b9){var _0x5ef434={},_0x536847={},_0x3443e5={'count':0x0,'rows':[]};var _0x1d8ea8=_[_0x2d8c('0x24')](db[_0x2d8c('0x25')][_0x2d8c('0x26')],function(_0x316040){return{'name':_0x316040[_0x2d8c('0x27')],'type':_0x316040['type'][_0x2d8c('0x28')]};});_0x536847[_0x2d8c('0x29')]=_[_0x2d8c('0x24')](_0x1d8ea8,'name');_0x536847[_0x2d8c('0x2a')]=_[_0x2d8c('0x2b')](_0x312a1f[_0x2d8c('0x2a')]);_0x536847[_0x2d8c('0x2c')]=_['intersection'](_0x536847[_0x2d8c('0x29')],_0x536847[_0x2d8c('0x2a')]);_0x5ef434[_0x2d8c('0x2d')]=_[_0x2d8c('0x2e')](_0x536847['model'],qs[_0x2d8c('0x2f')](_0x312a1f[_0x2d8c('0x2a')][_0x2d8c('0x2f')]));_0x5ef434['attributes']=_0x5ef434[_0x2d8c('0x2d')]['length']?_0x5ef434[_0x2d8c('0x2d')]:_0x536847['model'];if(!_0x312a1f[_0x2d8c('0x2a')]['hasOwnProperty'](_0x2d8c('0x30'))){_0x5ef434['limit']=qs[_0x2d8c('0x17')](_0x312a1f[_0x2d8c('0x2a')][_0x2d8c('0x17')]);_0x5ef434[_0x2d8c('0x16')]=qs[_0x2d8c('0x16')](_0x312a1f[_0x2d8c('0x2a')][_0x2d8c('0x16')]);}_0x5ef434[_0x2d8c('0x31')]=qs[_0x2d8c('0x32')](_0x312a1f[_0x2d8c('0x2a')][_0x2d8c('0x32')]);_0x5ef434[_0x2d8c('0x33')]=qs[_0x2d8c('0x2c')](_[_0x2d8c('0x34')](_0x312a1f[_0x2d8c('0x2a')],_0x536847['filters']),_0x1d8ea8);if(_0x312a1f[_0x2d8c('0x2a')][_0x2d8c('0x35')]){_0x5ef434['where']=_['merge'](_0x5ef434[_0x2d8c('0x33')],{'$or':_['map'](_0x1d8ea8,function(_0x40d0f9){if(_0x40d0f9[_0x2d8c('0x36')]!==_0x2d8c('0x37')){var _0x188643={};_0x188643[_0x40d0f9['name']]={'$like':'%'+_0x312a1f[_0x2d8c('0x2a')][_0x2d8c('0x35')]+'%'};return _0x188643;}})});}_0x5ef434=_[_0x2d8c('0x38')]({},_0x5ef434,_0x312a1f[_0x2d8c('0x39')]);var _0x2644c9={'where':_0x5ef434['where']};return db[_0x2d8c('0x25')][_0x2d8c('0x19')](_0x2644c9)['then'](function(_0x1a7eb1){_0x3443e5[_0x2d8c('0x19')]=_0x1a7eb1;if(_0x312a1f[_0x2d8c('0x2a')][_0x2d8c('0x3a')]){_0x5ef434[_0x2d8c('0x3b')]=[{'all':!![]}];}return db['SugarcrmField']['findAll'](_0x5ef434);})[_0x2d8c('0x1d')](function(_0x13f173){_0x3443e5[_0x2d8c('0x3c')]=_0x13f173;return _0x3443e5;})[_0x2d8c('0x1d')](respondWithFilteredResult(_0x1288b9,_0x5ef434))['catch'](handleError(_0x1288b9,null));};exports[_0x2d8c('0x3d')]=function(_0x3aa4ee,_0x2902cb){var _0x1096eb={'raw':!![],'where':{'id':_0x3aa4ee[_0x2d8c('0x3e')]['id']}},_0x1a534e={};_0x1a534e[_0x2d8c('0x29')]=_['keys'](db[_0x2d8c('0x25')][_0x2d8c('0x26')]);_0x1a534e['query']=_['keys'](_0x3aa4ee[_0x2d8c('0x2a')]);_0x1a534e[_0x2d8c('0x2c')]=_[_0x2d8c('0x2e')](_0x1a534e[_0x2d8c('0x29')],_0x1a534e['query']);_0x1096eb[_0x2d8c('0x2d')]=_['intersection'](_0x1a534e[_0x2d8c('0x29')],qs[_0x2d8c('0x2f')](_0x3aa4ee[_0x2d8c('0x2a')][_0x2d8c('0x2f')]));_0x1096eb['attributes']=_0x1096eb['attributes']['length']?_0x1096eb[_0x2d8c('0x2d')]:_0x1a534e[_0x2d8c('0x29')];if(_0x3aa4ee[_0x2d8c('0x2a')][_0x2d8c('0x3a')]){_0x1096eb[_0x2d8c('0x3b')]=[{'all':!![]}];}_0x1096eb=_[_0x2d8c('0x38')]({},_0x1096eb,_0x3aa4ee['options']);return db[_0x2d8c('0x25')][_0x2d8c('0x3f')](_0x1096eb)[_0x2d8c('0x1d')](handleEntityNotFound(_0x2902cb,null))[_0x2d8c('0x1d')](respondWithResult(_0x2902cb,null))[_0x2d8c('0x40')](handleError(_0x2902cb,null));};exports[_0x2d8c('0x41')]=function(_0x2fc610,_0x2e1680){return db[_0x2d8c('0x25')][_0x2d8c('0x41')](_0x2fc610['body'],{})[_0x2d8c('0x1d')](respondWithResult(_0x2e1680,0xc9))[_0x2d8c('0x40')](handleError(_0x2e1680,null));};exports[_0x2d8c('0x1c')]=function(_0x7604f5,_0x4a0109){if(_0x7604f5[_0x2d8c('0x42')]['id']){delete _0x7604f5['body']['id'];}return db[_0x2d8c('0x25')][_0x2d8c('0x3f')]({'where':{'id':_0x7604f5['params']['id']}})['then'](handleEntityNotFound(_0x4a0109,null))[_0x2d8c('0x1d')](saveUpdates(_0x7604f5[_0x2d8c('0x42')],null))[_0x2d8c('0x1d')](respondWithResult(_0x4a0109,null))[_0x2d8c('0x40')](handleError(_0x4a0109,null));};exports[_0x2d8c('0x1e')]=function(_0x108c30,_0x3410ed){return db['SugarcrmField'][_0x2d8c('0x3f')]({'where':{'id':_0x108c30[_0x2d8c('0x3e')]['id']}})['then'](handleEntityNotFound(_0x3410ed,null))[_0x2d8c('0x1d')](removeEntity(_0x3410ed,null))[_0x2d8c('0x40')](handleError(_0x3410ed,null));};
\ No newline at end of file