Built motion from commit a8c4dd89.|2.6.33
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index f8e3305..431fa85 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcc4b=['request-promise','moment','mustache','path','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','status','end','offset','undefined','limit','count','Content-Range','json','apply','reject','save','then','destroy','error','stack','name','send','index','map','SmsTransferReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','rows','find','catch','create','body','params','describe','rimraf','zip-dir','fast-json-patch'];(function(_0x3b0265,_0x54c4b6){var _0x4d6215=function(_0x431a45){while(--_0x431a45){_0x3b0265['push'](_0x3b0265['shift']());}};_0x4d6215(++_0x54c4b6);}(_0xcc4b,0x16f));var _0xbcc4=function(_0x40b723,_0x118b22){_0x40b723=_0x40b723-0x0;var _0x1981ad=_0xcc4b[_0x40b723];return _0x1981ad;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xbcc4('0x0'));var zipdir=require(_0xbcc4('0x1'));var jsonpatch=require(_0xbcc4('0x2'));var rp=require(_0xbcc4('0x3'));var moment=require(_0xbcc4('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xbcc4('0x5'));var util=require('util');var path=require(_0xbcc4('0x6'));var sox=require(_0xbcc4('0x7'));var csv=require(_0xbcc4('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xbcc4('0x9'));var _=require(_0xbcc4('0xa'));var squel=require(_0xbcc4('0xb'));var crypto=require(_0xbcc4('0xc'));var jsforce=require(_0xbcc4('0xd'));var deskjs=require('desk.js');var toCsv=require(_0xbcc4('0x8'));var querystring=require(_0xbcc4('0xe'));var Papa=require(_0xbcc4('0xf'));var Redis=require(_0xbcc4('0x10'));var authService=require(_0xbcc4('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0xbcc4('0x12'));var hardwareService=require(_0xbcc4('0x13'));var logger=require(_0xbcc4('0x14'))(_0xbcc4('0x15'));var utils=require('../../config/utils');var config=require(_0xbcc4('0x16'));var licenseUtil=require(_0xbcc4('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x39f0a9,_0x2b5722){_0x2b5722=_0x2b5722||0xcc;return function(_0x144860){if(_0x144860){return _0x39f0a9['sendStatus'](_0x2b5722);}return _0x39f0a9[_0xbcc4('0x18')](_0x2b5722)[_0xbcc4('0x19')]();};}function respondWithResult(_0x44aa5a,_0x47a785){_0x47a785=_0x47a785||0xc8;return function(_0xe3301e){if(_0xe3301e){return _0x44aa5a[_0xbcc4('0x18')](_0x47a785)['json'](_0xe3301e);}};}function respondWithFilteredResult(_0x2e282e,_0x58b938){return function(_0x1594d6){if(_0x1594d6){var _0x177826=typeof _0x58b938[_0xbcc4('0x1a')]===_0xbcc4('0x1b')&&typeof _0x58b938[_0xbcc4('0x1c')]===_0xbcc4('0x1b');var _0x5a4070=_0x1594d6[_0xbcc4('0x1d')];var _0x404bdb=_0x177826?0x0:_0x58b938['offset'];var _0x378fe6=_0x177826?_0x1594d6['count']:_0x58b938[_0xbcc4('0x1a')]+_0x58b938[_0xbcc4('0x1c')];var _0x52b771;if(_0x378fe6>=_0x5a4070){_0x378fe6=_0x5a4070;_0x52b771=0xc8;}else{_0x52b771=0xce;}_0x2e282e[_0xbcc4('0x18')](_0x52b771);return _0x2e282e['set'](_0xbcc4('0x1e'),_0x404bdb+'-'+_0x378fe6+'/'+_0x5a4070)[_0xbcc4('0x1f')](_0x1594d6);}return null;};}function patchUpdates(_0x28ae79){return function(_0x16a420){try{jsonpatch[_0xbcc4('0x20')](_0x16a420,_0x28ae79,!![]);}catch(_0x367ced){return BPromise[_0xbcc4('0x21')](_0x367ced);}return _0x16a420[_0xbcc4('0x22')]();};}function saveUpdates(_0x229e8c,_0x100f94){return function(_0x2e8f52){if(_0x2e8f52){return _0x2e8f52['update'](_0x229e8c)[_0xbcc4('0x23')](function(_0x280019){return _0x280019;});}return null;};}function removeEntity(_0x2571db,_0x36e368){return function(_0x7329b){if(_0x7329b){return _0x7329b[_0xbcc4('0x24')]()[_0xbcc4('0x23')](function(){_0x2571db[_0xbcc4('0x18')](0xcc)[_0xbcc4('0x19')]();});}};}function handleEntityNotFound(_0xcf743c,_0x4eeada){return function(_0x5d066c){if(!_0x5d066c){_0xcf743c['sendStatus'](0x194);}return _0x5d066c;};}function handleError(_0x13549c,_0x42033d){_0x42033d=_0x42033d||0x1f4;return function(_0x1bc74d){logger[_0xbcc4('0x25')](_0x1bc74d[_0xbcc4('0x26')]);if(_0x1bc74d[_0xbcc4('0x27')]){delete _0x1bc74d[_0xbcc4('0x27')];}_0x13549c[_0xbcc4('0x18')](_0x42033d)[_0xbcc4('0x28')](_0x1bc74d);};}exports[_0xbcc4('0x29')]=function(_0x479a86,_0x16d146){var _0x3e0c2f={},_0x44b029={},_0x196255={'count':0x0,'rows':[]};var _0x43edab=_[_0xbcc4('0x2a')](db[_0xbcc4('0x2b')][_0xbcc4('0x2c')],function(_0x49d311){return{'name':_0x49d311[_0xbcc4('0x2d')],'type':_0x49d311[_0xbcc4('0x2e')][_0xbcc4('0x2f')]};});_0x44b029[_0xbcc4('0x30')]=_[_0xbcc4('0x2a')](_0x43edab,_0xbcc4('0x27'));_0x44b029[_0xbcc4('0x31')]=_[_0xbcc4('0x32')](_0x479a86[_0xbcc4('0x31')]);_0x44b029[_0xbcc4('0x33')]=_[_0xbcc4('0x34')](_0x44b029[_0xbcc4('0x30')],_0x44b029['query']);_0x3e0c2f[_0xbcc4('0x35')]=_['intersection'](_0x44b029[_0xbcc4('0x30')],qs[_0xbcc4('0x36')](_0x479a86['query']['fields']));_0x3e0c2f[_0xbcc4('0x35')]=_0x3e0c2f['attributes'][_0xbcc4('0x37')]?_0x3e0c2f[_0xbcc4('0x35')]:_0x44b029[_0xbcc4('0x30')];if(!_0x479a86['query'][_0xbcc4('0x38')](_0xbcc4('0x39'))){_0x3e0c2f['limit']=qs[_0xbcc4('0x1c')](_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x1c')]);_0x3e0c2f[_0xbcc4('0x1a')]=qs[_0xbcc4('0x1a')](_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x1a')]);}_0x3e0c2f['order']=qs[_0xbcc4('0x3a')](_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x3a')]);_0x3e0c2f[_0xbcc4('0x3b')]=qs['filters'](_[_0xbcc4('0x3c')](_0x479a86['query'],_0x44b029[_0xbcc4('0x33')]),_0x43edab);if(_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x3d')]){_0x3e0c2f[_0xbcc4('0x3b')]=_[_0xbcc4('0x3e')](_0x3e0c2f[_0xbcc4('0x3b')],{'$or':_[_0xbcc4('0x2a')](_0x43edab,function(_0x35ec02){if(_0x35ec02[_0xbcc4('0x2e')]!==_0xbcc4('0x3f')){var _0x3cf501={};_0x3cf501[_0x35ec02['name']]={'$like':'%'+_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x3d')]+'%'};return _0x3cf501;}})});}_0x3e0c2f=_[_0xbcc4('0x3e')]({},_0x3e0c2f,_0x479a86[_0xbcc4('0x40')]);var _0x17f385={'where':_0x3e0c2f['where']};return db[_0xbcc4('0x2b')][_0xbcc4('0x1d')](_0x17f385)['then'](function(_0xdc60be){_0x196255[_0xbcc4('0x1d')]=_0xdc60be;if(_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x41')]){_0x3e0c2f[_0xbcc4('0x42')]=[{'all':!![]}];}return db['SmsTransferReport']['findAll'](_0x3e0c2f);})[_0xbcc4('0x23')](function(_0xe4d800){_0x196255[_0xbcc4('0x43')]=_0xe4d800;return _0x196255;})[_0xbcc4('0x23')](respondWithFilteredResult(_0x16d146,_0x3e0c2f))['catch'](handleError(_0x16d146,null));};exports['show']=function(_0x197796,_0x1244cc){var _0x2131bc={'raw':!![],'where':{'id':_0x197796['params']['id']}},_0x457cc6={};_0x457cc6[_0xbcc4('0x30')]=_[_0xbcc4('0x32')](db[_0xbcc4('0x2b')]['rawAttributes']);_0x457cc6[_0xbcc4('0x31')]=_[_0xbcc4('0x32')](_0x197796[_0xbcc4('0x31')]);_0x457cc6[_0xbcc4('0x33')]=_[_0xbcc4('0x34')](_0x457cc6[_0xbcc4('0x30')],_0x457cc6['query']);_0x2131bc[_0xbcc4('0x35')]=_[_0xbcc4('0x34')](_0x457cc6[_0xbcc4('0x30')],qs[_0xbcc4('0x36')](_0x197796[_0xbcc4('0x31')][_0xbcc4('0x36')]));_0x2131bc[_0xbcc4('0x35')]=_0x2131bc[_0xbcc4('0x35')][_0xbcc4('0x37')]?_0x2131bc[_0xbcc4('0x35')]:_0x457cc6[_0xbcc4('0x30')];if(_0x197796[_0xbcc4('0x31')][_0xbcc4('0x41')]){_0x2131bc[_0xbcc4('0x42')]=[{'all':!![]}];}_0x2131bc=_['merge']({},_0x2131bc,_0x197796[_0xbcc4('0x40')]);return db[_0xbcc4('0x2b')][_0xbcc4('0x44')](_0x2131bc)[_0xbcc4('0x23')](handleEntityNotFound(_0x1244cc,null))['then'](respondWithResult(_0x1244cc,null))[_0xbcc4('0x45')](handleError(_0x1244cc,null));};exports[_0xbcc4('0x46')]=function(_0xad5710,_0x1e1d48){return db[_0xbcc4('0x2b')]['create'](_0xad5710[_0xbcc4('0x47')],{})['then'](respondWithResult(_0x1e1d48,0xc9))[_0xbcc4('0x45')](handleError(_0x1e1d48,null));};exports['update']=function(_0x12fe03,_0x78d19d){if(_0x12fe03[_0xbcc4('0x47')]['id']){delete _0x12fe03[_0xbcc4('0x47')]['id'];}return db['SmsTransferReport'][_0xbcc4('0x44')]({'where':{'id':_0x12fe03[_0xbcc4('0x48')]['id']}})[_0xbcc4('0x23')](handleEntityNotFound(_0x78d19d,null))['then'](saveUpdates(_0x12fe03[_0xbcc4('0x47')],null))[_0xbcc4('0x23')](respondWithResult(_0x78d19d,null))[_0xbcc4('0x45')](handleError(_0x78d19d,null));};exports[_0xbcc4('0x24')]=function(_0x50119d,_0x25dc06){return db[_0xbcc4('0x2b')][_0xbcc4('0x44')]({'where':{'id':_0x50119d[_0xbcc4('0x48')]['id']}})[_0xbcc4('0x23')](handleEntityNotFound(_0x25dc06,null))['then'](removeEntity(_0x25dc06,null))[_0xbcc4('0x45')](handleError(_0x25dc06,null));};exports['describe']=function(_0x466865,_0x5b08cb){return db[_0xbcc4('0x2b')][_0xbcc4('0x49')]()['then'](respondWithResult(_0x5b08cb,null))[_0xbcc4('0x45')](handleError(_0x5b08cb,null));};
\ No newline at end of file
+var _0xe234=['../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','undefined','count','set','reject','save','update','destroy','then','error','stack','name','index','map','SmsTransferReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','sort','filter','where','merge','options','includeAll','include','findAll','catch','show','params','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','bluebird','mustache','path','sox','to-csv','ejs','lodash','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware'];(function(_0x233e92,_0x5557db){var _0x2752e5=function(_0x7ce74e){while(--_0x7ce74e){_0x233e92['push'](_0x233e92['shift']());}};_0x2752e5(++_0x5557db);}(_0xe234,0x191));var _0x4e23=function(_0x1fb74b,_0x882c58){_0x1fb74b=_0x1fb74b-0x0;var _0x4482b1=_0xe234[_0x1fb74b];return _0x4482b1;};'use strict';var emlformat=require(_0x4e23('0x0'));var rimraf=require(_0x4e23('0x1'));var zipdir=require(_0x4e23('0x2'));var jsonpatch=require(_0x4e23('0x3'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x4e23('0x4'));var Mustache=require(_0x4e23('0x5'));var util=require('util');var path=require(_0x4e23('0x6'));var sox=require(_0x4e23('0x7'));var csv=require(_0x4e23('0x8'));var ejs=require(_0x4e23('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x4e23('0xa'));var squel=require('squel');var crypto=require(_0x4e23('0xb'));var jsforce=require(_0x4e23('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x4e23('0x8'));var querystring=require(_0x4e23('0xd'));var Papa=require(_0x4e23('0xe'));var Redis=require(_0x4e23('0xf'));var authService=require(_0x4e23('0x10'));var qs=require(_0x4e23('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x4e23('0x12'));var logger=require(_0x4e23('0x13'))(_0x4e23('0x14'));var utils=require(_0x4e23('0x15'));var config=require('../../config/environment');var licenseUtil=require(_0x4e23('0x16'));var db=require(_0x4e23('0x17'))['db'];function respondWithStatusCode(_0x1c3783,_0x434b4d){_0x434b4d=_0x434b4d||0xcc;return function(_0x591aee){if(_0x591aee){return _0x1c3783[_0x4e23('0x18')](_0x434b4d);}return _0x1c3783[_0x4e23('0x19')](_0x434b4d)[_0x4e23('0x1a')]();};}function respondWithResult(_0x5c6a8f,_0x5358cb){_0x5358cb=_0x5358cb||0xc8;return function(_0x25191d){if(_0x25191d){return _0x5c6a8f['status'](_0x5358cb)[_0x4e23('0x1b')](_0x25191d);}};}function respondWithFilteredResult(_0x11e57d,_0x20a823){return function(_0x41038a){if(_0x41038a){var _0x1a4de6=typeof _0x20a823[_0x4e23('0x1c')]==='undefined'&&typeof _0x20a823[_0x4e23('0x1d')]===_0x4e23('0x1e');var _0x564bcf=_0x41038a[_0x4e23('0x1f')];var _0x203ac8=_0x1a4de6?0x0:_0x20a823[_0x4e23('0x1c')];var _0x5b3859=_0x1a4de6?_0x41038a['count']:_0x20a823[_0x4e23('0x1c')]+_0x20a823['limit'];var _0x528a28;if(_0x5b3859>=_0x564bcf){_0x5b3859=_0x564bcf;_0x528a28=0xc8;}else{_0x528a28=0xce;}_0x11e57d[_0x4e23('0x19')](_0x528a28);return _0x11e57d[_0x4e23('0x20')]('Content-Range',_0x203ac8+'-'+_0x5b3859+'/'+_0x564bcf)[_0x4e23('0x1b')](_0x41038a);}return null;};}function patchUpdates(_0x1aa3b3){return function(_0x53517c){try{jsonpatch['apply'](_0x53517c,_0x1aa3b3,!![]);}catch(_0x37e90){return BPromise[_0x4e23('0x21')](_0x37e90);}return _0x53517c[_0x4e23('0x22')]();};}function saveUpdates(_0x14b944,_0xa4fb0f){return function(_0x55566d){if(_0x55566d){return _0x55566d[_0x4e23('0x23')](_0x14b944)['then'](function(_0x419ab2){return _0x419ab2;});}return null;};}function removeEntity(_0x25b118,_0x2951aa){return function(_0x2cdc13){if(_0x2cdc13){return _0x2cdc13[_0x4e23('0x24')]()[_0x4e23('0x25')](function(){_0x25b118[_0x4e23('0x19')](0xcc)[_0x4e23('0x1a')]();});}};}function handleEntityNotFound(_0xde2c04,_0x429d63){return function(_0x1b42ca){if(!_0x1b42ca){_0xde2c04['sendStatus'](0x194);}return _0x1b42ca;};}function handleError(_0x518214,_0x44134d){_0x44134d=_0x44134d||0x1f4;return function(_0x811dc2){logger[_0x4e23('0x26')](_0x811dc2[_0x4e23('0x27')]);if(_0x811dc2[_0x4e23('0x28')]){delete _0x811dc2['name'];}_0x518214[_0x4e23('0x19')](_0x44134d)['send'](_0x811dc2);};}exports[_0x4e23('0x29')]=function(_0xcc533d,_0x350a86){var _0x383a00={},_0x5457f3={},_0x2e50ec={'count':0x0,'rows':[]};var _0x315af=_[_0x4e23('0x2a')](db[_0x4e23('0x2b')][_0x4e23('0x2c')],function(_0x351d2f){return{'name':_0x351d2f[_0x4e23('0x2d')],'type':_0x351d2f[_0x4e23('0x2e')][_0x4e23('0x2f')]};});_0x5457f3[_0x4e23('0x30')]=_[_0x4e23('0x2a')](_0x315af,_0x4e23('0x28'));_0x5457f3[_0x4e23('0x31')]=_[_0x4e23('0x32')](_0xcc533d['query']);_0x5457f3[_0x4e23('0x33')]=_[_0x4e23('0x34')](_0x5457f3[_0x4e23('0x30')],_0x5457f3[_0x4e23('0x31')]);_0x383a00[_0x4e23('0x35')]=_['intersection'](_0x5457f3[_0x4e23('0x30')],qs[_0x4e23('0x36')](_0xcc533d[_0x4e23('0x31')][_0x4e23('0x36')]));_0x383a00[_0x4e23('0x35')]=_0x383a00[_0x4e23('0x35')][_0x4e23('0x37')]?_0x383a00[_0x4e23('0x35')]:_0x5457f3[_0x4e23('0x30')];if(!_0xcc533d[_0x4e23('0x31')]['hasOwnProperty']('nolimit')){_0x383a00['limit']=qs['limit'](_0xcc533d['query'][_0x4e23('0x1d')]);_0x383a00[_0x4e23('0x1c')]=qs[_0x4e23('0x1c')](_0xcc533d['query'][_0x4e23('0x1c')]);}_0x383a00['order']=qs['sort'](_0xcc533d[_0x4e23('0x31')][_0x4e23('0x38')]);_0x383a00['where']=qs['filters'](_['pick'](_0xcc533d[_0x4e23('0x31')],_0x5457f3[_0x4e23('0x33')]),_0x315af);if(_0xcc533d[_0x4e23('0x31')][_0x4e23('0x39')]){_0x383a00[_0x4e23('0x3a')]=_[_0x4e23('0x3b')](_0x383a00[_0x4e23('0x3a')],{'$or':_[_0x4e23('0x2a')](_0x315af,function(_0x2bd7e1){if(_0x2bd7e1['type']!=='VIRTUAL'){var _0x187f2d={};_0x187f2d[_0x2bd7e1['name']]={'$like':'%'+_0xcc533d[_0x4e23('0x31')][_0x4e23('0x39')]+'%'};return _0x187f2d;}})});}_0x383a00=_['merge']({},_0x383a00,_0xcc533d[_0x4e23('0x3c')]);var _0xb7a230={'where':_0x383a00[_0x4e23('0x3a')]};return db[_0x4e23('0x2b')][_0x4e23('0x1f')](_0xb7a230)['then'](function(_0x2e0e6b){_0x2e50ec[_0x4e23('0x1f')]=_0x2e0e6b;if(_0xcc533d[_0x4e23('0x31')][_0x4e23('0x3d')]){_0x383a00[_0x4e23('0x3e')]=[{'all':!![]}];}return db[_0x4e23('0x2b')][_0x4e23('0x3f')](_0x383a00);})[_0x4e23('0x25')](function(_0xb9ea2c){_0x2e50ec['rows']=_0xb9ea2c;return _0x2e50ec;})[_0x4e23('0x25')](respondWithFilteredResult(_0x350a86,_0x383a00))[_0x4e23('0x40')](handleError(_0x350a86,null));};exports[_0x4e23('0x41')]=function(_0x212936,_0x116ff8){var _0x19f4a3={'raw':!![],'where':{'id':_0x212936[_0x4e23('0x42')]['id']}},_0x4ab3b0={};_0x4ab3b0[_0x4e23('0x30')]=_[_0x4e23('0x32')](db[_0x4e23('0x2b')][_0x4e23('0x2c')]);_0x4ab3b0['query']=_[_0x4e23('0x32')](_0x212936['query']);_0x4ab3b0['filters']=_[_0x4e23('0x34')](_0x4ab3b0['model'],_0x4ab3b0['query']);_0x19f4a3[_0x4e23('0x35')]=_[_0x4e23('0x34')](_0x4ab3b0[_0x4e23('0x30')],qs[_0x4e23('0x36')](_0x212936['query'][_0x4e23('0x36')]));_0x19f4a3['attributes']=_0x19f4a3['attributes']['length']?_0x19f4a3['attributes']:_0x4ab3b0[_0x4e23('0x30')];if(_0x212936[_0x4e23('0x31')]['includeAll']){_0x19f4a3['include']=[{'all':!![]}];}_0x19f4a3=_['merge']({},_0x19f4a3,_0x212936[_0x4e23('0x3c')]);return db[_0x4e23('0x2b')]['find'](_0x19f4a3)[_0x4e23('0x25')](handleEntityNotFound(_0x116ff8,null))[_0x4e23('0x25')](respondWithResult(_0x116ff8,null))[_0x4e23('0x40')](handleError(_0x116ff8,null));};exports['create']=function(_0x5b63e4,_0x99d25d){return db['SmsTransferReport']['create'](_0x5b63e4[_0x4e23('0x43')],{})[_0x4e23('0x25')](respondWithResult(_0x99d25d,0xc9))[_0x4e23('0x40')](handleError(_0x99d25d,null));};exports[_0x4e23('0x23')]=function(_0x12037a,_0x169209){if(_0x12037a[_0x4e23('0x43')]['id']){delete _0x12037a[_0x4e23('0x43')]['id'];}return db['SmsTransferReport'][_0x4e23('0x44')]({'where':{'id':_0x12037a[_0x4e23('0x42')]['id']}})['then'](handleEntityNotFound(_0x169209,null))[_0x4e23('0x25')](saveUpdates(_0x12037a[_0x4e23('0x43')],null))[_0x4e23('0x25')](respondWithResult(_0x169209,null))[_0x4e23('0x40')](handleError(_0x169209,null));};exports[_0x4e23('0x24')]=function(_0x49a395,_0x8d0531){return db[_0x4e23('0x2b')][_0x4e23('0x44')]({'where':{'id':_0x49a395[_0x4e23('0x42')]['id']}})[_0x4e23('0x25')](handleEntityNotFound(_0x8d0531,null))[_0x4e23('0x25')](removeEntity(_0x8d0531,null))[_0x4e23('0x40')](handleError(_0x8d0531,null));};exports[_0x4e23('0x45')]=function(_0x3a942b,_0x36ca60){return db[_0x4e23('0x2b')]['describe']()[_0x4e23('0x25')](respondWithResult(_0x36ca60,null))[_0x4e23('0x40')](handleError(_0x36ca60,null));};
\ No newline at end of file