Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / chatQueueReport / chatQueueReport.controller.js
index 3442a2d..526851e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x99a0=['ejs','fs-extra','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset','undefined','limit','set','apply','reject','save','then','destroy','error','name','map','ChatQueueReport','rawAttributes','type','key','model','query','keys','intersection','attributes','hasOwnProperty','nolimit','order','sort','where','filters','filter','merge','VIRTUAL','options','count','include','findAll','rows','catch','show','params','fields','includeAll','find','body','update','describe','eml-format','rimraf','bluebird','mustache','path','sox','to-csv'];(function(_0x1dce8f,_0x292ab0){var _0x2107e1=function(_0x2ba53a){while(--_0x2ba53a){_0x1dce8f['push'](_0x1dce8f['shift']());}};_0x2107e1(++_0x292ab0);}(_0x99a0,0x121));var _0x099a=function(_0x47da47,_0x2e2deb){_0x47da47=_0x47da47-0x0;var _0x1efd3b=_0x99a0[_0x47da47];return _0x1efd3b;};'use strict';var emlformat=require(_0x099a('0x0'));var rimraf=require(_0x099a('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x099a('0x2'));var Mustache=require(_0x099a('0x3'));var util=require('util');var path=require(_0x099a('0x4'));var sox=require(_0x099a('0x5'));var csv=require(_0x099a('0x6'));var ejs=require(_0x099a('0x7'));var fs=require('fs');var fs_extra=require(_0x099a('0x8'));var _=require(_0x099a('0x9'));var squel=require('squel');var crypto=require(_0x099a('0xa'));var jsforce=require(_0x099a('0xb'));var deskjs=require(_0x099a('0xc'));var toCsv=require('to-csv');var querystring=require(_0x099a('0xd'));var Papa=require(_0x099a('0xe'));var Redis=require(_0x099a('0xf'));var authService=require(_0x099a('0x10'));var qs=require(_0x099a('0x11'));var as=require(_0x099a('0x12'));var hardwareService=require(_0x099a('0x13'));var logger=require(_0x099a('0x14'))(_0x099a('0x15'));var utils=require(_0x099a('0x16'));var config=require(_0x099a('0x17'));var licenseUtil=require(_0x099a('0x18'));var db=require(_0x099a('0x19'))['db'];function respondWithStatusCode(_0x1e9dc1,_0x2e8afc){_0x2e8afc=_0x2e8afc||0xcc;return function(_0x4bd3ee){if(_0x4bd3ee){return _0x1e9dc1[_0x099a('0x1a')](_0x2e8afc);}return _0x1e9dc1['status'](_0x2e8afc)[_0x099a('0x1b')]();};}function respondWithResult(_0x4f2dbe,_0x249392){_0x249392=_0x249392||0xc8;return function(_0x3a134e){if(_0x3a134e){return _0x4f2dbe[_0x099a('0x1c')](_0x249392)[_0x099a('0x1d')](_0x3a134e);}};}function respondWithFilteredResult(_0x23a5fd,_0x3b4bdf){return function(_0x5086d8){if(_0x5086d8){var _0x443eea=typeof _0x3b4bdf[_0x099a('0x1e')]===_0x099a('0x1f')&&typeof _0x3b4bdf[_0x099a('0x20')]==='undefined';var _0x2831a2=_0x5086d8['count'];var _0x1d3924=_0x443eea?0x0:_0x3b4bdf[_0x099a('0x1e')];var _0x295e92=_0x443eea?_0x5086d8['count']:_0x3b4bdf[_0x099a('0x1e')]+_0x3b4bdf[_0x099a('0x20')];var _0x1c5314;if(_0x295e92>=_0x2831a2){_0x295e92=_0x2831a2;_0x1c5314=0xc8;}else{_0x1c5314=0xce;}_0x23a5fd[_0x099a('0x1c')](_0x1c5314);return _0x23a5fd[_0x099a('0x21')]('Content-Range',_0x1d3924+'-'+_0x295e92+'/'+_0x2831a2)['json'](_0x5086d8);}return null;};}function patchUpdates(_0x2ec23b){return function(_0x851d2){try{jsonpatch[_0x099a('0x22')](_0x851d2,_0x2ec23b,!![]);}catch(_0x470df6){return BPromise[_0x099a('0x23')](_0x470df6);}return _0x851d2[_0x099a('0x24')]();};}function saveUpdates(_0x2b2b9b,_0x23558b){return function(_0x545830){if(_0x545830){return _0x545830['update'](_0x2b2b9b)[_0x099a('0x25')](function(_0x38dd6a){return _0x38dd6a;});}return null;};}function removeEntity(_0x2c9033,_0x7cd361){return function(_0x1d1e5f){if(_0x1d1e5f){return _0x1d1e5f[_0x099a('0x26')]()[_0x099a('0x25')](function(){_0x2c9033[_0x099a('0x1c')](0xcc)[_0x099a('0x1b')]();});}};}function handleEntityNotFound(_0x42ee18,_0x21a937){return function(_0x4d63d5){if(!_0x4d63d5){_0x42ee18[_0x099a('0x1a')](0x194);}return _0x4d63d5;};}function handleError(_0x5e316b,_0x2a5417){_0x2a5417=_0x2a5417||0x1f4;return function(_0x39f520){logger[_0x099a('0x27')](_0x39f520['stack']);if(_0x39f520[_0x099a('0x28')]){delete _0x39f520[_0x099a('0x28')];}_0x5e316b[_0x099a('0x1c')](_0x2a5417)['send'](_0x39f520);};}exports['index']=function(_0x560fdb,_0x2b1597){var _0x1938d0={},_0x4a1663={},_0x2ab9a5={'count':0x0,'rows':[]};var _0x2e403e=_[_0x099a('0x29')](db[_0x099a('0x2a')][_0x099a('0x2b')],function(_0x36c1b4){return{'name':_0x36c1b4['fieldName'],'type':_0x36c1b4[_0x099a('0x2c')][_0x099a('0x2d')]};});_0x4a1663[_0x099a('0x2e')]=_[_0x099a('0x29')](_0x2e403e,_0x099a('0x28'));_0x4a1663[_0x099a('0x2f')]=_[_0x099a('0x30')](_0x560fdb[_0x099a('0x2f')]);_0x4a1663['filters']=_[_0x099a('0x31')](_0x4a1663[_0x099a('0x2e')],_0x4a1663[_0x099a('0x2f')]);_0x1938d0[_0x099a('0x32')]=_[_0x099a('0x31')](_0x4a1663[_0x099a('0x2e')],qs['fields'](_0x560fdb[_0x099a('0x2f')]['fields']));_0x1938d0[_0x099a('0x32')]=_0x1938d0[_0x099a('0x32')]['length']?_0x1938d0[_0x099a('0x32')]:_0x4a1663[_0x099a('0x2e')];if(!_0x560fdb[_0x099a('0x2f')][_0x099a('0x33')](_0x099a('0x34'))){_0x1938d0['limit']=qs[_0x099a('0x20')](_0x560fdb[_0x099a('0x2f')]['limit']);_0x1938d0[_0x099a('0x1e')]=qs[_0x099a('0x1e')](_0x560fdb[_0x099a('0x2f')]['offset']);}_0x1938d0[_0x099a('0x35')]=qs[_0x099a('0x36')](_0x560fdb[_0x099a('0x2f')][_0x099a('0x36')]);_0x1938d0[_0x099a('0x37')]=qs[_0x099a('0x38')](_['pick'](_0x560fdb[_0x099a('0x2f')],_0x4a1663['filters']),_0x2e403e);if(_0x560fdb[_0x099a('0x2f')][_0x099a('0x39')]){_0x1938d0['where']=_[_0x099a('0x3a')](_0x1938d0[_0x099a('0x37')],{'$or':_[_0x099a('0x29')](_0x2e403e,function(_0x434cee){if(_0x434cee[_0x099a('0x2c')]!==_0x099a('0x3b')){var _0x1386cb={};_0x1386cb[_0x434cee[_0x099a('0x28')]]={'$like':'%'+_0x560fdb[_0x099a('0x2f')]['filter']+'%'};return _0x1386cb;}})});}_0x1938d0=_[_0x099a('0x3a')]({},_0x1938d0,_0x560fdb[_0x099a('0x3c')]);var _0x2efb31={'where':_0x1938d0[_0x099a('0x37')]};return db[_0x099a('0x2a')][_0x099a('0x3d')](_0x2efb31)['then'](function(_0x482e9e){_0x2ab9a5[_0x099a('0x3d')]=_0x482e9e;if(_0x560fdb[_0x099a('0x2f')]['includeAll']){_0x1938d0[_0x099a('0x3e')]=[{'all':!![]}];}return db['ChatQueueReport'][_0x099a('0x3f')](_0x1938d0);})[_0x099a('0x25')](function(_0x13070f){_0x2ab9a5[_0x099a('0x40')]=_0x13070f;return _0x2ab9a5;})[_0x099a('0x25')](respondWithFilteredResult(_0x2b1597,_0x1938d0))[_0x099a('0x41')](handleError(_0x2b1597,null));};exports[_0x099a('0x42')]=function(_0x430e12,_0x49fc09){var _0x2640da={'raw':!![],'where':{'id':_0x430e12[_0x099a('0x43')]['id']}},_0x4a4a76={};_0x4a4a76['model']=_[_0x099a('0x30')](db[_0x099a('0x2a')][_0x099a('0x2b')]);_0x4a4a76[_0x099a('0x2f')]=_['keys'](_0x430e12[_0x099a('0x2f')]);_0x4a4a76[_0x099a('0x38')]=_['intersection'](_0x4a4a76[_0x099a('0x2e')],_0x4a4a76['query']);_0x2640da[_0x099a('0x32')]=_[_0x099a('0x31')](_0x4a4a76[_0x099a('0x2e')],qs[_0x099a('0x44')](_0x430e12[_0x099a('0x2f')][_0x099a('0x44')]));_0x2640da[_0x099a('0x32')]=_0x2640da[_0x099a('0x32')]['length']?_0x2640da[_0x099a('0x32')]:_0x4a4a76['model'];if(_0x430e12[_0x099a('0x2f')][_0x099a('0x45')]){_0x2640da[_0x099a('0x3e')]=[{'all':!![]}];}_0x2640da=_[_0x099a('0x3a')]({},_0x2640da,_0x430e12[_0x099a('0x3c')]);return db[_0x099a('0x2a')][_0x099a('0x46')](_0x2640da)['then'](handleEntityNotFound(_0x49fc09,null))[_0x099a('0x25')](respondWithResult(_0x49fc09,null))[_0x099a('0x41')](handleError(_0x49fc09,null));};exports['create']=function(_0x1c31ff,_0x213c03){return db[_0x099a('0x2a')]['create'](_0x1c31ff[_0x099a('0x47')],{})[_0x099a('0x25')](respondWithResult(_0x213c03,0xc9))[_0x099a('0x41')](handleError(_0x213c03,null));};exports[_0x099a('0x48')]=function(_0x503d44,_0x288ed9){if(_0x503d44['body']['id']){delete _0x503d44[_0x099a('0x47')]['id'];}return db[_0x099a('0x2a')]['find']({'where':{'id':_0x503d44['params']['id']}})[_0x099a('0x25')](handleEntityNotFound(_0x288ed9,null))[_0x099a('0x25')](saveUpdates(_0x503d44[_0x099a('0x47')],null))['then'](respondWithResult(_0x288ed9,null))[_0x099a('0x41')](handleError(_0x288ed9,null));};exports[_0x099a('0x26')]=function(_0x2b956d,_0x56b1e0){return db[_0x099a('0x2a')]['find']({'where':{'id':_0x2b956d['params']['id']}})[_0x099a('0x25')](handleEntityNotFound(_0x56b1e0,null))['then'](removeEntity(_0x56b1e0,null))['catch'](handleError(_0x56b1e0,null));};exports[_0x099a('0x49')]=function(_0x3fb887,_0x4c24b0){return db[_0x099a('0x2a')][_0x099a('0x49')]()[_0x099a('0x25')](respondWithResult(_0x4c24b0,null))['catch'](handleError(_0x4c24b0,null));};
\ No newline at end of file
+var _0xf603=['moment','bluebird','mustache','util','path','sox','to-csv','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/license/util','../../mysqldb','sendStatus','end','json','offset','limit','undefined','count','status','set','apply','reject','save','update','then','destroy','stack','name','send','index','map','ChatQueueReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','sort','where','pick','filter','merge','options','include','findAll','rows','show','params','find','catch','body','describe','eml-format','rimraf','fast-json-patch','request-promise'];(function(_0x1c1c4d,_0x50a4c1){var _0x248419=function(_0x4338fe){while(--_0x4338fe){_0x1c1c4d['push'](_0x1c1c4d['shift']());}};_0x248419(++_0x50a4c1);}(_0xf603,0x124));var _0x3f60=function(_0x4bb214,_0x5b8720){_0x4bb214=_0x4bb214-0x0;var _0x3b91ac=_0xf603[_0x4bb214];return _0x3b91ac;};'use strict';var emlformat=require(_0x3f60('0x0'));var rimraf=require(_0x3f60('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3f60('0x2'));var rp=require(_0x3f60('0x3'));var moment=require(_0x3f60('0x4'));var BPromise=require(_0x3f60('0x5'));var Mustache=require(_0x3f60('0x6'));var util=require(_0x3f60('0x7'));var path=require(_0x3f60('0x8'));var sox=require(_0x3f60('0x9'));var csv=require(_0x3f60('0xa'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x3f60('0xb'));var crypto=require(_0x3f60('0xc'));var jsforce=require(_0x3f60('0xd'));var deskjs=require(_0x3f60('0xe'));var toCsv=require(_0x3f60('0xa'));var querystring=require(_0x3f60('0xf'));var Papa=require(_0x3f60('0x10'));var Redis=require(_0x3f60('0x11'));var authService=require(_0x3f60('0x12'));var qs=require(_0x3f60('0x13'));var as=require(_0x3f60('0x14'));var hardwareService=require(_0x3f60('0x15'));var logger=require(_0x3f60('0x16'))('api');var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x3f60('0x17'));var db=require(_0x3f60('0x18'))['db'];function respondWithStatusCode(_0x2e79e8,_0x58e120){_0x58e120=_0x58e120||0xcc;return function(_0xeb6151){if(_0xeb6151){return _0x2e79e8[_0x3f60('0x19')](_0x58e120);}return _0x2e79e8['status'](_0x58e120)[_0x3f60('0x1a')]();};}function respondWithResult(_0x1b3e74,_0x53ec7a){_0x53ec7a=_0x53ec7a||0xc8;return function(_0x1ec7f4){if(_0x1ec7f4){return _0x1b3e74['status'](_0x53ec7a)[_0x3f60('0x1b')](_0x1ec7f4);}};}function respondWithFilteredResult(_0x2cd28f,_0x5e7718){return function(_0x3c0e9d){if(_0x3c0e9d){var _0x4e84b5=typeof _0x5e7718[_0x3f60('0x1c')]==='undefined'&&typeof _0x5e7718[_0x3f60('0x1d')]===_0x3f60('0x1e');var _0xbc26c=_0x3c0e9d[_0x3f60('0x1f')];var _0x3ae771=_0x4e84b5?0x0:_0x5e7718[_0x3f60('0x1c')];var _0x52aa44=_0x4e84b5?_0x3c0e9d[_0x3f60('0x1f')]:_0x5e7718[_0x3f60('0x1c')]+_0x5e7718[_0x3f60('0x1d')];var _0x9c845f;if(_0x52aa44>=_0xbc26c){_0x52aa44=_0xbc26c;_0x9c845f=0xc8;}else{_0x9c845f=0xce;}_0x2cd28f[_0x3f60('0x20')](_0x9c845f);return _0x2cd28f[_0x3f60('0x21')]('Content-Range',_0x3ae771+'-'+_0x52aa44+'/'+_0xbc26c)[_0x3f60('0x1b')](_0x3c0e9d);}return null;};}function patchUpdates(_0x2f1735){return function(_0x4dace9){try{jsonpatch[_0x3f60('0x22')](_0x4dace9,_0x2f1735,!![]);}catch(_0x2dba08){return BPromise[_0x3f60('0x23')](_0x2dba08);}return _0x4dace9[_0x3f60('0x24')]();};}function saveUpdates(_0x1d23bb,_0x1b161e){return function(_0x44b665){if(_0x44b665){return _0x44b665[_0x3f60('0x25')](_0x1d23bb)[_0x3f60('0x26')](function(_0x31847d){return _0x31847d;});}return null;};}function removeEntity(_0x3f6fa7,_0x35b8f6){return function(_0x1f9390){if(_0x1f9390){return _0x1f9390[_0x3f60('0x27')]()[_0x3f60('0x26')](function(){_0x3f6fa7['status'](0xcc)[_0x3f60('0x1a')]();});}};}function handleEntityNotFound(_0x3cdef4,_0x15315b){return function(_0x4581d6){if(!_0x4581d6){_0x3cdef4[_0x3f60('0x19')](0x194);}return _0x4581d6;};}function handleError(_0x36dfdb,_0xc106a9){_0xc106a9=_0xc106a9||0x1f4;return function(_0x23e265){logger['error'](_0x23e265[_0x3f60('0x28')]);if(_0x23e265[_0x3f60('0x29')]){delete _0x23e265[_0x3f60('0x29')];}_0x36dfdb[_0x3f60('0x20')](_0xc106a9)[_0x3f60('0x2a')](_0x23e265);};}exports[_0x3f60('0x2b')]=function(_0x39e14c,_0x4520a5){var _0x16b590={},_0x3cd0a7={},_0x2f1bc9={'count':0x0,'rows':[]};var _0x457e5b=_[_0x3f60('0x2c')](db[_0x3f60('0x2d')][_0x3f60('0x2e')],function(_0x14d83c){return{'name':_0x14d83c[_0x3f60('0x2f')],'type':_0x14d83c[_0x3f60('0x30')][_0x3f60('0x31')]};});_0x3cd0a7[_0x3f60('0x32')]=_[_0x3f60('0x2c')](_0x457e5b,_0x3f60('0x29'));_0x3cd0a7[_0x3f60('0x33')]=_[_0x3f60('0x34')](_0x39e14c[_0x3f60('0x33')]);_0x3cd0a7[_0x3f60('0x35')]=_[_0x3f60('0x36')](_0x3cd0a7[_0x3f60('0x32')],_0x3cd0a7[_0x3f60('0x33')]);_0x16b590[_0x3f60('0x37')]=_[_0x3f60('0x36')](_0x3cd0a7['model'],qs[_0x3f60('0x38')](_0x39e14c[_0x3f60('0x33')]['fields']));_0x16b590[_0x3f60('0x37')]=_0x16b590[_0x3f60('0x37')][_0x3f60('0x39')]?_0x16b590[_0x3f60('0x37')]:_0x3cd0a7['model'];if(!_0x39e14c[_0x3f60('0x33')][_0x3f60('0x3a')]('nolimit')){_0x16b590['limit']=qs[_0x3f60('0x1d')](_0x39e14c['query'][_0x3f60('0x1d')]);_0x16b590[_0x3f60('0x1c')]=qs[_0x3f60('0x1c')](_0x39e14c[_0x3f60('0x33')]['offset']);}_0x16b590['order']=qs[_0x3f60('0x3b')](_0x39e14c[_0x3f60('0x33')][_0x3f60('0x3b')]);_0x16b590[_0x3f60('0x3c')]=qs[_0x3f60('0x35')](_[_0x3f60('0x3d')](_0x39e14c['query'],_0x3cd0a7[_0x3f60('0x35')]),_0x457e5b);if(_0x39e14c['query'][_0x3f60('0x3e')]){_0x16b590['where']=_[_0x3f60('0x3f')](_0x16b590[_0x3f60('0x3c')],{'$or':_[_0x3f60('0x2c')](_0x457e5b,function(_0x466d05){if(_0x466d05[_0x3f60('0x30')]!=='VIRTUAL'){var _0x4fa98d={};_0x4fa98d[_0x466d05[_0x3f60('0x29')]]={'$like':'%'+_0x39e14c[_0x3f60('0x33')][_0x3f60('0x3e')]+'%'};return _0x4fa98d;}})});}_0x16b590=_['merge']({},_0x16b590,_0x39e14c[_0x3f60('0x40')]);var _0x42f82d={'where':_0x16b590['where']};return db['ChatQueueReport'][_0x3f60('0x1f')](_0x42f82d)[_0x3f60('0x26')](function(_0x3f2129){_0x2f1bc9[_0x3f60('0x1f')]=_0x3f2129;if(_0x39e14c[_0x3f60('0x33')]['includeAll']){_0x16b590[_0x3f60('0x41')]=[{'all':!![]}];}return db[_0x3f60('0x2d')][_0x3f60('0x42')](_0x16b590);})[_0x3f60('0x26')](function(_0x4c6346){_0x2f1bc9[_0x3f60('0x43')]=_0x4c6346;return _0x2f1bc9;})['then'](respondWithFilteredResult(_0x4520a5,_0x16b590))['catch'](handleError(_0x4520a5,null));};exports[_0x3f60('0x44')]=function(_0x20422a,_0x4ef8f2){var _0x5cfc2f={'raw':!![],'where':{'id':_0x20422a[_0x3f60('0x45')]['id']}},_0x4f0752={};_0x4f0752[_0x3f60('0x32')]=_['keys'](db['ChatQueueReport']['rawAttributes']);_0x4f0752[_0x3f60('0x33')]=_['keys'](_0x20422a['query']);_0x4f0752[_0x3f60('0x35')]=_[_0x3f60('0x36')](_0x4f0752['model'],_0x4f0752['query']);_0x5cfc2f[_0x3f60('0x37')]=_['intersection'](_0x4f0752[_0x3f60('0x32')],qs['fields'](_0x20422a[_0x3f60('0x33')][_0x3f60('0x38')]));_0x5cfc2f[_0x3f60('0x37')]=_0x5cfc2f[_0x3f60('0x37')][_0x3f60('0x39')]?_0x5cfc2f['attributes']:_0x4f0752[_0x3f60('0x32')];if(_0x20422a[_0x3f60('0x33')]['includeAll']){_0x5cfc2f['include']=[{'all':!![]}];}_0x5cfc2f=_[_0x3f60('0x3f')]({},_0x5cfc2f,_0x20422a[_0x3f60('0x40')]);return db[_0x3f60('0x2d')][_0x3f60('0x46')](_0x5cfc2f)[_0x3f60('0x26')](handleEntityNotFound(_0x4ef8f2,null))['then'](respondWithResult(_0x4ef8f2,null))[_0x3f60('0x47')](handleError(_0x4ef8f2,null));};exports['create']=function(_0xe5a2a6,_0x253d2f){return db[_0x3f60('0x2d')]['create'](_0xe5a2a6[_0x3f60('0x48')],{})[_0x3f60('0x26')](respondWithResult(_0x253d2f,0xc9))[_0x3f60('0x47')](handleError(_0x253d2f,null));};exports['update']=function(_0x217348,_0x55f75f){if(_0x217348[_0x3f60('0x48')]['id']){delete _0x217348[_0x3f60('0x48')]['id'];}return db[_0x3f60('0x2d')][_0x3f60('0x46')]({'where':{'id':_0x217348['params']['id']}})[_0x3f60('0x26')](handleEntityNotFound(_0x55f75f,null))[_0x3f60('0x26')](saveUpdates(_0x217348['body'],null))[_0x3f60('0x26')](respondWithResult(_0x55f75f,null))['catch'](handleError(_0x55f75f,null));};exports['destroy']=function(_0x4ce17d,_0x55dd97){return db['ChatQueueReport'][_0x3f60('0x46')]({'where':{'id':_0x4ce17d['params']['id']}})[_0x3f60('0x26')](handleEntityNotFound(_0x55dd97,null))[_0x3f60('0x26')](removeEntity(_0x55dd97,null))[_0x3f60('0x47')](handleError(_0x55dd97,null));};exports['describe']=function(_0x1f9921,_0x1c09a0){return db[_0x3f60('0x2d')][_0x3f60('0x49')]()[_0x3f60('0x26')](respondWithResult(_0x1c09a0,null))[_0x3f60('0x47')](handleError(_0x1c09a0,null));};
\ No newline at end of file