Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / smsApplication / smsApplication.controller.js
index f045232..be17858 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6d11=['undefined','count','set','apply','reject','save','update','then','destroy','error','stack','name','send','map','SmsApplication','rawAttributes','fieldName','type','key','query','keys','filters','intersection','model','attributes','fields','limit','order','sort','where','pick','filter','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','length','merge','create','body','find','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','ejs','fs-extra','lodash','squel','crypto','to-csv','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','offset'];(function(_0x251493,_0xb57a0e){var _0x15cc43=function(_0x1c4211){while(--_0x1c4211){_0x251493['push'](_0x251493['shift']());}};_0x15cc43(++_0xb57a0e);}(_0x6d11,0xc4));var _0x16d1=function(_0xab7710,_0x1bf517){_0xab7710=_0xab7710-0x0;var _0x238bad=_0x6d11[_0xab7710];return _0x238bad;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x16d1('0x0'));var zipdir=require(_0x16d1('0x1'));var jsonpatch=require(_0x16d1('0x2'));var rp=require(_0x16d1('0x3'));var moment=require(_0x16d1('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x16d1('0x5'));var util=require(_0x16d1('0x6'));var path=require(_0x16d1('0x7'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x16d1('0x8'));var fs=require('fs');var fs_extra=require(_0x16d1('0x9'));var _=require(_0x16d1('0xa'));var squel=require(_0x16d1('0xb'));var crypto=require(_0x16d1('0xc'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0x16d1('0xd'));var querystring=require(_0x16d1('0xe'));var Papa=require(_0x16d1('0xf'));var Redis=require('ioredis');var authService=require(_0x16d1('0x10'));var qs=require(_0x16d1('0x11'));var as=require(_0x16d1('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x16d1('0x13'))(_0x16d1('0x14'));var utils=require(_0x16d1('0x15'));var config=require(_0x16d1('0x16'));var licenseUtil=require(_0x16d1('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1c3a7a,_0x563913){_0x563913=_0x563913||0xcc;return function(_0x575a18){if(_0x575a18){return _0x1c3a7a[_0x16d1('0x18')](_0x563913);}return _0x1c3a7a[_0x16d1('0x19')](_0x563913)[_0x16d1('0x1a')]();};}function respondWithResult(_0x9bb3b2,_0x257ad8){_0x257ad8=_0x257ad8||0xc8;return function(_0x9742f0){if(_0x9742f0){return _0x9bb3b2['status'](_0x257ad8)[_0x16d1('0x1b')](_0x9742f0);}};}function respondWithFilteredResult(_0x52d93e,_0x4d8c24){return function(_0x3c0c0a){if(_0x3c0c0a){var _0x36ab92=typeof _0x4d8c24[_0x16d1('0x1c')]===_0x16d1('0x1d')&&typeof _0x4d8c24['limit']==='undefined';var _0x37faca=_0x3c0c0a[_0x16d1('0x1e')];var _0x1e2859=_0x36ab92?0x0:_0x4d8c24[_0x16d1('0x1c')];var _0xedff4b=_0x36ab92?_0x3c0c0a['count']:_0x4d8c24['offset']+_0x4d8c24['limit'];var _0x495508;if(_0xedff4b>=_0x37faca){_0xedff4b=_0x37faca;_0x495508=0xc8;}else{_0x495508=0xce;}_0x52d93e[_0x16d1('0x19')](_0x495508);return _0x52d93e[_0x16d1('0x1f')]('Content-Range',_0x1e2859+'-'+_0xedff4b+'/'+_0x37faca)['json'](_0x3c0c0a);}return null;};}function patchUpdates(_0x38172f){return function(_0x6eefad){try{jsonpatch[_0x16d1('0x20')](_0x6eefad,_0x38172f,!![]);}catch(_0x304ee3){return BPromise[_0x16d1('0x21')](_0x304ee3);}return _0x6eefad[_0x16d1('0x22')]();};}function saveUpdates(_0x328ad1,_0x54d3c6){return function(_0x32ca4a){if(_0x32ca4a){return _0x32ca4a[_0x16d1('0x23')](_0x328ad1)[_0x16d1('0x24')](function(_0x3a461e){return _0x3a461e;});}return null;};}function removeEntity(_0x5d4709,_0x191e97){return function(_0x1e7b48){if(_0x1e7b48){return _0x1e7b48[_0x16d1('0x25')]()[_0x16d1('0x24')](function(){_0x5d4709['status'](0xcc)[_0x16d1('0x1a')]();});}};}function handleEntityNotFound(_0x48c317,_0x1f3ec7){return function(_0x26cddb){if(!_0x26cddb){_0x48c317[_0x16d1('0x18')](0x194);}return _0x26cddb;};}function handleError(_0x46ac1c,_0x2bf24f){_0x2bf24f=_0x2bf24f||0x1f4;return function(_0x56543d){logger[_0x16d1('0x26')](_0x56543d[_0x16d1('0x27')]);if(_0x56543d['name']){delete _0x56543d[_0x16d1('0x28')];}_0x46ac1c[_0x16d1('0x19')](_0x2bf24f)[_0x16d1('0x29')](_0x56543d);};}exports['index']=function(_0x261c9d,_0x288e0f){var _0x2b1619={},_0x44db71={},_0xc4757e={'count':0x0,'rows':[]};var _0x17bc92=_[_0x16d1('0x2a')](db[_0x16d1('0x2b')][_0x16d1('0x2c')],function(_0x49771f){return{'name':_0x49771f[_0x16d1('0x2d')],'type':_0x49771f[_0x16d1('0x2e')][_0x16d1('0x2f')]};});_0x44db71['model']=_[_0x16d1('0x2a')](_0x17bc92,'name');_0x44db71[_0x16d1('0x30')]=_[_0x16d1('0x31')](_0x261c9d[_0x16d1('0x30')]);_0x44db71[_0x16d1('0x32')]=_[_0x16d1('0x33')](_0x44db71[_0x16d1('0x34')],_0x44db71[_0x16d1('0x30')]);_0x2b1619[_0x16d1('0x35')]=_['intersection'](_0x44db71['model'],qs[_0x16d1('0x36')](_0x261c9d[_0x16d1('0x30')][_0x16d1('0x36')]));_0x2b1619[_0x16d1('0x35')]=_0x2b1619[_0x16d1('0x35')]['length']?_0x2b1619[_0x16d1('0x35')]:_0x44db71[_0x16d1('0x34')];if(!_0x261c9d[_0x16d1('0x30')]['hasOwnProperty']('nolimit')){_0x2b1619[_0x16d1('0x37')]=qs['limit'](_0x261c9d[_0x16d1('0x30')][_0x16d1('0x37')]);_0x2b1619[_0x16d1('0x1c')]=qs[_0x16d1('0x1c')](_0x261c9d['query'][_0x16d1('0x1c')]);}_0x2b1619[_0x16d1('0x38')]=qs[_0x16d1('0x39')](_0x261c9d[_0x16d1('0x30')][_0x16d1('0x39')]);_0x2b1619[_0x16d1('0x3a')]=qs[_0x16d1('0x32')](_[_0x16d1('0x3b')](_0x261c9d[_0x16d1('0x30')],_0x44db71['filters']),_0x17bc92);if(_0x261c9d[_0x16d1('0x30')][_0x16d1('0x3c')]){_0x2b1619[_0x16d1('0x3a')]=_['merge'](_0x2b1619[_0x16d1('0x3a')],{'$or':_['map'](_0x17bc92,function(_0x151ff0){if(_0x151ff0['type']!==_0x16d1('0x3d')){var _0x20fb27={};_0x20fb27[_0x151ff0[_0x16d1('0x28')]]={'$like':'%'+_0x261c9d[_0x16d1('0x30')][_0x16d1('0x3c')]+'%'};return _0x20fb27;}})});}_0x2b1619=_['merge']({},_0x2b1619,_0x261c9d[_0x16d1('0x3e')]);var _0x33e4ec={'where':_0x2b1619[_0x16d1('0x3a')]};return db[_0x16d1('0x2b')][_0x16d1('0x1e')](_0x33e4ec)['then'](function(_0x30cdfb){_0xc4757e['count']=_0x30cdfb;if(_0x261c9d['query'][_0x16d1('0x3f')]){_0x2b1619[_0x16d1('0x40')]=[{'all':!![]}];}return db[_0x16d1('0x2b')][_0x16d1('0x41')](_0x2b1619);})[_0x16d1('0x24')](function(_0x54ff79){_0xc4757e[_0x16d1('0x42')]=_0x54ff79;return _0xc4757e;})[_0x16d1('0x24')](respondWithFilteredResult(_0x288e0f,_0x2b1619))[_0x16d1('0x43')](handleError(_0x288e0f,null));};exports[_0x16d1('0x44')]=function(_0xd24c3e,_0x1ef5f9){var _0x357bd4={'raw':!![],'where':{'id':_0xd24c3e[_0x16d1('0x45')]['id']}},_0x5584d1={};_0x5584d1['model']=_[_0x16d1('0x31')](db['SmsApplication'][_0x16d1('0x2c')]);_0x5584d1[_0x16d1('0x30')]=_[_0x16d1('0x31')](_0xd24c3e[_0x16d1('0x30')]);_0x5584d1[_0x16d1('0x32')]=_[_0x16d1('0x33')](_0x5584d1[_0x16d1('0x34')],_0x5584d1['query']);_0x357bd4[_0x16d1('0x35')]=_[_0x16d1('0x33')](_0x5584d1[_0x16d1('0x34')],qs['fields'](_0xd24c3e['query'][_0x16d1('0x36')]));_0x357bd4[_0x16d1('0x35')]=_0x357bd4[_0x16d1('0x35')][_0x16d1('0x46')]?_0x357bd4[_0x16d1('0x35')]:_0x5584d1[_0x16d1('0x34')];if(_0xd24c3e[_0x16d1('0x30')][_0x16d1('0x3f')]){_0x357bd4[_0x16d1('0x40')]=[{'all':!![]}];}_0x357bd4=_[_0x16d1('0x47')]({},_0x357bd4,_0xd24c3e[_0x16d1('0x3e')]);return db[_0x16d1('0x2b')]['find'](_0x357bd4)[_0x16d1('0x24')](handleEntityNotFound(_0x1ef5f9,null))[_0x16d1('0x24')](respondWithResult(_0x1ef5f9,null))[_0x16d1('0x43')](handleError(_0x1ef5f9,null));};exports[_0x16d1('0x48')]=function(_0xfc6a16,_0x52ec19){return db[_0x16d1('0x2b')][_0x16d1('0x48')](_0xfc6a16[_0x16d1('0x49')],{})[_0x16d1('0x24')](respondWithResult(_0x52ec19,0xc9))['catch'](handleError(_0x52ec19,null));};exports[_0x16d1('0x23')]=function(_0x778622,_0x1676bf){if(_0x778622[_0x16d1('0x49')]['id']){delete _0x778622['body']['id'];}return db[_0x16d1('0x2b')][_0x16d1('0x4a')]({'where':{'id':_0x778622[_0x16d1('0x45')]['id']}})[_0x16d1('0x24')](handleEntityNotFound(_0x1676bf,null))[_0x16d1('0x24')](saveUpdates(_0x778622[_0x16d1('0x49')],null))['then'](respondWithResult(_0x1676bf,null))[_0x16d1('0x43')](handleError(_0x1676bf,null));};exports[_0x16d1('0x25')]=function(_0x3235c1,_0x40315d){return db[_0x16d1('0x2b')][_0x16d1('0x4a')]({'where':{'id':_0x3235c1[_0x16d1('0x45')]['id']}})['then'](handleEntityNotFound(_0x40315d,null))['then'](removeEntity(_0x40315d,null))[_0x16d1('0x43')](handleError(_0x40315d,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