Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / cdr / cdr.controller.js
index 773078a..3d2dc68 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3f06=['map','Cdr','rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','includeAll','include','findAll','catch','show','params','options','find','create','body','describe','rimraf','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','squel','crypto','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','count','offset','limit','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','send'];(function(_0xda6d0f,_0x35e271){var _0x244540=function(_0x30f643){while(--_0x30f643){_0xda6d0f['push'](_0xda6d0f['shift']());}};_0x244540(++_0x35e271);}(_0x3f06,0x140));var _0x63f0=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x3f06[_0x59ee6f];return _0x4c0979;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x63f0('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0x63f0('0x1'));var rp=require(_0x63f0('0x2'));var moment=require('moment');var BPromise=require(_0x63f0('0x3'));var Mustache=require(_0x63f0('0x4'));var util=require(_0x63f0('0x5'));var path=require(_0x63f0('0x6'));var sox=require(_0x63f0('0x7'));var csv=require(_0x63f0('0x8'));var ejs=require(_0x63f0('0x9'));var fs=require('fs');var fs_extra=require(_0x63f0('0xa'));var _=require('lodash');var squel=require(_0x63f0('0xb'));var crypto=require(_0x63f0('0xc'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0x63f0('0x8'));var querystring=require('querystring');var Papa=require(_0x63f0('0xd'));var Redis=require('ioredis');var authService=require(_0x63f0('0xe'));var qs=require(_0x63f0('0xf'));var as=require(_0x63f0('0x10'));var hardwareService=require(_0x63f0('0x11'));var logger=require(_0x63f0('0x12'))(_0x63f0('0x13'));var utils=require(_0x63f0('0x14'));var config=require('../../config/environment');var licenseUtil=require(_0x63f0('0x15'));var db=require(_0x63f0('0x16'))['db'];function respondWithStatusCode(_0x53e0c8,_0x175981){_0x175981=_0x175981||0xcc;return function(_0x4ead87){if(_0x4ead87){return _0x53e0c8[_0x63f0('0x17')](_0x175981);}return _0x53e0c8[_0x63f0('0x18')](_0x175981)[_0x63f0('0x19')]();};}function respondWithResult(_0x452fbb,_0x2554ee){_0x2554ee=_0x2554ee||0xc8;return function(_0x1dff77){if(_0x1dff77){return _0x452fbb[_0x63f0('0x18')](_0x2554ee)['json'](_0x1dff77);}};}function respondWithFilteredResult(_0x1c9839,_0x3fc451){return function(_0x3d98ec){if(_0x3d98ec){var _0x9706f=_0x3d98ec[_0x63f0('0x1a')],_0x45a5e4=_0x3fc451[_0x63f0('0x1b')],_0xb256b4=_0x3fc451[_0x63f0('0x1b')]+_0x3fc451[_0x63f0('0x1c')],_0x3d53bd;if(_0xb256b4>=_0x9706f){_0xb256b4=_0x9706f;_0x3d53bd=0xc8;}else{_0x3d53bd=0xce;}_0x1c9839['status'](_0x3d53bd);return _0x1c9839['set'](_0x63f0('0x1d'),_0x45a5e4+'-'+_0xb256b4+'/'+_0x9706f)['json'](_0x3d98ec);}return null;};}function patchUpdates(_0x97f747){return function(_0x524598){try{jsonpatch[_0x63f0('0x1e')](_0x524598,_0x97f747,!![]);}catch(_0x47516d){return BPromise[_0x63f0('0x1f')](_0x47516d);}return _0x524598[_0x63f0('0x20')]();};}function saveUpdates(_0x378a0a,_0x5f53c7){return function(_0x3acebe){if(_0x3acebe){return _0x3acebe[_0x63f0('0x21')](_0x378a0a)[_0x63f0('0x22')](function(_0x50516b){return _0x50516b;});}return null;};}function removeEntity(_0x8309d5,_0x5bbdc1){return function(_0x3a6d37){if(_0x3a6d37){return _0x3a6d37[_0x63f0('0x23')]()[_0x63f0('0x22')](function(){_0x8309d5['status'](0xcc)[_0x63f0('0x19')]();});}};}function handleEntityNotFound(_0x5bc916,_0x305c38){return function(_0x2cfe81){if(!_0x2cfe81){_0x5bc916[_0x63f0('0x17')](0x194);}return _0x2cfe81;};}function handleError(_0x300cb6,_0x35c3dd){_0x35c3dd=_0x35c3dd||0x1f4;return function(_0x4b3276){logger[_0x63f0('0x24')](_0x4b3276[_0x63f0('0x25')]);if(_0x4b3276['name']){delete _0x4b3276[_0x63f0('0x26')];}_0x300cb6[_0x63f0('0x18')](_0x35c3dd)[_0x63f0('0x27')](_0x4b3276);};}exports['index']=function(_0x2379e9,_0x371f66){var _0x15625c={},_0x43e115={},_0x36a5ca={'count':0x0,'rows':[]};var _0x23c612=_[_0x63f0('0x28')](db[_0x63f0('0x29')][_0x63f0('0x2a')],function(_0x43160f){return{'name':_0x43160f['fieldName'],'type':_0x43160f[_0x63f0('0x2b')][_0x63f0('0x2c')]};});_0x43e115[_0x63f0('0x2d')]=_[_0x63f0('0x28')](_0x23c612,_0x63f0('0x26'));_0x43e115[_0x63f0('0x2e')]=_[_0x63f0('0x2f')](_0x2379e9[_0x63f0('0x2e')]);_0x43e115[_0x63f0('0x30')]=_[_0x63f0('0x31')](_0x43e115[_0x63f0('0x2d')],_0x43e115['query']);_0x15625c[_0x63f0('0x32')]=_['intersection'](_0x43e115[_0x63f0('0x2d')],qs[_0x63f0('0x33')](_0x2379e9[_0x63f0('0x2e')][_0x63f0('0x33')]));_0x15625c[_0x63f0('0x32')]=_0x15625c[_0x63f0('0x32')]['length']?_0x15625c[_0x63f0('0x32')]:_0x43e115[_0x63f0('0x2d')];if(!_0x2379e9['query'][_0x63f0('0x34')](_0x63f0('0x35'))){_0x15625c[_0x63f0('0x1c')]=qs[_0x63f0('0x1c')](_0x2379e9[_0x63f0('0x2e')][_0x63f0('0x1c')]);_0x15625c[_0x63f0('0x1b')]=qs[_0x63f0('0x1b')](_0x2379e9[_0x63f0('0x2e')][_0x63f0('0x1b')]);}_0x15625c[_0x63f0('0x36')]=qs[_0x63f0('0x37')](_0x2379e9[_0x63f0('0x2e')][_0x63f0('0x37')]);_0x15625c[_0x63f0('0x38')]=qs['filters'](_[_0x63f0('0x39')](_0x2379e9[_0x63f0('0x2e')],_0x43e115[_0x63f0('0x30')]),_0x23c612);if(_0x2379e9[_0x63f0('0x2e')][_0x63f0('0x3a')]){_0x15625c['where']=_[_0x63f0('0x3b')](_0x15625c[_0x63f0('0x38')],{'$or':_['map'](_0x23c612,function(_0x18b119){if(_0x18b119[_0x63f0('0x2b')]!==_0x63f0('0x3c')){var _0x548198={};_0x548198[_0x18b119[_0x63f0('0x26')]]={'$like':'%'+_0x2379e9[_0x63f0('0x2e')][_0x63f0('0x3a')]+'%'};return _0x548198;}})});}_0x15625c=_[_0x63f0('0x3b')]({},_0x15625c,_0x2379e9['options']);var _0x18bca9={'where':_0x15625c[_0x63f0('0x38')]};return db[_0x63f0('0x29')][_0x63f0('0x1a')](_0x18bca9)['then'](function(_0x194f7b){_0x36a5ca[_0x63f0('0x1a')]=_0x194f7b;if(_0x2379e9[_0x63f0('0x2e')][_0x63f0('0x3d')]){_0x15625c[_0x63f0('0x3e')]=[{'all':!![]}];}return db[_0x63f0('0x29')][_0x63f0('0x3f')](_0x15625c);})['then'](function(_0x2e025c){_0x36a5ca['rows']=_0x2e025c;return _0x36a5ca;})[_0x63f0('0x22')](respondWithFilteredResult(_0x371f66,_0x15625c))[_0x63f0('0x40')](handleError(_0x371f66,null));};exports[_0x63f0('0x41')]=function(_0x3a284b,_0x59b8c4){var _0x64debd={'raw':!![],'where':{'id':_0x3a284b[_0x63f0('0x42')]['id']}},_0x4dc953={};_0x4dc953[_0x63f0('0x2d')]=_['keys'](db['Cdr'][_0x63f0('0x2a')]);_0x4dc953[_0x63f0('0x2e')]=_['keys'](_0x3a284b['query']);_0x4dc953[_0x63f0('0x30')]=_['intersection'](_0x4dc953[_0x63f0('0x2d')],_0x4dc953[_0x63f0('0x2e')]);_0x64debd[_0x63f0('0x32')]=_['intersection'](_0x4dc953[_0x63f0('0x2d')],qs[_0x63f0('0x33')](_0x3a284b[_0x63f0('0x2e')][_0x63f0('0x33')]));_0x64debd[_0x63f0('0x32')]=_0x64debd['attributes']['length']?_0x64debd[_0x63f0('0x32')]:_0x4dc953[_0x63f0('0x2d')];if(_0x3a284b[_0x63f0('0x2e')][_0x63f0('0x3d')]){_0x64debd['include']=[{'all':!![]}];}_0x64debd=_['merge']({},_0x64debd,_0x3a284b[_0x63f0('0x43')]);return db['Cdr'][_0x63f0('0x44')](_0x64debd)['then'](handleEntityNotFound(_0x59b8c4,null))[_0x63f0('0x22')](respondWithResult(_0x59b8c4,null))[_0x63f0('0x40')](handleError(_0x59b8c4,null));};exports[_0x63f0('0x45')]=function(_0x3c981a,_0x4ff011){return db[_0x63f0('0x29')][_0x63f0('0x45')](_0x3c981a[_0x63f0('0x46')],{})[_0x63f0('0x22')](respondWithResult(_0x4ff011,0xc9))['catch'](handleError(_0x4ff011,null));};exports[_0x63f0('0x21')]=function(_0x39094f,_0x740bf4){if(_0x39094f['body']['id']){delete _0x39094f[_0x63f0('0x46')]['id'];}return db[_0x63f0('0x29')][_0x63f0('0x44')]({'where':{'id':_0x39094f[_0x63f0('0x42')]['id']}})[_0x63f0('0x22')](handleEntityNotFound(_0x740bf4,null))[_0x63f0('0x22')](saveUpdates(_0x39094f[_0x63f0('0x46')],null))[_0x63f0('0x22')](respondWithResult(_0x740bf4,null))[_0x63f0('0x40')](handleError(_0x740bf4,null));};exports[_0x63f0('0x23')]=function(_0x4921cd,_0x45510b){return db['Cdr'][_0x63f0('0x44')]({'where':{'id':_0x4921cd['params']['id']}})[_0x63f0('0x22')](handleEntityNotFound(_0x45510b,null))[_0x63f0('0x22')](removeEntity(_0x45510b,null))['catch'](handleError(_0x45510b,null));};exports[_0x63f0('0x47')]=function(_0x564d55,_0x354f85){return db['Cdr'][_0x63f0('0x47')]()[_0x63f0('0x22')](respondWithResult(_0x354f85,null))['catch'](handleError(_0x354f85,null));};
\ No newline at end of file
+var _0xf3cc=['then','destroy','end','stack','name','send','Cdr','rawAttributes','fieldName','key','model','map','query','keys','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','filters','filter','where','merge','type','VIRTUAL','options','includeAll','include','findAll','catch','show','params','find','create','body','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','path','sox','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','json','offset','undefined','count','limit','set','Content-Range','apply','reject','update'];(function(_0x2283dc,_0x2fcfc5){var _0x16db90=function(_0x376c35){while(--_0x376c35){_0x2283dc['push'](_0x2283dc['shift']());}};_0x16db90(++_0x2fcfc5);}(_0xf3cc,0x10d));var _0xcf3c=function(_0x3221cd,_0x4a4a4a){_0x3221cd=_0x3221cd-0x0;var _0x21a689=_0xf3cc[_0x3221cd];return _0x21a689;};'use strict';var emlformat=require(_0xcf3c('0x0'));var rimraf=require(_0xcf3c('0x1'));var zipdir=require(_0xcf3c('0x2'));var jsonpatch=require(_0xcf3c('0x3'));var rp=require('request-promise');var moment=require(_0xcf3c('0x4'));var BPromise=require(_0xcf3c('0x5'));var Mustache=require(_0xcf3c('0x6'));var util=require('util');var path=require(_0xcf3c('0x7'));var sox=require(_0xcf3c('0x8'));var csv=require('to-csv');var ejs=require(_0xcf3c('0x9'));var fs=require('fs');var fs_extra=require(_0xcf3c('0xa'));var _=require(_0xcf3c('0xb'));var squel=require(_0xcf3c('0xc'));var crypto=require(_0xcf3c('0xd'));var jsforce=require(_0xcf3c('0xe'));var deskjs=require(_0xcf3c('0xf'));var toCsv=require(_0xcf3c('0x10'));var querystring=require(_0xcf3c('0x11'));var Papa=require(_0xcf3c('0x12'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0xcf3c('0x13'));var as=require(_0xcf3c('0x14'));var hardwareService=require(_0xcf3c('0x15'));var logger=require(_0xcf3c('0x16'))(_0xcf3c('0x17'));var utils=require(_0xcf3c('0x18'));var config=require(_0xcf3c('0x19'));var licenseUtil=require(_0xcf3c('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x245b88,_0x389b0f){_0x389b0f=_0x389b0f||0xcc;return function(_0x59a8dc){if(_0x59a8dc){return _0x245b88[_0xcf3c('0x1b')](_0x389b0f);}return _0x245b88['status'](_0x389b0f)['end']();};}function respondWithResult(_0x56261f,_0x3fd714){_0x3fd714=_0x3fd714||0xc8;return function(_0x598576){if(_0x598576){return _0x56261f[_0xcf3c('0x1c')](_0x3fd714)[_0xcf3c('0x1d')](_0x598576);}};}function respondWithFilteredResult(_0x4e35fc,_0x3e759f){return function(_0x540046){if(_0x540046){var _0x30d023=typeof _0x3e759f[_0xcf3c('0x1e')]===_0xcf3c('0x1f')&&typeof _0x3e759f['limit']===_0xcf3c('0x1f');var _0x190c8c=_0x540046[_0xcf3c('0x20')];var _0x3f6cef=_0x30d023?0x0:_0x3e759f['offset'];var _0x3789b6=_0x30d023?_0x540046[_0xcf3c('0x20')]:_0x3e759f[_0xcf3c('0x1e')]+_0x3e759f[_0xcf3c('0x21')];var _0x3d0e0a;if(_0x3789b6>=_0x190c8c){_0x3789b6=_0x190c8c;_0x3d0e0a=0xc8;}else{_0x3d0e0a=0xce;}_0x4e35fc[_0xcf3c('0x1c')](_0x3d0e0a);return _0x4e35fc[_0xcf3c('0x22')](_0xcf3c('0x23'),_0x3f6cef+'-'+_0x3789b6+'/'+_0x190c8c)[_0xcf3c('0x1d')](_0x540046);}return null;};}function patchUpdates(_0x8e7738){return function(_0x26a26e){try{jsonpatch[_0xcf3c('0x24')](_0x26a26e,_0x8e7738,!![]);}catch(_0x4e80d4){return BPromise[_0xcf3c('0x25')](_0x4e80d4);}return _0x26a26e['save']();};}function saveUpdates(_0x3c9153,_0x1228c1){return function(_0x5dddc1){if(_0x5dddc1){return _0x5dddc1[_0xcf3c('0x26')](_0x3c9153)[_0xcf3c('0x27')](function(_0x328336){return _0x328336;});}return null;};}function removeEntity(_0x1d7e79,_0x32bbd5){return function(_0x3f1771){if(_0x3f1771){return _0x3f1771[_0xcf3c('0x28')]()[_0xcf3c('0x27')](function(){_0x1d7e79['status'](0xcc)[_0xcf3c('0x29')]();});}};}function handleEntityNotFound(_0x4ce43c,_0x2281b6){return function(_0x15b55c){if(!_0x15b55c){_0x4ce43c[_0xcf3c('0x1b')](0x194);}return _0x15b55c;};}function handleError(_0x35e546,_0x181c90){_0x181c90=_0x181c90||0x1f4;return function(_0x43c912){logger['error'](_0x43c912[_0xcf3c('0x2a')]);if(_0x43c912['name']){delete _0x43c912[_0xcf3c('0x2b')];}_0x35e546[_0xcf3c('0x1c')](_0x181c90)[_0xcf3c('0x2c')](_0x43c912);};}exports['index']=function(_0x397996,_0x54174a){var _0x1d8223={},_0xe22e99={},_0x21a329={'count':0x0,'rows':[]};var _0x5bdae3=_['map'](db[_0xcf3c('0x2d')][_0xcf3c('0x2e')],function(_0x1f53ee){return{'name':_0x1f53ee[_0xcf3c('0x2f')],'type':_0x1f53ee['type'][_0xcf3c('0x30')]};});_0xe22e99[_0xcf3c('0x31')]=_[_0xcf3c('0x32')](_0x5bdae3,'name');_0xe22e99[_0xcf3c('0x33')]=_[_0xcf3c('0x34')](_0x397996[_0xcf3c('0x33')]);_0xe22e99['filters']=_[_0xcf3c('0x35')](_0xe22e99[_0xcf3c('0x31')],_0xe22e99[_0xcf3c('0x33')]);_0x1d8223[_0xcf3c('0x36')]=_[_0xcf3c('0x35')](_0xe22e99['model'],qs[_0xcf3c('0x37')](_0x397996['query'][_0xcf3c('0x37')]));_0x1d8223['attributes']=_0x1d8223[_0xcf3c('0x36')][_0xcf3c('0x38')]?_0x1d8223[_0xcf3c('0x36')]:_0xe22e99[_0xcf3c('0x31')];if(!_0x397996[_0xcf3c('0x33')][_0xcf3c('0x39')](_0xcf3c('0x3a'))){_0x1d8223[_0xcf3c('0x21')]=qs['limit'](_0x397996[_0xcf3c('0x33')][_0xcf3c('0x21')]);_0x1d8223[_0xcf3c('0x1e')]=qs[_0xcf3c('0x1e')](_0x397996[_0xcf3c('0x33')][_0xcf3c('0x1e')]);}_0x1d8223[_0xcf3c('0x3b')]=qs[_0xcf3c('0x3c')](_0x397996[_0xcf3c('0x33')][_0xcf3c('0x3c')]);_0x1d8223['where']=qs[_0xcf3c('0x3d')](_['pick'](_0x397996['query'],_0xe22e99['filters']),_0x5bdae3);if(_0x397996[_0xcf3c('0x33')][_0xcf3c('0x3e')]){_0x1d8223[_0xcf3c('0x3f')]=_[_0xcf3c('0x40')](_0x1d8223['where'],{'$or':_['map'](_0x5bdae3,function(_0x27e186){if(_0x27e186[_0xcf3c('0x41')]!==_0xcf3c('0x42')){var _0x9c753f={};_0x9c753f[_0x27e186[_0xcf3c('0x2b')]]={'$like':'%'+_0x397996[_0xcf3c('0x33')]['filter']+'%'};return _0x9c753f;}})});}_0x1d8223=_[_0xcf3c('0x40')]({},_0x1d8223,_0x397996[_0xcf3c('0x43')]);var _0x292c4d={'where':_0x1d8223['where']};return db[_0xcf3c('0x2d')]['count'](_0x292c4d)['then'](function(_0x43ba75){_0x21a329[_0xcf3c('0x20')]=_0x43ba75;if(_0x397996[_0xcf3c('0x33')][_0xcf3c('0x44')]){_0x1d8223[_0xcf3c('0x45')]=[{'all':!![]}];}return db[_0xcf3c('0x2d')][_0xcf3c('0x46')](_0x1d8223);})[_0xcf3c('0x27')](function(_0x245c77){_0x21a329['rows']=_0x245c77;return _0x21a329;})['then'](respondWithFilteredResult(_0x54174a,_0x1d8223))[_0xcf3c('0x47')](handleError(_0x54174a,null));};exports[_0xcf3c('0x48')]=function(_0x4f5b07,_0x3092e4){var _0x48e5f1={'raw':!![],'where':{'id':_0x4f5b07[_0xcf3c('0x49')]['id']}},_0x2831de={};_0x2831de[_0xcf3c('0x31')]=_[_0xcf3c('0x34')](db[_0xcf3c('0x2d')][_0xcf3c('0x2e')]);_0x2831de[_0xcf3c('0x33')]=_[_0xcf3c('0x34')](_0x4f5b07[_0xcf3c('0x33')]);_0x2831de[_0xcf3c('0x3d')]=_[_0xcf3c('0x35')](_0x2831de[_0xcf3c('0x31')],_0x2831de[_0xcf3c('0x33')]);_0x48e5f1[_0xcf3c('0x36')]=_[_0xcf3c('0x35')](_0x2831de[_0xcf3c('0x31')],qs[_0xcf3c('0x37')](_0x4f5b07[_0xcf3c('0x33')]['fields']));_0x48e5f1['attributes']=_0x48e5f1[_0xcf3c('0x36')]['length']?_0x48e5f1[_0xcf3c('0x36')]:_0x2831de[_0xcf3c('0x31')];if(_0x4f5b07[_0xcf3c('0x33')][_0xcf3c('0x44')]){_0x48e5f1[_0xcf3c('0x45')]=[{'all':!![]}];}_0x48e5f1=_['merge']({},_0x48e5f1,_0x4f5b07['options']);return db['Cdr'][_0xcf3c('0x4a')](_0x48e5f1)[_0xcf3c('0x27')](handleEntityNotFound(_0x3092e4,null))['then'](respondWithResult(_0x3092e4,null))[_0xcf3c('0x47')](handleError(_0x3092e4,null));};exports[_0xcf3c('0x4b')]=function(_0x1cfbc9,_0x2800d4){return db[_0xcf3c('0x2d')][_0xcf3c('0x4b')](_0x1cfbc9[_0xcf3c('0x4c')],{})[_0xcf3c('0x27')](respondWithResult(_0x2800d4,0xc9))[_0xcf3c('0x47')](handleError(_0x2800d4,null));};exports[_0xcf3c('0x26')]=function(_0x25d090,_0x2cfc0b){if(_0x25d090['body']['id']){delete _0x25d090[_0xcf3c('0x4c')]['id'];}return db[_0xcf3c('0x2d')][_0xcf3c('0x4a')]({'where':{'id':_0x25d090[_0xcf3c('0x49')]['id']}})['then'](handleEntityNotFound(_0x2cfc0b,null))[_0xcf3c('0x27')](saveUpdates(_0x25d090['body'],null))[_0xcf3c('0x27')](respondWithResult(_0x2cfc0b,null))['catch'](handleError(_0x2cfc0b,null));};exports['destroy']=function(_0x4bba35,_0x5e3abc){return db[_0xcf3c('0x2d')][_0xcf3c('0x4a')]({'where':{'id':_0x4bba35['params']['id']}})[_0xcf3c('0x27')](handleEntityNotFound(_0x5e3abc,null))[_0xcf3c('0x27')](removeEntity(_0x5e3abc,null))[_0xcf3c('0x47')](handleError(_0x5e3abc,null));};exports['describe']=function(_0x5b5e6a,_0x43f2e1){return db[_0xcf3c('0x2d')]['describe']()['then'](respondWithResult(_0x43f2e1,null))['catch'](handleError(_0x43f2e1,null));};
\ No newline at end of file