Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / openchannelApplication / openchannelApplication.controller.js
index 76b7c8d..6f19bdc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfd62=['findAll','rows','catch','show','params','keys','intersection','options','find','create','body','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','sox','ejs','lodash','squel','crypto','desk.js','to-csv','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','status','end','count','offset','limit','set','json','apply','reject','save','update','then','destroy','stack','name','send','OpenchannelApplication','rawAttributes','type','model','query','filters','attributes','fields','length','hasOwnProperty','order','sort','where','filter','merge','map','VIRTUAL','includeAll','include'];(function(_0x46aff0,_0x122890){var _0x9d78cf=function(_0x3f14cb){while(--_0x3f14cb){_0x46aff0['push'](_0x46aff0['shift']());}};_0x9d78cf(++_0x122890);}(_0xfd62,0x99));var _0x2fd6=function(_0xb8efe0,_0x1dd3f1){_0xb8efe0=_0xb8efe0-0x0;var _0x2154af=_0xfd62[_0xb8efe0];return _0x2154af;};'use strict';var pdf=require(_0x2fd6('0x0'));var emlformat=require(_0x2fd6('0x1'));var rimraf=require(_0x2fd6('0x2'));var zipdir=require(_0x2fd6('0x3'));var jsonpatch=require(_0x2fd6('0x4'));var rp=require('request-promise');var moment=require(_0x2fd6('0x5'));var BPromise=require(_0x2fd6('0x6'));var Mustache=require(_0x2fd6('0x7'));var util=require(_0x2fd6('0x8'));var path=require('path');var sox=require(_0x2fd6('0x9'));var csv=require('to-csv');var ejs=require(_0x2fd6('0xa'));var fs=require('fs');var _=require(_0x2fd6('0xb'));var squel=require(_0x2fd6('0xc'));var crypto=require(_0x2fd6('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x2fd6('0xe'));var toCsv=require(_0x2fd6('0xf'));var querystring=require('querystring');var Papa=require(_0x2fd6('0x10'));var Redis=require('ioredis');var authService=require(_0x2fd6('0x11'));var qs=require(_0x2fd6('0x12'));var as=require(_0x2fd6('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x2fd6('0x14'))(_0x2fd6('0x15'));var utils=require(_0x2fd6('0x16'));var config=require(_0x2fd6('0x17'));var licenseUtil=require(_0x2fd6('0x18'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x48025d,_0x2a2614){_0x2a2614=_0x2a2614||0xcc;return function(_0x345115){if(_0x345115){return _0x48025d['sendStatus'](_0x2a2614);}return _0x48025d[_0x2fd6('0x19')](_0x2a2614)[_0x2fd6('0x1a')]();};}function respondWithResult(_0x31d2ca,_0x1b5ec2){_0x1b5ec2=_0x1b5ec2||0xc8;return function(_0x117c6d){if(_0x117c6d){return _0x31d2ca[_0x2fd6('0x19')](_0x1b5ec2)['json'](_0x117c6d);}};}function respondWithFilteredResult(_0xc646cc,_0x301338){return function(_0x1db185){if(_0x1db185){var _0x4c1efd=_0x1db185[_0x2fd6('0x1b')],_0x4ed0d3=_0x301338[_0x2fd6('0x1c')],_0x7b277e=_0x301338['offset']+_0x301338[_0x2fd6('0x1d')],_0x5a3ed9;if(_0x7b277e>=_0x4c1efd){_0x7b277e=_0x4c1efd;_0x5a3ed9=0xc8;}else{_0x5a3ed9=0xce;}_0xc646cc[_0x2fd6('0x19')](_0x5a3ed9);return _0xc646cc[_0x2fd6('0x1e')]('Content-Range',_0x4ed0d3+'-'+_0x7b277e+'/'+_0x4c1efd)[_0x2fd6('0x1f')](_0x1db185);}return null;};}function patchUpdates(_0x2e8c0e){return function(_0x106d69){try{jsonpatch[_0x2fd6('0x20')](_0x106d69,_0x2e8c0e,!![]);}catch(_0x4ed242){return BPromise[_0x2fd6('0x21')](_0x4ed242);}return _0x106d69[_0x2fd6('0x22')]();};}function saveUpdates(_0x5eedb7,_0x416b43){return function(_0x1c7bf0){if(_0x1c7bf0){return _0x1c7bf0[_0x2fd6('0x23')](_0x5eedb7)[_0x2fd6('0x24')](function(_0x3f3f9a){return _0x3f3f9a;});}return null;};}function removeEntity(_0x5d27fe,_0x4dea46){return function(_0x151ea7){if(_0x151ea7){return _0x151ea7[_0x2fd6('0x25')]()[_0x2fd6('0x24')](function(){_0x5d27fe['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x49bbb9,_0x2f1677){return function(_0x244427){if(!_0x244427){_0x49bbb9['sendStatus'](0x194);}return _0x244427;};}function handleError(_0x1bd04e,_0x4eb9ae){_0x4eb9ae=_0x4eb9ae||0x1f4;return function(_0x5d2cf1){logger['error'](_0x5d2cf1[_0x2fd6('0x26')]);if(_0x5d2cf1[_0x2fd6('0x27')]){delete _0x5d2cf1[_0x2fd6('0x27')];}_0x1bd04e[_0x2fd6('0x19')](_0x4eb9ae)[_0x2fd6('0x28')](_0x5d2cf1);};}exports['index']=function(_0x2e7dd5,_0x1642ba){var _0xc285e2={},_0x443a60={},_0x394d4f={'count':0x0,'rows':[]};var _0x24b114=_['map'](db[_0x2fd6('0x29')][_0x2fd6('0x2a')],function(_0x4ee2b5){return{'name':_0x4ee2b5['fieldName'],'type':_0x4ee2b5[_0x2fd6('0x2b')]['key']};});_0x443a60[_0x2fd6('0x2c')]=_['map'](_0x24b114,_0x2fd6('0x27'));_0x443a60[_0x2fd6('0x2d')]=_['keys'](_0x2e7dd5['query']);_0x443a60[_0x2fd6('0x2e')]=_['intersection'](_0x443a60[_0x2fd6('0x2c')],_0x443a60[_0x2fd6('0x2d')]);_0xc285e2[_0x2fd6('0x2f')]=_['intersection'](_0x443a60[_0x2fd6('0x2c')],qs[_0x2fd6('0x30')](_0x2e7dd5[_0x2fd6('0x2d')][_0x2fd6('0x30')]));_0xc285e2[_0x2fd6('0x2f')]=_0xc285e2[_0x2fd6('0x2f')][_0x2fd6('0x31')]?_0xc285e2[_0x2fd6('0x2f')]:_0x443a60['model'];if(!_0x2e7dd5[_0x2fd6('0x2d')][_0x2fd6('0x32')]('nolimit')){_0xc285e2[_0x2fd6('0x1d')]=qs[_0x2fd6('0x1d')](_0x2e7dd5['query']['limit']);_0xc285e2[_0x2fd6('0x1c')]=qs['offset'](_0x2e7dd5['query'][_0x2fd6('0x1c')]);}_0xc285e2[_0x2fd6('0x33')]=qs[_0x2fd6('0x34')](_0x2e7dd5[_0x2fd6('0x2d')]['sort']);_0xc285e2[_0x2fd6('0x35')]=qs[_0x2fd6('0x2e')](_['pick'](_0x2e7dd5[_0x2fd6('0x2d')],_0x443a60[_0x2fd6('0x2e')]),_0x24b114);if(_0x2e7dd5[_0x2fd6('0x2d')][_0x2fd6('0x36')]){_0xc285e2[_0x2fd6('0x35')]=_[_0x2fd6('0x37')](_0xc285e2['where'],{'$or':_[_0x2fd6('0x38')](_0x24b114,function(_0x15987a){if(_0x15987a[_0x2fd6('0x2b')]!==_0x2fd6('0x39')){var _0x246460={};_0x246460[_0x15987a['name']]={'$like':'%'+_0x2e7dd5[_0x2fd6('0x2d')]['filter']+'%'};return _0x246460;}})});}_0xc285e2=_[_0x2fd6('0x37')]({},_0xc285e2,_0x2e7dd5['options']);var _0x5aa525={'where':_0xc285e2[_0x2fd6('0x35')]};return db[_0x2fd6('0x29')][_0x2fd6('0x1b')](_0x5aa525)[_0x2fd6('0x24')](function(_0x36417d){_0x394d4f['count']=_0x36417d;if(_0x2e7dd5[_0x2fd6('0x2d')][_0x2fd6('0x3a')]){_0xc285e2[_0x2fd6('0x3b')]=[{'all':!![]}];}return db[_0x2fd6('0x29')][_0x2fd6('0x3c')](_0xc285e2);})['then'](function(_0x15e368){_0x394d4f[_0x2fd6('0x3d')]=_0x15e368;return _0x394d4f;})[_0x2fd6('0x24')](respondWithFilteredResult(_0x1642ba,_0xc285e2))[_0x2fd6('0x3e')](handleError(_0x1642ba,null));};exports[_0x2fd6('0x3f')]=function(_0x16fe25,_0x2cf81a){var _0x742909={'raw':!![],'where':{'id':_0x16fe25[_0x2fd6('0x40')]['id']}},_0x5386ad={};_0x5386ad['model']=_[_0x2fd6('0x41')](db[_0x2fd6('0x29')]['rawAttributes']);_0x5386ad['query']=_[_0x2fd6('0x41')](_0x16fe25[_0x2fd6('0x2d')]);_0x5386ad[_0x2fd6('0x2e')]=_['intersection'](_0x5386ad[_0x2fd6('0x2c')],_0x5386ad[_0x2fd6('0x2d')]);_0x742909[_0x2fd6('0x2f')]=_[_0x2fd6('0x42')](_0x5386ad[_0x2fd6('0x2c')],qs[_0x2fd6('0x30')](_0x16fe25[_0x2fd6('0x2d')][_0x2fd6('0x30')]));_0x742909[_0x2fd6('0x2f')]=_0x742909[_0x2fd6('0x2f')]['length']?_0x742909[_0x2fd6('0x2f')]:_0x5386ad['model'];if(_0x16fe25[_0x2fd6('0x2d')][_0x2fd6('0x3a')]){_0x742909[_0x2fd6('0x3b')]=[{'all':!![]}];}_0x742909=_[_0x2fd6('0x37')]({},_0x742909,_0x16fe25[_0x2fd6('0x43')]);return db[_0x2fd6('0x29')][_0x2fd6('0x44')](_0x742909)[_0x2fd6('0x24')](handleEntityNotFound(_0x2cf81a,null))[_0x2fd6('0x24')](respondWithResult(_0x2cf81a,null))[_0x2fd6('0x3e')](handleError(_0x2cf81a,null));};exports['create']=function(_0x4b4730,_0x3f692b){return db[_0x2fd6('0x29')][_0x2fd6('0x45')](_0x4b4730[_0x2fd6('0x46')],{})[_0x2fd6('0x24')](respondWithResult(_0x3f692b,0xc9))['catch'](handleError(_0x3f692b,null));};exports[_0x2fd6('0x23')]=function(_0x55f0d7,_0x3abf3a){if(_0x55f0d7[_0x2fd6('0x46')]['id']){delete _0x55f0d7['body']['id'];}return db[_0x2fd6('0x29')]['find']({'where':{'id':_0x55f0d7[_0x2fd6('0x40')]['id']}})[_0x2fd6('0x24')](handleEntityNotFound(_0x3abf3a,null))[_0x2fd6('0x24')](saveUpdates(_0x55f0d7[_0x2fd6('0x46')],null))['then'](respondWithResult(_0x3abf3a,null))[_0x2fd6('0x3e')](handleError(_0x3abf3a,null));};exports['destroy']=function(_0xe69f18,_0x47b7b){return db[_0x2fd6('0x29')]['find']({'where':{'id':_0xe69f18[_0x2fd6('0x40')]['id']}})[_0x2fd6('0x24')](handleEntityNotFound(_0x47b7b,null))[_0x2fd6('0x24')](removeEntity(_0x47b7b,null))[_0x2fd6('0x3e')](handleError(_0x47b7b,null));};
\ No newline at end of file
+var _0xf7db=['key','model','query','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','filters','pick','filter','where','VIRTUAL','merge','options','includeAll','include','findAll','rows','catch','params','keys','find','create','body','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','path','to-csv','ejs','crypto','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','undefined','count','set','apply','reject','save','update','then','destroy','stack','name','send','index','map','OpenchannelApplication','rawAttributes','type'];(function(_0x5f309e,_0x66e31){var _0x487b5e=function(_0x44f203){while(--_0x44f203){_0x5f309e['push'](_0x5f309e['shift']());}};_0x487b5e(++_0x66e31);}(_0xf7db,0xa5));var _0xbf7d=function(_0x192850,_0x4171b0){_0x192850=_0x192850-0x0;var _0x5001f7=_0xf7db[_0x192850];return _0x5001f7;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xbf7d('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0xbf7d('0x1'));var rp=require(_0xbf7d('0x2'));var moment=require(_0xbf7d('0x3'));var BPromise=require(_0xbf7d('0x4'));var Mustache=require(_0xbf7d('0x5'));var util=require('util');var path=require(_0xbf7d('0x6'));var sox=require('sox');var csv=require(_0xbf7d('0x7'));var ejs=require(_0xbf7d('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require('squel');var crypto=require(_0xbf7d('0x9'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0xbf7d('0x7'));var querystring=require(_0xbf7d('0xa'));var Papa=require('papaparse');var Redis=require(_0xbf7d('0xb'));var authService=require(_0xbf7d('0xc'));var qs=require(_0xbf7d('0xd'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xbf7d('0xe'));var logger=require(_0xbf7d('0xf'))('api');var utils=require(_0xbf7d('0x10'));var config=require('../../config/environment');var licenseUtil=require(_0xbf7d('0x11'));var db=require(_0xbf7d('0x12'))['db'];function respondWithStatusCode(_0x307d54,_0x2b72c1){_0x2b72c1=_0x2b72c1||0xcc;return function(_0x15075f){if(_0x15075f){return _0x307d54[_0xbf7d('0x13')](_0x2b72c1);}return _0x307d54[_0xbf7d('0x14')](_0x2b72c1)[_0xbf7d('0x15')]();};}function respondWithResult(_0x1d63bf,_0x3e40cc){_0x3e40cc=_0x3e40cc||0xc8;return function(_0x1798bb){if(_0x1798bb){return _0x1d63bf[_0xbf7d('0x14')](_0x3e40cc)[_0xbf7d('0x16')](_0x1798bb);}};}function respondWithFilteredResult(_0x312fb5,_0x4f8021){return function(_0x3de921){if(_0x3de921){var _0x4611cb=typeof _0x4f8021[_0xbf7d('0x17')]==='undefined'&&typeof _0x4f8021[_0xbf7d('0x18')]===_0xbf7d('0x19');var _0x402c2e=_0x3de921[_0xbf7d('0x1a')];var _0x45847f=_0x4611cb?0x0:_0x4f8021[_0xbf7d('0x17')];var _0x5e207c=_0x4611cb?_0x3de921[_0xbf7d('0x1a')]:_0x4f8021[_0xbf7d('0x17')]+_0x4f8021[_0xbf7d('0x18')];var _0x54eae3;if(_0x5e207c>=_0x402c2e){_0x5e207c=_0x402c2e;_0x54eae3=0xc8;}else{_0x54eae3=0xce;}_0x312fb5[_0xbf7d('0x14')](_0x54eae3);return _0x312fb5[_0xbf7d('0x1b')]('Content-Range',_0x45847f+'-'+_0x5e207c+'/'+_0x402c2e)[_0xbf7d('0x16')](_0x3de921);}return null;};}function patchUpdates(_0xa8710c){return function(_0x110e34){try{jsonpatch[_0xbf7d('0x1c')](_0x110e34,_0xa8710c,!![]);}catch(_0x266511){return BPromise[_0xbf7d('0x1d')](_0x266511);}return _0x110e34[_0xbf7d('0x1e')]();};}function saveUpdates(_0xdf699f,_0x17add9){return function(_0x47f606){if(_0x47f606){return _0x47f606[_0xbf7d('0x1f')](_0xdf699f)[_0xbf7d('0x20')](function(_0x108fc1){return _0x108fc1;});}return null;};}function removeEntity(_0x44dab2,_0x1b948a){return function(_0x597d24){if(_0x597d24){return _0x597d24[_0xbf7d('0x21')]()[_0xbf7d('0x20')](function(){_0x44dab2[_0xbf7d('0x14')](0xcc)[_0xbf7d('0x15')]();});}};}function handleEntityNotFound(_0x4b47e2,_0x253ba8){return function(_0x38640a){if(!_0x38640a){_0x4b47e2[_0xbf7d('0x13')](0x194);}return _0x38640a;};}function handleError(_0x130c08,_0x5d8842){_0x5d8842=_0x5d8842||0x1f4;return function(_0x28c482){logger['error'](_0x28c482[_0xbf7d('0x22')]);if(_0x28c482[_0xbf7d('0x23')]){delete _0x28c482[_0xbf7d('0x23')];}_0x130c08['status'](_0x5d8842)[_0xbf7d('0x24')](_0x28c482);};}exports[_0xbf7d('0x25')]=function(_0x366c85,_0x3fe5bd){var _0x3057f6={},_0x58ff05={},_0x418ca3={'count':0x0,'rows':[]};var _0x1caed9=_[_0xbf7d('0x26')](db[_0xbf7d('0x27')][_0xbf7d('0x28')],function(_0x4686a6){return{'name':_0x4686a6['fieldName'],'type':_0x4686a6[_0xbf7d('0x29')][_0xbf7d('0x2a')]};});_0x58ff05[_0xbf7d('0x2b')]=_[_0xbf7d('0x26')](_0x1caed9,'name');_0x58ff05[_0xbf7d('0x2c')]=_['keys'](_0x366c85[_0xbf7d('0x2c')]);_0x58ff05['filters']=_[_0xbf7d('0x2d')](_0x58ff05['model'],_0x58ff05[_0xbf7d('0x2c')]);_0x3057f6[_0xbf7d('0x2e')]=_[_0xbf7d('0x2d')](_0x58ff05[_0xbf7d('0x2b')],qs[_0xbf7d('0x2f')](_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x2f')]));_0x3057f6[_0xbf7d('0x2e')]=_0x3057f6['attributes'][_0xbf7d('0x30')]?_0x3057f6[_0xbf7d('0x2e')]:_0x58ff05['model'];if(!_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x31')](_0xbf7d('0x32'))){_0x3057f6[_0xbf7d('0x18')]=qs[_0xbf7d('0x18')](_0x366c85[_0xbf7d('0x2c')]['limit']);_0x3057f6['offset']=qs[_0xbf7d('0x17')](_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x17')]);}_0x3057f6['order']=qs['sort'](_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x33')]);_0x3057f6['where']=qs[_0xbf7d('0x34')](_[_0xbf7d('0x35')](_0x366c85['query'],_0x58ff05[_0xbf7d('0x34')]),_0x1caed9);if(_0x366c85[_0xbf7d('0x2c')][_0xbf7d('0x36')]){_0x3057f6[_0xbf7d('0x37')]=_['merge'](_0x3057f6[_0xbf7d('0x37')],{'$or':_[_0xbf7d('0x26')](_0x1caed9,function(_0x4da796){if(_0x4da796[_0xbf7d('0x29')]!==_0xbf7d('0x38')){var _0x5e0f9a={};_0x5e0f9a[_0x4da796[_0xbf7d('0x23')]]={'$like':'%'+_0x366c85[_0xbf7d('0x2c')]['filter']+'%'};return _0x5e0f9a;}})});}_0x3057f6=_[_0xbf7d('0x39')]({},_0x3057f6,_0x366c85[_0xbf7d('0x3a')]);var _0x29f758={'where':_0x3057f6[_0xbf7d('0x37')]};return db[_0xbf7d('0x27')][_0xbf7d('0x1a')](_0x29f758)[_0xbf7d('0x20')](function(_0x19f1a1){_0x418ca3[_0xbf7d('0x1a')]=_0x19f1a1;if(_0x366c85['query'][_0xbf7d('0x3b')]){_0x3057f6[_0xbf7d('0x3c')]=[{'all':!![]}];}return db[_0xbf7d('0x27')][_0xbf7d('0x3d')](_0x3057f6);})[_0xbf7d('0x20')](function(_0x59832a){_0x418ca3[_0xbf7d('0x3e')]=_0x59832a;return _0x418ca3;})[_0xbf7d('0x20')](respondWithFilteredResult(_0x3fe5bd,_0x3057f6))[_0xbf7d('0x3f')](handleError(_0x3fe5bd,null));};exports['show']=function(_0x18b5f9,_0x24240c){var _0x1ea962={'raw':!![],'where':{'id':_0x18b5f9[_0xbf7d('0x40')]['id']}},_0x1e6a76={};_0x1e6a76[_0xbf7d('0x2b')]=_[_0xbf7d('0x41')](db[_0xbf7d('0x27')][_0xbf7d('0x28')]);_0x1e6a76['query']=_[_0xbf7d('0x41')](_0x18b5f9['query']);_0x1e6a76['filters']=_[_0xbf7d('0x2d')](_0x1e6a76['model'],_0x1e6a76[_0xbf7d('0x2c')]);_0x1ea962[_0xbf7d('0x2e')]=_['intersection'](_0x1e6a76[_0xbf7d('0x2b')],qs[_0xbf7d('0x2f')](_0x18b5f9[_0xbf7d('0x2c')][_0xbf7d('0x2f')]));_0x1ea962[_0xbf7d('0x2e')]=_0x1ea962[_0xbf7d('0x2e')][_0xbf7d('0x30')]?_0x1ea962[_0xbf7d('0x2e')]:_0x1e6a76[_0xbf7d('0x2b')];if(_0x18b5f9['query'][_0xbf7d('0x3b')]){_0x1ea962[_0xbf7d('0x3c')]=[{'all':!![]}];}_0x1ea962=_[_0xbf7d('0x39')]({},_0x1ea962,_0x18b5f9[_0xbf7d('0x3a')]);return db[_0xbf7d('0x27')][_0xbf7d('0x42')](_0x1ea962)[_0xbf7d('0x20')](handleEntityNotFound(_0x24240c,null))[_0xbf7d('0x20')](respondWithResult(_0x24240c,null))[_0xbf7d('0x3f')](handleError(_0x24240c,null));};exports['create']=function(_0x4b83f4,_0x16bbc1){return db[_0xbf7d('0x27')][_0xbf7d('0x43')](_0x4b83f4[_0xbf7d('0x44')],{})[_0xbf7d('0x20')](respondWithResult(_0x16bbc1,0xc9))['catch'](handleError(_0x16bbc1,null));};exports[_0xbf7d('0x1f')]=function(_0x1162ef,_0xc90e60){if(_0x1162ef[_0xbf7d('0x44')]['id']){delete _0x1162ef[_0xbf7d('0x44')]['id'];}return db[_0xbf7d('0x27')][_0xbf7d('0x42')]({'where':{'id':_0x1162ef[_0xbf7d('0x40')]['id']}})[_0xbf7d('0x20')](handleEntityNotFound(_0xc90e60,null))['then'](saveUpdates(_0x1162ef['body'],null))['then'](respondWithResult(_0xc90e60,null))[_0xbf7d('0x3f')](handleError(_0xc90e60,null));};exports[_0xbf7d('0x21')]=function(_0x573574,_0x18f566){return db[_0xbf7d('0x27')][_0xbf7d('0x42')]({'where':{'id':_0x573574[_0xbf7d('0x40')]['id']}})['then'](handleEntityNotFound(_0x18f566,null))[_0xbf7d('0x20')](removeEntity(_0x18f566,null))[_0xbf7d('0x3f')](handleError(_0x18f566,null));};
\ No newline at end of file