Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / whatsappApplication / whatsappApplication.controller.js
index d310e29..590e7f5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd0da=['bluebird','mustache','util','to-csv','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','json','offset','undefined','limit','count','set','apply','save','update','then','destroy','end','name','index','map','WhatsappApplication','rawAttributes','fieldName','type','key','model','query','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filters','pick','filter','merge','VIRTUAL','options','include','findAll','rows','catch','show','params','keys','body','find','eml-format','rimraf','zip-dir','fast-json-patch','request-promise'];(function(_0x2b60f6,_0x5b0c2b){var _0x292ffc=function(_0x2fe85f){while(--_0x2fe85f){_0x2b60f6['push'](_0x2b60f6['shift']());}};_0x292ffc(++_0x5b0c2b);}(_0xd0da,0x1b1));var _0xad0d=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0xd0da[_0xfae23b];return _0x200640;};'use strict';var emlformat=require(_0xad0d('0x0'));var rimraf=require(_0xad0d('0x1'));var zipdir=require(_0xad0d('0x2'));var jsonpatch=require(_0xad0d('0x3'));var rp=require(_0xad0d('0x4'));var moment=require('moment');var BPromise=require(_0xad0d('0x5'));var Mustache=require(_0xad0d('0x6'));var util=require(_0xad0d('0x7'));var path=require('path');var sox=require('sox');var csv=require(_0xad0d('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xad0d('0x9'));var squel=require(_0xad0d('0xa'));var crypto=require(_0xad0d('0xb'));var jsforce=require(_0xad0d('0xc'));var deskjs=require('desk.js');var toCsv=require(_0xad0d('0x8'));var querystring=require(_0xad0d('0xd'));var Papa=require(_0xad0d('0xe'));var Redis=require(_0xad0d('0xf'));var authService=require(_0xad0d('0x10'));var qs=require(_0xad0d('0x11'));var as=require(_0xad0d('0x12'));var hardwareService=require(_0xad0d('0x13'));var logger=require(_0xad0d('0x14'))(_0xad0d('0x15'));var utils=require(_0xad0d('0x16'));var config=require(_0xad0d('0x17'));var licenseUtil=require(_0xad0d('0x18'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x45c7ea,_0x3b62bf){_0x3b62bf=_0x3b62bf||0xcc;return function(_0x552370){if(_0x552370){return _0x45c7ea[_0xad0d('0x19')](_0x3b62bf);}return _0x45c7ea[_0xad0d('0x1a')](_0x3b62bf)['end']();};}function respondWithResult(_0x79cb76,_0xd50e3f){_0xd50e3f=_0xd50e3f||0xc8;return function(_0x5973a4){if(_0x5973a4){return _0x79cb76[_0xad0d('0x1a')](_0xd50e3f)[_0xad0d('0x1b')](_0x5973a4);}};}function respondWithFilteredResult(_0x58b701,_0x139e6f){return function(_0x59811c){if(_0x59811c){var _0x56d253=typeof _0x139e6f[_0xad0d('0x1c')]===_0xad0d('0x1d')&&typeof _0x139e6f[_0xad0d('0x1e')]==='undefined';var _0x1cac0c=_0x59811c[_0xad0d('0x1f')];var _0x5862bd=_0x56d253?0x0:_0x139e6f[_0xad0d('0x1c')];var _0x49891e=_0x56d253?_0x59811c['count']:_0x139e6f[_0xad0d('0x1c')]+_0x139e6f['limit'];var _0x439484;if(_0x49891e>=_0x1cac0c){_0x49891e=_0x1cac0c;_0x439484=0xc8;}else{_0x439484=0xce;}_0x58b701[_0xad0d('0x1a')](_0x439484);return _0x58b701[_0xad0d('0x20')]('Content-Range',_0x5862bd+'-'+_0x49891e+'/'+_0x1cac0c)['json'](_0x59811c);}return null;};}function patchUpdates(_0x16b5a1){return function(_0x327fe1){try{jsonpatch[_0xad0d('0x21')](_0x327fe1,_0x16b5a1,!![]);}catch(_0x542bd8){return BPromise['reject'](_0x542bd8);}return _0x327fe1[_0xad0d('0x22')]();};}function saveUpdates(_0x48333a,_0x264f63){return function(_0x129e80){if(_0x129e80){return _0x129e80[_0xad0d('0x23')](_0x48333a)[_0xad0d('0x24')](function(_0xefaf5f){return _0xefaf5f;});}return null;};}function removeEntity(_0x315f9c,_0x59efec){return function(_0x171757){if(_0x171757){return _0x171757[_0xad0d('0x25')]()['then'](function(){_0x315f9c['status'](0xcc)[_0xad0d('0x26')]();});}};}function handleEntityNotFound(_0x3e510e,_0x444eda){return function(_0x4ed3c8){if(!_0x4ed3c8){_0x3e510e[_0xad0d('0x19')](0x194);}return _0x4ed3c8;};}function handleError(_0x4944f4,_0x394aa2){_0x394aa2=_0x394aa2||0x1f4;return function(_0xddf172){logger['error'](_0xddf172['stack']);if(_0xddf172[_0xad0d('0x27')]){delete _0xddf172[_0xad0d('0x27')];}_0x4944f4[_0xad0d('0x1a')](_0x394aa2)['send'](_0xddf172);};}exports[_0xad0d('0x28')]=function(_0x62dfed,_0xc2bddb){var _0x59792d={},_0x17a8e4={},_0x1f33ed={'count':0x0,'rows':[]};var _0x4c306d=_[_0xad0d('0x29')](db[_0xad0d('0x2a')][_0xad0d('0x2b')],function(_0x11c203){return{'name':_0x11c203[_0xad0d('0x2c')],'type':_0x11c203[_0xad0d('0x2d')][_0xad0d('0x2e')]};});_0x17a8e4[_0xad0d('0x2f')]=_[_0xad0d('0x29')](_0x4c306d,_0xad0d('0x27'));_0x17a8e4[_0xad0d('0x30')]=_['keys'](_0x62dfed[_0xad0d('0x30')]);_0x17a8e4['filters']=_[_0xad0d('0x31')](_0x17a8e4[_0xad0d('0x2f')],_0x17a8e4[_0xad0d('0x30')]);_0x59792d[_0xad0d('0x32')]=_['intersection'](_0x17a8e4[_0xad0d('0x2f')],qs[_0xad0d('0x33')](_0x62dfed['query'][_0xad0d('0x33')]));_0x59792d[_0xad0d('0x32')]=_0x59792d[_0xad0d('0x32')][_0xad0d('0x34')]?_0x59792d[_0xad0d('0x32')]:_0x17a8e4['model'];if(!_0x62dfed[_0xad0d('0x30')][_0xad0d('0x35')](_0xad0d('0x36'))){_0x59792d[_0xad0d('0x1e')]=qs['limit'](_0x62dfed[_0xad0d('0x30')]['limit']);_0x59792d[_0xad0d('0x1c')]=qs[_0xad0d('0x1c')](_0x62dfed[_0xad0d('0x30')]['offset']);}_0x59792d[_0xad0d('0x37')]=qs[_0xad0d('0x38')](_0x62dfed[_0xad0d('0x30')][_0xad0d('0x38')]);_0x59792d[_0xad0d('0x39')]=qs[_0xad0d('0x3a')](_[_0xad0d('0x3b')](_0x62dfed[_0xad0d('0x30')],_0x17a8e4['filters']),_0x4c306d);if(_0x62dfed[_0xad0d('0x30')][_0xad0d('0x3c')]){_0x59792d[_0xad0d('0x39')]=_[_0xad0d('0x3d')](_0x59792d['where'],{'$or':_[_0xad0d('0x29')](_0x4c306d,function(_0x21e7ca){if(_0x21e7ca[_0xad0d('0x2d')]!==_0xad0d('0x3e')){var _0x18527b={};_0x18527b[_0x21e7ca['name']]={'$like':'%'+_0x62dfed['query'][_0xad0d('0x3c')]+'%'};return _0x18527b;}})});}_0x59792d=_['merge']({},_0x59792d,_0x62dfed[_0xad0d('0x3f')]);var _0x1d996f={'where':_0x59792d[_0xad0d('0x39')]};return db[_0xad0d('0x2a')][_0xad0d('0x1f')](_0x1d996f)[_0xad0d('0x24')](function(_0x419f2e){_0x1f33ed[_0xad0d('0x1f')]=_0x419f2e;if(_0x62dfed[_0xad0d('0x30')]['includeAll']){_0x59792d[_0xad0d('0x40')]=[{'all':!![]}];}return db[_0xad0d('0x2a')][_0xad0d('0x41')](_0x59792d);})[_0xad0d('0x24')](function(_0x3a1775){_0x1f33ed[_0xad0d('0x42')]=_0x3a1775;return _0x1f33ed;})[_0xad0d('0x24')](respondWithFilteredResult(_0xc2bddb,_0x59792d))[_0xad0d('0x43')](handleError(_0xc2bddb,null));};exports[_0xad0d('0x44')]=function(_0x3d4f6b,_0x3674dd){var _0xe3b423={'raw':!![],'where':{'id':_0x3d4f6b[_0xad0d('0x45')]['id']}},_0x336ac8={};_0x336ac8[_0xad0d('0x2f')]=_['keys'](db[_0xad0d('0x2a')][_0xad0d('0x2b')]);_0x336ac8[_0xad0d('0x30')]=_[_0xad0d('0x46')](_0x3d4f6b[_0xad0d('0x30')]);_0x336ac8[_0xad0d('0x3a')]=_[_0xad0d('0x31')](_0x336ac8[_0xad0d('0x2f')],_0x336ac8[_0xad0d('0x30')]);_0xe3b423[_0xad0d('0x32')]=_['intersection'](_0x336ac8[_0xad0d('0x2f')],qs[_0xad0d('0x33')](_0x3d4f6b[_0xad0d('0x30')]['fields']));_0xe3b423[_0xad0d('0x32')]=_0xe3b423[_0xad0d('0x32')]['length']?_0xe3b423[_0xad0d('0x32')]:_0x336ac8['model'];if(_0x3d4f6b[_0xad0d('0x30')]['includeAll']){_0xe3b423['include']=[{'all':!![]}];}_0xe3b423=_['merge']({},_0xe3b423,_0x3d4f6b['options']);return db[_0xad0d('0x2a')]['find'](_0xe3b423)['then'](handleEntityNotFound(_0x3674dd,null))['then'](respondWithResult(_0x3674dd,null))[_0xad0d('0x43')](handleError(_0x3674dd,null));};exports['create']=function(_0x4e4bb9,_0x43c8d1){return db[_0xad0d('0x2a')]['create'](_0x4e4bb9[_0xad0d('0x47')],{})[_0xad0d('0x24')](respondWithResult(_0x43c8d1,0xc9))['catch'](handleError(_0x43c8d1,null));};exports[_0xad0d('0x23')]=function(_0x3ef5e7,_0x32bad5){if(_0x3ef5e7[_0xad0d('0x47')]['id']){delete _0x3ef5e7[_0xad0d('0x47')]['id'];}return db['WhatsappApplication'][_0xad0d('0x48')]({'where':{'id':_0x3ef5e7[_0xad0d('0x45')]['id']}})['then'](handleEntityNotFound(_0x32bad5,null))['then'](saveUpdates(_0x3ef5e7[_0xad0d('0x47')],null))[_0xad0d('0x24')](respondWithResult(_0x32bad5,null))[_0xad0d('0x43')](handleError(_0x32bad5,null));};exports[_0xad0d('0x25')]=function(_0x5e6873,_0x30c9e9){return db[_0xad0d('0x2a')][_0xad0d('0x48')]({'where':{'id':_0x5e6873['params']['id']}})[_0xad0d('0x24')](handleEntityNotFound(_0x30c9e9,null))[_0xad0d('0x24')](removeEntity(_0x30c9e9,null))[_0xad0d('0x43')](handleError(_0x30c9e9,null));};
\ No newline at end of file
+var _0x9bd9=['apply','reject','then','error','name','index','WhatsappApplication','rawAttributes','fieldName','type','key','model','query','attributes','intersection','fields','length','hasOwnProperty','order','sort','where','filters','pick','filter','merge','map','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','keys','find','create','body','destroy','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','path','sox','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset','undefined','limit','count','Content-Range'];(function(_0x417fff,_0x5be94e){var _0x383fdf=function(_0x24fa46){while(--_0x24fa46){_0x417fff['push'](_0x417fff['shift']());}};_0x383fdf(++_0x5be94e);}(_0x9bd9,0x1a4));var _0x99bd=function(_0x430095,_0x122722){_0x430095=_0x430095-0x0;var _0x115f8a=_0x9bd9[_0x430095];return _0x115f8a;};'use strict';var emlformat=require(_0x99bd('0x0'));var rimraf=require(_0x99bd('0x1'));var zipdir=require(_0x99bd('0x2'));var jsonpatch=require(_0x99bd('0x3'));var rp=require(_0x99bd('0x4'));var moment=require(_0x99bd('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x99bd('0x6'));var util=require('util');var path=require(_0x99bd('0x7'));var sox=require(_0x99bd('0x8'));var csv=require('to-csv');var ejs=require(_0x99bd('0x9'));var fs=require('fs');var fs_extra=require(_0x99bd('0xa'));var _=require(_0x99bd('0xb'));var squel=require(_0x99bd('0xc'));var crypto=require(_0x99bd('0xd'));var jsforce=require(_0x99bd('0xe'));var deskjs=require(_0x99bd('0xf'));var toCsv=require(_0x99bd('0x10'));var querystring=require(_0x99bd('0x11'));var Papa=require(_0x99bd('0x12'));var Redis=require(_0x99bd('0x13'));var authService=require(_0x99bd('0x14'));var qs=require(_0x99bd('0x15'));var as=require(_0x99bd('0x16'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x99bd('0x17'))('api');var utils=require(_0x99bd('0x18'));var config=require('../../config/environment');var licenseUtil=require(_0x99bd('0x19'));var db=require(_0x99bd('0x1a'))['db'];function respondWithStatusCode(_0x4a8bd9,_0x22237c){_0x22237c=_0x22237c||0xcc;return function(_0x500cd2){if(_0x500cd2){return _0x4a8bd9[_0x99bd('0x1b')](_0x22237c);}return _0x4a8bd9['status'](_0x22237c)[_0x99bd('0x1c')]();};}function respondWithResult(_0x401299,_0x141159){_0x141159=_0x141159||0xc8;return function(_0x4a9770){if(_0x4a9770){return _0x401299[_0x99bd('0x1d')](_0x141159)[_0x99bd('0x1e')](_0x4a9770);}};}function respondWithFilteredResult(_0x2d918a,_0x42b619){return function(_0x65a2e5){if(_0x65a2e5){var _0x491d9=typeof _0x42b619[_0x99bd('0x1f')]===_0x99bd('0x20')&&typeof _0x42b619[_0x99bd('0x21')]==='undefined';var _0x378079=_0x65a2e5[_0x99bd('0x22')];var _0x2fe078=_0x491d9?0x0:_0x42b619['offset'];var _0x4b98fc=_0x491d9?_0x65a2e5[_0x99bd('0x22')]:_0x42b619[_0x99bd('0x1f')]+_0x42b619[_0x99bd('0x21')];var _0xfa6227;if(_0x4b98fc>=_0x378079){_0x4b98fc=_0x378079;_0xfa6227=0xc8;}else{_0xfa6227=0xce;}_0x2d918a[_0x99bd('0x1d')](_0xfa6227);return _0x2d918a['set'](_0x99bd('0x23'),_0x2fe078+'-'+_0x4b98fc+'/'+_0x378079)['json'](_0x65a2e5);}return null;};}function patchUpdates(_0x10f2fb){return function(_0x3085df){try{jsonpatch[_0x99bd('0x24')](_0x3085df,_0x10f2fb,!![]);}catch(_0x1d937b){return BPromise[_0x99bd('0x25')](_0x1d937b);}return _0x3085df['save']();};}function saveUpdates(_0x27c551,_0x229322){return function(_0x3e339c){if(_0x3e339c){return _0x3e339c['update'](_0x27c551)[_0x99bd('0x26')](function(_0x5e6081){return _0x5e6081;});}return null;};}function removeEntity(_0x4d3ebb,_0x1c5b82){return function(_0xfdc455){if(_0xfdc455){return _0xfdc455['destroy']()[_0x99bd('0x26')](function(){_0x4d3ebb[_0x99bd('0x1d')](0xcc)[_0x99bd('0x1c')]();});}};}function handleEntityNotFound(_0x3f7bf4,_0x51ff34){return function(_0x12daac){if(!_0x12daac){_0x3f7bf4['sendStatus'](0x194);}return _0x12daac;};}function handleError(_0x550b7f,_0x10d5cd){_0x10d5cd=_0x10d5cd||0x1f4;return function(_0x5ebeeb){logger[_0x99bd('0x27')](_0x5ebeeb['stack']);if(_0x5ebeeb[_0x99bd('0x28')]){delete _0x5ebeeb[_0x99bd('0x28')];}_0x550b7f['status'](_0x10d5cd)['send'](_0x5ebeeb);};}exports[_0x99bd('0x29')]=function(_0x1af1e6,_0x1eabb9){var _0x5903aa={},_0x957d48={},_0x1d0642={'count':0x0,'rows':[]};var _0x2250d8=_['map'](db[_0x99bd('0x2a')][_0x99bd('0x2b')],function(_0x4c5493){return{'name':_0x4c5493[_0x99bd('0x2c')],'type':_0x4c5493[_0x99bd('0x2d')][_0x99bd('0x2e')]};});_0x957d48[_0x99bd('0x2f')]=_['map'](_0x2250d8,_0x99bd('0x28'));_0x957d48[_0x99bd('0x30')]=_['keys'](_0x1af1e6[_0x99bd('0x30')]);_0x957d48['filters']=_['intersection'](_0x957d48['model'],_0x957d48[_0x99bd('0x30')]);_0x5903aa[_0x99bd('0x31')]=_[_0x99bd('0x32')](_0x957d48[_0x99bd('0x2f')],qs[_0x99bd('0x33')](_0x1af1e6[_0x99bd('0x30')][_0x99bd('0x33')]));_0x5903aa[_0x99bd('0x31')]=_0x5903aa[_0x99bd('0x31')][_0x99bd('0x34')]?_0x5903aa['attributes']:_0x957d48[_0x99bd('0x2f')];if(!_0x1af1e6['query'][_0x99bd('0x35')]('nolimit')){_0x5903aa['limit']=qs['limit'](_0x1af1e6[_0x99bd('0x30')][_0x99bd('0x21')]);_0x5903aa[_0x99bd('0x1f')]=qs[_0x99bd('0x1f')](_0x1af1e6['query'][_0x99bd('0x1f')]);}_0x5903aa[_0x99bd('0x36')]=qs[_0x99bd('0x37')](_0x1af1e6[_0x99bd('0x30')]['sort']);_0x5903aa[_0x99bd('0x38')]=qs[_0x99bd('0x39')](_[_0x99bd('0x3a')](_0x1af1e6[_0x99bd('0x30')],_0x957d48['filters']),_0x2250d8);if(_0x1af1e6[_0x99bd('0x30')][_0x99bd('0x3b')]){_0x5903aa[_0x99bd('0x38')]=_[_0x99bd('0x3c')](_0x5903aa['where'],{'$or':_[_0x99bd('0x3d')](_0x2250d8,function(_0x3d2b0f){if(_0x3d2b0f[_0x99bd('0x2d')]!==_0x99bd('0x3e')){var _0x7e29ec={};_0x7e29ec[_0x3d2b0f[_0x99bd('0x28')]]={'$like':'%'+_0x1af1e6[_0x99bd('0x30')][_0x99bd('0x3b')]+'%'};return _0x7e29ec;}})});}_0x5903aa=_[_0x99bd('0x3c')]({},_0x5903aa,_0x1af1e6[_0x99bd('0x3f')]);var _0x2fcf71={'where':_0x5903aa[_0x99bd('0x38')]};return db[_0x99bd('0x2a')]['count'](_0x2fcf71)[_0x99bd('0x26')](function(_0x1ecdd6){_0x1d0642[_0x99bd('0x22')]=_0x1ecdd6;if(_0x1af1e6[_0x99bd('0x30')][_0x99bd('0x40')]){_0x5903aa[_0x99bd('0x41')]=[{'all':!![]}];}return db[_0x99bd('0x2a')][_0x99bd('0x42')](_0x5903aa);})[_0x99bd('0x26')](function(_0x7e84b1){_0x1d0642[_0x99bd('0x43')]=_0x7e84b1;return _0x1d0642;})[_0x99bd('0x26')](respondWithFilteredResult(_0x1eabb9,_0x5903aa))[_0x99bd('0x44')](handleError(_0x1eabb9,null));};exports[_0x99bd('0x45')]=function(_0xb0ffe5,_0x2d91be){var _0x369fb5={'raw':!![],'where':{'id':_0xb0ffe5[_0x99bd('0x46')]['id']}},_0x5a4a96={};_0x5a4a96[_0x99bd('0x2f')]=_[_0x99bd('0x47')](db[_0x99bd('0x2a')][_0x99bd('0x2b')]);_0x5a4a96[_0x99bd('0x30')]=_[_0x99bd('0x47')](_0xb0ffe5[_0x99bd('0x30')]);_0x5a4a96['filters']=_[_0x99bd('0x32')](_0x5a4a96[_0x99bd('0x2f')],_0x5a4a96[_0x99bd('0x30')]);_0x369fb5['attributes']=_[_0x99bd('0x32')](_0x5a4a96[_0x99bd('0x2f')],qs[_0x99bd('0x33')](_0xb0ffe5['query'][_0x99bd('0x33')]));_0x369fb5['attributes']=_0x369fb5['attributes']['length']?_0x369fb5[_0x99bd('0x31')]:_0x5a4a96[_0x99bd('0x2f')];if(_0xb0ffe5[_0x99bd('0x30')]['includeAll']){_0x369fb5[_0x99bd('0x41')]=[{'all':!![]}];}_0x369fb5=_[_0x99bd('0x3c')]({},_0x369fb5,_0xb0ffe5[_0x99bd('0x3f')]);return db['WhatsappApplication'][_0x99bd('0x48')](_0x369fb5)[_0x99bd('0x26')](handleEntityNotFound(_0x2d91be,null))['then'](respondWithResult(_0x2d91be,null))['catch'](handleError(_0x2d91be,null));};exports[_0x99bd('0x49')]=function(_0x1d7ec0,_0x3487c6){return db['WhatsappApplication']['create'](_0x1d7ec0[_0x99bd('0x4a')],{})[_0x99bd('0x26')](respondWithResult(_0x3487c6,0xc9))[_0x99bd('0x44')](handleError(_0x3487c6,null));};exports['update']=function(_0x3fa8e1,_0x4e71b3){if(_0x3fa8e1[_0x99bd('0x4a')]['id']){delete _0x3fa8e1[_0x99bd('0x4a')]['id'];}return db[_0x99bd('0x2a')][_0x99bd('0x48')]({'where':{'id':_0x3fa8e1[_0x99bd('0x46')]['id']}})['then'](handleEntityNotFound(_0x4e71b3,null))[_0x99bd('0x26')](saveUpdates(_0x3fa8e1['body'],null))[_0x99bd('0x26')](respondWithResult(_0x4e71b3,null))[_0x99bd('0x44')](handleError(_0x4e71b3,null));};exports[_0x99bd('0x4b')]=function(_0x1912ac,_0x2100c7){return db[_0x99bd('0x2a')][_0x99bd('0x48')]({'where':{'id':_0x1912ac['params']['id']}})['then'](handleEntityNotFound(_0x2100c7,null))[_0x99bd('0x26')](removeEntity(_0x2100c7,null))[_0x99bd('0x44')](handleError(_0x2100c7,null));};
\ No newline at end of file