Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / intZendeskField / intZendeskField.controller.js
index ec2da9a..d49ef7a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb4a9=['status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','sendStatus','error','stack','name','send','index','ZendeskField','rawAttributes','fieldName','type','key','model','map','query','filters','intersection','attributes','length','hasOwnProperty','order','sort','pick','filter','merge','where','VIRTUAL','options','includeAll','findAll','rows','catch','params','keys','fields','include','find','create','body','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','desk.js','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util'];(function(_0x5d6cdc,_0x324b71){var _0x2b3658=function(_0x244461){while(--_0x244461){_0x5d6cdc['push'](_0x5d6cdc['shift']());}};_0x2b3658(++_0x324b71);}(_0xb4a9,0x83));var _0x9b4a=function(_0x7808f3,_0xbfc112){_0x7808f3=_0x7808f3-0x0;var _0x50afb9=_0xb4a9[_0x7808f3];return _0x50afb9;};'use strict';var emlformat=require(_0x9b4a('0x0'));var rimraf=require(_0x9b4a('0x1'));var zipdir=require(_0x9b4a('0x2'));var jsonpatch=require(_0x9b4a('0x3'));var rp=require(_0x9b4a('0x4'));var moment=require(_0x9b4a('0x5'));var BPromise=require(_0x9b4a('0x6'));var Mustache=require('mustache');var util=require('util');var path=require(_0x9b4a('0x7'));var sox=require(_0x9b4a('0x8'));var csv=require(_0x9b4a('0x9'));var ejs=require(_0x9b4a('0xa'));var fs=require('fs');var fs_extra=require(_0x9b4a('0xb'));var _=require(_0x9b4a('0xc'));var squel=require(_0x9b4a('0xd'));var crypto=require(_0x9b4a('0xe'));var jsforce=require('jsforce');var deskjs=require(_0x9b4a('0xf'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x9b4a('0x10'));var Redis=require(_0x9b4a('0x11'));var authService=require(_0x9b4a('0x12'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x9b4a('0x13'));var logger=require(_0x9b4a('0x14'))(_0x9b4a('0x15'));var utils=require(_0x9b4a('0x16'));var config=require(_0x9b4a('0x17'));var licenseUtil=require(_0x9b4a('0x18'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1b87f6,_0x54c889){_0x54c889=_0x54c889||0xcc;return function(_0x2aad47){if(_0x2aad47){return _0x1b87f6['sendStatus'](_0x54c889);}return _0x1b87f6[_0x9b4a('0x19')](_0x54c889)[_0x9b4a('0x1a')]();};}function respondWithResult(_0x137e43,_0x35a1c3){_0x35a1c3=_0x35a1c3||0xc8;return function(_0x2f2f70){if(_0x2f2f70){return _0x137e43[_0x9b4a('0x19')](_0x35a1c3)[_0x9b4a('0x1b')](_0x2f2f70);}};}function respondWithFilteredResult(_0x21c249,_0x25f782){return function(_0x3dacc4){if(_0x3dacc4){var _0x4cd530=typeof _0x25f782[_0x9b4a('0x1c')]===_0x9b4a('0x1d')&&typeof _0x25f782[_0x9b4a('0x1e')]===_0x9b4a('0x1d');var _0x434d6e=_0x3dacc4[_0x9b4a('0x1f')];var _0x4f0f6f=_0x4cd530?0x0:_0x25f782[_0x9b4a('0x1c')];var _0x8d0508=_0x4cd530?_0x3dacc4[_0x9b4a('0x1f')]:_0x25f782[_0x9b4a('0x1c')]+_0x25f782[_0x9b4a('0x1e')];var _0x63a106;if(_0x8d0508>=_0x434d6e){_0x8d0508=_0x434d6e;_0x63a106=0xc8;}else{_0x63a106=0xce;}_0x21c249[_0x9b4a('0x19')](_0x63a106);return _0x21c249[_0x9b4a('0x20')](_0x9b4a('0x21'),_0x4f0f6f+'-'+_0x8d0508+'/'+_0x434d6e)[_0x9b4a('0x1b')](_0x3dacc4);}return null;};}function patchUpdates(_0x3d7d78){return function(_0xf968a7){try{jsonpatch[_0x9b4a('0x22')](_0xf968a7,_0x3d7d78,!![]);}catch(_0x5f079c){return BPromise[_0x9b4a('0x23')](_0x5f079c);}return _0xf968a7[_0x9b4a('0x24')]();};}function saveUpdates(_0x454dc0,_0xb34ef2){return function(_0x1fea04){if(_0x1fea04){return _0x1fea04[_0x9b4a('0x25')](_0x454dc0)[_0x9b4a('0x26')](function(_0x42a4cf){return _0x42a4cf;});}return null;};}function removeEntity(_0x578e93,_0x1700e5){return function(_0x198400){if(_0x198400){return _0x198400[_0x9b4a('0x27')]()[_0x9b4a('0x26')](function(){_0x578e93[_0x9b4a('0x19')](0xcc)[_0x9b4a('0x1a')]();});}};}function handleEntityNotFound(_0x1ef5c0,_0x3c4411){return function(_0x2b404e){if(!_0x2b404e){_0x1ef5c0[_0x9b4a('0x28')](0x194);}return _0x2b404e;};}function handleError(_0x4eea94,_0x5de4e5){_0x5de4e5=_0x5de4e5||0x1f4;return function(_0x41b5ce){logger[_0x9b4a('0x29')](_0x41b5ce[_0x9b4a('0x2a')]);if(_0x41b5ce['name']){delete _0x41b5ce[_0x9b4a('0x2b')];}_0x4eea94[_0x9b4a('0x19')](_0x5de4e5)[_0x9b4a('0x2c')](_0x41b5ce);};}exports[_0x9b4a('0x2d')]=function(_0x31ff41,_0x1fb52f){var _0x3f3c17={},_0x253e3b={},_0xd75239={'count':0x0,'rows':[]};var _0x14c783=_['map'](db[_0x9b4a('0x2e')][_0x9b4a('0x2f')],function(_0x3c92fa){return{'name':_0x3c92fa[_0x9b4a('0x30')],'type':_0x3c92fa[_0x9b4a('0x31')][_0x9b4a('0x32')]};});_0x253e3b[_0x9b4a('0x33')]=_[_0x9b4a('0x34')](_0x14c783,_0x9b4a('0x2b'));_0x253e3b['query']=_['keys'](_0x31ff41[_0x9b4a('0x35')]);_0x253e3b[_0x9b4a('0x36')]=_[_0x9b4a('0x37')](_0x253e3b[_0x9b4a('0x33')],_0x253e3b[_0x9b4a('0x35')]);_0x3f3c17[_0x9b4a('0x38')]=_[_0x9b4a('0x37')](_0x253e3b['model'],qs['fields'](_0x31ff41[_0x9b4a('0x35')]['fields']));_0x3f3c17[_0x9b4a('0x38')]=_0x3f3c17[_0x9b4a('0x38')][_0x9b4a('0x39')]?_0x3f3c17[_0x9b4a('0x38')]:_0x253e3b[_0x9b4a('0x33')];if(!_0x31ff41['query'][_0x9b4a('0x3a')]('nolimit')){_0x3f3c17['limit']=qs[_0x9b4a('0x1e')](_0x31ff41[_0x9b4a('0x35')][_0x9b4a('0x1e')]);_0x3f3c17[_0x9b4a('0x1c')]=qs['offset'](_0x31ff41['query'][_0x9b4a('0x1c')]);}_0x3f3c17[_0x9b4a('0x3b')]=qs[_0x9b4a('0x3c')](_0x31ff41[_0x9b4a('0x35')]['sort']);_0x3f3c17['where']=qs[_0x9b4a('0x36')](_[_0x9b4a('0x3d')](_0x31ff41[_0x9b4a('0x35')],_0x253e3b[_0x9b4a('0x36')]),_0x14c783);if(_0x31ff41[_0x9b4a('0x35')][_0x9b4a('0x3e')]){_0x3f3c17['where']=_[_0x9b4a('0x3f')](_0x3f3c17[_0x9b4a('0x40')],{'$or':_[_0x9b4a('0x34')](_0x14c783,function(_0x2b8a11){if(_0x2b8a11[_0x9b4a('0x31')]!==_0x9b4a('0x41')){var _0x2db44d={};_0x2db44d[_0x2b8a11[_0x9b4a('0x2b')]]={'$like':'%'+_0x31ff41[_0x9b4a('0x35')][_0x9b4a('0x3e')]+'%'};return _0x2db44d;}})});}_0x3f3c17=_[_0x9b4a('0x3f')]({},_0x3f3c17,_0x31ff41[_0x9b4a('0x42')]);var _0x5bd44c={'where':_0x3f3c17[_0x9b4a('0x40')]};return db[_0x9b4a('0x2e')]['count'](_0x5bd44c)[_0x9b4a('0x26')](function(_0x5a9383){_0xd75239['count']=_0x5a9383;if(_0x31ff41[_0x9b4a('0x35')][_0x9b4a('0x43')]){_0x3f3c17['include']=[{'all':!![]}];}return db['ZendeskField'][_0x9b4a('0x44')](_0x3f3c17);})[_0x9b4a('0x26')](function(_0x8ebfb5){_0xd75239[_0x9b4a('0x45')]=_0x8ebfb5;return _0xd75239;})[_0x9b4a('0x26')](respondWithFilteredResult(_0x1fb52f,_0x3f3c17))[_0x9b4a('0x46')](handleError(_0x1fb52f,null));};exports['show']=function(_0x5ce2d8,_0x2beb74){var _0x490329={'raw':!![],'where':{'id':_0x5ce2d8[_0x9b4a('0x47')]['id']}},_0xc554f2={};_0xc554f2[_0x9b4a('0x33')]=_[_0x9b4a('0x48')](db[_0x9b4a('0x2e')][_0x9b4a('0x2f')]);_0xc554f2[_0x9b4a('0x35')]=_[_0x9b4a('0x48')](_0x5ce2d8[_0x9b4a('0x35')]);_0xc554f2['filters']=_['intersection'](_0xc554f2['model'],_0xc554f2[_0x9b4a('0x35')]);_0x490329[_0x9b4a('0x38')]=_[_0x9b4a('0x37')](_0xc554f2['model'],qs[_0x9b4a('0x49')](_0x5ce2d8['query'][_0x9b4a('0x49')]));_0x490329[_0x9b4a('0x38')]=_0x490329[_0x9b4a('0x38')][_0x9b4a('0x39')]?_0x490329['attributes']:_0xc554f2[_0x9b4a('0x33')];if(_0x5ce2d8[_0x9b4a('0x35')][_0x9b4a('0x43')]){_0x490329[_0x9b4a('0x4a')]=[{'all':!![]}];}_0x490329=_['merge']({},_0x490329,_0x5ce2d8['options']);return db[_0x9b4a('0x2e')][_0x9b4a('0x4b')](_0x490329)[_0x9b4a('0x26')](handleEntityNotFound(_0x2beb74,null))['then'](respondWithResult(_0x2beb74,null))['catch'](handleError(_0x2beb74,null));};exports[_0x9b4a('0x4c')]=function(_0x3a81f4,_0x2c264c){return db[_0x9b4a('0x2e')][_0x9b4a('0x4c')](_0x3a81f4[_0x9b4a('0x4d')],{})[_0x9b4a('0x26')](respondWithResult(_0x2c264c,0xc9))[_0x9b4a('0x46')](handleError(_0x2c264c,null));};exports[_0x9b4a('0x25')]=function(_0x2876a7,_0xd0f71b){if(_0x2876a7[_0x9b4a('0x4d')]['id']){delete _0x2876a7[_0x9b4a('0x4d')]['id'];}return db['ZendeskField'][_0x9b4a('0x4b')]({'where':{'id':_0x2876a7[_0x9b4a('0x47')]['id']}})[_0x9b4a('0x26')](handleEntityNotFound(_0xd0f71b,null))[_0x9b4a('0x26')](saveUpdates(_0x2876a7['body'],null))[_0x9b4a('0x26')](respondWithResult(_0xd0f71b,null))[_0x9b4a('0x46')](handleError(_0xd0f71b,null));};exports[_0x9b4a('0x27')]=function(_0x42d2c3,_0x2fc44a){return db['ZendeskField'][_0x9b4a('0x4b')]({'where':{'id':_0x42d2c3[_0x9b4a('0x47')]['id']}})['then'](handleEntityNotFound(_0x2fc44a,null))[_0x9b4a('0x26')](removeEntity(_0x2fc44a,null))[_0x9b4a('0x46')](handleError(_0x2fc44a,null));};
\ No newline at end of file
+var _0x81f5=['undefined','limit','count','set','apply','save','update','destroy','then','stack','name','send','index','map','ZendeskField','rawAttributes','fieldName','type','key','model','query','keys','intersection','attributes','fields','length','nolimit','sort','where','pick','filters','filter','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','find','create','body','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','offset'];(function(_0x30797c,_0x4d85f0){var _0x245872=function(_0x841ea0){while(--_0x841ea0){_0x30797c['push'](_0x30797c['shift']());}};_0x245872(++_0x4d85f0);}(_0x81f5,0x77));var _0x581f=function(_0x311c35,_0x534915){_0x311c35=_0x311c35-0x0;var _0x5cc50c=_0x81f5[_0x311c35];return _0x5cc50c;};'use strict';var emlformat=require(_0x581f('0x0'));var rimraf=require(_0x581f('0x1'));var zipdir=require(_0x581f('0x2'));var jsonpatch=require(_0x581f('0x3'));var rp=require(_0x581f('0x4'));var moment=require(_0x581f('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x581f('0x6'));var util=require(_0x581f('0x7'));var path=require(_0x581f('0x8'));var sox=require(_0x581f('0x9'));var csv=require(_0x581f('0xa'));var ejs=require(_0x581f('0xb'));var fs=require('fs');var fs_extra=require(_0x581f('0xc'));var _=require(_0x581f('0xd'));var squel=require(_0x581f('0xe'));var crypto=require('crypto');var jsforce=require(_0x581f('0xf'));var deskjs=require(_0x581f('0x10'));var toCsv=require('to-csv');var querystring=require(_0x581f('0x11'));var Papa=require(_0x581f('0x12'));var Redis=require(_0x581f('0x13'));var authService=require('../../components/auth/service');var qs=require(_0x581f('0x14'));var as=require(_0x581f('0x15'));var hardwareService=require(_0x581f('0x16'));var logger=require('../../config/logger')('api');var utils=require(_0x581f('0x17'));var config=require(_0x581f('0x18'));var licenseUtil=require(_0x581f('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x4cfe6f,_0x249a79){_0x249a79=_0x249a79||0xcc;return function(_0xf8cfe9){if(_0xf8cfe9){return _0x4cfe6f[_0x581f('0x1a')](_0x249a79);}return _0x4cfe6f[_0x581f('0x1b')](_0x249a79)[_0x581f('0x1c')]();};}function respondWithResult(_0x44c7ec,_0x57fef9){_0x57fef9=_0x57fef9||0xc8;return function(_0x5b90af){if(_0x5b90af){return _0x44c7ec[_0x581f('0x1b')](_0x57fef9)[_0x581f('0x1d')](_0x5b90af);}};}function respondWithFilteredResult(_0x781853,_0x3ce459){return function(_0x12bdc3){if(_0x12bdc3){var _0x7a867e=typeof _0x3ce459[_0x581f('0x1e')]===_0x581f('0x1f')&&typeof _0x3ce459[_0x581f('0x20')]===_0x581f('0x1f');var _0x2564c8=_0x12bdc3[_0x581f('0x21')];var _0x143fe0=_0x7a867e?0x0:_0x3ce459[_0x581f('0x1e')];var _0xb70df6=_0x7a867e?_0x12bdc3['count']:_0x3ce459[_0x581f('0x1e')]+_0x3ce459[_0x581f('0x20')];var _0x345dd7;if(_0xb70df6>=_0x2564c8){_0xb70df6=_0x2564c8;_0x345dd7=0xc8;}else{_0x345dd7=0xce;}_0x781853[_0x581f('0x1b')](_0x345dd7);return _0x781853[_0x581f('0x22')]('Content-Range',_0x143fe0+'-'+_0xb70df6+'/'+_0x2564c8)[_0x581f('0x1d')](_0x12bdc3);}return null;};}function patchUpdates(_0x10f439){return function(_0x25b3b1){try{jsonpatch[_0x581f('0x23')](_0x25b3b1,_0x10f439,!![]);}catch(_0x4163e2){return BPromise['reject'](_0x4163e2);}return _0x25b3b1[_0x581f('0x24')]();};}function saveUpdates(_0x328b74,_0x508933){return function(_0x22dd22){if(_0x22dd22){return _0x22dd22[_0x581f('0x25')](_0x328b74)['then'](function(_0x18ea1d){return _0x18ea1d;});}return null;};}function removeEntity(_0x27e7bf,_0x3d0a62){return function(_0xc8e38a){if(_0xc8e38a){return _0xc8e38a[_0x581f('0x26')]()[_0x581f('0x27')](function(){_0x27e7bf[_0x581f('0x1b')](0xcc)['end']();});}};}function handleEntityNotFound(_0x57cc07,_0xd1d380){return function(_0x1d8abb){if(!_0x1d8abb){_0x57cc07[_0x581f('0x1a')](0x194);}return _0x1d8abb;};}function handleError(_0x80a877,_0x1092fb){_0x1092fb=_0x1092fb||0x1f4;return function(_0x3e4b65){logger['error'](_0x3e4b65[_0x581f('0x28')]);if(_0x3e4b65['name']){delete _0x3e4b65[_0x581f('0x29')];}_0x80a877['status'](_0x1092fb)[_0x581f('0x2a')](_0x3e4b65);};}exports[_0x581f('0x2b')]=function(_0x2b4619,_0x3009af){var _0x4fedde={},_0xabbf34={},_0x2dec70={'count':0x0,'rows':[]};var _0x174819=_[_0x581f('0x2c')](db[_0x581f('0x2d')][_0x581f('0x2e')],function(_0x4e383a){return{'name':_0x4e383a[_0x581f('0x2f')],'type':_0x4e383a[_0x581f('0x30')][_0x581f('0x31')]};});_0xabbf34[_0x581f('0x32')]=_[_0x581f('0x2c')](_0x174819,'name');_0xabbf34[_0x581f('0x33')]=_[_0x581f('0x34')](_0x2b4619[_0x581f('0x33')]);_0xabbf34['filters']=_[_0x581f('0x35')](_0xabbf34[_0x581f('0x32')],_0xabbf34['query']);_0x4fedde[_0x581f('0x36')]=_[_0x581f('0x35')](_0xabbf34[_0x581f('0x32')],qs[_0x581f('0x37')](_0x2b4619[_0x581f('0x33')][_0x581f('0x37')]));_0x4fedde[_0x581f('0x36')]=_0x4fedde['attributes'][_0x581f('0x38')]?_0x4fedde[_0x581f('0x36')]:_0xabbf34['model'];if(!_0x2b4619[_0x581f('0x33')]['hasOwnProperty'](_0x581f('0x39'))){_0x4fedde[_0x581f('0x20')]=qs['limit'](_0x2b4619[_0x581f('0x33')][_0x581f('0x20')]);_0x4fedde[_0x581f('0x1e')]=qs[_0x581f('0x1e')](_0x2b4619[_0x581f('0x33')][_0x581f('0x1e')]);}_0x4fedde['order']=qs[_0x581f('0x3a')](_0x2b4619[_0x581f('0x33')][_0x581f('0x3a')]);_0x4fedde[_0x581f('0x3b')]=qs['filters'](_[_0x581f('0x3c')](_0x2b4619[_0x581f('0x33')],_0xabbf34[_0x581f('0x3d')]),_0x174819);if(_0x2b4619[_0x581f('0x33')][_0x581f('0x3e')]){_0x4fedde[_0x581f('0x3b')]=_['merge'](_0x4fedde[_0x581f('0x3b')],{'$or':_[_0x581f('0x2c')](_0x174819,function(_0x4dd253){if(_0x4dd253['type']!==_0x581f('0x3f')){var _0xdaa9f9={};_0xdaa9f9[_0x4dd253[_0x581f('0x29')]]={'$like':'%'+_0x2b4619[_0x581f('0x33')][_0x581f('0x3e')]+'%'};return _0xdaa9f9;}})});}_0x4fedde=_['merge']({},_0x4fedde,_0x2b4619[_0x581f('0x40')]);var _0x2f752a={'where':_0x4fedde[_0x581f('0x3b')]};return db['ZendeskField'][_0x581f('0x21')](_0x2f752a)[_0x581f('0x27')](function(_0x43ecf7){_0x2dec70[_0x581f('0x21')]=_0x43ecf7;if(_0x2b4619['query'][_0x581f('0x41')]){_0x4fedde[_0x581f('0x42')]=[{'all':!![]}];}return db['ZendeskField'][_0x581f('0x43')](_0x4fedde);})[_0x581f('0x27')](function(_0x30d527){_0x2dec70[_0x581f('0x44')]=_0x30d527;return _0x2dec70;})['then'](respondWithFilteredResult(_0x3009af,_0x4fedde))[_0x581f('0x45')](handleError(_0x3009af,null));};exports[_0x581f('0x46')]=function(_0x5a4658,_0x171fa1){var _0x3988ba={'raw':!![],'where':{'id':_0x5a4658[_0x581f('0x47')]['id']}},_0x4216ba={};_0x4216ba[_0x581f('0x32')]=_[_0x581f('0x34')](db[_0x581f('0x2d')][_0x581f('0x2e')]);_0x4216ba['query']=_[_0x581f('0x34')](_0x5a4658[_0x581f('0x33')]);_0x4216ba[_0x581f('0x3d')]=_[_0x581f('0x35')](_0x4216ba[_0x581f('0x32')],_0x4216ba[_0x581f('0x33')]);_0x3988ba[_0x581f('0x36')]=_[_0x581f('0x35')](_0x4216ba[_0x581f('0x32')],qs['fields'](_0x5a4658[_0x581f('0x33')][_0x581f('0x37')]));_0x3988ba[_0x581f('0x36')]=_0x3988ba[_0x581f('0x36')][_0x581f('0x38')]?_0x3988ba['attributes']:_0x4216ba[_0x581f('0x32')];if(_0x5a4658[_0x581f('0x33')]['includeAll']){_0x3988ba[_0x581f('0x42')]=[{'all':!![]}];}_0x3988ba=_['merge']({},_0x3988ba,_0x5a4658[_0x581f('0x40')]);return db[_0x581f('0x2d')][_0x581f('0x48')](_0x3988ba)[_0x581f('0x27')](handleEntityNotFound(_0x171fa1,null))[_0x581f('0x27')](respondWithResult(_0x171fa1,null))[_0x581f('0x45')](handleError(_0x171fa1,null));};exports[_0x581f('0x49')]=function(_0x370384,_0x5be2df){return db[_0x581f('0x2d')]['create'](_0x370384[_0x581f('0x4a')],{})['then'](respondWithResult(_0x5be2df,0xc9))[_0x581f('0x45')](handleError(_0x5be2df,null));};exports[_0x581f('0x25')]=function(_0x4b1f4e,_0x3e9471){if(_0x4b1f4e[_0x581f('0x4a')]['id']){delete _0x4b1f4e['body']['id'];}return db[_0x581f('0x2d')][_0x581f('0x48')]({'where':{'id':_0x4b1f4e[_0x581f('0x47')]['id']}})[_0x581f('0x27')](handleEntityNotFound(_0x3e9471,null))[_0x581f('0x27')](saveUpdates(_0x4b1f4e['body'],null))['then'](respondWithResult(_0x3e9471,null))[_0x581f('0x45')](handleError(_0x3e9471,null));};exports[_0x581f('0x26')]=function(_0x505964,_0x5073cf){return db['ZendeskField']['find']({'where':{'id':_0x505964[_0x581f('0x47')]['id']}})[_0x581f('0x27')](handleEntityNotFound(_0x5073cf,null))[_0x581f('0x27')](removeEntity(_0x5073cf,null))['catch'](handleError(_0x5073cf,null));};
\ No newline at end of file