Built motion from commit (unavailable).|2.5.19
[motion2.git] / server / api / smsApplication / smsApplication.controller.js
index 070eedd..e9bce08 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xacf7=['api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','json','count','offset','limit','set','Content-Range','save','then','destroy','end','sendStatus','error','name','send','index','map','SmsApplication','rawAttributes','fieldName','type','key','model','query','keys','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','find','create','body','update','params','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','bluebird','mustache','util','path','sox','to-csv','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger'];(function(_0x2dadb9,_0x42cfe6){var _0x2f0097=function(_0x21163f){while(--_0x21163f){_0x2dadb9['push'](_0x2dadb9['shift']());}};_0x2f0097(++_0x42cfe6);}(_0xacf7,0x1bd));var _0x7acf=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0xacf7[_0x42cae2];return _0x5f256f;};'use strict';var pdf=require(_0x7acf('0x0'));var emlformat=require(_0x7acf('0x1'));var rimraf=require(_0x7acf('0x2'));var zipdir=require(_0x7acf('0x3'));var jsonpatch=require(_0x7acf('0x4'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x7acf('0x5'));var Mustache=require(_0x7acf('0x6'));var util=require(_0x7acf('0x7'));var path=require(_0x7acf('0x8'));var sox=require(_0x7acf('0x9'));var csv=require(_0x7acf('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x7acf('0xb'));var squel=require(_0x7acf('0xc'));var crypto=require(_0x7acf('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x7acf('0xe'));var toCsv=require(_0x7acf('0xa'));var querystring=require(_0x7acf('0xf'));var Papa=require(_0x7acf('0x10'));var Redis=require(_0x7acf('0x11'));var authService=require(_0x7acf('0x12'));var qs=require(_0x7acf('0x13'));var as=require(_0x7acf('0x14'));var hardwareService=require(_0x7acf('0x15'));var logger=require(_0x7acf('0x16'))(_0x7acf('0x17'));var utils=require(_0x7acf('0x18'));var config=require(_0x7acf('0x19'));var licenseUtil=require(_0x7acf('0x1a'));var db=require(_0x7acf('0x1b'))['db'];function respondWithStatusCode(_0x2e4fae,_0x5644f3){_0x5644f3=_0x5644f3||0xcc;return function(_0x1d76bc){if(_0x1d76bc){return _0x2e4fae['sendStatus'](_0x5644f3);}return _0x2e4fae[_0x7acf('0x1c')](_0x5644f3)['end']();};}function respondWithResult(_0xe48928,_0x40dc19){_0x40dc19=_0x40dc19||0xc8;return function(_0x10d29b){if(_0x10d29b){return _0xe48928['status'](_0x40dc19)[_0x7acf('0x1d')](_0x10d29b);}};}function respondWithFilteredResult(_0x1ab1a3,_0x531b60){return function(_0x518a7c){if(_0x518a7c){var _0x41c1ef=_0x518a7c[_0x7acf('0x1e')],_0x482c9f=_0x531b60[_0x7acf('0x1f')],_0x557438=_0x531b60[_0x7acf('0x1f')]+_0x531b60[_0x7acf('0x20')],_0x5bb5ff;if(_0x557438>=_0x41c1ef){_0x557438=_0x41c1ef;_0x5bb5ff=0xc8;}else{_0x5bb5ff=0xce;}_0x1ab1a3[_0x7acf('0x1c')](_0x5bb5ff);return _0x1ab1a3[_0x7acf('0x21')](_0x7acf('0x22'),_0x482c9f+'-'+_0x557438+'/'+_0x41c1ef)[_0x7acf('0x1d')](_0x518a7c);}return null;};}function patchUpdates(_0x588279){return function(_0x1b9a88){try{jsonpatch['apply'](_0x1b9a88,_0x588279,!![]);}catch(_0x52c8a3){return BPromise['reject'](_0x52c8a3);}return _0x1b9a88[_0x7acf('0x23')]();};}function saveUpdates(_0x9a19a9,_0x1ea307){return function(_0x8a439d){if(_0x8a439d){return _0x8a439d['update'](_0x9a19a9)[_0x7acf('0x24')](function(_0x22c41f){return _0x22c41f;});}return null;};}function removeEntity(_0x563ff3,_0x2b0452){return function(_0x3b3521){if(_0x3b3521){return _0x3b3521[_0x7acf('0x25')]()[_0x7acf('0x24')](function(){_0x563ff3['status'](0xcc)[_0x7acf('0x26')]();});}};}function handleEntityNotFound(_0x4e9b20,_0x99d1c7){return function(_0x504ceb){if(!_0x504ceb){_0x4e9b20[_0x7acf('0x27')](0x194);}return _0x504ceb;};}function handleError(_0x4fc93f,_0x4497c0){_0x4497c0=_0x4497c0||0x1f4;return function(_0xf8fe81){logger[_0x7acf('0x28')](_0xf8fe81['stack']);if(_0xf8fe81[_0x7acf('0x29')]){delete _0xf8fe81[_0x7acf('0x29')];}_0x4fc93f[_0x7acf('0x1c')](_0x4497c0)[_0x7acf('0x2a')](_0xf8fe81);};}exports[_0x7acf('0x2b')]=function(_0x103e2d,_0x3d1dd5){var _0xd939e4={},_0x59bf3a={},_0xdeb7f8={'count':0x0,'rows':[]};var _0x378dab=_[_0x7acf('0x2c')](db[_0x7acf('0x2d')][_0x7acf('0x2e')],function(_0x48a9f7){return{'name':_0x48a9f7[_0x7acf('0x2f')],'type':_0x48a9f7[_0x7acf('0x30')][_0x7acf('0x31')]};});_0x59bf3a[_0x7acf('0x32')]=_[_0x7acf('0x2c')](_0x378dab,_0x7acf('0x29'));_0x59bf3a[_0x7acf('0x33')]=_[_0x7acf('0x34')](_0x103e2d[_0x7acf('0x33')]);_0x59bf3a[_0x7acf('0x35')]=_['intersection'](_0x59bf3a[_0x7acf('0x32')],_0x59bf3a['query']);_0xd939e4[_0x7acf('0x36')]=_[_0x7acf('0x37')](_0x59bf3a[_0x7acf('0x32')],qs['fields'](_0x103e2d[_0x7acf('0x33')][_0x7acf('0x38')]));_0xd939e4[_0x7acf('0x36')]=_0xd939e4[_0x7acf('0x36')][_0x7acf('0x39')]?_0xd939e4[_0x7acf('0x36')]:_0x59bf3a[_0x7acf('0x32')];if(!_0x103e2d[_0x7acf('0x33')][_0x7acf('0x3a')](_0x7acf('0x3b'))){_0xd939e4[_0x7acf('0x20')]=qs[_0x7acf('0x20')](_0x103e2d[_0x7acf('0x33')]['limit']);_0xd939e4[_0x7acf('0x1f')]=qs['offset'](_0x103e2d['query'][_0x7acf('0x1f')]);}_0xd939e4['order']=qs[_0x7acf('0x3c')](_0x103e2d[_0x7acf('0x33')][_0x7acf('0x3c')]);_0xd939e4[_0x7acf('0x3d')]=qs[_0x7acf('0x35')](_[_0x7acf('0x3e')](_0x103e2d[_0x7acf('0x33')],_0x59bf3a[_0x7acf('0x35')]),_0x378dab);if(_0x103e2d[_0x7acf('0x33')][_0x7acf('0x3f')]){_0xd939e4[_0x7acf('0x3d')]=_[_0x7acf('0x40')](_0xd939e4['where'],{'$or':_[_0x7acf('0x2c')](_0x378dab,function(_0x417823){if(_0x417823['type']!==_0x7acf('0x41')){var _0x3ae30c={};_0x3ae30c[_0x417823[_0x7acf('0x29')]]={'$like':'%'+_0x103e2d[_0x7acf('0x33')][_0x7acf('0x3f')]+'%'};return _0x3ae30c;}})});}_0xd939e4=_[_0x7acf('0x40')]({},_0xd939e4,_0x103e2d[_0x7acf('0x42')]);var _0x166488={'where':_0xd939e4[_0x7acf('0x3d')]};return db[_0x7acf('0x2d')]['count'](_0x166488)['then'](function(_0x1ca719){_0xdeb7f8[_0x7acf('0x1e')]=_0x1ca719;if(_0x103e2d[_0x7acf('0x33')][_0x7acf('0x43')]){_0xd939e4[_0x7acf('0x44')]=[{'all':!![]}];}return db[_0x7acf('0x2d')][_0x7acf('0x45')](_0xd939e4);})['then'](function(_0x1f5f43){_0xdeb7f8[_0x7acf('0x46')]=_0x1f5f43;return _0xdeb7f8;})[_0x7acf('0x24')](respondWithFilteredResult(_0x3d1dd5,_0xd939e4))[_0x7acf('0x47')](handleError(_0x3d1dd5,null));};exports[_0x7acf('0x48')]=function(_0x1ea5fa,_0x58de08){var _0x5c5256={'raw':!![],'where':{'id':_0x1ea5fa['params']['id']}},_0x5e30f7={};_0x5e30f7[_0x7acf('0x32')]=_[_0x7acf('0x34')](db[_0x7acf('0x2d')][_0x7acf('0x2e')]);_0x5e30f7['query']=_['keys'](_0x1ea5fa[_0x7acf('0x33')]);_0x5e30f7[_0x7acf('0x35')]=_['intersection'](_0x5e30f7[_0x7acf('0x32')],_0x5e30f7[_0x7acf('0x33')]);_0x5c5256[_0x7acf('0x36')]=_[_0x7acf('0x37')](_0x5e30f7['model'],qs[_0x7acf('0x38')](_0x1ea5fa[_0x7acf('0x33')][_0x7acf('0x38')]));_0x5c5256[_0x7acf('0x36')]=_0x5c5256[_0x7acf('0x36')][_0x7acf('0x39')]?_0x5c5256[_0x7acf('0x36')]:_0x5e30f7['model'];if(_0x1ea5fa['query'][_0x7acf('0x43')]){_0x5c5256['include']=[{'all':!![]}];}_0x5c5256=_['merge']({},_0x5c5256,_0x1ea5fa[_0x7acf('0x42')]);return db['SmsApplication'][_0x7acf('0x49')](_0x5c5256)['then'](handleEntityNotFound(_0x58de08,null))[_0x7acf('0x24')](respondWithResult(_0x58de08,null))[_0x7acf('0x47')](handleError(_0x58de08,null));};exports[_0x7acf('0x4a')]=function(_0x2842af,_0x407454){return db[_0x7acf('0x2d')][_0x7acf('0x4a')](_0x2842af[_0x7acf('0x4b')],{})['then'](respondWithResult(_0x407454,0xc9))[_0x7acf('0x47')](handleError(_0x407454,null));};exports[_0x7acf('0x4c')]=function(_0x5cdc00,_0x4021f8){if(_0x5cdc00[_0x7acf('0x4b')]['id']){delete _0x5cdc00[_0x7acf('0x4b')]['id'];}return db[_0x7acf('0x2d')][_0x7acf('0x49')]({'where':{'id':_0x5cdc00[_0x7acf('0x4d')]['id']}})[_0x7acf('0x24')](handleEntityNotFound(_0x4021f8,null))[_0x7acf('0x24')](saveUpdates(_0x5cdc00['body'],null))['then'](respondWithResult(_0x4021f8,null))[_0x7acf('0x47')](handleError(_0x4021f8,null));};exports['destroy']=function(_0x407f27,_0xcd8055){return db[_0x7acf('0x2d')][_0x7acf('0x49')]({'where':{'id':_0x407f27[_0x7acf('0x4d')]['id']}})[_0x7acf('0x24')](handleEntityNotFound(_0xcd8055,null))[_0x7acf('0x24')](removeEntity(_0xcd8055,null))[_0x7acf('0x47')](handleError(_0xcd8055,null));};
\ No newline at end of file
+var _0xfe85=['offset','limit','set','apply','save','update','then','destroy','end','error','stack','name','send','index','SmsApplication','rawAttributes','fieldName','type','key','model','map','query','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','rows','catch','show','params','keys','find','create','body','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','sox','to-csv','crypto','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','json','count'];(function(_0x294e4b,_0x521dad){var _0x56ca8f=function(_0x407465){while(--_0x407465){_0x294e4b['push'](_0x294e4b['shift']());}};_0x56ca8f(++_0x521dad);}(_0xfe85,0x75));var _0x5fe8=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xfe85[_0x3dd15e];return _0x231fd0;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x5fe8('0x0'));var rimraf=require(_0x5fe8('0x1'));var zipdir=require(_0x5fe8('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x5fe8('0x3'));var moment=require(_0x5fe8('0x4'));var BPromise=require(_0x5fe8('0x5'));var Mustache=require(_0x5fe8('0x6'));var util=require(_0x5fe8('0x7'));var path=require('path');var sox=require(_0x5fe8('0x8'));var csv=require(_0x5fe8('0x9'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require(_0x5fe8('0xa'));var jsforce=require('jsforce');var deskjs=require(_0x5fe8('0xb'));var toCsv=require(_0x5fe8('0x9'));var querystring=require(_0x5fe8('0xc'));var Papa=require('papaparse');var Redis=require(_0x5fe8('0xd'));var authService=require(_0x5fe8('0xe'));var qs=require(_0x5fe8('0xf'));var as=require(_0x5fe8('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x5fe8('0x11'));var utils=require(_0x5fe8('0x12'));var config=require('../../config/environment');var licenseUtil=require(_0x5fe8('0x13'));var db=require(_0x5fe8('0x14'))['db'];function respondWithStatusCode(_0x4e303e,_0x4c634d){_0x4c634d=_0x4c634d||0xcc;return function(_0xf2ab01){if(_0xf2ab01){return _0x4e303e[_0x5fe8('0x15')](_0x4c634d);}return _0x4e303e[_0x5fe8('0x16')](_0x4c634d)['end']();};}function respondWithResult(_0x4ee30a,_0x5b147d){_0x5b147d=_0x5b147d||0xc8;return function(_0x6f720e){if(_0x6f720e){return _0x4ee30a[_0x5fe8('0x16')](_0x5b147d)[_0x5fe8('0x17')](_0x6f720e);}};}function respondWithFilteredResult(_0x4b5cfa,_0x55513f){return function(_0x5a4df1){if(_0x5a4df1){var _0x273d08=_0x5a4df1[_0x5fe8('0x18')],_0x2fe868=_0x55513f[_0x5fe8('0x19')],_0x17e6cf=_0x55513f[_0x5fe8('0x19')]+_0x55513f[_0x5fe8('0x1a')],_0x2a0473;if(_0x17e6cf>=_0x273d08){_0x17e6cf=_0x273d08;_0x2a0473=0xc8;}else{_0x2a0473=0xce;}_0x4b5cfa[_0x5fe8('0x16')](_0x2a0473);return _0x4b5cfa[_0x5fe8('0x1b')]('Content-Range',_0x2fe868+'-'+_0x17e6cf+'/'+_0x273d08)[_0x5fe8('0x17')](_0x5a4df1);}return null;};}function patchUpdates(_0x2b5665){return function(_0x4f7f2f){try{jsonpatch[_0x5fe8('0x1c')](_0x4f7f2f,_0x2b5665,!![]);}catch(_0x903ac4){return BPromise['reject'](_0x903ac4);}return _0x4f7f2f[_0x5fe8('0x1d')]();};}function saveUpdates(_0x4393f4,_0x4f9cf7){return function(_0x415617){if(_0x415617){return _0x415617[_0x5fe8('0x1e')](_0x4393f4)[_0x5fe8('0x1f')](function(_0x28c2a8){return _0x28c2a8;});}return null;};}function removeEntity(_0x2520b1,_0x29f3d0){return function(_0x31258a){if(_0x31258a){return _0x31258a[_0x5fe8('0x20')]()[_0x5fe8('0x1f')](function(){_0x2520b1[_0x5fe8('0x16')](0xcc)[_0x5fe8('0x21')]();});}};}function handleEntityNotFound(_0x4b8a48,_0x3ae93d){return function(_0x3e168d){if(!_0x3e168d){_0x4b8a48[_0x5fe8('0x15')](0x194);}return _0x3e168d;};}function handleError(_0x1c0106,_0x1df554){_0x1df554=_0x1df554||0x1f4;return function(_0x3ef396){logger[_0x5fe8('0x22')](_0x3ef396[_0x5fe8('0x23')]);if(_0x3ef396[_0x5fe8('0x24')]){delete _0x3ef396[_0x5fe8('0x24')];}_0x1c0106[_0x5fe8('0x16')](_0x1df554)[_0x5fe8('0x25')](_0x3ef396);};}exports[_0x5fe8('0x26')]=function(_0x24c0f7,_0x2ac1fd){var _0x34fe93={},_0xdec833={},_0x171402={'count':0x0,'rows':[]};var _0xff8a85=_['map'](db[_0x5fe8('0x27')][_0x5fe8('0x28')],function(_0xc044d6){return{'name':_0xc044d6[_0x5fe8('0x29')],'type':_0xc044d6[_0x5fe8('0x2a')][_0x5fe8('0x2b')]};});_0xdec833[_0x5fe8('0x2c')]=_[_0x5fe8('0x2d')](_0xff8a85,_0x5fe8('0x24'));_0xdec833[_0x5fe8('0x2e')]=_['keys'](_0x24c0f7[_0x5fe8('0x2e')]);_0xdec833[_0x5fe8('0x2f')]=_['intersection'](_0xdec833['model'],_0xdec833[_0x5fe8('0x2e')]);_0x34fe93[_0x5fe8('0x30')]=_[_0x5fe8('0x31')](_0xdec833[_0x5fe8('0x2c')],qs[_0x5fe8('0x32')](_0x24c0f7[_0x5fe8('0x2e')][_0x5fe8('0x32')]));_0x34fe93[_0x5fe8('0x30')]=_0x34fe93[_0x5fe8('0x30')][_0x5fe8('0x33')]?_0x34fe93[_0x5fe8('0x30')]:_0xdec833[_0x5fe8('0x2c')];if(!_0x24c0f7[_0x5fe8('0x2e')][_0x5fe8('0x34')](_0x5fe8('0x35'))){_0x34fe93['limit']=qs['limit'](_0x24c0f7[_0x5fe8('0x2e')][_0x5fe8('0x1a')]);_0x34fe93['offset']=qs[_0x5fe8('0x19')](_0x24c0f7[_0x5fe8('0x2e')][_0x5fe8('0x19')]);}_0x34fe93['order']=qs['sort'](_0x24c0f7['query'][_0x5fe8('0x36')]);_0x34fe93[_0x5fe8('0x37')]=qs[_0x5fe8('0x2f')](_[_0x5fe8('0x38')](_0x24c0f7['query'],_0xdec833['filters']),_0xff8a85);if(_0x24c0f7['query'][_0x5fe8('0x39')]){_0x34fe93['where']=_[_0x5fe8('0x3a')](_0x34fe93[_0x5fe8('0x37')],{'$or':_[_0x5fe8('0x2d')](_0xff8a85,function(_0x236bcc){if(_0x236bcc[_0x5fe8('0x2a')]!==_0x5fe8('0x3b')){var _0x19234c={};_0x19234c[_0x236bcc['name']]={'$like':'%'+_0x24c0f7['query'][_0x5fe8('0x39')]+'%'};return _0x19234c;}})});}_0x34fe93=_[_0x5fe8('0x3a')]({},_0x34fe93,_0x24c0f7[_0x5fe8('0x3c')]);var _0x1e4f5d={'where':_0x34fe93[_0x5fe8('0x37')]};return db[_0x5fe8('0x27')][_0x5fe8('0x18')](_0x1e4f5d)[_0x5fe8('0x1f')](function(_0x5b879e){_0x171402[_0x5fe8('0x18')]=_0x5b879e;if(_0x24c0f7['query'][_0x5fe8('0x3d')]){_0x34fe93[_0x5fe8('0x3e')]=[{'all':!![]}];}return db['SmsApplication']['findAll'](_0x34fe93);})[_0x5fe8('0x1f')](function(_0x56a729){_0x171402[_0x5fe8('0x3f')]=_0x56a729;return _0x171402;})['then'](respondWithFilteredResult(_0x2ac1fd,_0x34fe93))[_0x5fe8('0x40')](handleError(_0x2ac1fd,null));};exports[_0x5fe8('0x41')]=function(_0xf03194,_0x19b929){var _0x49861a={'raw':!![],'where':{'id':_0xf03194[_0x5fe8('0x42')]['id']}},_0x33ac0a={};_0x33ac0a['model']=_['keys'](db[_0x5fe8('0x27')][_0x5fe8('0x28')]);_0x33ac0a[_0x5fe8('0x2e')]=_[_0x5fe8('0x43')](_0xf03194[_0x5fe8('0x2e')]);_0x33ac0a[_0x5fe8('0x2f')]=_['intersection'](_0x33ac0a[_0x5fe8('0x2c')],_0x33ac0a['query']);_0x49861a[_0x5fe8('0x30')]=_[_0x5fe8('0x31')](_0x33ac0a[_0x5fe8('0x2c')],qs[_0x5fe8('0x32')](_0xf03194[_0x5fe8('0x2e')][_0x5fe8('0x32')]));_0x49861a[_0x5fe8('0x30')]=_0x49861a['attributes'][_0x5fe8('0x33')]?_0x49861a[_0x5fe8('0x30')]:_0x33ac0a['model'];if(_0xf03194[_0x5fe8('0x2e')][_0x5fe8('0x3d')]){_0x49861a[_0x5fe8('0x3e')]=[{'all':!![]}];}_0x49861a=_[_0x5fe8('0x3a')]({},_0x49861a,_0xf03194[_0x5fe8('0x3c')]);return db[_0x5fe8('0x27')][_0x5fe8('0x44')](_0x49861a)[_0x5fe8('0x1f')](handleEntityNotFound(_0x19b929,null))[_0x5fe8('0x1f')](respondWithResult(_0x19b929,null))['catch'](handleError(_0x19b929,null));};exports[_0x5fe8('0x45')]=function(_0x1dc710,_0x15a74f){return db[_0x5fe8('0x27')]['create'](_0x1dc710[_0x5fe8('0x46')],{})[_0x5fe8('0x1f')](respondWithResult(_0x15a74f,0xc9))[_0x5fe8('0x40')](handleError(_0x15a74f,null));};exports[_0x5fe8('0x1e')]=function(_0x56d75b,_0x5b6307){if(_0x56d75b[_0x5fe8('0x46')]['id']){delete _0x56d75b['body']['id'];}return db[_0x5fe8('0x27')][_0x5fe8('0x44')]({'where':{'id':_0x56d75b[_0x5fe8('0x42')]['id']}})[_0x5fe8('0x1f')](handleEntityNotFound(_0x5b6307,null))[_0x5fe8('0x1f')](saveUpdates(_0x56d75b['body'],null))[_0x5fe8('0x1f')](respondWithResult(_0x5b6307,null))[_0x5fe8('0x40')](handleError(_0x5b6307,null));};exports[_0x5fe8('0x20')]=function(_0x224059,_0x229549){return db[_0x5fe8('0x27')][_0x5fe8('0x44')]({'where':{'id':_0x224059[_0x5fe8('0x42')]['id']}})[_0x5fe8('0x1f')](handleEntityNotFound(_0x229549,null))[_0x5fe8('0x1f')](removeEntity(_0x229549,null))[_0x5fe8('0x40')](handleError(_0x229549,null));};
\ No newline at end of file