Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / voiceAgentReport / voiceAgentReport.controller.js
index 8927e66..99b01d3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5feb=['include','findAll','rows','show','params','includeAll','options','find','catch','create','body','describe','html-pdf','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','sox','to-csv','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy','error','name','send','index','VoiceAgentReport','rawAttributes','fieldName','type','key','model','map','query','keys','filters','intersection','attributes','fields','length','nolimit','order','sort','where','pick','filter','merge','VIRTUAL'];(function(_0x2235d9,_0x1f5a4f){var _0x64ec16=function(_0x5988dc){while(--_0x5988dc){_0x2235d9['push'](_0x2235d9['shift']());}};_0x64ec16(++_0x1f5a4f);}(_0x5feb,0xfc));var _0xb5fe=function(_0x4971ca,_0x2ae39a){_0x4971ca=_0x4971ca-0x0;var _0x10c18e=_0x5feb[_0x4971ca];return _0x10c18e;};'use strict';var pdf=require(_0xb5fe('0x0'));var emlformat=require(_0xb5fe('0x1'));var rimraf=require(_0xb5fe('0x2'));var zipdir=require(_0xb5fe('0x3'));var jsonpatch=require('fast-json-patch');var rp=require(_0xb5fe('0x4'));var moment=require(_0xb5fe('0x5'));var BPromise=require(_0xb5fe('0x6'));var Mustache=require(_0xb5fe('0x7'));var util=require(_0xb5fe('0x8'));var path=require('path');var sox=require(_0xb5fe('0x9'));var csv=require(_0xb5fe('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require(_0xb5fe('0xb'));var squel=require(_0xb5fe('0xc'));var crypto=require(_0xb5fe('0xd'));var jsforce=require(_0xb5fe('0xe'));var deskjs=require(_0xb5fe('0xf'));var toCsv=require(_0xb5fe('0xa'));var querystring=require(_0xb5fe('0x10'));var Papa=require(_0xb5fe('0x11'));var Redis=require(_0xb5fe('0x12'));var authService=require(_0xb5fe('0x13'));var qs=require(_0xb5fe('0x14'));var as=require(_0xb5fe('0x15'));var hardwareService=require(_0xb5fe('0x16'));var logger=require(_0xb5fe('0x17'))(_0xb5fe('0x18'));var utils=require('../../config/utils');var config=require(_0xb5fe('0x19'));var db=require(_0xb5fe('0x1a'))['db'];function respondWithStatusCode(_0x2b7a10,_0xf37f68){_0xf37f68=_0xf37f68||0xcc;return function(_0x4d85bc){if(_0x4d85bc){return _0x2b7a10[_0xb5fe('0x1b')](_0xf37f68);}return _0x2b7a10[_0xb5fe('0x1c')](_0xf37f68)[_0xb5fe('0x1d')]();};}function respondWithResult(_0x5d8ccd,_0x3ac821){_0x3ac821=_0x3ac821||0xc8;return function(_0x46d551){if(_0x46d551){return _0x5d8ccd['status'](_0x3ac821)[_0xb5fe('0x1e')](_0x46d551);}};}function respondWithFilteredResult(_0x1d94a4,_0x218cfb){return function(_0x47ce5a){if(_0x47ce5a){var _0x79a0f8=_0x47ce5a[_0xb5fe('0x1f')],_0x4966ec=_0x218cfb[_0xb5fe('0x20')],_0x2c2395=_0x218cfb[_0xb5fe('0x20')]+_0x218cfb[_0xb5fe('0x21')],_0x566ccb;if(_0x2c2395>=_0x79a0f8){_0x2c2395=_0x79a0f8;_0x566ccb=0xc8;}else{_0x566ccb=0xce;}_0x1d94a4[_0xb5fe('0x1c')](_0x566ccb);return _0x1d94a4[_0xb5fe('0x22')](_0xb5fe('0x23'),_0x4966ec+'-'+_0x2c2395+'/'+_0x79a0f8)[_0xb5fe('0x1e')](_0x47ce5a);}return null;};}function patchUpdates(_0x2c95b7){return function(_0x2ca349){try{jsonpatch[_0xb5fe('0x24')](_0x2ca349,_0x2c95b7,!![]);}catch(_0x1133e7){return BPromise[_0xb5fe('0x25')](_0x1133e7);}return _0x2ca349[_0xb5fe('0x26')]();};}function saveUpdates(_0x2abaf8,_0x34b981){return function(_0x5edbe5){if(_0x5edbe5){return _0x5edbe5[_0xb5fe('0x27')](_0x2abaf8)[_0xb5fe('0x28')](function(_0x335334){return _0x335334;});}return null;};}function removeEntity(_0x58c958,_0x2873d2){return function(_0x37036e){if(_0x37036e){return _0x37036e[_0xb5fe('0x29')]()[_0xb5fe('0x28')](function(){_0x58c958['status'](0xcc)[_0xb5fe('0x1d')]();});}};}function handleEntityNotFound(_0x249828,_0x1a9278){return function(_0x2eb53d){if(!_0x2eb53d){_0x249828[_0xb5fe('0x1b')](0x194);}return _0x2eb53d;};}function handleError(_0x523179,_0x3bdff8){_0x3bdff8=_0x3bdff8||0x1f4;return function(_0x274798){logger[_0xb5fe('0x2a')](_0x274798['stack']);if(_0x274798['name']){delete _0x274798[_0xb5fe('0x2b')];}_0x523179['status'](_0x3bdff8)[_0xb5fe('0x2c')](_0x274798);};}exports[_0xb5fe('0x2d')]=function(_0x528d8e,_0x2b37dc){var _0x4f6cbf={},_0x3c4f53={},_0x231221={'count':0x0,'rows':[]};var _0x36cab1=_['map'](db[_0xb5fe('0x2e')][_0xb5fe('0x2f')],function(_0x448839){return{'name':_0x448839[_0xb5fe('0x30')],'type':_0x448839[_0xb5fe('0x31')][_0xb5fe('0x32')]};});_0x3c4f53[_0xb5fe('0x33')]=_[_0xb5fe('0x34')](_0x36cab1,_0xb5fe('0x2b'));_0x3c4f53[_0xb5fe('0x35')]=_[_0xb5fe('0x36')](_0x528d8e[_0xb5fe('0x35')]);_0x3c4f53[_0xb5fe('0x37')]=_[_0xb5fe('0x38')](_0x3c4f53[_0xb5fe('0x33')],_0x3c4f53[_0xb5fe('0x35')]);_0x4f6cbf[_0xb5fe('0x39')]=_['intersection'](_0x3c4f53[_0xb5fe('0x33')],qs[_0xb5fe('0x3a')](_0x528d8e[_0xb5fe('0x35')][_0xb5fe('0x3a')]));_0x4f6cbf['attributes']=_0x4f6cbf['attributes'][_0xb5fe('0x3b')]?_0x4f6cbf[_0xb5fe('0x39')]:_0x3c4f53[_0xb5fe('0x33')];if(!_0x528d8e['query']['hasOwnProperty'](_0xb5fe('0x3c'))){_0x4f6cbf[_0xb5fe('0x21')]=qs[_0xb5fe('0x21')](_0x528d8e['query'][_0xb5fe('0x21')]);_0x4f6cbf[_0xb5fe('0x20')]=qs[_0xb5fe('0x20')](_0x528d8e[_0xb5fe('0x35')][_0xb5fe('0x20')]);}_0x4f6cbf[_0xb5fe('0x3d')]=qs[_0xb5fe('0x3e')](_0x528d8e[_0xb5fe('0x35')][_0xb5fe('0x3e')]);_0x4f6cbf[_0xb5fe('0x3f')]=qs[_0xb5fe('0x37')](_[_0xb5fe('0x40')](_0x528d8e['query'],_0x3c4f53[_0xb5fe('0x37')]),_0x36cab1);if(_0x528d8e[_0xb5fe('0x35')][_0xb5fe('0x41')]){_0x4f6cbf['where']=_[_0xb5fe('0x42')](_0x4f6cbf['where'],{'$or':_[_0xb5fe('0x34')](_0x36cab1,function(_0x3edd16){if(_0x3edd16[_0xb5fe('0x31')]!==_0xb5fe('0x43')){var _0x145bd3={};_0x145bd3[_0x3edd16[_0xb5fe('0x2b')]]={'$like':'%'+_0x528d8e[_0xb5fe('0x35')][_0xb5fe('0x41')]+'%'};return _0x145bd3;}})});}_0x4f6cbf=_[_0xb5fe('0x42')]({},_0x4f6cbf,_0x528d8e['options']);var _0x8ccd36={'where':_0x4f6cbf['where']};return db[_0xb5fe('0x2e')][_0xb5fe('0x1f')](_0x8ccd36)['then'](function(_0xb656fe){_0x231221[_0xb5fe('0x1f')]=_0xb656fe;if(_0x528d8e[_0xb5fe('0x35')]['includeAll']){_0x4f6cbf[_0xb5fe('0x44')]=[{'all':!![]}];}return db[_0xb5fe('0x2e')][_0xb5fe('0x45')](_0x4f6cbf);})[_0xb5fe('0x28')](function(_0x11999b){_0x231221[_0xb5fe('0x46')]=_0x11999b;return _0x231221;})[_0xb5fe('0x28')](respondWithFilteredResult(_0x2b37dc,_0x4f6cbf))['catch'](handleError(_0x2b37dc,null));};exports[_0xb5fe('0x47')]=function(_0x400000,_0x2de5ea){var _0xed3342={'raw':![],'where':{'id':_0x400000[_0xb5fe('0x48')]['id']}},_0x51b2da={};_0x51b2da['model']=_[_0xb5fe('0x36')](db[_0xb5fe('0x2e')][_0xb5fe('0x2f')]);_0x51b2da[_0xb5fe('0x35')]=_[_0xb5fe('0x36')](_0x400000[_0xb5fe('0x35')]);_0x51b2da[_0xb5fe('0x37')]=_[_0xb5fe('0x38')](_0x51b2da[_0xb5fe('0x33')],_0x51b2da[_0xb5fe('0x35')]);_0xed3342[_0xb5fe('0x39')]=_[_0xb5fe('0x38')](_0x51b2da[_0xb5fe('0x33')],qs[_0xb5fe('0x3a')](_0x400000[_0xb5fe('0x35')][_0xb5fe('0x3a')]));_0xed3342[_0xb5fe('0x39')]=_0xed3342[_0xb5fe('0x39')][_0xb5fe('0x3b')]?_0xed3342[_0xb5fe('0x39')]:_0x51b2da[_0xb5fe('0x33')];if(_0x400000[_0xb5fe('0x35')][_0xb5fe('0x49')]){_0xed3342['include']=[{'all':!![]}];}_0xed3342=_[_0xb5fe('0x42')]({},_0xed3342,_0x400000[_0xb5fe('0x4a')]);return db['VoiceAgentReport'][_0xb5fe('0x4b')](_0xed3342)[_0xb5fe('0x28')](handleEntityNotFound(_0x2de5ea,null))['then'](respondWithResult(_0x2de5ea,null))[_0xb5fe('0x4c')](handleError(_0x2de5ea,null));};exports[_0xb5fe('0x4d')]=function(_0x24a08c,_0x55e751){return db[_0xb5fe('0x2e')][_0xb5fe('0x4d')](_0x24a08c[_0xb5fe('0x4e')],{})[_0xb5fe('0x28')](respondWithResult(_0x55e751,0xc9))['catch'](handleError(_0x55e751,null));};exports[_0xb5fe('0x27')]=function(_0x3daa65,_0x549996){if(_0x3daa65[_0xb5fe('0x4e')]['id']){delete _0x3daa65[_0xb5fe('0x4e')]['id'];}return db['VoiceAgentReport'][_0xb5fe('0x4b')]({'where':{'id':_0x3daa65[_0xb5fe('0x48')]['id']}})[_0xb5fe('0x28')](handleEntityNotFound(_0x549996,null))[_0xb5fe('0x28')](saveUpdates(_0x3daa65[_0xb5fe('0x4e')],null))['then'](respondWithResult(_0x549996,null))['catch'](handleError(_0x549996,null));};exports['destroy']=function(_0x20a7a7,_0x426d63){return db['VoiceAgentReport'][_0xb5fe('0x4b')]({'where':{'id':_0x20a7a7[_0xb5fe('0x48')]['id']}})[_0xb5fe('0x28')](handleEntityNotFound(_0x426d63,null))[_0xb5fe('0x28')](removeEntity(_0x426d63,null))['catch'](handleError(_0x426d63,null));};exports[_0xb5fe('0x4f')]=function(_0x5b7961,_0x44e709){return db['VoiceAgentReport'][_0xb5fe('0x4f')]()[_0xb5fe('0x28')](respondWithResult(_0x44e709,null))[_0xb5fe('0x4c')](handleError(_0x44e709,null));};
\ No newline at end of file
+var _0x2bb1=['json','count','offset','set','Content-Range','apply','save','update','destroy','then','error','stack','name','index','map','rawAttributes','fieldName','type','query','filters','model','attributes','intersection','fields','length','hasOwnProperty','limit','order','sort','pick','merge','where','VIRTUAL','filter','options','VoiceAgentReport','includeAll','findAll','rows','catch','show','keys','create','body','find','params','describe','fast-json-patch','request-promise','moment','bluebird','util','sox','to-csv','fs-extra','lodash','squel','crypto','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end'];(function(_0x32c522,_0x556765){var _0x167c3c=function(_0x3af6d3){while(--_0x3af6d3){_0x32c522['push'](_0x32c522['shift']());}};_0x167c3c(++_0x556765);}(_0x2bb1,0x197));var _0x12bb=function(_0x4c9ba3,_0x355f36){_0x4c9ba3=_0x4c9ba3-0x0;var _0x4db012=_0x2bb1[_0x4c9ba3];return _0x4db012;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x12bb('0x0'));var rp=require(_0x12bb('0x1'));var moment=require(_0x12bb('0x2'));var BPromise=require(_0x12bb('0x3'));var Mustache=require('mustache');var util=require(_0x12bb('0x4'));var path=require('path');var sox=require(_0x12bb('0x5'));var csv=require(_0x12bb('0x6'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x12bb('0x7'));var _=require(_0x12bb('0x8'));var squel=require(_0x12bb('0x9'));var crypto=require(_0x12bb('0xa'));var jsforce=require('jsforce');var deskjs=require(_0x12bb('0xb'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x12bb('0xc'));var Redis=require(_0x12bb('0xd'));var authService=require(_0x12bb('0xe'));var qs=require(_0x12bb('0xf'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x12bb('0x10'));var logger=require(_0x12bb('0x11'))(_0x12bb('0x12'));var utils=require(_0x12bb('0x13'));var config=require(_0x12bb('0x14'));var licenseUtil=require(_0x12bb('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x3e0fc9,_0x214d77){_0x214d77=_0x214d77||0xcc;return function(_0x3180a7){if(_0x3180a7){return _0x3e0fc9[_0x12bb('0x16')](_0x214d77);}return _0x3e0fc9[_0x12bb('0x17')](_0x214d77)[_0x12bb('0x18')]();};}function respondWithResult(_0x1bf582,_0x1fb746){_0x1fb746=_0x1fb746||0xc8;return function(_0x4a2a79){if(_0x4a2a79){return _0x1bf582['status'](_0x1fb746)[_0x12bb('0x19')](_0x4a2a79);}};}function respondWithFilteredResult(_0x57a0a0,_0x47d972){return function(_0x3b8fe7){if(_0x3b8fe7){var _0x241053=_0x3b8fe7[_0x12bb('0x1a')],_0x7308c=_0x47d972['offset'],_0x73bff2=_0x47d972[_0x12bb('0x1b')]+_0x47d972['limit'],_0x52d090;if(_0x73bff2>=_0x241053){_0x73bff2=_0x241053;_0x52d090=0xc8;}else{_0x52d090=0xce;}_0x57a0a0[_0x12bb('0x17')](_0x52d090);return _0x57a0a0[_0x12bb('0x1c')](_0x12bb('0x1d'),_0x7308c+'-'+_0x73bff2+'/'+_0x241053)[_0x12bb('0x19')](_0x3b8fe7);}return null;};}function patchUpdates(_0x47d1bc){return function(_0xd3d190){try{jsonpatch[_0x12bb('0x1e')](_0xd3d190,_0x47d1bc,!![]);}catch(_0xbb7688){return BPromise['reject'](_0xbb7688);}return _0xd3d190[_0x12bb('0x1f')]();};}function saveUpdates(_0x186786,_0x4198f4){return function(_0x38254f){if(_0x38254f){return _0x38254f[_0x12bb('0x20')](_0x186786)['then'](function(_0x1b4f7b){return _0x1b4f7b;});}return null;};}function removeEntity(_0x4513d3,_0x4570db){return function(_0x3476b8){if(_0x3476b8){return _0x3476b8[_0x12bb('0x21')]()[_0x12bb('0x22')](function(){_0x4513d3[_0x12bb('0x17')](0xcc)[_0x12bb('0x18')]();});}};}function handleEntityNotFound(_0x3f448e,_0x212161){return function(_0x3684d8){if(!_0x3684d8){_0x3f448e[_0x12bb('0x16')](0x194);}return _0x3684d8;};}function handleError(_0x5aed89,_0x3bbfdb){_0x3bbfdb=_0x3bbfdb||0x1f4;return function(_0x1a2f51){logger[_0x12bb('0x23')](_0x1a2f51[_0x12bb('0x24')]);if(_0x1a2f51['name']){delete _0x1a2f51[_0x12bb('0x25')];}_0x5aed89['status'](_0x3bbfdb)['send'](_0x1a2f51);};}exports[_0x12bb('0x26')]=function(_0x118c8c,_0x38f3a7){var _0x59e6a9={},_0x1867a4={},_0x465d94={'count':0x0,'rows':[]};var _0x3cdd5f=_[_0x12bb('0x27')](db['VoiceAgentReport'][_0x12bb('0x28')],function(_0x103db8){return{'name':_0x103db8[_0x12bb('0x29')],'type':_0x103db8[_0x12bb('0x2a')]['key']};});_0x1867a4['model']=_[_0x12bb('0x27')](_0x3cdd5f,_0x12bb('0x25'));_0x1867a4[_0x12bb('0x2b')]=_['keys'](_0x118c8c[_0x12bb('0x2b')]);_0x1867a4[_0x12bb('0x2c')]=_['intersection'](_0x1867a4[_0x12bb('0x2d')],_0x1867a4['query']);_0x59e6a9[_0x12bb('0x2e')]=_[_0x12bb('0x2f')](_0x1867a4[_0x12bb('0x2d')],qs[_0x12bb('0x30')](_0x118c8c['query'][_0x12bb('0x30')]));_0x59e6a9[_0x12bb('0x2e')]=_0x59e6a9[_0x12bb('0x2e')][_0x12bb('0x31')]?_0x59e6a9[_0x12bb('0x2e')]:_0x1867a4[_0x12bb('0x2d')];if(!_0x118c8c[_0x12bb('0x2b')][_0x12bb('0x32')]('nolimit')){_0x59e6a9[_0x12bb('0x33')]=qs[_0x12bb('0x33')](_0x118c8c[_0x12bb('0x2b')][_0x12bb('0x33')]);_0x59e6a9[_0x12bb('0x1b')]=qs[_0x12bb('0x1b')](_0x118c8c[_0x12bb('0x2b')][_0x12bb('0x1b')]);}_0x59e6a9[_0x12bb('0x34')]=qs[_0x12bb('0x35')](_0x118c8c['query']['sort']);_0x59e6a9['where']=qs[_0x12bb('0x2c')](_[_0x12bb('0x36')](_0x118c8c[_0x12bb('0x2b')],_0x1867a4[_0x12bb('0x2c')]),_0x3cdd5f);if(_0x118c8c[_0x12bb('0x2b')]['filter']){_0x59e6a9['where']=_[_0x12bb('0x37')](_0x59e6a9[_0x12bb('0x38')],{'$or':_['map'](_0x3cdd5f,function(_0x21a0d8){if(_0x21a0d8[_0x12bb('0x2a')]!==_0x12bb('0x39')){var _0xf70790={};_0xf70790[_0x21a0d8['name']]={'$like':'%'+_0x118c8c[_0x12bb('0x2b')][_0x12bb('0x3a')]+'%'};return _0xf70790;}})});}_0x59e6a9=_[_0x12bb('0x37')]({},_0x59e6a9,_0x118c8c[_0x12bb('0x3b')]);var _0x235736={'where':_0x59e6a9[_0x12bb('0x38')]};return db[_0x12bb('0x3c')]['count'](_0x235736)[_0x12bb('0x22')](function(_0x47f0b3){_0x465d94[_0x12bb('0x1a')]=_0x47f0b3;if(_0x118c8c[_0x12bb('0x2b')][_0x12bb('0x3d')]){_0x59e6a9['include']=[{'all':!![]}];}return db[_0x12bb('0x3c')][_0x12bb('0x3e')](_0x59e6a9);})['then'](function(_0x25d4d7){_0x465d94[_0x12bb('0x3f')]=_0x25d4d7;return _0x465d94;})['then'](respondWithFilteredResult(_0x38f3a7,_0x59e6a9))[_0x12bb('0x40')](handleError(_0x38f3a7,null));};exports[_0x12bb('0x41')]=function(_0x35d6b5,_0x1ca23f){var _0x38ba23={'raw':![],'where':{'id':_0x35d6b5['params']['id']}},_0x372b80={};_0x372b80[_0x12bb('0x2d')]=_[_0x12bb('0x42')](db[_0x12bb('0x3c')][_0x12bb('0x28')]);_0x372b80[_0x12bb('0x2b')]=_[_0x12bb('0x42')](_0x35d6b5['query']);_0x372b80[_0x12bb('0x2c')]=_[_0x12bb('0x2f')](_0x372b80[_0x12bb('0x2d')],_0x372b80['query']);_0x38ba23[_0x12bb('0x2e')]=_[_0x12bb('0x2f')](_0x372b80[_0x12bb('0x2d')],qs[_0x12bb('0x30')](_0x35d6b5['query'][_0x12bb('0x30')]));_0x38ba23['attributes']=_0x38ba23[_0x12bb('0x2e')][_0x12bb('0x31')]?_0x38ba23[_0x12bb('0x2e')]:_0x372b80[_0x12bb('0x2d')];if(_0x35d6b5[_0x12bb('0x2b')]['includeAll']){_0x38ba23['include']=[{'all':!![]}];}_0x38ba23=_[_0x12bb('0x37')]({},_0x38ba23,_0x35d6b5['options']);return db[_0x12bb('0x3c')]['find'](_0x38ba23)[_0x12bb('0x22')](handleEntityNotFound(_0x1ca23f,null))[_0x12bb('0x22')](respondWithResult(_0x1ca23f,null))[_0x12bb('0x40')](handleError(_0x1ca23f,null));};exports['create']=function(_0x524f21,_0x2daa05){return db[_0x12bb('0x3c')][_0x12bb('0x43')](_0x524f21['body'],{})[_0x12bb('0x22')](respondWithResult(_0x2daa05,0xc9))[_0x12bb('0x40')](handleError(_0x2daa05,null));};exports['update']=function(_0x4464d8,_0x30fb2f){if(_0x4464d8[_0x12bb('0x44')]['id']){delete _0x4464d8[_0x12bb('0x44')]['id'];}return db[_0x12bb('0x3c')][_0x12bb('0x45')]({'where':{'id':_0x4464d8[_0x12bb('0x46')]['id']}})[_0x12bb('0x22')](handleEntityNotFound(_0x30fb2f,null))[_0x12bb('0x22')](saveUpdates(_0x4464d8['body'],null))[_0x12bb('0x22')](respondWithResult(_0x30fb2f,null))[_0x12bb('0x40')](handleError(_0x30fb2f,null));};exports['destroy']=function(_0x727e48,_0x89a319){return db[_0x12bb('0x3c')][_0x12bb('0x45')]({'where':{'id':_0x727e48['params']['id']}})[_0x12bb('0x22')](handleEntityNotFound(_0x89a319,null))['then'](removeEntity(_0x89a319,null))[_0x12bb('0x40')](handleError(_0x89a319,null));};exports['describe']=function(_0xf5a03,_0xd7c0ce){return db[_0x12bb('0x3c')][_0x12bb('0x47')]()[_0x12bb('0x22')](respondWithResult(_0xd7c0ce,null))[_0x12bb('0x40')](handleError(_0xd7c0ce,null));};
\ No newline at end of file