Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index e63e0cc..c1cc0fc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf84=['options','include','findAll','rows','then','catch','params','keys','create','body','find','destroy','describe','eml-format','rimraf','fast-json-patch','request-promise','moment','mustache','util','path','sox','ejs','fs-extra','lodash','squel','desk.js','to-csv','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','undefined','count','offset','limit','set','Content-Range','apply','update','sendStatus','error','name','send','index','SmsTransferReport','rawAttributes','fieldName','type','key','model','map','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','pick','filter','where','merge','VIRTUAL'];(function(_0x52f271,_0x335ffb){var _0x5adc27=function(_0x38ee77){while(--_0x38ee77){_0x52f271['push'](_0x52f271['shift']());}};_0x5adc27(++_0x335ffb);}(_0xbf84,0x1db));var _0x4bf8=function(_0x2e3614,_0x14dc56){_0x2e3614=_0x2e3614-0x0;var _0x43427c=_0xbf84[_0x2e3614];return _0x43427c;};'use strict';var emlformat=require(_0x4bf8('0x0'));var rimraf=require(_0x4bf8('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x4bf8('0x2'));var rp=require(_0x4bf8('0x3'));var moment=require(_0x4bf8('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x4bf8('0x5'));var util=require(_0x4bf8('0x6'));var path=require(_0x4bf8('0x7'));var sox=require(_0x4bf8('0x8'));var csv=require('to-csv');var ejs=require(_0x4bf8('0x9'));var fs=require('fs');var fs_extra=require(_0x4bf8('0xa'));var _=require(_0x4bf8('0xb'));var squel=require(_0x4bf8('0xc'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x4bf8('0xd'));var toCsv=require(_0x4bf8('0xe'));var querystring=require(_0x4bf8('0xf'));var Papa=require(_0x4bf8('0x10'));var Redis=require('ioredis');var authService=require(_0x4bf8('0x11'));var qs=require(_0x4bf8('0x12'));var as=require(_0x4bf8('0x13'));var hardwareService=require(_0x4bf8('0x14'));var logger=require('../../config/logger')(_0x4bf8('0x15'));var utils=require(_0x4bf8('0x16'));var config=require(_0x4bf8('0x17'));var licenseUtil=require(_0x4bf8('0x18'));var db=require(_0x4bf8('0x19'))['db'];function respondWithStatusCode(_0x505c02,_0x18a12e){_0x18a12e=_0x18a12e||0xcc;return function(_0x3cd25e){if(_0x3cd25e){return _0x505c02['sendStatus'](_0x18a12e);}return _0x505c02[_0x4bf8('0x1a')](_0x18a12e)[_0x4bf8('0x1b')]();};}function respondWithResult(_0x358679,_0x595f8a){_0x595f8a=_0x595f8a||0xc8;return function(_0x155468){if(_0x155468){return _0x358679[_0x4bf8('0x1a')](_0x595f8a)[_0x4bf8('0x1c')](_0x155468);}};}function respondWithFilteredResult(_0x2e7e32,_0x278b06){return function(_0x1e658b){if(_0x1e658b){var _0x4e76e5=typeof _0x278b06['offset']==='undefined'&&typeof _0x278b06['limit']===_0x4bf8('0x1d');var _0x22c343=_0x1e658b[_0x4bf8('0x1e')];var _0xcd3556=_0x4e76e5?0x0:_0x278b06['offset'];var _0x5d3a9f=_0x4e76e5?_0x1e658b[_0x4bf8('0x1e')]:_0x278b06[_0x4bf8('0x1f')]+_0x278b06[_0x4bf8('0x20')];var _0x421a77;if(_0x5d3a9f>=_0x22c343){_0x5d3a9f=_0x22c343;_0x421a77=0xc8;}else{_0x421a77=0xce;}_0x2e7e32[_0x4bf8('0x1a')](_0x421a77);return _0x2e7e32[_0x4bf8('0x21')](_0x4bf8('0x22'),_0xcd3556+'-'+_0x5d3a9f+'/'+_0x22c343)[_0x4bf8('0x1c')](_0x1e658b);}return null;};}function patchUpdates(_0x301c6f){return function(_0x269b0b){try{jsonpatch[_0x4bf8('0x23')](_0x269b0b,_0x301c6f,!![]);}catch(_0x34db7b){return BPromise['reject'](_0x34db7b);}return _0x269b0b['save']();};}function saveUpdates(_0x1f6019,_0x3d7daa){return function(_0x275d91){if(_0x275d91){return _0x275d91[_0x4bf8('0x24')](_0x1f6019)['then'](function(_0x2640fd){return _0x2640fd;});}return null;};}function removeEntity(_0x1cec6b,_0x254892){return function(_0x532152){if(_0x532152){return _0x532152['destroy']()['then'](function(){_0x1cec6b[_0x4bf8('0x1a')](0xcc)[_0x4bf8('0x1b')]();});}};}function handleEntityNotFound(_0xec5ba6,_0x23c6eb){return function(_0x234e9e){if(!_0x234e9e){_0xec5ba6[_0x4bf8('0x25')](0x194);}return _0x234e9e;};}function handleError(_0x48784c,_0x53e41a){_0x53e41a=_0x53e41a||0x1f4;return function(_0x28a3c2){logger[_0x4bf8('0x26')](_0x28a3c2['stack']);if(_0x28a3c2[_0x4bf8('0x27')]){delete _0x28a3c2[_0x4bf8('0x27')];}_0x48784c['status'](_0x53e41a)[_0x4bf8('0x28')](_0x28a3c2);};}exports[_0x4bf8('0x29')]=function(_0x50b210,_0x517fd8){var _0x4928f1={},_0x4d59f2={},_0x1abe4e={'count':0x0,'rows':[]};var _0x4a57e5=_['map'](db[_0x4bf8('0x2a')][_0x4bf8('0x2b')],function(_0x149c46){return{'name':_0x149c46[_0x4bf8('0x2c')],'type':_0x149c46[_0x4bf8('0x2d')][_0x4bf8('0x2e')]};});_0x4d59f2[_0x4bf8('0x2f')]=_[_0x4bf8('0x30')](_0x4a57e5,_0x4bf8('0x27'));_0x4d59f2[_0x4bf8('0x31')]=_['keys'](_0x50b210[_0x4bf8('0x31')]);_0x4d59f2[_0x4bf8('0x32')]=_[_0x4bf8('0x33')](_0x4d59f2[_0x4bf8('0x2f')],_0x4d59f2[_0x4bf8('0x31')]);_0x4928f1[_0x4bf8('0x34')]=_[_0x4bf8('0x33')](_0x4d59f2[_0x4bf8('0x2f')],qs['fields'](_0x50b210[_0x4bf8('0x31')][_0x4bf8('0x35')]));_0x4928f1['attributes']=_0x4928f1[_0x4bf8('0x34')][_0x4bf8('0x36')]?_0x4928f1[_0x4bf8('0x34')]:_0x4d59f2[_0x4bf8('0x2f')];if(!_0x50b210['query'][_0x4bf8('0x37')](_0x4bf8('0x38'))){_0x4928f1[_0x4bf8('0x20')]=qs['limit'](_0x50b210[_0x4bf8('0x31')]['limit']);_0x4928f1[_0x4bf8('0x1f')]=qs[_0x4bf8('0x1f')](_0x50b210['query']['offset']);}_0x4928f1[_0x4bf8('0x39')]=qs[_0x4bf8('0x3a')](_0x50b210[_0x4bf8('0x31')][_0x4bf8('0x3a')]);_0x4928f1['where']=qs['filters'](_[_0x4bf8('0x3b')](_0x50b210[_0x4bf8('0x31')],_0x4d59f2[_0x4bf8('0x32')]),_0x4a57e5);if(_0x50b210[_0x4bf8('0x31')][_0x4bf8('0x3c')]){_0x4928f1[_0x4bf8('0x3d')]=_[_0x4bf8('0x3e')](_0x4928f1[_0x4bf8('0x3d')],{'$or':_[_0x4bf8('0x30')](_0x4a57e5,function(_0x729827){if(_0x729827['type']!==_0x4bf8('0x3f')){var _0x18eea3={};_0x18eea3[_0x729827[_0x4bf8('0x27')]]={'$like':'%'+_0x50b210[_0x4bf8('0x31')][_0x4bf8('0x3c')]+'%'};return _0x18eea3;}})});}_0x4928f1=_['merge']({},_0x4928f1,_0x50b210[_0x4bf8('0x40')]);var _0x1a368e={'where':_0x4928f1[_0x4bf8('0x3d')]};return db[_0x4bf8('0x2a')][_0x4bf8('0x1e')](_0x1a368e)['then'](function(_0x9c5ae9){_0x1abe4e[_0x4bf8('0x1e')]=_0x9c5ae9;if(_0x50b210['query']['includeAll']){_0x4928f1[_0x4bf8('0x41')]=[{'all':!![]}];}return db[_0x4bf8('0x2a')][_0x4bf8('0x42')](_0x4928f1);})['then'](function(_0x5c3e09){_0x1abe4e[_0x4bf8('0x43')]=_0x5c3e09;return _0x1abe4e;})[_0x4bf8('0x44')](respondWithFilteredResult(_0x517fd8,_0x4928f1))[_0x4bf8('0x45')](handleError(_0x517fd8,null));};exports['show']=function(_0xe7adb8,_0x5c41c3){var _0x440823={'raw':!![],'where':{'id':_0xe7adb8[_0x4bf8('0x46')]['id']}},_0x4915bc={};_0x4915bc['model']=_[_0x4bf8('0x47')](db['SmsTransferReport'][_0x4bf8('0x2b')]);_0x4915bc[_0x4bf8('0x31')]=_[_0x4bf8('0x47')](_0xe7adb8[_0x4bf8('0x31')]);_0x4915bc[_0x4bf8('0x32')]=_[_0x4bf8('0x33')](_0x4915bc[_0x4bf8('0x2f')],_0x4915bc['query']);_0x440823['attributes']=_[_0x4bf8('0x33')](_0x4915bc[_0x4bf8('0x2f')],qs['fields'](_0xe7adb8['query'][_0x4bf8('0x35')]));_0x440823[_0x4bf8('0x34')]=_0x440823[_0x4bf8('0x34')][_0x4bf8('0x36')]?_0x440823[_0x4bf8('0x34')]:_0x4915bc[_0x4bf8('0x2f')];if(_0xe7adb8[_0x4bf8('0x31')]['includeAll']){_0x440823[_0x4bf8('0x41')]=[{'all':!![]}];}_0x440823=_[_0x4bf8('0x3e')]({},_0x440823,_0xe7adb8[_0x4bf8('0x40')]);return db[_0x4bf8('0x2a')]['find'](_0x440823)[_0x4bf8('0x44')](handleEntityNotFound(_0x5c41c3,null))[_0x4bf8('0x44')](respondWithResult(_0x5c41c3,null))[_0x4bf8('0x45')](handleError(_0x5c41c3,null));};exports[_0x4bf8('0x48')]=function(_0x466889,_0x19e34c){return db[_0x4bf8('0x2a')][_0x4bf8('0x48')](_0x466889[_0x4bf8('0x49')],{})[_0x4bf8('0x44')](respondWithResult(_0x19e34c,0xc9))[_0x4bf8('0x45')](handleError(_0x19e34c,null));};exports['update']=function(_0xca6c5e,_0x2bf156){if(_0xca6c5e[_0x4bf8('0x49')]['id']){delete _0xca6c5e[_0x4bf8('0x49')]['id'];}return db[_0x4bf8('0x2a')][_0x4bf8('0x4a')]({'where':{'id':_0xca6c5e['params']['id']}})[_0x4bf8('0x44')](handleEntityNotFound(_0x2bf156,null))[_0x4bf8('0x44')](saveUpdates(_0xca6c5e[_0x4bf8('0x49')],null))['then'](respondWithResult(_0x2bf156,null))['catch'](handleError(_0x2bf156,null));};exports[_0x4bf8('0x4b')]=function(_0x14bbc8,_0x398a1e){return db[_0x4bf8('0x2a')][_0x4bf8('0x4a')]({'where':{'id':_0x14bbc8[_0x4bf8('0x46')]['id']}})['then'](handleEntityNotFound(_0x398a1e,null))['then'](removeEntity(_0x398a1e,null))[_0x4bf8('0x45')](handleError(_0x398a1e,null));};exports['describe']=function(_0xd3134e,_0x2eaefb){return db['SmsTransferReport'][_0x4bf8('0x4c')]()[_0x4bf8('0x44')](respondWithResult(_0x2eaefb,null))['catch'](handleError(_0x2eaefb,null));};
\ No newline at end of file
+var _0x61a7=['intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','options','includeAll','include','rows','catch','show','keys','create','body','find','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','path','sox','fs-extra','lodash','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','index','map','SmsTransferReport','rawAttributes','fieldName','type','key','model','query','filters'];(function(_0x5b66ca,_0x132e14){var _0x1dcc64=function(_0x4fd0a3){while(--_0x4fd0a3){_0x5b66ca['push'](_0x5b66ca['shift']());}};_0x1dcc64(++_0x132e14);}(_0x61a7,0xb2));var _0x761a=function(_0x17304b,_0x3cf1fe){_0x17304b=_0x17304b-0x0;var _0x2e4071=_0x61a7[_0x17304b];return _0x2e4071;};'use strict';var emlformat=require(_0x761a('0x0'));var rimraf=require(_0x761a('0x1'));var zipdir=require(_0x761a('0x2'));var jsonpatch=require(_0x761a('0x3'));var rp=require(_0x761a('0x4'));var moment=require('moment');var BPromise=require(_0x761a('0x5'));var Mustache=require(_0x761a('0x6'));var util=require('util');var path=require(_0x761a('0x7'));var sox=require(_0x761a('0x8'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x761a('0x9'));var _=require(_0x761a('0xa'));var squel=require('squel');var crypto=require(_0x761a('0xb'));var jsforce=require(_0x761a('0xc'));var deskjs=require(_0x761a('0xd'));var toCsv=require(_0x761a('0xe'));var querystring=require(_0x761a('0xf'));var Papa=require(_0x761a('0x10'));var Redis=require(_0x761a('0x11'));var authService=require(_0x761a('0x12'));var qs=require(_0x761a('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x761a('0x14'))('api');var utils=require(_0x761a('0x15'));var config=require(_0x761a('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0x761a('0x17'))['db'];function respondWithStatusCode(_0x1b63ac,_0x5d9a74){_0x5d9a74=_0x5d9a74||0xcc;return function(_0x552c12){if(_0x552c12){return _0x1b63ac[_0x761a('0x18')](_0x5d9a74);}return _0x1b63ac[_0x761a('0x19')](_0x5d9a74)[_0x761a('0x1a')]();};}function respondWithResult(_0x28ad22,_0x4663e2){_0x4663e2=_0x4663e2||0xc8;return function(_0x2026b9){if(_0x2026b9){return _0x28ad22['status'](_0x4663e2)[_0x761a('0x1b')](_0x2026b9);}};}function respondWithFilteredResult(_0x564619,_0x4c9e54){return function(_0x287f7e){if(_0x287f7e){var _0x43c378=typeof _0x4c9e54[_0x761a('0x1c')]===_0x761a('0x1d')&&typeof _0x4c9e54[_0x761a('0x1e')]==='undefined';var _0x2167df=_0x287f7e[_0x761a('0x1f')];var _0x75ad11=_0x43c378?0x0:_0x4c9e54[_0x761a('0x1c')];var _0x5f35b4=_0x43c378?_0x287f7e[_0x761a('0x1f')]:_0x4c9e54[_0x761a('0x1c')]+_0x4c9e54[_0x761a('0x1e')];var _0x53af2c;if(_0x5f35b4>=_0x2167df){_0x5f35b4=_0x2167df;_0x53af2c=0xc8;}else{_0x53af2c=0xce;}_0x564619[_0x761a('0x19')](_0x53af2c);return _0x564619[_0x761a('0x20')](_0x761a('0x21'),_0x75ad11+'-'+_0x5f35b4+'/'+_0x2167df)[_0x761a('0x1b')](_0x287f7e);}return null;};}function patchUpdates(_0x38ed2c){return function(_0xb85353){try{jsonpatch[_0x761a('0x22')](_0xb85353,_0x38ed2c,!![]);}catch(_0x51341c){return BPromise[_0x761a('0x23')](_0x51341c);}return _0xb85353[_0x761a('0x24')]();};}function saveUpdates(_0x1eb452,_0x27bf78){return function(_0x39e474){if(_0x39e474){return _0x39e474[_0x761a('0x25')](_0x1eb452)[_0x761a('0x26')](function(_0x35de8a){return _0x35de8a;});}return null;};}function removeEntity(_0x549cf2,_0x2852e0){return function(_0x538046){if(_0x538046){return _0x538046[_0x761a('0x27')]()[_0x761a('0x26')](function(){_0x549cf2[_0x761a('0x19')](0xcc)[_0x761a('0x1a')]();});}};}function handleEntityNotFound(_0x5566c0,_0x446967){return function(_0x51302a){if(!_0x51302a){_0x5566c0[_0x761a('0x18')](0x194);}return _0x51302a;};}function handleError(_0x2f9d4f,_0x274d37){_0x274d37=_0x274d37||0x1f4;return function(_0x3f234c){logger[_0x761a('0x28')](_0x3f234c[_0x761a('0x29')]);if(_0x3f234c[_0x761a('0x2a')]){delete _0x3f234c[_0x761a('0x2a')];}_0x2f9d4f['status'](_0x274d37)['send'](_0x3f234c);};}exports[_0x761a('0x2b')]=function(_0x1effff,_0x887b1d){var _0x16b2fa={},_0x5376a2={},_0x38826c={'count':0x0,'rows':[]};var _0x422341=_[_0x761a('0x2c')](db[_0x761a('0x2d')][_0x761a('0x2e')],function(_0x215715){return{'name':_0x215715[_0x761a('0x2f')],'type':_0x215715[_0x761a('0x30')][_0x761a('0x31')]};});_0x5376a2[_0x761a('0x32')]=_['map'](_0x422341,'name');_0x5376a2[_0x761a('0x33')]=_['keys'](_0x1effff['query']);_0x5376a2[_0x761a('0x34')]=_[_0x761a('0x35')](_0x5376a2[_0x761a('0x32')],_0x5376a2[_0x761a('0x33')]);_0x16b2fa[_0x761a('0x36')]=_[_0x761a('0x35')](_0x5376a2[_0x761a('0x32')],qs[_0x761a('0x37')](_0x1effff[_0x761a('0x33')][_0x761a('0x37')]));_0x16b2fa[_0x761a('0x36')]=_0x16b2fa[_0x761a('0x36')][_0x761a('0x38')]?_0x16b2fa[_0x761a('0x36')]:_0x5376a2['model'];if(!_0x1effff[_0x761a('0x33')][_0x761a('0x39')](_0x761a('0x3a'))){_0x16b2fa['limit']=qs[_0x761a('0x1e')](_0x1effff['query'][_0x761a('0x1e')]);_0x16b2fa['offset']=qs[_0x761a('0x1c')](_0x1effff[_0x761a('0x33')][_0x761a('0x1c')]);}_0x16b2fa[_0x761a('0x3b')]=qs[_0x761a('0x3c')](_0x1effff[_0x761a('0x33')][_0x761a('0x3c')]);_0x16b2fa[_0x761a('0x3d')]=qs['filters'](_[_0x761a('0x3e')](_0x1effff[_0x761a('0x33')],_0x5376a2[_0x761a('0x34')]),_0x422341);if(_0x1effff['query'][_0x761a('0x3f')]){_0x16b2fa[_0x761a('0x3d')]=_[_0x761a('0x40')](_0x16b2fa[_0x761a('0x3d')],{'$or':_[_0x761a('0x2c')](_0x422341,function(_0x206c79){if(_0x206c79['type']!=='VIRTUAL'){var _0xb4815b={};_0xb4815b[_0x206c79[_0x761a('0x2a')]]={'$like':'%'+_0x1effff['query'][_0x761a('0x3f')]+'%'};return _0xb4815b;}})});}_0x16b2fa=_[_0x761a('0x40')]({},_0x16b2fa,_0x1effff[_0x761a('0x41')]);var _0x2e0005={'where':_0x16b2fa[_0x761a('0x3d')]};return db[_0x761a('0x2d')][_0x761a('0x1f')](_0x2e0005)[_0x761a('0x26')](function(_0x2d0228){_0x38826c[_0x761a('0x1f')]=_0x2d0228;if(_0x1effff['query'][_0x761a('0x42')]){_0x16b2fa[_0x761a('0x43')]=[{'all':!![]}];}return db['SmsTransferReport']['findAll'](_0x16b2fa);})['then'](function(_0x3ac8d2){_0x38826c[_0x761a('0x44')]=_0x3ac8d2;return _0x38826c;})['then'](respondWithFilteredResult(_0x887b1d,_0x16b2fa))[_0x761a('0x45')](handleError(_0x887b1d,null));};exports[_0x761a('0x46')]=function(_0x5c960d,_0x5d84f4){var _0x3dc68c={'raw':!![],'where':{'id':_0x5c960d['params']['id']}},_0x132b55={};_0x132b55['model']=_[_0x761a('0x47')](db[_0x761a('0x2d')][_0x761a('0x2e')]);_0x132b55[_0x761a('0x33')]=_[_0x761a('0x47')](_0x5c960d[_0x761a('0x33')]);_0x132b55['filters']=_['intersection'](_0x132b55[_0x761a('0x32')],_0x132b55[_0x761a('0x33')]);_0x3dc68c['attributes']=_[_0x761a('0x35')](_0x132b55[_0x761a('0x32')],qs[_0x761a('0x37')](_0x5c960d[_0x761a('0x33')]['fields']));_0x3dc68c['attributes']=_0x3dc68c[_0x761a('0x36')][_0x761a('0x38')]?_0x3dc68c['attributes']:_0x132b55['model'];if(_0x5c960d[_0x761a('0x33')][_0x761a('0x42')]){_0x3dc68c['include']=[{'all':!![]}];}_0x3dc68c=_[_0x761a('0x40')]({},_0x3dc68c,_0x5c960d['options']);return db[_0x761a('0x2d')]['find'](_0x3dc68c)[_0x761a('0x26')](handleEntityNotFound(_0x5d84f4,null))[_0x761a('0x26')](respondWithResult(_0x5d84f4,null))['catch'](handleError(_0x5d84f4,null));};exports[_0x761a('0x48')]=function(_0x54ba43,_0x3a118a){return db[_0x761a('0x2d')][_0x761a('0x48')](_0x54ba43[_0x761a('0x49')],{})['then'](respondWithResult(_0x3a118a,0xc9))['catch'](handleError(_0x3a118a,null));};exports['update']=function(_0x33fa6c,_0x53c1ce){if(_0x33fa6c[_0x761a('0x49')]['id']){delete _0x33fa6c[_0x761a('0x49')]['id'];}return db[_0x761a('0x2d')][_0x761a('0x4a')]({'where':{'id':_0x33fa6c[_0x761a('0x4b')]['id']}})['then'](handleEntityNotFound(_0x53c1ce,null))[_0x761a('0x26')](saveUpdates(_0x33fa6c[_0x761a('0x49')],null))[_0x761a('0x26')](respondWithResult(_0x53c1ce,null))[_0x761a('0x45')](handleError(_0x53c1ce,null));};exports[_0x761a('0x27')]=function(_0x224007,_0x1c05e5){return db[_0x761a('0x2d')][_0x761a('0x4a')]({'where':{'id':_0x224007[_0x761a('0x4b')]['id']}})[_0x761a('0x26')](handleEntityNotFound(_0x1c05e5,null))['then'](removeEntity(_0x1c05e5,null))['catch'](handleError(_0x1c05e5,null));};exports[_0x761a('0x4c')]=function(_0x219043,_0x3411ea){return db[_0x761a('0x2d')][_0x761a('0x4c')]()[_0x761a('0x26')](respondWithResult(_0x3411ea,null))[_0x761a('0x45')](handleError(_0x3411ea,null));};
\ No newline at end of file