Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / openchannelQueueReport / openchannelQueueReport.controller.js
index a26fdca..a95819f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb98e=['path','to-csv','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','status','json','count','offset','limit','set','Content-Range','apply','reject','save','update','destroy','error','stack','name','send','index','map','OpenchannelQueueReport','fieldName','type','key','query','keys','filters','attributes','intersection','model','fields','length','hasOwnProperty','nolimit','order','sort','pick','filter','where','VIRTUAL','merge','options','then','includeAll','include','findAll','rows','show','params','rawAttributes','find','catch','create','body','describe','html-pdf','eml-format','fast-json-patch','request-promise','moment','mustache','util'];(function(_0x558615,_0x1eb496){var _0x1e032a=function(_0x538f1d){while(--_0x538f1d){_0x558615['push'](_0x558615['shift']());}};_0x1e032a(++_0x1eb496);}(_0xb98e,0x184));var _0xeb98=function(_0x226167,_0x11f210){_0x226167=_0x226167-0x0;var _0xe399a0=_0xb98e[_0x226167];return _0xe399a0;};'use strict';var pdf=require(_0xeb98('0x0'));var emlformat=require(_0xeb98('0x1'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0xeb98('0x2'));var rp=require(_0xeb98('0x3'));var moment=require(_0xeb98('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xeb98('0x5'));var util=require(_0xeb98('0x6'));var path=require(_0xeb98('0x7'));var sox=require('sox');var csv=require(_0xeb98('0x8'));var ejs=require('ejs');var fs=require('fs');var _=require(_0xeb98('0x9'));var squel=require('squel');var crypto=require(_0xeb98('0xa'));var jsforce=require(_0xeb98('0xb'));var deskjs=require(_0xeb98('0xc'));var toCsv=require(_0xeb98('0x8'));var querystring=require(_0xeb98('0xd'));var Papa=require(_0xeb98('0xe'));var Redis=require(_0xeb98('0xf'));var authService=require(_0xeb98('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0xeb98('0x11'));var hardwareService=require(_0xeb98('0x12'));var logger=require(_0xeb98('0x13'))(_0xeb98('0x14'));var utils=require(_0xeb98('0x15'));var config=require(_0xeb98('0x16'));var db=require(_0xeb98('0x17'))['db'];function respondWithStatusCode(_0x30cf5b,_0x2b3f9f){_0x2b3f9f=_0x2b3f9f||0xcc;return function(_0x7f5944){if(_0x7f5944){return _0x30cf5b[_0xeb98('0x18')](_0x2b3f9f);}return _0x30cf5b['status'](_0x2b3f9f)[_0xeb98('0x19')]();};}function respondWithResult(_0x3ee150,_0x55164a){_0x55164a=_0x55164a||0xc8;return function(_0x5d395c){if(_0x5d395c){return _0x3ee150[_0xeb98('0x1a')](_0x55164a)[_0xeb98('0x1b')](_0x5d395c);}};}function respondWithFilteredResult(_0x3bb77a,_0x31ff03){return function(_0xac14bc){if(_0xac14bc){var _0x29117b=_0xac14bc[_0xeb98('0x1c')],_0x33de7f=_0x31ff03[_0xeb98('0x1d')],_0x47a3ad=_0x31ff03[_0xeb98('0x1d')]+_0x31ff03[_0xeb98('0x1e')],_0x934089;if(_0x47a3ad>=_0x29117b){_0x47a3ad=_0x29117b;_0x934089=0xc8;}else{_0x934089=0xce;}_0x3bb77a[_0xeb98('0x1a')](_0x934089);return _0x3bb77a[_0xeb98('0x1f')](_0xeb98('0x20'),_0x33de7f+'-'+_0x47a3ad+'/'+_0x29117b)[_0xeb98('0x1b')](_0xac14bc);}return null;};}function patchUpdates(_0x25a13d){return function(_0xbe8e08){try{jsonpatch[_0xeb98('0x21')](_0xbe8e08,_0x25a13d,!![]);}catch(_0x5141e7){return BPromise[_0xeb98('0x22')](_0x5141e7);}return _0xbe8e08[_0xeb98('0x23')]();};}function saveUpdates(_0x4f5267,_0x56b018){return function(_0x35f4f5){if(_0x35f4f5){return _0x35f4f5[_0xeb98('0x24')](_0x4f5267)['then'](function(_0x5c35e7){return _0x5c35e7;});}return null;};}function removeEntity(_0x2ab831,_0x4e34fc){return function(_0x3e7693){if(_0x3e7693){return _0x3e7693[_0xeb98('0x25')]()['then'](function(){_0x2ab831[_0xeb98('0x1a')](0xcc)[_0xeb98('0x19')]();});}};}function handleEntityNotFound(_0x3a3566,_0x131128){return function(_0x16274e){if(!_0x16274e){_0x3a3566[_0xeb98('0x18')](0x194);}return _0x16274e;};}function handleError(_0x685a8f,_0x31928e){_0x31928e=_0x31928e||0x1f4;return function(_0x338c2c){logger[_0xeb98('0x26')](_0x338c2c[_0xeb98('0x27')]);if(_0x338c2c['name']){delete _0x338c2c[_0xeb98('0x28')];}_0x685a8f[_0xeb98('0x1a')](_0x31928e)[_0xeb98('0x29')](_0x338c2c);};}exports[_0xeb98('0x2a')]=function(_0x296f65,_0x175a0f){var _0x49ca11={},_0x151d9c={},_0x4077d7={'count':0x0,'rows':[]};var _0x3f7fdd=_[_0xeb98('0x2b')](db[_0xeb98('0x2c')]['rawAttributes'],function(_0x23dc9f){return{'name':_0x23dc9f[_0xeb98('0x2d')],'type':_0x23dc9f[_0xeb98('0x2e')][_0xeb98('0x2f')]};});_0x151d9c['model']=_[_0xeb98('0x2b')](_0x3f7fdd,_0xeb98('0x28'));_0x151d9c[_0xeb98('0x30')]=_[_0xeb98('0x31')](_0x296f65[_0xeb98('0x30')]);_0x151d9c[_0xeb98('0x32')]=_['intersection'](_0x151d9c['model'],_0x151d9c[_0xeb98('0x30')]);_0x49ca11[_0xeb98('0x33')]=_[_0xeb98('0x34')](_0x151d9c[_0xeb98('0x35')],qs[_0xeb98('0x36')](_0x296f65[_0xeb98('0x30')][_0xeb98('0x36')]));_0x49ca11[_0xeb98('0x33')]=_0x49ca11[_0xeb98('0x33')][_0xeb98('0x37')]?_0x49ca11[_0xeb98('0x33')]:_0x151d9c[_0xeb98('0x35')];if(!_0x296f65[_0xeb98('0x30')][_0xeb98('0x38')](_0xeb98('0x39'))){_0x49ca11['limit']=qs[_0xeb98('0x1e')](_0x296f65[_0xeb98('0x30')][_0xeb98('0x1e')]);_0x49ca11['offset']=qs[_0xeb98('0x1d')](_0x296f65[_0xeb98('0x30')]['offset']);}_0x49ca11[_0xeb98('0x3a')]=qs[_0xeb98('0x3b')](_0x296f65[_0xeb98('0x30')]['sort']);_0x49ca11['where']=qs[_0xeb98('0x32')](_[_0xeb98('0x3c')](_0x296f65[_0xeb98('0x30')],_0x151d9c[_0xeb98('0x32')]));if(_0x296f65['query'][_0xeb98('0x3d')]){_0x49ca11[_0xeb98('0x3e')]=_['merge'](_0x49ca11[_0xeb98('0x3e')],{'$or':_['map'](_0x3f7fdd,function(_0x166673){if(_0x166673[_0xeb98('0x2e')]!==_0xeb98('0x3f')){var _0xcd1930={};_0xcd1930[_0x166673[_0xeb98('0x28')]]={'$like':'%'+_0x296f65['query']['filter']+'%'};return _0xcd1930;}})});}_0x49ca11=_[_0xeb98('0x40')]({},_0x49ca11,_0x296f65[_0xeb98('0x41')]);var _0x1ae437={'where':_0x49ca11[_0xeb98('0x3e')]};return db[_0xeb98('0x2c')][_0xeb98('0x1c')](_0x1ae437)[_0xeb98('0x42')](function(_0x23610c){_0x4077d7[_0xeb98('0x1c')]=_0x23610c;if(_0x296f65[_0xeb98('0x30')][_0xeb98('0x43')]){_0x49ca11[_0xeb98('0x44')]=[{'all':!![]}];}return db[_0xeb98('0x2c')][_0xeb98('0x45')](_0x49ca11);})[_0xeb98('0x42')](function(_0x4abc57){_0x4077d7[_0xeb98('0x46')]=_0x4abc57;return _0x4077d7;})[_0xeb98('0x42')](respondWithFilteredResult(_0x175a0f,_0x49ca11))['catch'](handleError(_0x175a0f,null));};exports[_0xeb98('0x47')]=function(_0xb6e7f,_0x39c9c0){var _0x3e48ee={'raw':!![],'where':{'id':_0xb6e7f[_0xeb98('0x48')]['id']}},_0x212c31={};_0x212c31['model']=_['keys'](db[_0xeb98('0x2c')][_0xeb98('0x49')]);_0x212c31[_0xeb98('0x30')]=_['keys'](_0xb6e7f[_0xeb98('0x30')]);_0x212c31[_0xeb98('0x32')]=_['intersection'](_0x212c31['model'],_0x212c31[_0xeb98('0x30')]);_0x3e48ee[_0xeb98('0x33')]=_[_0xeb98('0x34')](_0x212c31[_0xeb98('0x35')],qs[_0xeb98('0x36')](_0xb6e7f['query'][_0xeb98('0x36')]));_0x3e48ee[_0xeb98('0x33')]=_0x3e48ee[_0xeb98('0x33')][_0xeb98('0x37')]?_0x3e48ee[_0xeb98('0x33')]:_0x212c31[_0xeb98('0x35')];if(_0xb6e7f[_0xeb98('0x30')][_0xeb98('0x43')]){_0x3e48ee[_0xeb98('0x44')]=[{'all':!![]}];}_0x3e48ee=_[_0xeb98('0x40')]({},_0x3e48ee,_0xb6e7f[_0xeb98('0x41')]);return db[_0xeb98('0x2c')][_0xeb98('0x4a')](_0x3e48ee)[_0xeb98('0x42')](handleEntityNotFound(_0x39c9c0,null))[_0xeb98('0x42')](respondWithResult(_0x39c9c0,null))[_0xeb98('0x4b')](handleError(_0x39c9c0,null));};exports[_0xeb98('0x4c')]=function(_0x4c9994,_0x2a14ee){return db[_0xeb98('0x2c')]['create'](_0x4c9994['body'],{})[_0xeb98('0x42')](respondWithResult(_0x2a14ee,0xc9))['catch'](handleError(_0x2a14ee,null));};exports['update']=function(_0x53d046,_0x5df96f){if(_0x53d046[_0xeb98('0x4d')]['id']){delete _0x53d046[_0xeb98('0x4d')]['id'];}return db[_0xeb98('0x2c')][_0xeb98('0x4a')]({'where':{'id':_0x53d046[_0xeb98('0x48')]['id']}})[_0xeb98('0x42')](handleEntityNotFound(_0x5df96f,null))[_0xeb98('0x42')](saveUpdates(_0x53d046[_0xeb98('0x4d')],null))[_0xeb98('0x42')](respondWithResult(_0x5df96f,null))[_0xeb98('0x4b')](handleError(_0x5df96f,null));};exports[_0xeb98('0x25')]=function(_0xcf8aa0,_0x45bdbc){return db[_0xeb98('0x2c')][_0xeb98('0x4a')]({'where':{'id':_0xcf8aa0['params']['id']}})[_0xeb98('0x42')](handleEntityNotFound(_0x45bdbc,null))[_0xeb98('0x42')](removeEntity(_0x45bdbc,null))[_0xeb98('0x4b')](handleError(_0x45bdbc,null));};exports[_0xeb98('0x4e')]=function(_0x9b8715,_0x27bf6c){return db[_0xeb98('0x2c')][_0xeb98('0x4e')]()['then'](respondWithResult(_0x27bf6c,null))['catch'](handleError(_0x27bf6c,null));};
\ No newline at end of file
+var _0xa521=['desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','offset','undefined','limit','count','set','json','apply','reject','save','update','then','error','name','index','map','OpenchannelQueueReport','rawAttributes','fieldName','type','key','model','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','params','keys','create','body','find','describe','eml-format','rimraf','request-promise','moment','bluebird','util','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce'];(function(_0x1d0184,_0x3fa782){var _0x364129=function(_0x14475f){while(--_0x14475f){_0x1d0184['push'](_0x1d0184['shift']());}};_0x364129(++_0x3fa782);}(_0xa521,0x1c0));var _0x1a52=function(_0x3f377b,_0x197ac1){_0x3f377b=_0x3f377b-0x0;var _0x394626=_0xa521[_0x3f377b];return _0x394626;};'use strict';var emlformat=require(_0x1a52('0x0'));var rimraf=require(_0x1a52('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x1a52('0x2'));var moment=require(_0x1a52('0x3'));var BPromise=require(_0x1a52('0x4'));var Mustache=require('mustache');var util=require(_0x1a52('0x5'));var path=require('path');var sox=require(_0x1a52('0x6'));var csv=require(_0x1a52('0x7'));var ejs=require(_0x1a52('0x8'));var fs=require('fs');var fs_extra=require(_0x1a52('0x9'));var _=require(_0x1a52('0xa'));var squel=require(_0x1a52('0xb'));var crypto=require(_0x1a52('0xc'));var jsforce=require(_0x1a52('0xd'));var deskjs=require(_0x1a52('0xe'));var toCsv=require(_0x1a52('0x7'));var querystring=require(_0x1a52('0xf'));var Papa=require(_0x1a52('0x10'));var Redis=require(_0x1a52('0x11'));var authService=require(_0x1a52('0x12'));var qs=require(_0x1a52('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x1a52('0x14'));var logger=require(_0x1a52('0x15'))(_0x1a52('0x16'));var utils=require(_0x1a52('0x17'));var config=require(_0x1a52('0x18'));var licenseUtil=require('../../config/license/util');var db=require(_0x1a52('0x19'))['db'];function respondWithStatusCode(_0x543aed,_0x214408){_0x214408=_0x214408||0xcc;return function(_0x34b9dc){if(_0x34b9dc){return _0x543aed[_0x1a52('0x1a')](_0x214408);}return _0x543aed[_0x1a52('0x1b')](_0x214408)[_0x1a52('0x1c')]();};}function respondWithResult(_0x5c01bb,_0x3cccec){_0x3cccec=_0x3cccec||0xc8;return function(_0x31d999){if(_0x31d999){return _0x5c01bb[_0x1a52('0x1b')](_0x3cccec)['json'](_0x31d999);}};}function respondWithFilteredResult(_0x238b9f,_0x74b35){return function(_0x273506){if(_0x273506){var _0x5b7283=typeof _0x74b35[_0x1a52('0x1d')]===_0x1a52('0x1e')&&typeof _0x74b35[_0x1a52('0x1f')]===_0x1a52('0x1e');var _0xe22ca1=_0x273506[_0x1a52('0x20')];var _0x3aa539=_0x5b7283?0x0:_0x74b35[_0x1a52('0x1d')];var _0x3f4d9e=_0x5b7283?_0x273506['count']:_0x74b35['offset']+_0x74b35[_0x1a52('0x1f')];var _0x5904b3;if(_0x3f4d9e>=_0xe22ca1){_0x3f4d9e=_0xe22ca1;_0x5904b3=0xc8;}else{_0x5904b3=0xce;}_0x238b9f[_0x1a52('0x1b')](_0x5904b3);return _0x238b9f[_0x1a52('0x21')]('Content-Range',_0x3aa539+'-'+_0x3f4d9e+'/'+_0xe22ca1)[_0x1a52('0x22')](_0x273506);}return null;};}function patchUpdates(_0x381c66){return function(_0xaf42a6){try{jsonpatch[_0x1a52('0x23')](_0xaf42a6,_0x381c66,!![]);}catch(_0x31276c){return BPromise[_0x1a52('0x24')](_0x31276c);}return _0xaf42a6[_0x1a52('0x25')]();};}function saveUpdates(_0x4b5f2c,_0x3f3a4c){return function(_0x421601){if(_0x421601){return _0x421601[_0x1a52('0x26')](_0x4b5f2c)[_0x1a52('0x27')](function(_0x2850c0){return _0x2850c0;});}return null;};}function removeEntity(_0x4e2cfc,_0x1e268f){return function(_0x1998b4){if(_0x1998b4){return _0x1998b4['destroy']()[_0x1a52('0x27')](function(){_0x4e2cfc[_0x1a52('0x1b')](0xcc)[_0x1a52('0x1c')]();});}};}function handleEntityNotFound(_0x418f57,_0x923d01){return function(_0x537b84){if(!_0x537b84){_0x418f57[_0x1a52('0x1a')](0x194);}return _0x537b84;};}function handleError(_0x2322b2,_0x427951){_0x427951=_0x427951||0x1f4;return function(_0x478dec){logger[_0x1a52('0x28')](_0x478dec['stack']);if(_0x478dec[_0x1a52('0x29')]){delete _0x478dec[_0x1a52('0x29')];}_0x2322b2[_0x1a52('0x1b')](_0x427951)['send'](_0x478dec);};}exports[_0x1a52('0x2a')]=function(_0x3b1f,_0x25edb4){var _0x4b0c45={},_0x25d260={},_0x2618b0={'count':0x0,'rows':[]};var _0x192802=_[_0x1a52('0x2b')](db[_0x1a52('0x2c')][_0x1a52('0x2d')],function(_0x27e8a2){return{'name':_0x27e8a2[_0x1a52('0x2e')],'type':_0x27e8a2[_0x1a52('0x2f')][_0x1a52('0x30')]};});_0x25d260[_0x1a52('0x31')]=_[_0x1a52('0x2b')](_0x192802,_0x1a52('0x29'));_0x25d260['query']=_['keys'](_0x3b1f[_0x1a52('0x32')]);_0x25d260[_0x1a52('0x33')]=_[_0x1a52('0x34')](_0x25d260[_0x1a52('0x31')],_0x25d260[_0x1a52('0x32')]);_0x4b0c45[_0x1a52('0x35')]=_['intersection'](_0x25d260[_0x1a52('0x31')],qs[_0x1a52('0x36')](_0x3b1f[_0x1a52('0x32')][_0x1a52('0x36')]));_0x4b0c45[_0x1a52('0x35')]=_0x4b0c45['attributes'][_0x1a52('0x37')]?_0x4b0c45[_0x1a52('0x35')]:_0x25d260[_0x1a52('0x31')];if(!_0x3b1f[_0x1a52('0x32')][_0x1a52('0x38')](_0x1a52('0x39'))){_0x4b0c45[_0x1a52('0x1f')]=qs[_0x1a52('0x1f')](_0x3b1f[_0x1a52('0x32')][_0x1a52('0x1f')]);_0x4b0c45[_0x1a52('0x1d')]=qs[_0x1a52('0x1d')](_0x3b1f[_0x1a52('0x32')][_0x1a52('0x1d')]);}_0x4b0c45[_0x1a52('0x3a')]=qs['sort'](_0x3b1f['query'][_0x1a52('0x3b')]);_0x4b0c45[_0x1a52('0x3c')]=qs[_0x1a52('0x33')](_[_0x1a52('0x3d')](_0x3b1f[_0x1a52('0x32')],_0x25d260[_0x1a52('0x33')]),_0x192802);if(_0x3b1f[_0x1a52('0x32')][_0x1a52('0x3e')]){_0x4b0c45['where']=_[_0x1a52('0x3f')](_0x4b0c45[_0x1a52('0x3c')],{'$or':_[_0x1a52('0x2b')](_0x192802,function(_0x3aa062){if(_0x3aa062['type']!==_0x1a52('0x40')){var _0x59e8b0={};_0x59e8b0[_0x3aa062[_0x1a52('0x29')]]={'$like':'%'+_0x3b1f[_0x1a52('0x32')][_0x1a52('0x3e')]+'%'};return _0x59e8b0;}})});}_0x4b0c45=_['merge']({},_0x4b0c45,_0x3b1f[_0x1a52('0x41')]);var _0x2d81ec={'where':_0x4b0c45[_0x1a52('0x3c')]};return db[_0x1a52('0x2c')][_0x1a52('0x20')](_0x2d81ec)[_0x1a52('0x27')](function(_0x35a936){_0x2618b0[_0x1a52('0x20')]=_0x35a936;if(_0x3b1f[_0x1a52('0x32')][_0x1a52('0x42')]){_0x4b0c45[_0x1a52('0x43')]=[{'all':!![]}];}return db[_0x1a52('0x2c')][_0x1a52('0x44')](_0x4b0c45);})[_0x1a52('0x27')](function(_0x94484c){_0x2618b0[_0x1a52('0x45')]=_0x94484c;return _0x2618b0;})[_0x1a52('0x27')](respondWithFilteredResult(_0x25edb4,_0x4b0c45))[_0x1a52('0x46')](handleError(_0x25edb4,null));};exports['show']=function(_0x3c45cb,_0x206dc4){var _0x3f314f={'raw':!![],'where':{'id':_0x3c45cb[_0x1a52('0x47')]['id']}},_0x2f15f7={};_0x2f15f7['model']=_['keys'](db['OpenchannelQueueReport'][_0x1a52('0x2d')]);_0x2f15f7['query']=_[_0x1a52('0x48')](_0x3c45cb[_0x1a52('0x32')]);_0x2f15f7[_0x1a52('0x33')]=_[_0x1a52('0x34')](_0x2f15f7[_0x1a52('0x31')],_0x2f15f7[_0x1a52('0x32')]);_0x3f314f[_0x1a52('0x35')]=_[_0x1a52('0x34')](_0x2f15f7[_0x1a52('0x31')],qs[_0x1a52('0x36')](_0x3c45cb[_0x1a52('0x32')][_0x1a52('0x36')]));_0x3f314f[_0x1a52('0x35')]=_0x3f314f[_0x1a52('0x35')][_0x1a52('0x37')]?_0x3f314f['attributes']:_0x2f15f7[_0x1a52('0x31')];if(_0x3c45cb[_0x1a52('0x32')]['includeAll']){_0x3f314f[_0x1a52('0x43')]=[{'all':!![]}];}_0x3f314f=_[_0x1a52('0x3f')]({},_0x3f314f,_0x3c45cb[_0x1a52('0x41')]);return db[_0x1a52('0x2c')]['find'](_0x3f314f)[_0x1a52('0x27')](handleEntityNotFound(_0x206dc4,null))[_0x1a52('0x27')](respondWithResult(_0x206dc4,null))[_0x1a52('0x46')](handleError(_0x206dc4,null));};exports['create']=function(_0x22efed,_0x3ef074){return db[_0x1a52('0x2c')][_0x1a52('0x49')](_0x22efed[_0x1a52('0x4a')],{})[_0x1a52('0x27')](respondWithResult(_0x3ef074,0xc9))[_0x1a52('0x46')](handleError(_0x3ef074,null));};exports['update']=function(_0x438ca8,_0x5e4d15){if(_0x438ca8['body']['id']){delete _0x438ca8[_0x1a52('0x4a')]['id'];}return db[_0x1a52('0x2c')][_0x1a52('0x4b')]({'where':{'id':_0x438ca8[_0x1a52('0x47')]['id']}})[_0x1a52('0x27')](handleEntityNotFound(_0x5e4d15,null))[_0x1a52('0x27')](saveUpdates(_0x438ca8[_0x1a52('0x4a')],null))[_0x1a52('0x27')](respondWithResult(_0x5e4d15,null))[_0x1a52('0x46')](handleError(_0x5e4d15,null));};exports['destroy']=function(_0x30466d,_0x49297f){return db[_0x1a52('0x2c')][_0x1a52('0x4b')]({'where':{'id':_0x30466d[_0x1a52('0x47')]['id']}})['then'](handleEntityNotFound(_0x49297f,null))[_0x1a52('0x27')](removeEntity(_0x49297f,null))['catch'](handleError(_0x49297f,null));};exports[_0x1a52('0x4c')]=function(_0xcb8b0d,_0x1363a0){return db[_0x1a52('0x2c')][_0x1a52('0x4c')]()['then'](respondWithResult(_0x1363a0,null))[_0x1a52('0x46')](handleError(_0x1363a0,null));};
\ No newline at end of file