Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.controller.js
index 63e261c..a8a9017 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7ab8=['map','rawAttributes','fieldName','key','model','query','filters','intersection','attributes','fields','length','nolimit','order','sort','where','pick','filter','merge','options','VoiceTransferReport','includeAll','include','rows','catch','params','keys','find','create','body','eml-format','rimraf','zip-dir','request-promise','bluebird','util','path','sox','to-csv','ejs','lodash','crypto','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','reject','update','then','destroy','error','stack','name','send','index'];(function(_0x2adf4,_0x5df6de){var _0x45d47d=function(_0x903910){while(--_0x903910){_0x2adf4['push'](_0x2adf4['shift']());}};_0x45d47d(++_0x5df6de);}(_0x7ab8,0x1c1));var _0x87ab=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x7ab8[_0x2c91e9];return _0x13f0ff;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x87ab('0x0'));var rimraf=require(_0x87ab('0x1'));var zipdir=require(_0x87ab('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x87ab('0x3'));var moment=require('moment');var BPromise=require(_0x87ab('0x4'));var Mustache=require('mustache');var util=require(_0x87ab('0x5'));var path=require(_0x87ab('0x6'));var sox=require(_0x87ab('0x7'));var csv=require(_0x87ab('0x8'));var ejs=require(_0x87ab('0x9'));var fs=require('fs');var _=require(_0x87ab('0xa'));var squel=require('squel');var crypto=require(_0x87ab('0xb'));var jsforce=require(_0x87ab('0xc'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x87ab('0xd'));var Redis=require(_0x87ab('0xe'));var authService=require(_0x87ab('0xf'));var qs=require(_0x87ab('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x87ab('0x11'));var logger=require('../../config/logger')(_0x87ab('0x12'));var utils=require('../../config/utils');var config=require(_0x87ab('0x13'));var licenseUtil=require(_0x87ab('0x14'));var db=require(_0x87ab('0x15'))['db'];function respondWithStatusCode(_0x5a1c56,_0x2c01cd){_0x2c01cd=_0x2c01cd||0xcc;return function(_0x5d6972){if(_0x5d6972){return _0x5a1c56[_0x87ab('0x16')](_0x2c01cd);}return _0x5a1c56[_0x87ab('0x17')](_0x2c01cd)[_0x87ab('0x18')]();};}function respondWithResult(_0x209cf9,_0x2604d3){_0x2604d3=_0x2604d3||0xc8;return function(_0x16705e){if(_0x16705e){return _0x209cf9[_0x87ab('0x17')](_0x2604d3)[_0x87ab('0x19')](_0x16705e);}};}function respondWithFilteredResult(_0x16809b,_0x40389e){return function(_0x4136d2){if(_0x4136d2){var _0x30cee3=_0x4136d2[_0x87ab('0x1a')],_0x23d210=_0x40389e['offset'],_0xd05e61=_0x40389e[_0x87ab('0x1b')]+_0x40389e[_0x87ab('0x1c')],_0x10e4e8;if(_0xd05e61>=_0x30cee3){_0xd05e61=_0x30cee3;_0x10e4e8=0xc8;}else{_0x10e4e8=0xce;}_0x16809b[_0x87ab('0x17')](_0x10e4e8);return _0x16809b[_0x87ab('0x1d')](_0x87ab('0x1e'),_0x23d210+'-'+_0xd05e61+'/'+_0x30cee3)['json'](_0x4136d2);}return null;};}function patchUpdates(_0x1e55fb){return function(_0x225bb4){try{jsonpatch[_0x87ab('0x1f')](_0x225bb4,_0x1e55fb,!![]);}catch(_0x28b00f){return BPromise[_0x87ab('0x20')](_0x28b00f);}return _0x225bb4['save']();};}function saveUpdates(_0x3bd6da,_0x2097db){return function(_0x50b9df){if(_0x50b9df){return _0x50b9df[_0x87ab('0x21')](_0x3bd6da)[_0x87ab('0x22')](function(_0x214101){return _0x214101;});}return null;};}function removeEntity(_0x1492e0,_0x454021){return function(_0x154738){if(_0x154738){return _0x154738[_0x87ab('0x23')]()[_0x87ab('0x22')](function(){_0x1492e0[_0x87ab('0x17')](0xcc)[_0x87ab('0x18')]();});}};}function handleEntityNotFound(_0x47eee7,_0x32def4){return function(_0x128902){if(!_0x128902){_0x47eee7['sendStatus'](0x194);}return _0x128902;};}function handleError(_0x461eee,_0x57bdd4){_0x57bdd4=_0x57bdd4||0x1f4;return function(_0x217f94){logger[_0x87ab('0x24')](_0x217f94[_0x87ab('0x25')]);if(_0x217f94[_0x87ab('0x26')]){delete _0x217f94[_0x87ab('0x26')];}_0x461eee[_0x87ab('0x17')](_0x57bdd4)[_0x87ab('0x27')](_0x217f94);};}exports[_0x87ab('0x28')]=function(_0x3dc43f,_0x4ee023){var _0x30f510={},_0x4ca16e={},_0x532c4b={'count':0x0,'rows':[]};var _0x3b88fd=_[_0x87ab('0x29')](db['VoiceTransferReport'][_0x87ab('0x2a')],function(_0x13a911){return{'name':_0x13a911[_0x87ab('0x2b')],'type':_0x13a911['type'][_0x87ab('0x2c')]};});_0x4ca16e[_0x87ab('0x2d')]=_[_0x87ab('0x29')](_0x3b88fd,_0x87ab('0x26'));_0x4ca16e[_0x87ab('0x2e')]=_['keys'](_0x3dc43f[_0x87ab('0x2e')]);_0x4ca16e[_0x87ab('0x2f')]=_[_0x87ab('0x30')](_0x4ca16e[_0x87ab('0x2d')],_0x4ca16e[_0x87ab('0x2e')]);_0x30f510[_0x87ab('0x31')]=_[_0x87ab('0x30')](_0x4ca16e['model'],qs[_0x87ab('0x32')](_0x3dc43f[_0x87ab('0x2e')][_0x87ab('0x32')]));_0x30f510[_0x87ab('0x31')]=_0x30f510[_0x87ab('0x31')][_0x87ab('0x33')]?_0x30f510[_0x87ab('0x31')]:_0x4ca16e[_0x87ab('0x2d')];if(!_0x3dc43f[_0x87ab('0x2e')]['hasOwnProperty'](_0x87ab('0x34'))){_0x30f510[_0x87ab('0x1c')]=qs[_0x87ab('0x1c')](_0x3dc43f[_0x87ab('0x2e')][_0x87ab('0x1c')]);_0x30f510['offset']=qs['offset'](_0x3dc43f[_0x87ab('0x2e')]['offset']);}_0x30f510[_0x87ab('0x35')]=qs[_0x87ab('0x36')](_0x3dc43f[_0x87ab('0x2e')][_0x87ab('0x36')]);_0x30f510[_0x87ab('0x37')]=qs[_0x87ab('0x2f')](_[_0x87ab('0x38')](_0x3dc43f[_0x87ab('0x2e')],_0x4ca16e[_0x87ab('0x2f')]),_0x3b88fd);if(_0x3dc43f[_0x87ab('0x2e')][_0x87ab('0x39')]){_0x30f510['where']=_[_0x87ab('0x3a')](_0x30f510[_0x87ab('0x37')],{'$or':_['map'](_0x3b88fd,function(_0x284d19){if(_0x284d19['type']!=='VIRTUAL'){var _0x1c68c2={};_0x1c68c2[_0x284d19[_0x87ab('0x26')]]={'$like':'%'+_0x3dc43f[_0x87ab('0x2e')][_0x87ab('0x39')]+'%'};return _0x1c68c2;}})});}_0x30f510=_[_0x87ab('0x3a')]({},_0x30f510,_0x3dc43f[_0x87ab('0x3b')]);var _0x26e49c={'where':_0x30f510[_0x87ab('0x37')]};return db[_0x87ab('0x3c')][_0x87ab('0x1a')](_0x26e49c)['then'](function(_0x517528){_0x532c4b[_0x87ab('0x1a')]=_0x517528;if(_0x3dc43f[_0x87ab('0x2e')][_0x87ab('0x3d')]){_0x30f510[_0x87ab('0x3e')]=[{'all':!![]}];}return db[_0x87ab('0x3c')]['findAll'](_0x30f510);})[_0x87ab('0x22')](function(_0x126059){_0x532c4b[_0x87ab('0x3f')]=_0x126059;return _0x532c4b;})[_0x87ab('0x22')](respondWithFilteredResult(_0x4ee023,_0x30f510))[_0x87ab('0x40')](handleError(_0x4ee023,null));};exports['show']=function(_0x18b7dd,_0x1a45fa){var _0x1303bc={'raw':!![],'where':{'id':_0x18b7dd[_0x87ab('0x41')]['id']}},_0x28b400={};_0x28b400[_0x87ab('0x2d')]=_[_0x87ab('0x42')](db[_0x87ab('0x3c')][_0x87ab('0x2a')]);_0x28b400[_0x87ab('0x2e')]=_['keys'](_0x18b7dd[_0x87ab('0x2e')]);_0x28b400[_0x87ab('0x2f')]=_[_0x87ab('0x30')](_0x28b400[_0x87ab('0x2d')],_0x28b400[_0x87ab('0x2e')]);_0x1303bc['attributes']=_[_0x87ab('0x30')](_0x28b400[_0x87ab('0x2d')],qs[_0x87ab('0x32')](_0x18b7dd[_0x87ab('0x2e')]['fields']));_0x1303bc[_0x87ab('0x31')]=_0x1303bc[_0x87ab('0x31')]['length']?_0x1303bc[_0x87ab('0x31')]:_0x28b400[_0x87ab('0x2d')];if(_0x18b7dd['query'][_0x87ab('0x3d')]){_0x1303bc[_0x87ab('0x3e')]=[{'all':!![]}];}_0x1303bc=_['merge']({},_0x1303bc,_0x18b7dd[_0x87ab('0x3b')]);return db[_0x87ab('0x3c')][_0x87ab('0x43')](_0x1303bc)[_0x87ab('0x22')](handleEntityNotFound(_0x1a45fa,null))[_0x87ab('0x22')](respondWithResult(_0x1a45fa,null))[_0x87ab('0x40')](handleError(_0x1a45fa,null));};exports[_0x87ab('0x44')]=function(_0x3a3f54,_0x2574a0){return db[_0x87ab('0x3c')][_0x87ab('0x44')](_0x3a3f54[_0x87ab('0x45')],{})[_0x87ab('0x22')](respondWithResult(_0x2574a0,0xc9))[_0x87ab('0x40')](handleError(_0x2574a0,null));};exports['update']=function(_0x15b839,_0x1228f7){if(_0x15b839['body']['id']){delete _0x15b839[_0x87ab('0x45')]['id'];}return db[_0x87ab('0x3c')][_0x87ab('0x43')]({'where':{'id':_0x15b839[_0x87ab('0x41')]['id']}})[_0x87ab('0x22')](handleEntityNotFound(_0x1228f7,null))[_0x87ab('0x22')](saveUpdates(_0x15b839[_0x87ab('0x45')],null))[_0x87ab('0x22')](respondWithResult(_0x1228f7,null))['catch'](handleError(_0x1228f7,null));};exports[_0x87ab('0x23')]=function(_0x6a028d,_0x444434){return db[_0x87ab('0x3c')]['find']({'where':{'id':_0x6a028d['params']['id']}})[_0x87ab('0x22')](handleEntityNotFound(_0x444434,null))[_0x87ab('0x22')](removeEntity(_0x444434,null))[_0x87ab('0x40')](handleError(_0x444434,null));};
\ No newline at end of file
+var _0x3eab=['sendStatus','status','json','offset','undefined','count','limit','set','Content-Range','apply','update','destroy','then','error','name','send','index','rawAttributes','fieldName','type','key','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','options','VoiceTransferReport','includeAll','rows','catch','params','include','create','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','../../config/utils','../../config/environment','../../mysqldb'];(function(_0xe9d28a,_0x3d5dbd){var _0x180249=function(_0x216970){while(--_0x216970){_0xe9d28a['push'](_0xe9d28a['shift']());}};_0x180249(++_0x3d5dbd);}(_0x3eab,0x151));var _0xb3ea=function(_0x1f6d9f,_0x3b55b1){_0x1f6d9f=_0x1f6d9f-0x0;var _0x4f7356=_0x3eab[_0x1f6d9f];return _0x4f7356;};'use strict';var emlformat=require(_0xb3ea('0x0'));var rimraf=require(_0xb3ea('0x1'));var zipdir=require(_0xb3ea('0x2'));var jsonpatch=require(_0xb3ea('0x3'));var rp=require('request-promise');var moment=require(_0xb3ea('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xb3ea('0x5'));var util=require(_0xb3ea('0x6'));var path=require(_0xb3ea('0x7'));var sox=require(_0xb3ea('0x8'));var csv=require(_0xb3ea('0x9'));var ejs=require(_0xb3ea('0xa'));var fs=require('fs');var fs_extra=require(_0xb3ea('0xb'));var _=require('lodash');var squel=require('squel');var crypto=require(_0xb3ea('0xc'));var jsforce=require(_0xb3ea('0xd'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0xb3ea('0xe'));var Papa=require(_0xb3ea('0xf'));var Redis=require(_0xb3ea('0x10'));var authService=require(_0xb3ea('0x11'));var qs=require(_0xb3ea('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0xb3ea('0x13'))('api');var utils=require(_0xb3ea('0x14'));var config=require(_0xb3ea('0x15'));var licenseUtil=require('../../config/license/util');var db=require(_0xb3ea('0x16'))['db'];function respondWithStatusCode(_0x3d2ece,_0x561f4e){_0x561f4e=_0x561f4e||0xcc;return function(_0x50b869){if(_0x50b869){return _0x3d2ece[_0xb3ea('0x17')](_0x561f4e);}return _0x3d2ece[_0xb3ea('0x18')](_0x561f4e)['end']();};}function respondWithResult(_0x545df8,_0x481ee5){_0x481ee5=_0x481ee5||0xc8;return function(_0x364bec){if(_0x364bec){return _0x545df8[_0xb3ea('0x18')](_0x481ee5)[_0xb3ea('0x19')](_0x364bec);}};}function respondWithFilteredResult(_0x44b810,_0x361a18){return function(_0x108308){if(_0x108308){var _0x213faa=typeof _0x361a18[_0xb3ea('0x1a')]===_0xb3ea('0x1b')&&typeof _0x361a18['limit']===_0xb3ea('0x1b');var _0x5a5e07=_0x108308[_0xb3ea('0x1c')];var _0x457801=_0x213faa?0x0:_0x361a18['offset'];var _0x4ad5ce=_0x213faa?_0x108308[_0xb3ea('0x1c')]:_0x361a18[_0xb3ea('0x1a')]+_0x361a18[_0xb3ea('0x1d')];var _0x532906;if(_0x4ad5ce>=_0x5a5e07){_0x4ad5ce=_0x5a5e07;_0x532906=0xc8;}else{_0x532906=0xce;}_0x44b810[_0xb3ea('0x18')](_0x532906);return _0x44b810[_0xb3ea('0x1e')](_0xb3ea('0x1f'),_0x457801+'-'+_0x4ad5ce+'/'+_0x5a5e07)[_0xb3ea('0x19')](_0x108308);}return null;};}function patchUpdates(_0x3ed564){return function(_0x4bb0df){try{jsonpatch[_0xb3ea('0x20')](_0x4bb0df,_0x3ed564,!![]);}catch(_0x1158ef){return BPromise['reject'](_0x1158ef);}return _0x4bb0df['save']();};}function saveUpdates(_0x1a4e2f,_0x3fbeb7){return function(_0x5311c9){if(_0x5311c9){return _0x5311c9[_0xb3ea('0x21')](_0x1a4e2f)['then'](function(_0x3ed12f){return _0x3ed12f;});}return null;};}function removeEntity(_0x3aaf15,_0x28757e){return function(_0xabde91){if(_0xabde91){return _0xabde91[_0xb3ea('0x22')]()[_0xb3ea('0x23')](function(){_0x3aaf15[_0xb3ea('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x4853e8,_0x39ca2f){return function(_0x9cc102){if(!_0x9cc102){_0x4853e8['sendStatus'](0x194);}return _0x9cc102;};}function handleError(_0x49320b,_0x1decd0){_0x1decd0=_0x1decd0||0x1f4;return function(_0x225cf7){logger[_0xb3ea('0x24')](_0x225cf7['stack']);if(_0x225cf7[_0xb3ea('0x25')]){delete _0x225cf7[_0xb3ea('0x25')];}_0x49320b[_0xb3ea('0x18')](_0x1decd0)[_0xb3ea('0x26')](_0x225cf7);};}exports[_0xb3ea('0x27')]=function(_0x22b477,_0x530847){var _0x160f9a={},_0x30f9e3={},_0x349562={'count':0x0,'rows':[]};var _0x35aa37=_['map'](db['VoiceTransferReport'][_0xb3ea('0x28')],function(_0x3bd234){return{'name':_0x3bd234[_0xb3ea('0x29')],'type':_0x3bd234[_0xb3ea('0x2a')][_0xb3ea('0x2b')]};});_0x30f9e3[_0xb3ea('0x2c')]=_[_0xb3ea('0x2d')](_0x35aa37,_0xb3ea('0x25'));_0x30f9e3[_0xb3ea('0x2e')]=_[_0xb3ea('0x2f')](_0x22b477[_0xb3ea('0x2e')]);_0x30f9e3[_0xb3ea('0x30')]=_[_0xb3ea('0x31')](_0x30f9e3[_0xb3ea('0x2c')],_0x30f9e3[_0xb3ea('0x2e')]);_0x160f9a[_0xb3ea('0x32')]=_[_0xb3ea('0x31')](_0x30f9e3[_0xb3ea('0x2c')],qs[_0xb3ea('0x33')](_0x22b477[_0xb3ea('0x2e')][_0xb3ea('0x33')]));_0x160f9a['attributes']=_0x160f9a['attributes'][_0xb3ea('0x34')]?_0x160f9a[_0xb3ea('0x32')]:_0x30f9e3['model'];if(!_0x22b477[_0xb3ea('0x2e')][_0xb3ea('0x35')](_0xb3ea('0x36'))){_0x160f9a[_0xb3ea('0x1d')]=qs['limit'](_0x22b477[_0xb3ea('0x2e')][_0xb3ea('0x1d')]);_0x160f9a[_0xb3ea('0x1a')]=qs[_0xb3ea('0x1a')](_0x22b477[_0xb3ea('0x2e')][_0xb3ea('0x1a')]);}_0x160f9a[_0xb3ea('0x37')]=qs[_0xb3ea('0x38')](_0x22b477[_0xb3ea('0x2e')][_0xb3ea('0x38')]);_0x160f9a[_0xb3ea('0x39')]=qs[_0xb3ea('0x30')](_[_0xb3ea('0x3a')](_0x22b477[_0xb3ea('0x2e')],_0x30f9e3['filters']),_0x35aa37);if(_0x22b477[_0xb3ea('0x2e')][_0xb3ea('0x3b')]){_0x160f9a[_0xb3ea('0x39')]=_[_0xb3ea('0x3c')](_0x160f9a[_0xb3ea('0x39')],{'$or':_[_0xb3ea('0x2d')](_0x35aa37,function(_0x1fb30c){if(_0x1fb30c[_0xb3ea('0x2a')]!=='VIRTUAL'){var _0x18c590={};_0x18c590[_0x1fb30c[_0xb3ea('0x25')]]={'$like':'%'+_0x22b477['query'][_0xb3ea('0x3b')]+'%'};return _0x18c590;}})});}_0x160f9a=_['merge']({},_0x160f9a,_0x22b477[_0xb3ea('0x3d')]);var _0x198fa9={'where':_0x160f9a[_0xb3ea('0x39')]};return db[_0xb3ea('0x3e')][_0xb3ea('0x1c')](_0x198fa9)[_0xb3ea('0x23')](function(_0x21f320){_0x349562['count']=_0x21f320;if(_0x22b477['query'][_0xb3ea('0x3f')]){_0x160f9a['include']=[{'all':!![]}];}return db[_0xb3ea('0x3e')]['findAll'](_0x160f9a);})[_0xb3ea('0x23')](function(_0x4a1d2c){_0x349562[_0xb3ea('0x40')]=_0x4a1d2c;return _0x349562;})[_0xb3ea('0x23')](respondWithFilteredResult(_0x530847,_0x160f9a))[_0xb3ea('0x41')](handleError(_0x530847,null));};exports['show']=function(_0xdd2db3,_0x1a7f88){var _0x37fadc={'raw':!![],'where':{'id':_0xdd2db3[_0xb3ea('0x42')]['id']}},_0x17f0ee={};_0x17f0ee[_0xb3ea('0x2c')]=_[_0xb3ea('0x2f')](db[_0xb3ea('0x3e')][_0xb3ea('0x28')]);_0x17f0ee[_0xb3ea('0x2e')]=_['keys'](_0xdd2db3['query']);_0x17f0ee[_0xb3ea('0x30')]=_[_0xb3ea('0x31')](_0x17f0ee[_0xb3ea('0x2c')],_0x17f0ee[_0xb3ea('0x2e')]);_0x37fadc[_0xb3ea('0x32')]=_['intersection'](_0x17f0ee[_0xb3ea('0x2c')],qs['fields'](_0xdd2db3[_0xb3ea('0x2e')][_0xb3ea('0x33')]));_0x37fadc[_0xb3ea('0x32')]=_0x37fadc['attributes'][_0xb3ea('0x34')]?_0x37fadc[_0xb3ea('0x32')]:_0x17f0ee[_0xb3ea('0x2c')];if(_0xdd2db3[_0xb3ea('0x2e')][_0xb3ea('0x3f')]){_0x37fadc[_0xb3ea('0x43')]=[{'all':!![]}];}_0x37fadc=_[_0xb3ea('0x3c')]({},_0x37fadc,_0xdd2db3['options']);return db['VoiceTransferReport']['find'](_0x37fadc)[_0xb3ea('0x23')](handleEntityNotFound(_0x1a7f88,null))[_0xb3ea('0x23')](respondWithResult(_0x1a7f88,null))[_0xb3ea('0x41')](handleError(_0x1a7f88,null));};exports[_0xb3ea('0x44')]=function(_0x13d6bc,_0x462c4d){return db[_0xb3ea('0x3e')][_0xb3ea('0x44')](_0x13d6bc[_0xb3ea('0x45')],{})['then'](respondWithResult(_0x462c4d,0xc9))[_0xb3ea('0x41')](handleError(_0x462c4d,null));};exports['update']=function(_0x4ef3ab,_0xa96fc7){if(_0x4ef3ab[_0xb3ea('0x45')]['id']){delete _0x4ef3ab[_0xb3ea('0x45')]['id'];}return db[_0xb3ea('0x3e')][_0xb3ea('0x46')]({'where':{'id':_0x4ef3ab[_0xb3ea('0x42')]['id']}})['then'](handleEntityNotFound(_0xa96fc7,null))['then'](saveUpdates(_0x4ef3ab['body'],null))['then'](respondWithResult(_0xa96fc7,null))['catch'](handleError(_0xa96fc7,null));};exports[_0xb3ea('0x22')]=function(_0x3e2b50,_0x95f9f4){return db[_0xb3ea('0x3e')][_0xb3ea('0x46')]({'where':{'id':_0x3e2b50[_0xb3ea('0x42')]['id']}})['then'](handleEntityNotFound(_0x95f9f4,null))[_0xb3ea('0x23')](removeEntity(_0x95f9f4,null))[_0xb3ea('0x41')](handleError(_0x95f9f4,null));};exports['describe']=function(_0x27413f,_0x2b954b){return db[_0xb3ea('0x3e')][_0xb3ea('0x47')]()[_0xb3ea('0x23')](respondWithResult(_0x2b954b,null))['catch'](handleError(_0x2b954b,null));};
\ No newline at end of file