Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / intZendeskField / intZendeskField.controller.js
index 8fdc74d..56cd112 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf2a=['moment','bluebird','mustache','util','sox','to-csv','lodash','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/environment','../../config/license/util','status','end','offset','undefined','limit','count','Content-Range','json','apply','reject','save','update','then','destroy','stack','name','send','index','map','ZendeskField','rawAttributes','fieldName','type','keys','query','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filters','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','show','params','find','catch','create','body','eml-format','fast-json-patch','request-promise'];(function(_0x2d3d0d,_0x67ac82){var _0xca35b6=function(_0x483979){while(--_0x483979){_0x2d3d0d['push'](_0x2d3d0d['shift']());}};_0xca35b6(++_0x67ac82);}(_0xbf2a,0x165));var _0xabf2=function(_0xc905bf,_0x3fb45d){_0xc905bf=_0xc905bf-0x0;var _0x3ffd14=_0xbf2a[_0xc905bf];return _0x3ffd14;};'use strict';var emlformat=require(_0xabf2('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0xabf2('0x1'));var rp=require(_0xabf2('0x2'));var moment=require(_0xabf2('0x3'));var BPromise=require(_0xabf2('0x4'));var Mustache=require(_0xabf2('0x5'));var util=require(_0xabf2('0x6'));var path=require('path');var sox=require(_0xabf2('0x7'));var csv=require(_0xabf2('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xabf2('0x9'));var squel=require('squel');var crypto=require(_0xabf2('0xa'));var jsforce=require(_0xabf2('0xb'));var deskjs=require(_0xabf2('0xc'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0xabf2('0xd'));var Redis=require(_0xabf2('0xe'));var authService=require(_0xabf2('0xf'));var qs=require(_0xabf2('0x10'));var as=require(_0xabf2('0x11'));var hardwareService=require(_0xabf2('0x12'));var logger=require('../../config/logger')('api');var utils=require(_0xabf2('0x13'));var config=require(_0xabf2('0x14'));var licenseUtil=require(_0xabf2('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x63964a,_0x2e54d9){_0x2e54d9=_0x2e54d9||0xcc;return function(_0x8aa3d8){if(_0x8aa3d8){return _0x63964a['sendStatus'](_0x2e54d9);}return _0x63964a[_0xabf2('0x16')](_0x2e54d9)[_0xabf2('0x17')]();};}function respondWithResult(_0xea348e,_0x3b16f4){_0x3b16f4=_0x3b16f4||0xc8;return function(_0x4aa1c2){if(_0x4aa1c2){return _0xea348e[_0xabf2('0x16')](_0x3b16f4)['json'](_0x4aa1c2);}};}function respondWithFilteredResult(_0x425a36,_0x3fbff0){return function(_0x1b9f54){if(_0x1b9f54){var _0x11e650=typeof _0x3fbff0[_0xabf2('0x18')]===_0xabf2('0x19')&&typeof _0x3fbff0[_0xabf2('0x1a')]===_0xabf2('0x19');var _0x209dd3=_0x1b9f54[_0xabf2('0x1b')];var _0x30eeab=_0x11e650?0x0:_0x3fbff0[_0xabf2('0x18')];var _0x4933e8=_0x11e650?_0x1b9f54[_0xabf2('0x1b')]:_0x3fbff0[_0xabf2('0x18')]+_0x3fbff0[_0xabf2('0x1a')];var _0x3a89ab;if(_0x4933e8>=_0x209dd3){_0x4933e8=_0x209dd3;_0x3a89ab=0xc8;}else{_0x3a89ab=0xce;}_0x425a36[_0xabf2('0x16')](_0x3a89ab);return _0x425a36['set'](_0xabf2('0x1c'),_0x30eeab+'-'+_0x4933e8+'/'+_0x209dd3)[_0xabf2('0x1d')](_0x1b9f54);}return null;};}function patchUpdates(_0x533e1a){return function(_0x2eee0f){try{jsonpatch[_0xabf2('0x1e')](_0x2eee0f,_0x533e1a,!![]);}catch(_0xabb431){return BPromise[_0xabf2('0x1f')](_0xabb431);}return _0x2eee0f[_0xabf2('0x20')]();};}function saveUpdates(_0x12984a,_0x4f1012){return function(_0x212ad7){if(_0x212ad7){return _0x212ad7[_0xabf2('0x21')](_0x12984a)[_0xabf2('0x22')](function(_0x391099){return _0x391099;});}return null;};}function removeEntity(_0x2f7ffa,_0x252f3e){return function(_0x54a033){if(_0x54a033){return _0x54a033[_0xabf2('0x23')]()[_0xabf2('0x22')](function(){_0x2f7ffa[_0xabf2('0x16')](0xcc)['end']();});}};}function handleEntityNotFound(_0x309466,_0x2016e6){return function(_0x16994f){if(!_0x16994f){_0x309466['sendStatus'](0x194);}return _0x16994f;};}function handleError(_0x567c14,_0x25e173){_0x25e173=_0x25e173||0x1f4;return function(_0x4eed34){logger['error'](_0x4eed34[_0xabf2('0x24')]);if(_0x4eed34['name']){delete _0x4eed34[_0xabf2('0x25')];}_0x567c14[_0xabf2('0x16')](_0x25e173)[_0xabf2('0x26')](_0x4eed34);};}exports[_0xabf2('0x27')]=function(_0x345f92,_0x53fa8d){var _0x48ba8f={},_0x7dc999={},_0x2038bb={'count':0x0,'rows':[]};var _0x56bda7=_[_0xabf2('0x28')](db[_0xabf2('0x29')][_0xabf2('0x2a')],function(_0x40d577){return{'name':_0x40d577[_0xabf2('0x2b')],'type':_0x40d577[_0xabf2('0x2c')]['key']};});_0x7dc999['model']=_[_0xabf2('0x28')](_0x56bda7,_0xabf2('0x25'));_0x7dc999['query']=_[_0xabf2('0x2d')](_0x345f92[_0xabf2('0x2e')]);_0x7dc999['filters']=_[_0xabf2('0x2f')](_0x7dc999[_0xabf2('0x30')],_0x7dc999[_0xabf2('0x2e')]);_0x48ba8f[_0xabf2('0x31')]=_['intersection'](_0x7dc999[_0xabf2('0x30')],qs[_0xabf2('0x32')](_0x345f92[_0xabf2('0x2e')][_0xabf2('0x32')]));_0x48ba8f[_0xabf2('0x31')]=_0x48ba8f[_0xabf2('0x31')][_0xabf2('0x33')]?_0x48ba8f[_0xabf2('0x31')]:_0x7dc999[_0xabf2('0x30')];if(!_0x345f92[_0xabf2('0x2e')][_0xabf2('0x34')](_0xabf2('0x35'))){_0x48ba8f[_0xabf2('0x1a')]=qs[_0xabf2('0x1a')](_0x345f92[_0xabf2('0x2e')]['limit']);_0x48ba8f['offset']=qs[_0xabf2('0x18')](_0x345f92[_0xabf2('0x2e')][_0xabf2('0x18')]);}_0x48ba8f[_0xabf2('0x36')]=qs['sort'](_0x345f92[_0xabf2('0x2e')][_0xabf2('0x37')]);_0x48ba8f[_0xabf2('0x38')]=qs[_0xabf2('0x39')](_['pick'](_0x345f92[_0xabf2('0x2e')],_0x7dc999[_0xabf2('0x39')]),_0x56bda7);if(_0x345f92[_0xabf2('0x2e')][_0xabf2('0x3a')]){_0x48ba8f[_0xabf2('0x38')]=_[_0xabf2('0x3b')](_0x48ba8f[_0xabf2('0x38')],{'$or':_['map'](_0x56bda7,function(_0x210585){if(_0x210585[_0xabf2('0x2c')]!==_0xabf2('0x3c')){var _0x467b87={};_0x467b87[_0x210585[_0xabf2('0x25')]]={'$like':'%'+_0x345f92[_0xabf2('0x2e')][_0xabf2('0x3a')]+'%'};return _0x467b87;}})});}_0x48ba8f=_[_0xabf2('0x3b')]({},_0x48ba8f,_0x345f92[_0xabf2('0x3d')]);var _0x92c259={'where':_0x48ba8f[_0xabf2('0x38')]};return db[_0xabf2('0x29')][_0xabf2('0x1b')](_0x92c259)[_0xabf2('0x22')](function(_0x543e68){_0x2038bb[_0xabf2('0x1b')]=_0x543e68;if(_0x345f92['query'][_0xabf2('0x3e')]){_0x48ba8f[_0xabf2('0x3f')]=[{'all':!![]}];}return db['ZendeskField'][_0xabf2('0x40')](_0x48ba8f);})[_0xabf2('0x22')](function(_0x2e483f){_0x2038bb[_0xabf2('0x41')]=_0x2e483f;return _0x2038bb;})['then'](respondWithFilteredResult(_0x53fa8d,_0x48ba8f))['catch'](handleError(_0x53fa8d,null));};exports[_0xabf2('0x42')]=function(_0x32f226,_0x3c84ec){var _0x54b705={'raw':!![],'where':{'id':_0x32f226[_0xabf2('0x43')]['id']}},_0x30f92b={};_0x30f92b[_0xabf2('0x30')]=_['keys'](db[_0xabf2('0x29')][_0xabf2('0x2a')]);_0x30f92b[_0xabf2('0x2e')]=_['keys'](_0x32f226[_0xabf2('0x2e')]);_0x30f92b[_0xabf2('0x39')]=_['intersection'](_0x30f92b[_0xabf2('0x30')],_0x30f92b['query']);_0x54b705[_0xabf2('0x31')]=_[_0xabf2('0x2f')](_0x30f92b['model'],qs['fields'](_0x32f226[_0xabf2('0x2e')][_0xabf2('0x32')]));_0x54b705[_0xabf2('0x31')]=_0x54b705[_0xabf2('0x31')][_0xabf2('0x33')]?_0x54b705[_0xabf2('0x31')]:_0x30f92b[_0xabf2('0x30')];if(_0x32f226[_0xabf2('0x2e')]['includeAll']){_0x54b705['include']=[{'all':!![]}];}_0x54b705=_[_0xabf2('0x3b')]({},_0x54b705,_0x32f226[_0xabf2('0x3d')]);return db[_0xabf2('0x29')][_0xabf2('0x44')](_0x54b705)[_0xabf2('0x22')](handleEntityNotFound(_0x3c84ec,null))[_0xabf2('0x22')](respondWithResult(_0x3c84ec,null))[_0xabf2('0x45')](handleError(_0x3c84ec,null));};exports['create']=function(_0x46c3e5,_0x42978f){return db[_0xabf2('0x29')][_0xabf2('0x46')](_0x46c3e5['body'],{})['then'](respondWithResult(_0x42978f,0xc9))['catch'](handleError(_0x42978f,null));};exports['update']=function(_0x58a446,_0x5f2666){if(_0x58a446[_0xabf2('0x47')]['id']){delete _0x58a446[_0xabf2('0x47')]['id'];}return db['ZendeskField'][_0xabf2('0x44')]({'where':{'id':_0x58a446[_0xabf2('0x43')]['id']}})[_0xabf2('0x22')](handleEntityNotFound(_0x5f2666,null))['then'](saveUpdates(_0x58a446[_0xabf2('0x47')],null))[_0xabf2('0x22')](respondWithResult(_0x5f2666,null))[_0xabf2('0x45')](handleError(_0x5f2666,null));};exports[_0xabf2('0x23')]=function(_0x2f9a58,_0x288990){return db[_0xabf2('0x29')][_0xabf2('0x44')]({'where':{'id':_0x2f9a58[_0xabf2('0x43')]['id']}})[_0xabf2('0x22')](handleEntityNotFound(_0x288990,null))['then'](removeEntity(_0x288990,null))['catch'](handleError(_0x288990,null));};
\ No newline at end of file
+var _0x2d6a=['path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','querystring','papaparse','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','offset','undefined','limit','set','json','apply','reject','save','update','then','destroy','end','error','send','map','ZendeskField','rawAttributes','fieldName','model','name','query','keys','intersection','attributes','fields','nolimit','order','sort','where','filters','pick','filter','type','VIRTUAL','merge','options','count','includeAll','include','findAll','catch','show','params','find','create','body','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util'];(function(_0xc10ce0,_0x36666f){var _0x156c0b=function(_0x567edb){while(--_0x567edb){_0xc10ce0['push'](_0xc10ce0['shift']());}};_0x156c0b(++_0x36666f);}(_0x2d6a,0x16a));var _0xa2d6=function(_0x5916c7,_0x2edfba){_0x5916c7=_0x5916c7-0x0;var _0x4178bd=_0x2d6a[_0x5916c7];return _0x4178bd;};'use strict';var emlformat=require(_0xa2d6('0x0'));var rimraf=require(_0xa2d6('0x1'));var zipdir=require(_0xa2d6('0x2'));var jsonpatch=require(_0xa2d6('0x3'));var rp=require(_0xa2d6('0x4'));var moment=require('moment');var BPromise=require(_0xa2d6('0x5'));var Mustache=require(_0xa2d6('0x6'));var util=require(_0xa2d6('0x7'));var path=require(_0xa2d6('0x8'));var sox=require(_0xa2d6('0x9'));var csv=require(_0xa2d6('0xa'));var ejs=require(_0xa2d6('0xb'));var fs=require('fs');var fs_extra=require(_0xa2d6('0xc'));var _=require(_0xa2d6('0xd'));var squel=require(_0xa2d6('0xe'));var crypto=require(_0xa2d6('0xf'));var jsforce=require(_0xa2d6('0x10'));var deskjs=require('desk.js');var toCsv=require(_0xa2d6('0xa'));var querystring=require(_0xa2d6('0x11'));var Papa=require(_0xa2d6('0x12'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0xa2d6('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xa2d6('0x14'));var logger=require(_0xa2d6('0x15'))('api');var utils=require(_0xa2d6('0x16'));var config=require(_0xa2d6('0x17'));var licenseUtil=require(_0xa2d6('0x18'));var db=require(_0xa2d6('0x19'))['db'];function respondWithStatusCode(_0x2a94b6,_0x37b83b){_0x37b83b=_0x37b83b||0xcc;return function(_0x3640c8){if(_0x3640c8){return _0x2a94b6[_0xa2d6('0x1a')](_0x37b83b);}return _0x2a94b6[_0xa2d6('0x1b')](_0x37b83b)['end']();};}function respondWithResult(_0x3c982d,_0x3a0ec3){_0x3a0ec3=_0x3a0ec3||0xc8;return function(_0x884312){if(_0x884312){return _0x3c982d[_0xa2d6('0x1b')](_0x3a0ec3)['json'](_0x884312);}};}function respondWithFilteredResult(_0x167a84,_0x584a38){return function(_0xec434d){if(_0xec434d){var _0x5d83ac=typeof _0x584a38[_0xa2d6('0x1c')]===_0xa2d6('0x1d')&&typeof _0x584a38[_0xa2d6('0x1e')]===_0xa2d6('0x1d');var _0xd7ba6c=_0xec434d['count'];var _0x450a54=_0x5d83ac?0x0:_0x584a38[_0xa2d6('0x1c')];var _0x14107a=_0x5d83ac?_0xec434d['count']:_0x584a38[_0xa2d6('0x1c')]+_0x584a38[_0xa2d6('0x1e')];var _0x14769c;if(_0x14107a>=_0xd7ba6c){_0x14107a=_0xd7ba6c;_0x14769c=0xc8;}else{_0x14769c=0xce;}_0x167a84[_0xa2d6('0x1b')](_0x14769c);return _0x167a84[_0xa2d6('0x1f')]('Content-Range',_0x450a54+'-'+_0x14107a+'/'+_0xd7ba6c)[_0xa2d6('0x20')](_0xec434d);}return null;};}function patchUpdates(_0x359479){return function(_0x2ec19d){try{jsonpatch[_0xa2d6('0x21')](_0x2ec19d,_0x359479,!![]);}catch(_0x34d5ab){return BPromise[_0xa2d6('0x22')](_0x34d5ab);}return _0x2ec19d[_0xa2d6('0x23')]();};}function saveUpdates(_0x48389b,_0x55d3e7){return function(_0x4fec42){if(_0x4fec42){return _0x4fec42[_0xa2d6('0x24')](_0x48389b)[_0xa2d6('0x25')](function(_0x3b4f31){return _0x3b4f31;});}return null;};}function removeEntity(_0x3cf5a7,_0x36e922){return function(_0x1f76cc){if(_0x1f76cc){return _0x1f76cc[_0xa2d6('0x26')]()[_0xa2d6('0x25')](function(){_0x3cf5a7[_0xa2d6('0x1b')](0xcc)[_0xa2d6('0x27')]();});}};}function handleEntityNotFound(_0x3e94b6,_0xc69316){return function(_0x489640){if(!_0x489640){_0x3e94b6[_0xa2d6('0x1a')](0x194);}return _0x489640;};}function handleError(_0x342d2c,_0x440188){_0x440188=_0x440188||0x1f4;return function(_0x5acdb0){logger[_0xa2d6('0x28')](_0x5acdb0['stack']);if(_0x5acdb0['name']){delete _0x5acdb0['name'];}_0x342d2c[_0xa2d6('0x1b')](_0x440188)[_0xa2d6('0x29')](_0x5acdb0);};}exports['index']=function(_0xd6d3d9,_0x414c01){var _0x39e447={},_0x20d5f2={},_0x39c0e6={'count':0x0,'rows':[]};var _0x2ed13d=_[_0xa2d6('0x2a')](db[_0xa2d6('0x2b')][_0xa2d6('0x2c')],function(_0x5377a7){return{'name':_0x5377a7[_0xa2d6('0x2d')],'type':_0x5377a7['type']['key']};});_0x20d5f2[_0xa2d6('0x2e')]=_['map'](_0x2ed13d,_0xa2d6('0x2f'));_0x20d5f2[_0xa2d6('0x30')]=_[_0xa2d6('0x31')](_0xd6d3d9[_0xa2d6('0x30')]);_0x20d5f2['filters']=_[_0xa2d6('0x32')](_0x20d5f2['model'],_0x20d5f2['query']);_0x39e447[_0xa2d6('0x33')]=_[_0xa2d6('0x32')](_0x20d5f2[_0xa2d6('0x2e')],qs[_0xa2d6('0x34')](_0xd6d3d9[_0xa2d6('0x30')][_0xa2d6('0x34')]));_0x39e447[_0xa2d6('0x33')]=_0x39e447[_0xa2d6('0x33')]['length']?_0x39e447[_0xa2d6('0x33')]:_0x20d5f2[_0xa2d6('0x2e')];if(!_0xd6d3d9[_0xa2d6('0x30')]['hasOwnProperty'](_0xa2d6('0x35'))){_0x39e447[_0xa2d6('0x1e')]=qs['limit'](_0xd6d3d9[_0xa2d6('0x30')][_0xa2d6('0x1e')]);_0x39e447[_0xa2d6('0x1c')]=qs['offset'](_0xd6d3d9['query'][_0xa2d6('0x1c')]);}_0x39e447[_0xa2d6('0x36')]=qs[_0xa2d6('0x37')](_0xd6d3d9[_0xa2d6('0x30')][_0xa2d6('0x37')]);_0x39e447[_0xa2d6('0x38')]=qs[_0xa2d6('0x39')](_[_0xa2d6('0x3a')](_0xd6d3d9[_0xa2d6('0x30')],_0x20d5f2['filters']),_0x2ed13d);if(_0xd6d3d9['query'][_0xa2d6('0x3b')]){_0x39e447[_0xa2d6('0x38')]=_['merge'](_0x39e447[_0xa2d6('0x38')],{'$or':_[_0xa2d6('0x2a')](_0x2ed13d,function(_0x2ba6a2){if(_0x2ba6a2[_0xa2d6('0x3c')]!==_0xa2d6('0x3d')){var _0x554a26={};_0x554a26[_0x2ba6a2['name']]={'$like':'%'+_0xd6d3d9[_0xa2d6('0x30')][_0xa2d6('0x3b')]+'%'};return _0x554a26;}})});}_0x39e447=_[_0xa2d6('0x3e')]({},_0x39e447,_0xd6d3d9[_0xa2d6('0x3f')]);var _0x13bff6={'where':_0x39e447[_0xa2d6('0x38')]};return db[_0xa2d6('0x2b')][_0xa2d6('0x40')](_0x13bff6)[_0xa2d6('0x25')](function(_0x77907d){_0x39c0e6[_0xa2d6('0x40')]=_0x77907d;if(_0xd6d3d9[_0xa2d6('0x30')][_0xa2d6('0x41')]){_0x39e447[_0xa2d6('0x42')]=[{'all':!![]}];}return db[_0xa2d6('0x2b')][_0xa2d6('0x43')](_0x39e447);})[_0xa2d6('0x25')](function(_0x5503e1){_0x39c0e6['rows']=_0x5503e1;return _0x39c0e6;})[_0xa2d6('0x25')](respondWithFilteredResult(_0x414c01,_0x39e447))[_0xa2d6('0x44')](handleError(_0x414c01,null));};exports[_0xa2d6('0x45')]=function(_0x3b2b85,_0x84541){var _0x364965={'raw':!![],'where':{'id':_0x3b2b85[_0xa2d6('0x46')]['id']}},_0x2d1b66={};_0x2d1b66[_0xa2d6('0x2e')]=_[_0xa2d6('0x31')](db[_0xa2d6('0x2b')]['rawAttributes']);_0x2d1b66[_0xa2d6('0x30')]=_[_0xa2d6('0x31')](_0x3b2b85[_0xa2d6('0x30')]);_0x2d1b66[_0xa2d6('0x39')]=_['intersection'](_0x2d1b66[_0xa2d6('0x2e')],_0x2d1b66[_0xa2d6('0x30')]);_0x364965[_0xa2d6('0x33')]=_['intersection'](_0x2d1b66['model'],qs[_0xa2d6('0x34')](_0x3b2b85[_0xa2d6('0x30')]['fields']));_0x364965[_0xa2d6('0x33')]=_0x364965[_0xa2d6('0x33')]['length']?_0x364965[_0xa2d6('0x33')]:_0x2d1b66['model'];if(_0x3b2b85[_0xa2d6('0x30')][_0xa2d6('0x41')]){_0x364965[_0xa2d6('0x42')]=[{'all':!![]}];}_0x364965=_[_0xa2d6('0x3e')]({},_0x364965,_0x3b2b85[_0xa2d6('0x3f')]);return db[_0xa2d6('0x2b')][_0xa2d6('0x47')](_0x364965)[_0xa2d6('0x25')](handleEntityNotFound(_0x84541,null))['then'](respondWithResult(_0x84541,null))[_0xa2d6('0x44')](handleError(_0x84541,null));};exports['create']=function(_0x38175a,_0x2bc29e){return db['ZendeskField'][_0xa2d6('0x48')](_0x38175a[_0xa2d6('0x49')],{})[_0xa2d6('0x25')](respondWithResult(_0x2bc29e,0xc9))[_0xa2d6('0x44')](handleError(_0x2bc29e,null));};exports['update']=function(_0x4dbd9a,_0x488b91){if(_0x4dbd9a[_0xa2d6('0x49')]['id']){delete _0x4dbd9a[_0xa2d6('0x49')]['id'];}return db[_0xa2d6('0x2b')][_0xa2d6('0x47')]({'where':{'id':_0x4dbd9a[_0xa2d6('0x46')]['id']}})[_0xa2d6('0x25')](handleEntityNotFound(_0x488b91,null))[_0xa2d6('0x25')](saveUpdates(_0x4dbd9a[_0xa2d6('0x49')],null))[_0xa2d6('0x25')](respondWithResult(_0x488b91,null))[_0xa2d6('0x44')](handleError(_0x488b91,null));};exports['destroy']=function(_0x5fc23b,_0x1375b9){return db[_0xa2d6('0x2b')][_0xa2d6('0x47')]({'where':{'id':_0x5fc23b[_0xa2d6('0x46')]['id']}})[_0xa2d6('0x25')](handleEntityNotFound(_0x1375b9,null))[_0xa2d6('0x25')](removeEntity(_0x1375b9,null))['catch'](handleError(_0x1375b9,null));};
\ No newline at end of file