Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / cdr / cdr.controller.js
index 9fa48d1..39ce7b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x65ad=['attributes','hasOwnProperty','nolimit','order','sort','pick','merge','where','map','type','VIRTUAL','filter','options','includeAll','rows','catch','show','params','rawAttributes','length','include','create','body','find','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../mysqldb','sendStatus','status','json','count','offset','limit','set','apply','reject','save','update','then','end','error','stack','name','send','index','Cdr','model','keys','query','filters','intersection','fields'];(function(_0x18fdc4,_0x41840b){var _0x2ebbfb=function(_0x5c2962){while(--_0x5c2962){_0x18fdc4['push'](_0x18fdc4['shift']());}};_0x2ebbfb(++_0x41840b);}(_0x65ad,0x18b));var _0xd65a=function(_0x23d23e,_0x188125){_0x23d23e=_0x23d23e-0x0;var _0x34e113=_0x65ad[_0x23d23e];return _0x34e113;};'use strict';var pdf=require(_0xd65a('0x0'));var emlformat=require(_0xd65a('0x1'));var rimraf=require(_0xd65a('0x2'));var zipdir=require(_0xd65a('0x3'));var jsonpatch=require(_0xd65a('0x4'));var rp=require(_0xd65a('0x5'));var moment=require('moment');var BPromise=require(_0xd65a('0x6'));var Mustache=require('mustache');var util=require(_0xd65a('0x7'));var path=require(_0xd65a('0x8'));var sox=require(_0xd65a('0x9'));var csv=require(_0xd65a('0xa'));var ejs=require(_0xd65a('0xb'));var fs=require('fs');var _=require(_0xd65a('0xc'));var squel=require(_0xd65a('0xd'));var crypto=require(_0xd65a('0xe'));var jsforce=require(_0xd65a('0xf'));var deskjs=require('desk.js');var toCsv=require(_0xd65a('0xa'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0xd65a('0x10'));var authService=require('../../components/auth/service');var qs=require(_0xd65a('0x11'));var as=require(_0xd65a('0x12'));var hardwareService=require(_0xd65a('0x13'));var logger=require(_0xd65a('0x14'))(_0xd65a('0x15'));var utils=require('../../config/utils');var config=require(_0xd65a('0x16'));var db=require(_0xd65a('0x17'))['db'];function respondWithStatusCode(_0x357982,_0x552c1b){_0x552c1b=_0x552c1b||0xcc;return function(_0x1b9e9e){if(_0x1b9e9e){return _0x357982[_0xd65a('0x18')](_0x552c1b);}return _0x357982['status'](_0x552c1b)['end']();};}function respondWithResult(_0x172674,_0x56bff2){_0x56bff2=_0x56bff2||0xc8;return function(_0x2153cd){if(_0x2153cd){return _0x172674[_0xd65a('0x19')](_0x56bff2)[_0xd65a('0x1a')](_0x2153cd);}};}function respondWithFilteredResult(_0x48d310,_0x525761){return function(_0x28399){if(_0x28399){var _0x2c6ea9=_0x28399[_0xd65a('0x1b')],_0x39e737=_0x525761[_0xd65a('0x1c')],_0x22d3df=_0x525761['offset']+_0x525761[_0xd65a('0x1d')],_0x1e52fa;if(_0x22d3df>=_0x2c6ea9){_0x22d3df=_0x2c6ea9;_0x1e52fa=0xc8;}else{_0x1e52fa=0xce;}_0x48d310[_0xd65a('0x19')](_0x1e52fa);return _0x48d310[_0xd65a('0x1e')]('Content-Range',_0x39e737+'-'+_0x22d3df+'/'+_0x2c6ea9)[_0xd65a('0x1a')](_0x28399);}return null;};}function patchUpdates(_0x501934){return function(_0x2520d1){try{jsonpatch[_0xd65a('0x1f')](_0x2520d1,_0x501934,!![]);}catch(_0x59e00a){return BPromise[_0xd65a('0x20')](_0x59e00a);}return _0x2520d1[_0xd65a('0x21')]();};}function saveUpdates(_0x2194f1,_0x3798dd){return function(_0x761b19){if(_0x761b19){return _0x761b19[_0xd65a('0x22')](_0x2194f1)[_0xd65a('0x23')](function(_0x5c8c07){return _0x5c8c07;});}return null;};}function removeEntity(_0x3051ec,_0x4c35c5){return function(_0x3c421d){if(_0x3c421d){return _0x3c421d['destroy']()['then'](function(){_0x3051ec[_0xd65a('0x19')](0xcc)[_0xd65a('0x24')]();});}};}function handleEntityNotFound(_0x5e6ba6,_0x4d7401){return function(_0x21c5c8){if(!_0x21c5c8){_0x5e6ba6[_0xd65a('0x18')](0x194);}return _0x21c5c8;};}function handleError(_0x244a12,_0x4be4eb){_0x4be4eb=_0x4be4eb||0x1f4;return function(_0x2352f6){logger[_0xd65a('0x25')](_0x2352f6[_0xd65a('0x26')]);if(_0x2352f6[_0xd65a('0x27')]){delete _0x2352f6[_0xd65a('0x27')];}_0x244a12['status'](_0x4be4eb)[_0xd65a('0x28')](_0x2352f6);};}exports[_0xd65a('0x29')]=function(_0x3b6210,_0x1fa3ea){var _0xc59048={},_0x4def17={},_0xad6bc2={'count':0x0,'rows':[]};var _0x33c833=_['map'](db[_0xd65a('0x2a')]['rawAttributes'],function(_0x4881d1){return{'name':_0x4881d1['fieldName'],'type':_0x4881d1['type']['key']};});_0x4def17[_0xd65a('0x2b')]=_['map'](_0x33c833,_0xd65a('0x27'));_0x4def17['query']=_[_0xd65a('0x2c')](_0x3b6210[_0xd65a('0x2d')]);_0x4def17[_0xd65a('0x2e')]=_[_0xd65a('0x2f')](_0x4def17[_0xd65a('0x2b')],_0x4def17[_0xd65a('0x2d')]);_0xc59048['attributes']=_['intersection'](_0x4def17['model'],qs[_0xd65a('0x30')](_0x3b6210[_0xd65a('0x2d')][_0xd65a('0x30')]));_0xc59048[_0xd65a('0x31')]=_0xc59048['attributes']['length']?_0xc59048['attributes']:_0x4def17[_0xd65a('0x2b')];if(!_0x3b6210['query'][_0xd65a('0x32')](_0xd65a('0x33'))){_0xc59048[_0xd65a('0x1d')]=qs[_0xd65a('0x1d')](_0x3b6210['query'][_0xd65a('0x1d')]);_0xc59048[_0xd65a('0x1c')]=qs[_0xd65a('0x1c')](_0x3b6210['query'][_0xd65a('0x1c')]);}_0xc59048[_0xd65a('0x34')]=qs[_0xd65a('0x35')](_0x3b6210[_0xd65a('0x2d')]['sort']);_0xc59048['where']=qs[_0xd65a('0x2e')](_[_0xd65a('0x36')](_0x3b6210['query'],_0x4def17[_0xd65a('0x2e')]));if(_0x3b6210['query']['filter']){_0xc59048['where']=_[_0xd65a('0x37')](_0xc59048[_0xd65a('0x38')],{'$or':_[_0xd65a('0x39')](_0x33c833,function(_0x2791a4){if(_0x2791a4[_0xd65a('0x3a')]!==_0xd65a('0x3b')){var _0xf81d3b={};_0xf81d3b[_0x2791a4['name']]={'$like':'%'+_0x3b6210['query'][_0xd65a('0x3c')]+'%'};return _0xf81d3b;}})});}_0xc59048=_[_0xd65a('0x37')]({},_0xc59048,_0x3b6210[_0xd65a('0x3d')]);var _0x24a76a={'where':_0xc59048[_0xd65a('0x38')]};return db[_0xd65a('0x2a')]['count'](_0x24a76a)[_0xd65a('0x23')](function(_0x4f2a46){_0xad6bc2[_0xd65a('0x1b')]=_0x4f2a46;if(_0x3b6210[_0xd65a('0x2d')][_0xd65a('0x3e')]){_0xc59048['include']=[{'all':!![]}];}return db[_0xd65a('0x2a')]['findAll'](_0xc59048);})[_0xd65a('0x23')](function(_0x20c80e){_0xad6bc2[_0xd65a('0x3f')]=_0x20c80e;return _0xad6bc2;})[_0xd65a('0x23')](respondWithFilteredResult(_0x1fa3ea,_0xc59048))[_0xd65a('0x40')](handleError(_0x1fa3ea,null));};exports[_0xd65a('0x41')]=function(_0x46eb82,_0x40783b){var _0x111862={'raw':!![],'where':{'id':_0x46eb82[_0xd65a('0x42')]['id']}},_0x232108={};_0x232108['model']=_[_0xd65a('0x2c')](db[_0xd65a('0x2a')][_0xd65a('0x43')]);_0x232108[_0xd65a('0x2d')]=_[_0xd65a('0x2c')](_0x46eb82[_0xd65a('0x2d')]);_0x232108[_0xd65a('0x2e')]=_[_0xd65a('0x2f')](_0x232108['model'],_0x232108[_0xd65a('0x2d')]);_0x111862[_0xd65a('0x31')]=_[_0xd65a('0x2f')](_0x232108[_0xd65a('0x2b')],qs['fields'](_0x46eb82[_0xd65a('0x2d')][_0xd65a('0x30')]));_0x111862[_0xd65a('0x31')]=_0x111862['attributes'][_0xd65a('0x44')]?_0x111862['attributes']:_0x232108[_0xd65a('0x2b')];if(_0x46eb82[_0xd65a('0x2d')][_0xd65a('0x3e')]){_0x111862[_0xd65a('0x45')]=[{'all':!![]}];}_0x111862=_[_0xd65a('0x37')]({},_0x111862,_0x46eb82[_0xd65a('0x3d')]);return db[_0xd65a('0x2a')]['find'](_0x111862)['then'](handleEntityNotFound(_0x40783b,null))[_0xd65a('0x23')](respondWithResult(_0x40783b,null))[_0xd65a('0x40')](handleError(_0x40783b,null));};exports[_0xd65a('0x46')]=function(_0x257f87,_0x310ad4){return db[_0xd65a('0x2a')]['create'](_0x257f87['body'],{})[_0xd65a('0x23')](respondWithResult(_0x310ad4,0xc9))[_0xd65a('0x40')](handleError(_0x310ad4,null));};exports[_0xd65a('0x22')]=function(_0x495daf,_0x3be2ac){if(_0x495daf[_0xd65a('0x47')]['id']){delete _0x495daf[_0xd65a('0x47')]['id'];}return db[_0xd65a('0x2a')][_0xd65a('0x48')]({'where':{'id':_0x495daf['params']['id']}})[_0xd65a('0x23')](handleEntityNotFound(_0x3be2ac,null))[_0xd65a('0x23')](saveUpdates(_0x495daf[_0xd65a('0x47')],null))[_0xd65a('0x23')](respondWithResult(_0x3be2ac,null))[_0xd65a('0x40')](handleError(_0x3be2ac,null));};exports['destroy']=function(_0x3f4cdf,_0x301096){return db['Cdr'][_0xd65a('0x48')]({'where':{'id':_0x3f4cdf[_0xd65a('0x42')]['id']}})[_0xd65a('0x23')](handleEntityNotFound(_0x301096,null))['then'](removeEntity(_0x301096,null))['catch'](handleError(_0x301096,null));};exports[_0xd65a('0x49')]=function(_0x13615f,_0x323d3a){return db[_0xd65a('0x2a')]['describe']()[_0xd65a('0x23')](respondWithResult(_0x323d3a,null))[_0xd65a('0x40')](handleError(_0x323d3a,null));};
\ No newline at end of file
+var _0xe0c3=['request-promise','moment','bluebird','mustache','util','path','sox','fs-extra','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','limit','count','set','apply','reject','save','destroy','then','end','error','name','send','index','map','rawAttributes','fieldName','type','model','keys','query','filters','attributes','intersection','fields','length','nolimit','sort','where','pick','VIRTUAL','filter','merge','options','includeAll','include','Cdr','findAll','rows','catch','show','params','find','create','body','update','describe','eml-format','zip-dir','fast-json-patch'];(function(_0x9bfcb3,_0x36892f){var _0x146868=function(_0x4a8ab0){while(--_0x4a8ab0){_0x9bfcb3['push'](_0x9bfcb3['shift']());}};_0x146868(++_0x36892f);}(_0xe0c3,0xea));var _0x3e0c=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xe0c3[_0x321bb2];return _0x9c12ed;};'use strict';var emlformat=require(_0x3e0c('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x3e0c('0x1'));var jsonpatch=require(_0x3e0c('0x2'));var rp=require(_0x3e0c('0x3'));var moment=require(_0x3e0c('0x4'));var BPromise=require(_0x3e0c('0x5'));var Mustache=require(_0x3e0c('0x6'));var util=require(_0x3e0c('0x7'));var path=require(_0x3e0c('0x8'));var sox=require(_0x3e0c('0x9'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x3e0c('0xa'));var _=require(_0x3e0c('0xb'));var squel=require(_0x3e0c('0xc'));var crypto=require(_0x3e0c('0xd'));var jsforce=require(_0x3e0c('0xe'));var deskjs=require(_0x3e0c('0xf'));var toCsv=require(_0x3e0c('0x10'));var querystring=require(_0x3e0c('0x11'));var Papa=require(_0x3e0c('0x12'));var Redis=require(_0x3e0c('0x13'));var authService=require(_0x3e0c('0x14'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x3e0c('0x15'));var logger=require(_0x3e0c('0x16'))(_0x3e0c('0x17'));var utils=require(_0x3e0c('0x18'));var config=require(_0x3e0c('0x19'));var licenseUtil=require(_0x3e0c('0x1a'));var db=require(_0x3e0c('0x1b'))['db'];function respondWithStatusCode(_0x5dc732,_0x38b416){_0x38b416=_0x38b416||0xcc;return function(_0x491432){if(_0x491432){return _0x5dc732[_0x3e0c('0x1c')](_0x38b416);}return _0x5dc732[_0x3e0c('0x1d')](_0x38b416)['end']();};}function respondWithResult(_0x5f2654,_0x6d9c61){_0x6d9c61=_0x6d9c61||0xc8;return function(_0x409b2c){if(_0x409b2c){return _0x5f2654[_0x3e0c('0x1d')](_0x6d9c61)[_0x3e0c('0x1e')](_0x409b2c);}};}function respondWithFilteredResult(_0x15a269,_0x24fcf9){return function(_0x1947c2){if(_0x1947c2){var _0x274d75=typeof _0x24fcf9[_0x3e0c('0x1f')]===_0x3e0c('0x20')&&typeof _0x24fcf9[_0x3e0c('0x21')]==='undefined';var _0x58c498=_0x1947c2[_0x3e0c('0x22')];var _0x216993=_0x274d75?0x0:_0x24fcf9[_0x3e0c('0x1f')];var _0x41b19f=_0x274d75?_0x1947c2[_0x3e0c('0x22')]:_0x24fcf9[_0x3e0c('0x1f')]+_0x24fcf9['limit'];var _0x2e4a4a;if(_0x41b19f>=_0x58c498){_0x41b19f=_0x58c498;_0x2e4a4a=0xc8;}else{_0x2e4a4a=0xce;}_0x15a269[_0x3e0c('0x1d')](_0x2e4a4a);return _0x15a269[_0x3e0c('0x23')]('Content-Range',_0x216993+'-'+_0x41b19f+'/'+_0x58c498)[_0x3e0c('0x1e')](_0x1947c2);}return null;};}function patchUpdates(_0x5e3a93){return function(_0x479265){try{jsonpatch[_0x3e0c('0x24')](_0x479265,_0x5e3a93,!![]);}catch(_0x1f3bad){return BPromise[_0x3e0c('0x25')](_0x1f3bad);}return _0x479265[_0x3e0c('0x26')]();};}function saveUpdates(_0x4f8d38,_0x4cd447){return function(_0x3320c6){if(_0x3320c6){return _0x3320c6['update'](_0x4f8d38)['then'](function(_0x3fd7de){return _0x3fd7de;});}return null;};}function removeEntity(_0x1769b1,_0x44ce68){return function(_0x5bb7aa){if(_0x5bb7aa){return _0x5bb7aa[_0x3e0c('0x27')]()[_0x3e0c('0x28')](function(){_0x1769b1['status'](0xcc)[_0x3e0c('0x29')]();});}};}function handleEntityNotFound(_0x3de58b,_0x308fd5){return function(_0x1db945){if(!_0x1db945){_0x3de58b['sendStatus'](0x194);}return _0x1db945;};}function handleError(_0x412960,_0xc2f3cc){_0xc2f3cc=_0xc2f3cc||0x1f4;return function(_0x2c5fba){logger[_0x3e0c('0x2a')](_0x2c5fba['stack']);if(_0x2c5fba[_0x3e0c('0x2b')]){delete _0x2c5fba['name'];}_0x412960['status'](_0xc2f3cc)[_0x3e0c('0x2c')](_0x2c5fba);};}exports[_0x3e0c('0x2d')]=function(_0x4d3ce2,_0x16fb92){var _0x3f22b1={},_0x21d7a0={},_0x59c22f={'count':0x0,'rows':[]};var _0x44ecad=_[_0x3e0c('0x2e')](db['Cdr'][_0x3e0c('0x2f')],function(_0x2f31ad){return{'name':_0x2f31ad[_0x3e0c('0x30')],'type':_0x2f31ad[_0x3e0c('0x31')]['key']};});_0x21d7a0[_0x3e0c('0x32')]=_[_0x3e0c('0x2e')](_0x44ecad,_0x3e0c('0x2b'));_0x21d7a0['query']=_[_0x3e0c('0x33')](_0x4d3ce2[_0x3e0c('0x34')]);_0x21d7a0[_0x3e0c('0x35')]=_['intersection'](_0x21d7a0[_0x3e0c('0x32')],_0x21d7a0[_0x3e0c('0x34')]);_0x3f22b1[_0x3e0c('0x36')]=_[_0x3e0c('0x37')](_0x21d7a0[_0x3e0c('0x32')],qs[_0x3e0c('0x38')](_0x4d3ce2[_0x3e0c('0x34')][_0x3e0c('0x38')]));_0x3f22b1[_0x3e0c('0x36')]=_0x3f22b1[_0x3e0c('0x36')][_0x3e0c('0x39')]?_0x3f22b1[_0x3e0c('0x36')]:_0x21d7a0[_0x3e0c('0x32')];if(!_0x4d3ce2[_0x3e0c('0x34')]['hasOwnProperty'](_0x3e0c('0x3a'))){_0x3f22b1[_0x3e0c('0x21')]=qs[_0x3e0c('0x21')](_0x4d3ce2[_0x3e0c('0x34')][_0x3e0c('0x21')]);_0x3f22b1[_0x3e0c('0x1f')]=qs[_0x3e0c('0x1f')](_0x4d3ce2[_0x3e0c('0x34')]['offset']);}_0x3f22b1['order']=qs[_0x3e0c('0x3b')](_0x4d3ce2[_0x3e0c('0x34')][_0x3e0c('0x3b')]);_0x3f22b1[_0x3e0c('0x3c')]=qs[_0x3e0c('0x35')](_[_0x3e0c('0x3d')](_0x4d3ce2['query'],_0x21d7a0[_0x3e0c('0x35')]),_0x44ecad);if(_0x4d3ce2[_0x3e0c('0x34')]['filter']){_0x3f22b1['where']=_['merge'](_0x3f22b1[_0x3e0c('0x3c')],{'$or':_[_0x3e0c('0x2e')](_0x44ecad,function(_0x3d6ed7){if(_0x3d6ed7[_0x3e0c('0x31')]!==_0x3e0c('0x3e')){var _0x45ec69={};_0x45ec69[_0x3d6ed7[_0x3e0c('0x2b')]]={'$like':'%'+_0x4d3ce2[_0x3e0c('0x34')][_0x3e0c('0x3f')]+'%'};return _0x45ec69;}})});}_0x3f22b1=_[_0x3e0c('0x40')]({},_0x3f22b1,_0x4d3ce2[_0x3e0c('0x41')]);var _0x20135d={'where':_0x3f22b1['where']};return db['Cdr']['count'](_0x20135d)[_0x3e0c('0x28')](function(_0x22fcd8){_0x59c22f['count']=_0x22fcd8;if(_0x4d3ce2['query'][_0x3e0c('0x42')]){_0x3f22b1[_0x3e0c('0x43')]=[{'all':!![]}];}return db[_0x3e0c('0x44')][_0x3e0c('0x45')](_0x3f22b1);})['then'](function(_0x2e562f){_0x59c22f[_0x3e0c('0x46')]=_0x2e562f;return _0x59c22f;})[_0x3e0c('0x28')](respondWithFilteredResult(_0x16fb92,_0x3f22b1))[_0x3e0c('0x47')](handleError(_0x16fb92,null));};exports[_0x3e0c('0x48')]=function(_0x4b5638,_0x1bc4b3){var _0x5f4274={'raw':!![],'where':{'id':_0x4b5638[_0x3e0c('0x49')]['id']}},_0x35111f={};_0x35111f['model']=_['keys'](db[_0x3e0c('0x44')][_0x3e0c('0x2f')]);_0x35111f['query']=_[_0x3e0c('0x33')](_0x4b5638[_0x3e0c('0x34')]);_0x35111f[_0x3e0c('0x35')]=_[_0x3e0c('0x37')](_0x35111f[_0x3e0c('0x32')],_0x35111f[_0x3e0c('0x34')]);_0x5f4274['attributes']=_[_0x3e0c('0x37')](_0x35111f[_0x3e0c('0x32')],qs[_0x3e0c('0x38')](_0x4b5638[_0x3e0c('0x34')][_0x3e0c('0x38')]));_0x5f4274[_0x3e0c('0x36')]=_0x5f4274['attributes'][_0x3e0c('0x39')]?_0x5f4274[_0x3e0c('0x36')]:_0x35111f[_0x3e0c('0x32')];if(_0x4b5638['query'][_0x3e0c('0x42')]){_0x5f4274[_0x3e0c('0x43')]=[{'all':!![]}];}_0x5f4274=_['merge']({},_0x5f4274,_0x4b5638[_0x3e0c('0x41')]);return db[_0x3e0c('0x44')][_0x3e0c('0x4a')](_0x5f4274)['then'](handleEntityNotFound(_0x1bc4b3,null))[_0x3e0c('0x28')](respondWithResult(_0x1bc4b3,null))[_0x3e0c('0x47')](handleError(_0x1bc4b3,null));};exports[_0x3e0c('0x4b')]=function(_0x2c7b8c,_0x109078){return db[_0x3e0c('0x44')][_0x3e0c('0x4b')](_0x2c7b8c[_0x3e0c('0x4c')],{})[_0x3e0c('0x28')](respondWithResult(_0x109078,0xc9))[_0x3e0c('0x47')](handleError(_0x109078,null));};exports[_0x3e0c('0x4d')]=function(_0x4efbf2,_0x20c9df){if(_0x4efbf2['body']['id']){delete _0x4efbf2['body']['id'];}return db[_0x3e0c('0x44')]['find']({'where':{'id':_0x4efbf2[_0x3e0c('0x49')]['id']}})[_0x3e0c('0x28')](handleEntityNotFound(_0x20c9df,null))['then'](saveUpdates(_0x4efbf2[_0x3e0c('0x4c')],null))[_0x3e0c('0x28')](respondWithResult(_0x20c9df,null))['catch'](handleError(_0x20c9df,null));};exports[_0x3e0c('0x27')]=function(_0x3e04c9,_0x166203){return db[_0x3e0c('0x44')][_0x3e0c('0x4a')]({'where':{'id':_0x3e04c9[_0x3e0c('0x49')]['id']}})[_0x3e0c('0x28')](handleEntityNotFound(_0x166203,null))[_0x3e0c('0x28')](removeEntity(_0x166203,null))[_0x3e0c('0x47')](handleError(_0x166203,null));};exports[_0x3e0c('0x4e')]=function(_0x4d0f77,_0x3743ae){return db[_0x3e0c('0x44')][_0x3e0c('0x4e')]()[_0x3e0c('0x28')](respondWithResult(_0x3743ae,null))[_0x3e0c('0x47')](handleError(_0x3743ae,null));};
\ No newline at end of file