Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / chatQueueReport / chatQueueReport.controller.js
index fa73589..c0762f1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbaf0=['crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','sendStatus','status','json','count','offset','limit','set','Content-Range','apply','save','update','then','end','error','stack','name','send','index','map','ChatQueueReport','rawAttributes','fieldName','type','model','query','keys','filters','attributes','intersection','fields','length','nolimit','sort','where','pick','filter','VIRTUAL','merge','options','includeAll','include','findAll','rows','catch','show','params','create','body','find','destroy','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','lodash','squel'];(function(_0x374b71,_0x44ff5e){var _0x2b8701=function(_0x3bb754){while(--_0x3bb754){_0x374b71['push'](_0x374b71['shift']());}};_0x2b8701(++_0x44ff5e);}(_0xbaf0,0x12a));var _0x0baf=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0xbaf0[_0x1facfa];return _0x9ec701;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x0baf('0x0'));var rimraf=require(_0x0baf('0x1'));var zipdir=require(_0x0baf('0x2'));var jsonpatch=require(_0x0baf('0x3'));var rp=require(_0x0baf('0x4'));var moment=require(_0x0baf('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x0baf('0x6'));var util=require(_0x0baf('0x7'));var path=require(_0x0baf('0x8'));var sox=require(_0x0baf('0x9'));var csv=require(_0x0baf('0xa'));var ejs=require(_0x0baf('0xb'));var fs=require('fs');var _=require(_0x0baf('0xc'));var squel=require(_0x0baf('0xd'));var crypto=require(_0x0baf('0xe'));var jsforce=require('jsforce');var deskjs=require(_0x0baf('0xf'));var toCsv=require('to-csv');var querystring=require(_0x0baf('0x10'));var Papa=require(_0x0baf('0x11'));var Redis=require(_0x0baf('0x12'));var authService=require(_0x0baf('0x13'));var qs=require(_0x0baf('0x14'));var as=require(_0x0baf('0x15'));var hardwareService=require(_0x0baf('0x16'));var logger=require(_0x0baf('0x17'))(_0x0baf('0x18'));var utils=require(_0x0baf('0x19'));var config=require(_0x0baf('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x5a53e2,_0x465dd7){_0x465dd7=_0x465dd7||0xcc;return function(_0xe4378c){if(_0xe4378c){return _0x5a53e2[_0x0baf('0x1b')](_0x465dd7);}return _0x5a53e2[_0x0baf('0x1c')](_0x465dd7)['end']();};}function respondWithResult(_0x2ab33e,_0x49e44b){_0x49e44b=_0x49e44b||0xc8;return function(_0x1c76a8){if(_0x1c76a8){return _0x2ab33e[_0x0baf('0x1c')](_0x49e44b)[_0x0baf('0x1d')](_0x1c76a8);}};}function respondWithFilteredResult(_0x2bc381,_0xb8339e){return function(_0x469599){if(_0x469599){var _0x4f80a8=_0x469599[_0x0baf('0x1e')],_0x4cd79d=_0xb8339e[_0x0baf('0x1f')],_0x2312c7=_0xb8339e[_0x0baf('0x1f')]+_0xb8339e[_0x0baf('0x20')],_0x38395b;if(_0x2312c7>=_0x4f80a8){_0x2312c7=_0x4f80a8;_0x38395b=0xc8;}else{_0x38395b=0xce;}_0x2bc381['status'](_0x38395b);return _0x2bc381[_0x0baf('0x21')](_0x0baf('0x22'),_0x4cd79d+'-'+_0x2312c7+'/'+_0x4f80a8)[_0x0baf('0x1d')](_0x469599);}return null;};}function patchUpdates(_0x3e9cb4){return function(_0x47070d){try{jsonpatch[_0x0baf('0x23')](_0x47070d,_0x3e9cb4,!![]);}catch(_0x4ff793){return BPromise['reject'](_0x4ff793);}return _0x47070d[_0x0baf('0x24')]();};}function saveUpdates(_0x154f48,_0x32e839){return function(_0x1848e8){if(_0x1848e8){return _0x1848e8[_0x0baf('0x25')](_0x154f48)[_0x0baf('0x26')](function(_0x210cd8){return _0x210cd8;});}return null;};}function removeEntity(_0x636a13,_0x2c42e2){return function(_0x15a2c3){if(_0x15a2c3){return _0x15a2c3['destroy']()[_0x0baf('0x26')](function(){_0x636a13['status'](0xcc)[_0x0baf('0x27')]();});}};}function handleEntityNotFound(_0x5dbf00,_0x4de74c){return function(_0x2ef0aa){if(!_0x2ef0aa){_0x5dbf00['sendStatus'](0x194);}return _0x2ef0aa;};}function handleError(_0x4be1b9,_0x47c4b){_0x47c4b=_0x47c4b||0x1f4;return function(_0x27b59c){logger[_0x0baf('0x28')](_0x27b59c[_0x0baf('0x29')]);if(_0x27b59c[_0x0baf('0x2a')]){delete _0x27b59c['name'];}_0x4be1b9[_0x0baf('0x1c')](_0x47c4b)[_0x0baf('0x2b')](_0x27b59c);};}exports[_0x0baf('0x2c')]=function(_0x366e71,_0x3843b8){var _0x3b9b31={},_0x453525={},_0x549fd0={'count':0x0,'rows':[]};var _0x1590b4=_[_0x0baf('0x2d')](db[_0x0baf('0x2e')][_0x0baf('0x2f')],function(_0x55c715){return{'name':_0x55c715[_0x0baf('0x30')],'type':_0x55c715[_0x0baf('0x31')]['key']};});_0x453525[_0x0baf('0x32')]=_[_0x0baf('0x2d')](_0x1590b4,_0x0baf('0x2a'));_0x453525[_0x0baf('0x33')]=_[_0x0baf('0x34')](_0x366e71[_0x0baf('0x33')]);_0x453525[_0x0baf('0x35')]=_['intersection'](_0x453525[_0x0baf('0x32')],_0x453525[_0x0baf('0x33')]);_0x3b9b31[_0x0baf('0x36')]=_[_0x0baf('0x37')](_0x453525[_0x0baf('0x32')],qs[_0x0baf('0x38')](_0x366e71[_0x0baf('0x33')][_0x0baf('0x38')]));_0x3b9b31[_0x0baf('0x36')]=_0x3b9b31[_0x0baf('0x36')][_0x0baf('0x39')]?_0x3b9b31[_0x0baf('0x36')]:_0x453525[_0x0baf('0x32')];if(!_0x366e71[_0x0baf('0x33')]['hasOwnProperty'](_0x0baf('0x3a'))){_0x3b9b31['limit']=qs[_0x0baf('0x20')](_0x366e71[_0x0baf('0x33')][_0x0baf('0x20')]);_0x3b9b31[_0x0baf('0x1f')]=qs['offset'](_0x366e71[_0x0baf('0x33')][_0x0baf('0x1f')]);}_0x3b9b31['order']=qs[_0x0baf('0x3b')](_0x366e71[_0x0baf('0x33')][_0x0baf('0x3b')]);_0x3b9b31[_0x0baf('0x3c')]=qs[_0x0baf('0x35')](_[_0x0baf('0x3d')](_0x366e71[_0x0baf('0x33')],_0x453525[_0x0baf('0x35')]),_0x1590b4);if(_0x366e71['query'][_0x0baf('0x3e')]){_0x3b9b31[_0x0baf('0x3c')]=_['merge'](_0x3b9b31[_0x0baf('0x3c')],{'$or':_['map'](_0x1590b4,function(_0x5c545f){if(_0x5c545f[_0x0baf('0x31')]!==_0x0baf('0x3f')){var _0x5d3ad1={};_0x5d3ad1[_0x5c545f['name']]={'$like':'%'+_0x366e71[_0x0baf('0x33')][_0x0baf('0x3e')]+'%'};return _0x5d3ad1;}})});}_0x3b9b31=_[_0x0baf('0x40')]({},_0x3b9b31,_0x366e71[_0x0baf('0x41')]);var _0x15eb5c={'where':_0x3b9b31[_0x0baf('0x3c')]};return db[_0x0baf('0x2e')][_0x0baf('0x1e')](_0x15eb5c)[_0x0baf('0x26')](function(_0x36c6d2){_0x549fd0[_0x0baf('0x1e')]=_0x36c6d2;if(_0x366e71[_0x0baf('0x33')][_0x0baf('0x42')]){_0x3b9b31[_0x0baf('0x43')]=[{'all':!![]}];}return db['ChatQueueReport'][_0x0baf('0x44')](_0x3b9b31);})[_0x0baf('0x26')](function(_0x4f1de9){_0x549fd0[_0x0baf('0x45')]=_0x4f1de9;return _0x549fd0;})[_0x0baf('0x26')](respondWithFilteredResult(_0x3843b8,_0x3b9b31))[_0x0baf('0x46')](handleError(_0x3843b8,null));};exports[_0x0baf('0x47')]=function(_0x2e20c8,_0x456d0b){var _0x57b581={'raw':!![],'where':{'id':_0x2e20c8[_0x0baf('0x48')]['id']}},_0x23ad34={};_0x23ad34['model']=_[_0x0baf('0x34')](db[_0x0baf('0x2e')][_0x0baf('0x2f')]);_0x23ad34[_0x0baf('0x33')]=_['keys'](_0x2e20c8[_0x0baf('0x33')]);_0x23ad34[_0x0baf('0x35')]=_[_0x0baf('0x37')](_0x23ad34[_0x0baf('0x32')],_0x23ad34[_0x0baf('0x33')]);_0x57b581[_0x0baf('0x36')]=_[_0x0baf('0x37')](_0x23ad34[_0x0baf('0x32')],qs[_0x0baf('0x38')](_0x2e20c8[_0x0baf('0x33')]['fields']));_0x57b581[_0x0baf('0x36')]=_0x57b581[_0x0baf('0x36')][_0x0baf('0x39')]?_0x57b581[_0x0baf('0x36')]:_0x23ad34[_0x0baf('0x32')];if(_0x2e20c8['query'][_0x0baf('0x42')]){_0x57b581[_0x0baf('0x43')]=[{'all':!![]}];}_0x57b581=_[_0x0baf('0x40')]({},_0x57b581,_0x2e20c8[_0x0baf('0x41')]);return db[_0x0baf('0x2e')]['find'](_0x57b581)[_0x0baf('0x26')](handleEntityNotFound(_0x456d0b,null))[_0x0baf('0x26')](respondWithResult(_0x456d0b,null))[_0x0baf('0x46')](handleError(_0x456d0b,null));};exports[_0x0baf('0x49')]=function(_0x41599f,_0x22d10f){return db[_0x0baf('0x2e')]['create'](_0x41599f[_0x0baf('0x4a')],{})[_0x0baf('0x26')](respondWithResult(_0x22d10f,0xc9))[_0x0baf('0x46')](handleError(_0x22d10f,null));};exports['update']=function(_0x3c9de3,_0x2222b6){if(_0x3c9de3[_0x0baf('0x4a')]['id']){delete _0x3c9de3[_0x0baf('0x4a')]['id'];}return db[_0x0baf('0x2e')][_0x0baf('0x4b')]({'where':{'id':_0x3c9de3[_0x0baf('0x48')]['id']}})['then'](handleEntityNotFound(_0x2222b6,null))[_0x0baf('0x26')](saveUpdates(_0x3c9de3[_0x0baf('0x4a')],null))[_0x0baf('0x26')](respondWithResult(_0x2222b6,null))[_0x0baf('0x46')](handleError(_0x2222b6,null));};exports[_0x0baf('0x4c')]=function(_0xc427b2,_0x40d4a6){return db[_0x0baf('0x2e')][_0x0baf('0x4b')]({'where':{'id':_0xc427b2[_0x0baf('0x48')]['id']}})[_0x0baf('0x26')](handleEntityNotFound(_0x40d4a6,null))['then'](removeEntity(_0x40d4a6,null))['catch'](handleError(_0x40d4a6,null));};exports[_0x0baf('0x4d')]=function(_0x3d6b19,_0x1cd114){return db[_0x0baf('0x2e')][_0x0baf('0x4d')]()[_0x0baf('0x26')](respondWithResult(_0x1cd114,null))[_0x0baf('0x46')](handleError(_0x1cd114,null));};
\ No newline at end of file
+var _0xc373=['key','model','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','map','VIRTUAL','options','includeAll','rows','catch','params','find','create','body','update','destroy','describe','rimraf','zip-dir','fast-json-patch','bluebird','mustache','util','path','sox','to-csv','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','end','status','json','offset','undefined','count','limit','set','apply','reject','then','error','name','send','index','ChatQueueReport','rawAttributes','type'];(function(_0x411bcb,_0x48247e){var _0x377884=function(_0x7598bb){while(--_0x7598bb){_0x411bcb['push'](_0x411bcb['shift']());}};_0x377884(++_0x48247e);}(_0xc373,0x1c7));var _0x3c37=function(_0x5538d5,_0x190032){_0x5538d5=_0x5538d5-0x0;var _0x323b1a=_0xc373[_0x5538d5];return _0x323b1a;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x3c37('0x0'));var zipdir=require(_0x3c37('0x1'));var jsonpatch=require(_0x3c37('0x2'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x3c37('0x3'));var Mustache=require(_0x3c37('0x4'));var util=require(_0x3c37('0x5'));var path=require(_0x3c37('0x6'));var sox=require(_0x3c37('0x7'));var csv=require(_0x3c37('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x3c37('0x9'));var squel=require(_0x3c37('0xa'));var crypto=require(_0x3c37('0xb'));var jsforce=require(_0x3c37('0xc'));var deskjs=require(_0x3c37('0xd'));var toCsv=require(_0x3c37('0x8'));var querystring=require(_0x3c37('0xe'));var Papa=require(_0x3c37('0xf'));var Redis=require(_0x3c37('0x10'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x3c37('0x11'));var hardwareService=require(_0x3c37('0x12'));var logger=require(_0x3c37('0x13'))(_0x3c37('0x14'));var utils=require(_0x3c37('0x15'));var config=require(_0x3c37('0x16'));var licenseUtil=require(_0x3c37('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0xc333c2,_0x454f92){_0x454f92=_0x454f92||0xcc;return function(_0x458002){if(_0x458002){return _0xc333c2['sendStatus'](_0x454f92);}return _0xc333c2['status'](_0x454f92)[_0x3c37('0x18')]();};}function respondWithResult(_0x57c33f,_0x52ab1f){_0x52ab1f=_0x52ab1f||0xc8;return function(_0x37904b){if(_0x37904b){return _0x57c33f[_0x3c37('0x19')](_0x52ab1f)[_0x3c37('0x1a')](_0x37904b);}};}function respondWithFilteredResult(_0x1b70a6,_0x1268b3){return function(_0x22e851){if(_0x22e851){var _0x25d36e=typeof _0x1268b3[_0x3c37('0x1b')]===_0x3c37('0x1c')&&typeof _0x1268b3['limit']===_0x3c37('0x1c');var _0x214a0b=_0x22e851['count'];var _0x55761e=_0x25d36e?0x0:_0x1268b3[_0x3c37('0x1b')];var _0x12a47c=_0x25d36e?_0x22e851[_0x3c37('0x1d')]:_0x1268b3[_0x3c37('0x1b')]+_0x1268b3[_0x3c37('0x1e')];var _0x2b0f25;if(_0x12a47c>=_0x214a0b){_0x12a47c=_0x214a0b;_0x2b0f25=0xc8;}else{_0x2b0f25=0xce;}_0x1b70a6['status'](_0x2b0f25);return _0x1b70a6[_0x3c37('0x1f')]('Content-Range',_0x55761e+'-'+_0x12a47c+'/'+_0x214a0b)['json'](_0x22e851);}return null;};}function patchUpdates(_0x3bc0bb){return function(_0x2882ba){try{jsonpatch[_0x3c37('0x20')](_0x2882ba,_0x3bc0bb,!![]);}catch(_0x7fe4f0){return BPromise[_0x3c37('0x21')](_0x7fe4f0);}return _0x2882ba['save']();};}function saveUpdates(_0x27f83e,_0x54776f){return function(_0x3399a7){if(_0x3399a7){return _0x3399a7['update'](_0x27f83e)[_0x3c37('0x22')](function(_0x2e4226){return _0x2e4226;});}return null;};}function removeEntity(_0x348802,_0x574890){return function(_0x51d25d){if(_0x51d25d){return _0x51d25d['destroy']()['then'](function(){_0x348802['status'](0xcc)[_0x3c37('0x18')]();});}};}function handleEntityNotFound(_0xb334d0,_0x1655c1){return function(_0x3ab6bd){if(!_0x3ab6bd){_0xb334d0['sendStatus'](0x194);}return _0x3ab6bd;};}function handleError(_0x52b5d9,_0x565902){_0x565902=_0x565902||0x1f4;return function(_0x65ac66){logger[_0x3c37('0x23')](_0x65ac66['stack']);if(_0x65ac66['name']){delete _0x65ac66[_0x3c37('0x24')];}_0x52b5d9[_0x3c37('0x19')](_0x565902)[_0x3c37('0x25')](_0x65ac66);};}exports[_0x3c37('0x26')]=function(_0x64474f,_0x56d9c2){var _0x1ce403={},_0x3abacf={},_0x415999={'count':0x0,'rows':[]};var _0xf1d5cb=_['map'](db[_0x3c37('0x27')][_0x3c37('0x28')],function(_0x531931){return{'name':_0x531931['fieldName'],'type':_0x531931[_0x3c37('0x29')][_0x3c37('0x2a')]};});_0x3abacf[_0x3c37('0x2b')]=_['map'](_0xf1d5cb,_0x3c37('0x24'));_0x3abacf['query']=_[_0x3c37('0x2c')](_0x64474f[_0x3c37('0x2d')]);_0x3abacf[_0x3c37('0x2e')]=_[_0x3c37('0x2f')](_0x3abacf[_0x3c37('0x2b')],_0x3abacf[_0x3c37('0x2d')]);_0x1ce403[_0x3c37('0x30')]=_[_0x3c37('0x2f')](_0x3abacf[_0x3c37('0x2b')],qs[_0x3c37('0x31')](_0x64474f['query']['fields']));_0x1ce403['attributes']=_0x1ce403[_0x3c37('0x30')][_0x3c37('0x32')]?_0x1ce403[_0x3c37('0x30')]:_0x3abacf[_0x3c37('0x2b')];if(!_0x64474f[_0x3c37('0x2d')][_0x3c37('0x33')](_0x3c37('0x34'))){_0x1ce403[_0x3c37('0x1e')]=qs[_0x3c37('0x1e')](_0x64474f[_0x3c37('0x2d')][_0x3c37('0x1e')]);_0x1ce403[_0x3c37('0x1b')]=qs['offset'](_0x64474f[_0x3c37('0x2d')][_0x3c37('0x1b')]);}_0x1ce403['order']=qs['sort'](_0x64474f[_0x3c37('0x2d')][_0x3c37('0x35')]);_0x1ce403[_0x3c37('0x36')]=qs[_0x3c37('0x2e')](_[_0x3c37('0x37')](_0x64474f[_0x3c37('0x2d')],_0x3abacf[_0x3c37('0x2e')]),_0xf1d5cb);if(_0x64474f[_0x3c37('0x2d')][_0x3c37('0x38')]){_0x1ce403['where']=_[_0x3c37('0x39')](_0x1ce403[_0x3c37('0x36')],{'$or':_[_0x3c37('0x3a')](_0xf1d5cb,function(_0x280e81){if(_0x280e81[_0x3c37('0x29')]!==_0x3c37('0x3b')){var _0xf76905={};_0xf76905[_0x280e81[_0x3c37('0x24')]]={'$like':'%'+_0x64474f[_0x3c37('0x2d')][_0x3c37('0x38')]+'%'};return _0xf76905;}})});}_0x1ce403=_['merge']({},_0x1ce403,_0x64474f[_0x3c37('0x3c')]);var _0x18acc3={'where':_0x1ce403[_0x3c37('0x36')]};return db[_0x3c37('0x27')][_0x3c37('0x1d')](_0x18acc3)['then'](function(_0x2ac3ca){_0x415999[_0x3c37('0x1d')]=_0x2ac3ca;if(_0x64474f[_0x3c37('0x2d')][_0x3c37('0x3d')]){_0x1ce403['include']=[{'all':!![]}];}return db[_0x3c37('0x27')]['findAll'](_0x1ce403);})[_0x3c37('0x22')](function(_0x51687d){_0x415999[_0x3c37('0x3e')]=_0x51687d;return _0x415999;})[_0x3c37('0x22')](respondWithFilteredResult(_0x56d9c2,_0x1ce403))[_0x3c37('0x3f')](handleError(_0x56d9c2,null));};exports['show']=function(_0x3bf68a,_0x34096f){var _0x2e82d0={'raw':!![],'where':{'id':_0x3bf68a[_0x3c37('0x40')]['id']}},_0x2a4300={};_0x2a4300['model']=_[_0x3c37('0x2c')](db[_0x3c37('0x27')][_0x3c37('0x28')]);_0x2a4300[_0x3c37('0x2d')]=_[_0x3c37('0x2c')](_0x3bf68a[_0x3c37('0x2d')]);_0x2a4300[_0x3c37('0x2e')]=_['intersection'](_0x2a4300[_0x3c37('0x2b')],_0x2a4300[_0x3c37('0x2d')]);_0x2e82d0[_0x3c37('0x30')]=_['intersection'](_0x2a4300[_0x3c37('0x2b')],qs['fields'](_0x3bf68a[_0x3c37('0x2d')][_0x3c37('0x31')]));_0x2e82d0[_0x3c37('0x30')]=_0x2e82d0[_0x3c37('0x30')]['length']?_0x2e82d0['attributes']:_0x2a4300['model'];if(_0x3bf68a[_0x3c37('0x2d')][_0x3c37('0x3d')]){_0x2e82d0['include']=[{'all':!![]}];}_0x2e82d0=_['merge']({},_0x2e82d0,_0x3bf68a[_0x3c37('0x3c')]);return db['ChatQueueReport'][_0x3c37('0x41')](_0x2e82d0)[_0x3c37('0x22')](handleEntityNotFound(_0x34096f,null))[_0x3c37('0x22')](respondWithResult(_0x34096f,null))[_0x3c37('0x3f')](handleError(_0x34096f,null));};exports[_0x3c37('0x42')]=function(_0x300d58,_0x436b28){return db[_0x3c37('0x27')][_0x3c37('0x42')](_0x300d58[_0x3c37('0x43')],{})[_0x3c37('0x22')](respondWithResult(_0x436b28,0xc9))['catch'](handleError(_0x436b28,null));};exports[_0x3c37('0x44')]=function(_0x1869ad,_0x4b8351){if(_0x1869ad[_0x3c37('0x43')]['id']){delete _0x1869ad[_0x3c37('0x43')]['id'];}return db[_0x3c37('0x27')]['find']({'where':{'id':_0x1869ad[_0x3c37('0x40')]['id']}})['then'](handleEntityNotFound(_0x4b8351,null))[_0x3c37('0x22')](saveUpdates(_0x1869ad[_0x3c37('0x43')],null))[_0x3c37('0x22')](respondWithResult(_0x4b8351,null))['catch'](handleError(_0x4b8351,null));};exports[_0x3c37('0x45')]=function(_0x415bac,_0x1dc208){return db[_0x3c37('0x27')][_0x3c37('0x41')]({'where':{'id':_0x415bac[_0x3c37('0x40')]['id']}})[_0x3c37('0x22')](handleEntityNotFound(_0x1dc208,null))[_0x3c37('0x22')](removeEntity(_0x1dc208,null))[_0x3c37('0x3f')](handleError(_0x1dc208,null));};exports[_0x3c37('0x46')]=function(_0x31d553,_0x2aee66){return db[_0x3c37('0x27')]['describe']()[_0x3c37('0x22')](respondWithResult(_0x2aee66,null))[_0x3c37('0x3f')](handleError(_0x2aee66,null));};
\ No newline at end of file