Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / smsApplication / smsApplication.controller.js
index afbdb10..be17858 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb03e=['status','end','json','count','offset','limit','set','Content-Range','apply','reject','update','then','error','stack','name','index','SmsApplication','rawAttributes','type','query','keys','attributes','intersection','model','fields','length','hasOwnProperty','nolimit','order','sort','filters','filter','where','map','merge','options','includeAll','include','findAll','rows','catch','show','params','find','create','body','destroy','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','lodash','squel','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus'];(function(_0x22849a,_0x13c397){var _0x5eab95=function(_0x888baa){while(--_0x888baa){_0x22849a['push'](_0x22849a['shift']());}};_0x5eab95(++_0x13c397);}(_0xb03e,0x1eb));var _0xeb03=function(_0x9ac359,_0x571aa6){_0x9ac359=_0x9ac359-0x0;var _0x25c704=_0xb03e[_0x9ac359];return _0x25c704;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xeb03('0x0'));var rimraf=require(_0xeb03('0x1'));var zipdir=require(_0xeb03('0x2'));var jsonpatch=require(_0xeb03('0x3'));var rp=require(_0xeb03('0x4'));var moment=require(_0xeb03('0x5'));var BPromise=require(_0xeb03('0x6'));var Mustache=require(_0xeb03('0x7'));var util=require(_0xeb03('0x8'));var path=require(_0xeb03('0x9'));var sox=require(_0xeb03('0xa'));var csv=require(_0xeb03('0xb'));var ejs=require('ejs');var fs=require('fs');var _=require(_0xeb03('0xc'));var squel=require(_0xeb03('0xd'));var crypto=require(_0xeb03('0xe'));var jsforce=require(_0xeb03('0xf'));var deskjs=require(_0xeb03('0x10'));var toCsv=require(_0xeb03('0xb'));var querystring=require('querystring');var Papa=require(_0xeb03('0x11'));var Redis=require(_0xeb03('0x12'));var authService=require(_0xeb03('0x13'));var qs=require('../../components/parsers/qs');var as=require(_0xeb03('0x14'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xeb03('0x15'))(_0xeb03('0x16'));var utils=require(_0xeb03('0x17'));var config=require(_0xeb03('0x18'));var db=require(_0xeb03('0x19'))['db'];function respondWithStatusCode(_0x45481b,_0x367d36){_0x367d36=_0x367d36||0xcc;return function(_0x384cbe){if(_0x384cbe){return _0x45481b[_0xeb03('0x1a')](_0x367d36);}return _0x45481b[_0xeb03('0x1b')](_0x367d36)[_0xeb03('0x1c')]();};}function respondWithResult(_0x3bebc6,_0x4d9c8e){_0x4d9c8e=_0x4d9c8e||0xc8;return function(_0x212082){if(_0x212082){return _0x3bebc6[_0xeb03('0x1b')](_0x4d9c8e)[_0xeb03('0x1d')](_0x212082);}};}function respondWithFilteredResult(_0x33f9ba,_0x52be5b){return function(_0x15f4fe){if(_0x15f4fe){var _0x36f5d8=_0x15f4fe[_0xeb03('0x1e')],_0x3f26ef=_0x52be5b[_0xeb03('0x1f')],_0x478989=_0x52be5b[_0xeb03('0x1f')]+_0x52be5b[_0xeb03('0x20')],_0x7ce874;if(_0x478989>=_0x36f5d8){_0x478989=_0x36f5d8;_0x7ce874=0xc8;}else{_0x7ce874=0xce;}_0x33f9ba[_0xeb03('0x1b')](_0x7ce874);return _0x33f9ba[_0xeb03('0x21')](_0xeb03('0x22'),_0x3f26ef+'-'+_0x478989+'/'+_0x36f5d8)[_0xeb03('0x1d')](_0x15f4fe);}return null;};}function patchUpdates(_0x469d25){return function(_0x456fb3){try{jsonpatch[_0xeb03('0x23')](_0x456fb3,_0x469d25,!![]);}catch(_0x2443d9){return BPromise[_0xeb03('0x24')](_0x2443d9);}return _0x456fb3['save']();};}function saveUpdates(_0x1bea3f,_0x3855dd){return function(_0x413d3e){if(_0x413d3e){return _0x413d3e[_0xeb03('0x25')](_0x1bea3f)[_0xeb03('0x26')](function(_0x31e406){return _0x31e406;});}return null;};}function removeEntity(_0xb98dc1,_0x2c795b){return function(_0x3c3d09){if(_0x3c3d09){return _0x3c3d09['destroy']()[_0xeb03('0x26')](function(){_0xb98dc1[_0xeb03('0x1b')](0xcc)[_0xeb03('0x1c')]();});}};}function handleEntityNotFound(_0x300dc0,_0x2f99e6){return function(_0x5dcda3){if(!_0x5dcda3){_0x300dc0[_0xeb03('0x1a')](0x194);}return _0x5dcda3;};}function handleError(_0x406864,_0x16cd4){_0x16cd4=_0x16cd4||0x1f4;return function(_0x20efa8){logger[_0xeb03('0x27')](_0x20efa8[_0xeb03('0x28')]);if(_0x20efa8[_0xeb03('0x29')]){delete _0x20efa8[_0xeb03('0x29')];}_0x406864[_0xeb03('0x1b')](_0x16cd4)['send'](_0x20efa8);};}exports[_0xeb03('0x2a')]=function(_0x1b2c7b,_0x2683f9){var _0x1ada2e={},_0x4cdea6={},_0x581685={'count':0x0,'rows':[]};var _0x1064a5=_['map'](db[_0xeb03('0x2b')][_0xeb03('0x2c')],function(_0x160a37){return{'name':_0x160a37['fieldName'],'type':_0x160a37[_0xeb03('0x2d')]['key']};});_0x4cdea6['model']=_['map'](_0x1064a5,'name');_0x4cdea6[_0xeb03('0x2e')]=_[_0xeb03('0x2f')](_0x1b2c7b['query']);_0x4cdea6['filters']=_['intersection'](_0x4cdea6['model'],_0x4cdea6[_0xeb03('0x2e')]);_0x1ada2e[_0xeb03('0x30')]=_[_0xeb03('0x31')](_0x4cdea6[_0xeb03('0x32')],qs[_0xeb03('0x33')](_0x1b2c7b['query'][_0xeb03('0x33')]));_0x1ada2e['attributes']=_0x1ada2e[_0xeb03('0x30')][_0xeb03('0x34')]?_0x1ada2e[_0xeb03('0x30')]:_0x4cdea6[_0xeb03('0x32')];if(!_0x1b2c7b[_0xeb03('0x2e')][_0xeb03('0x35')](_0xeb03('0x36'))){_0x1ada2e[_0xeb03('0x20')]=qs['limit'](_0x1b2c7b[_0xeb03('0x2e')]['limit']);_0x1ada2e[_0xeb03('0x1f')]=qs[_0xeb03('0x1f')](_0x1b2c7b[_0xeb03('0x2e')][_0xeb03('0x1f')]);}_0x1ada2e[_0xeb03('0x37')]=qs[_0xeb03('0x38')](_0x1b2c7b['query'][_0xeb03('0x38')]);_0x1ada2e['where']=qs['filters'](_['pick'](_0x1b2c7b[_0xeb03('0x2e')],_0x4cdea6[_0xeb03('0x39')]),_0x1064a5);if(_0x1b2c7b[_0xeb03('0x2e')][_0xeb03('0x3a')]){_0x1ada2e[_0xeb03('0x3b')]=_['merge'](_0x1ada2e[_0xeb03('0x3b')],{'$or':_[_0xeb03('0x3c')](_0x1064a5,function(_0x1d3ca1){if(_0x1d3ca1['type']!=='VIRTUAL'){var _0xac05c4={};_0xac05c4[_0x1d3ca1[_0xeb03('0x29')]]={'$like':'%'+_0x1b2c7b[_0xeb03('0x2e')]['filter']+'%'};return _0xac05c4;}})});}_0x1ada2e=_[_0xeb03('0x3d')]({},_0x1ada2e,_0x1b2c7b[_0xeb03('0x3e')]);var _0x57b2ab={'where':_0x1ada2e['where']};return db[_0xeb03('0x2b')][_0xeb03('0x1e')](_0x57b2ab)['then'](function(_0x39ebe8){_0x581685[_0xeb03('0x1e')]=_0x39ebe8;if(_0x1b2c7b[_0xeb03('0x2e')][_0xeb03('0x3f')]){_0x1ada2e[_0xeb03('0x40')]=[{'all':!![]}];}return db[_0xeb03('0x2b')][_0xeb03('0x41')](_0x1ada2e);})[_0xeb03('0x26')](function(_0x20ebe8){_0x581685[_0xeb03('0x42')]=_0x20ebe8;return _0x581685;})[_0xeb03('0x26')](respondWithFilteredResult(_0x2683f9,_0x1ada2e))[_0xeb03('0x43')](handleError(_0x2683f9,null));};exports[_0xeb03('0x44')]=function(_0x33414d,_0x28b831){var _0x6b95dd={'raw':!![],'where':{'id':_0x33414d[_0xeb03('0x45')]['id']}},_0x407f0b={};_0x407f0b[_0xeb03('0x32')]=_[_0xeb03('0x2f')](db[_0xeb03('0x2b')][_0xeb03('0x2c')]);_0x407f0b[_0xeb03('0x2e')]=_['keys'](_0x33414d['query']);_0x407f0b[_0xeb03('0x39')]=_[_0xeb03('0x31')](_0x407f0b[_0xeb03('0x32')],_0x407f0b[_0xeb03('0x2e')]);_0x6b95dd[_0xeb03('0x30')]=_[_0xeb03('0x31')](_0x407f0b[_0xeb03('0x32')],qs[_0xeb03('0x33')](_0x33414d['query'][_0xeb03('0x33')]));_0x6b95dd[_0xeb03('0x30')]=_0x6b95dd[_0xeb03('0x30')][_0xeb03('0x34')]?_0x6b95dd[_0xeb03('0x30')]:_0x407f0b['model'];if(_0x33414d['query'][_0xeb03('0x3f')]){_0x6b95dd['include']=[{'all':!![]}];}_0x6b95dd=_['merge']({},_0x6b95dd,_0x33414d['options']);return db[_0xeb03('0x2b')][_0xeb03('0x46')](_0x6b95dd)[_0xeb03('0x26')](handleEntityNotFound(_0x28b831,null))[_0xeb03('0x26')](respondWithResult(_0x28b831,null))[_0xeb03('0x43')](handleError(_0x28b831,null));};exports[_0xeb03('0x47')]=function(_0x481271,_0x35279d){return db['SmsApplication']['create'](_0x481271[_0xeb03('0x48')],{})[_0xeb03('0x26')](respondWithResult(_0x35279d,0xc9))[_0xeb03('0x43')](handleError(_0x35279d,null));};exports['update']=function(_0x404191,_0x9c8073){if(_0x404191[_0xeb03('0x48')]['id']){delete _0x404191[_0xeb03('0x48')]['id'];}return db[_0xeb03('0x2b')]['find']({'where':{'id':_0x404191[_0xeb03('0x45')]['id']}})['then'](handleEntityNotFound(_0x9c8073,null))[_0xeb03('0x26')](saveUpdates(_0x404191[_0xeb03('0x48')],null))[_0xeb03('0x26')](respondWithResult(_0x9c8073,null))[_0xeb03('0x43')](handleError(_0x9c8073,null));};exports[_0xeb03('0x49')]=function(_0x46f4a7,_0x42e73f){return db[_0xeb03('0x2b')][_0xeb03('0x46')]({'where':{'id':_0x46f4a7[_0xeb03('0x45')]['id']}})[_0xeb03('0x26')](handleEntityNotFound(_0x42e73f,null))[_0xeb03('0x26')](removeEntity(_0x42e73f,null))[_0xeb03('0x43')](handleError(_0x42e73f,null));};
\ No newline at end of file
+var _0xc4cb=['params','find','create','body','rimraf','fast-json-patch','request-promise','moment','bluebird','util','sox','fs-extra','squel','crypto','desk.js','to-csv','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','status','end','json','undefined','count','offset','limit','set','Content-Range','apply','reject','save','update','destroy','sendStatus','error','stack','name','send','index','map','SmsApplication','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','hasOwnProperty','order','sort','pick','filter','where','merge','options','then','includeAll','include','findAll','rows','catch','show'];(function(_0x1caf6a,_0x26a5bf){var _0x1bf493=function(_0x3982f5){while(--_0x3982f5){_0x1caf6a['push'](_0x1caf6a['shift']());}};_0x1bf493(++_0x26a5bf);}(_0xc4cb,0x1ba));var _0xbc4c=function(_0x1da173,_0x26fd7c){_0x1da173=_0x1da173-0x0;var _0x1e448b=_0xc4cb[_0x1da173];return _0x1e448b;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xbc4c('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0xbc4c('0x1'));var rp=require(_0xbc4c('0x2'));var moment=require(_0xbc4c('0x3'));var BPromise=require(_0xbc4c('0x4'));var Mustache=require('mustache');var util=require(_0xbc4c('0x5'));var path=require('path');var sox=require(_0xbc4c('0x6'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xbc4c('0x7'));var _=require('lodash');var squel=require(_0xbc4c('0x8'));var crypto=require(_0xbc4c('0x9'));var jsforce=require('jsforce');var deskjs=require(_0xbc4c('0xa'));var toCsv=require(_0xbc4c('0xb'));var querystring=require(_0xbc4c('0xc'));var Papa=require(_0xbc4c('0xd'));var Redis=require('ioredis');var authService=require(_0xbc4c('0xe'));var qs=require(_0xbc4c('0xf'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0xbc4c('0x10'))(_0xbc4c('0x11'));var utils=require(_0xbc4c('0x12'));var config=require(_0xbc4c('0x13'));var licenseUtil=require(_0xbc4c('0x14'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x25da18,_0x2770a0){_0x2770a0=_0x2770a0||0xcc;return function(_0x16a63a){if(_0x16a63a){return _0x25da18['sendStatus'](_0x2770a0);}return _0x25da18[_0xbc4c('0x15')](_0x2770a0)[_0xbc4c('0x16')]();};}function respondWithResult(_0x4e1b3a,_0x16f0df){_0x16f0df=_0x16f0df||0xc8;return function(_0x11e86f){if(_0x11e86f){return _0x4e1b3a[_0xbc4c('0x15')](_0x16f0df)[_0xbc4c('0x17')](_0x11e86f);}};}function respondWithFilteredResult(_0x588f7d,_0x155b80){return function(_0x5b7318){if(_0x5b7318){var _0x240da7=typeof _0x155b80['offset']===_0xbc4c('0x18')&&typeof _0x155b80['limit']===_0xbc4c('0x18');var _0x7b2af2=_0x5b7318[_0xbc4c('0x19')];var _0x5b8ad1=_0x240da7?0x0:_0x155b80[_0xbc4c('0x1a')];var _0x504186=_0x240da7?_0x5b7318[_0xbc4c('0x19')]:_0x155b80[_0xbc4c('0x1a')]+_0x155b80[_0xbc4c('0x1b')];var _0x149470;if(_0x504186>=_0x7b2af2){_0x504186=_0x7b2af2;_0x149470=0xc8;}else{_0x149470=0xce;}_0x588f7d[_0xbc4c('0x15')](_0x149470);return _0x588f7d[_0xbc4c('0x1c')](_0xbc4c('0x1d'),_0x5b8ad1+'-'+_0x504186+'/'+_0x7b2af2)['json'](_0x5b7318);}return null;};}function patchUpdates(_0x2c3265){return function(_0x59bef1){try{jsonpatch[_0xbc4c('0x1e')](_0x59bef1,_0x2c3265,!![]);}catch(_0x5775f6){return BPromise[_0xbc4c('0x1f')](_0x5775f6);}return _0x59bef1[_0xbc4c('0x20')]();};}function saveUpdates(_0x2fb61c,_0x1dc06e){return function(_0x47cc16){if(_0x47cc16){return _0x47cc16[_0xbc4c('0x21')](_0x2fb61c)['then'](function(_0x155318){return _0x155318;});}return null;};}function removeEntity(_0x386c48,_0x3793b7){return function(_0x24925b){if(_0x24925b){return _0x24925b[_0xbc4c('0x22')]()['then'](function(){_0x386c48[_0xbc4c('0x15')](0xcc)[_0xbc4c('0x16')]();});}};}function handleEntityNotFound(_0x325160,_0x56d060){return function(_0x3fa686){if(!_0x3fa686){_0x325160[_0xbc4c('0x23')](0x194);}return _0x3fa686;};}function handleError(_0x159efb,_0x27dac2){_0x27dac2=_0x27dac2||0x1f4;return function(_0x383971){logger[_0xbc4c('0x24')](_0x383971[_0xbc4c('0x25')]);if(_0x383971[_0xbc4c('0x26')]){delete _0x383971[_0xbc4c('0x26')];}_0x159efb[_0xbc4c('0x15')](_0x27dac2)[_0xbc4c('0x27')](_0x383971);};}exports[_0xbc4c('0x28')]=function(_0x447a49,_0x261ded){var _0x10b67b={},_0x3c014d={},_0x3ea17a={'count':0x0,'rows':[]};var _0x472a12=_[_0xbc4c('0x29')](db[_0xbc4c('0x2a')][_0xbc4c('0x2b')],function(_0x376fe0){return{'name':_0x376fe0[_0xbc4c('0x2c')],'type':_0x376fe0[_0xbc4c('0x2d')][_0xbc4c('0x2e')]};});_0x3c014d[_0xbc4c('0x2f')]=_[_0xbc4c('0x29')](_0x472a12,'name');_0x3c014d[_0xbc4c('0x30')]=_[_0xbc4c('0x31')](_0x447a49[_0xbc4c('0x30')]);_0x3c014d[_0xbc4c('0x32')]=_[_0xbc4c('0x33')](_0x3c014d[_0xbc4c('0x2f')],_0x3c014d[_0xbc4c('0x30')]);_0x10b67b['attributes']=_[_0xbc4c('0x33')](_0x3c014d['model'],qs['fields'](_0x447a49[_0xbc4c('0x30')][_0xbc4c('0x34')]));_0x10b67b[_0xbc4c('0x35')]=_0x10b67b[_0xbc4c('0x35')]['length']?_0x10b67b['attributes']:_0x3c014d[_0xbc4c('0x2f')];if(!_0x447a49['query'][_0xbc4c('0x36')]('nolimit')){_0x10b67b[_0xbc4c('0x1b')]=qs['limit'](_0x447a49[_0xbc4c('0x30')]['limit']);_0x10b67b['offset']=qs[_0xbc4c('0x1a')](_0x447a49[_0xbc4c('0x30')][_0xbc4c('0x1a')]);}_0x10b67b[_0xbc4c('0x37')]=qs[_0xbc4c('0x38')](_0x447a49[_0xbc4c('0x30')][_0xbc4c('0x38')]);_0x10b67b['where']=qs['filters'](_[_0xbc4c('0x39')](_0x447a49[_0xbc4c('0x30')],_0x3c014d[_0xbc4c('0x32')]),_0x472a12);if(_0x447a49['query'][_0xbc4c('0x3a')]){_0x10b67b[_0xbc4c('0x3b')]=_['merge'](_0x10b67b[_0xbc4c('0x3b')],{'$or':_[_0xbc4c('0x29')](_0x472a12,function(_0x4f47d4){if(_0x4f47d4[_0xbc4c('0x2d')]!=='VIRTUAL'){var _0x264338={};_0x264338[_0x4f47d4[_0xbc4c('0x26')]]={'$like':'%'+_0x447a49[_0xbc4c('0x30')][_0xbc4c('0x3a')]+'%'};return _0x264338;}})});}_0x10b67b=_[_0xbc4c('0x3c')]({},_0x10b67b,_0x447a49[_0xbc4c('0x3d')]);var _0x4cfc01={'where':_0x10b67b['where']};return db[_0xbc4c('0x2a')][_0xbc4c('0x19')](_0x4cfc01)[_0xbc4c('0x3e')](function(_0x3c8c75){_0x3ea17a['count']=_0x3c8c75;if(_0x447a49[_0xbc4c('0x30')][_0xbc4c('0x3f')]){_0x10b67b[_0xbc4c('0x40')]=[{'all':!![]}];}return db['SmsApplication'][_0xbc4c('0x41')](_0x10b67b);})[_0xbc4c('0x3e')](function(_0x3eb2ec){_0x3ea17a[_0xbc4c('0x42')]=_0x3eb2ec;return _0x3ea17a;})['then'](respondWithFilteredResult(_0x261ded,_0x10b67b))[_0xbc4c('0x43')](handleError(_0x261ded,null));};exports[_0xbc4c('0x44')]=function(_0x374920,_0x3bde34){var _0x4dfbcd={'raw':!![],'where':{'id':_0x374920[_0xbc4c('0x45')]['id']}},_0x14a5c2={};_0x14a5c2[_0xbc4c('0x2f')]=_[_0xbc4c('0x31')](db[_0xbc4c('0x2a')]['rawAttributes']);_0x14a5c2['query']=_['keys'](_0x374920[_0xbc4c('0x30')]);_0x14a5c2['filters']=_[_0xbc4c('0x33')](_0x14a5c2[_0xbc4c('0x2f')],_0x14a5c2[_0xbc4c('0x30')]);_0x4dfbcd[_0xbc4c('0x35')]=_[_0xbc4c('0x33')](_0x14a5c2[_0xbc4c('0x2f')],qs[_0xbc4c('0x34')](_0x374920[_0xbc4c('0x30')][_0xbc4c('0x34')]));_0x4dfbcd['attributes']=_0x4dfbcd[_0xbc4c('0x35')]['length']?_0x4dfbcd['attributes']:_0x14a5c2['model'];if(_0x374920[_0xbc4c('0x30')][_0xbc4c('0x3f')]){_0x4dfbcd[_0xbc4c('0x40')]=[{'all':!![]}];}_0x4dfbcd=_[_0xbc4c('0x3c')]({},_0x4dfbcd,_0x374920[_0xbc4c('0x3d')]);return db[_0xbc4c('0x2a')][_0xbc4c('0x46')](_0x4dfbcd)[_0xbc4c('0x3e')](handleEntityNotFound(_0x3bde34,null))[_0xbc4c('0x3e')](respondWithResult(_0x3bde34,null))[_0xbc4c('0x43')](handleError(_0x3bde34,null));};exports[_0xbc4c('0x47')]=function(_0x5ea714,_0x1681fb){return db[_0xbc4c('0x2a')][_0xbc4c('0x47')](_0x5ea714[_0xbc4c('0x48')],{})[_0xbc4c('0x3e')](respondWithResult(_0x1681fb,0xc9))[_0xbc4c('0x43')](handleError(_0x1681fb,null));};exports[_0xbc4c('0x21')]=function(_0x2fca1b,_0x37f72f){if(_0x2fca1b[_0xbc4c('0x48')]['id']){delete _0x2fca1b[_0xbc4c('0x48')]['id'];}return db[_0xbc4c('0x2a')][_0xbc4c('0x46')]({'where':{'id':_0x2fca1b[_0xbc4c('0x45')]['id']}})[_0xbc4c('0x3e')](handleEntityNotFound(_0x37f72f,null))[_0xbc4c('0x3e')](saveUpdates(_0x2fca1b[_0xbc4c('0x48')],null))[_0xbc4c('0x3e')](respondWithResult(_0x37f72f,null))['catch'](handleError(_0x37f72f,null));};exports['destroy']=function(_0x442cb8,_0x3b03c9){return db[_0xbc4c('0x2a')][_0xbc4c('0x46')]({'where':{'id':_0x442cb8[_0xbc4c('0x45')]['id']}})[_0xbc4c('0x3e')](handleEntityNotFound(_0x3b03c9,null))[_0xbc4c('0x3e')](removeEntity(_0x3b03c9,null))[_0xbc4c('0x43')](handleError(_0x3b03c9,null));};
\ No newline at end of file