Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.controller.js
index 84d4928..18d6434 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd3b4=['count','offset','limit','set','Content-Range','apply','reject','update','then','stack','name','send','index','map','WhatsappTransferReport','rawAttributes','fieldName','type','keys','filters','intersection','model','query','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','merge','VIRTUAL','filter','options','includeAll','include','catch','params','find','create','body','destroy','describe','html-pdf','zip-dir','fast-json-patch','request-promise','moment','mustache','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','papaparse','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','json'];(function(_0x1b74bd,_0x2674ff){var _0x35a026=function(_0x351e18){while(--_0x351e18){_0x1b74bd['push'](_0x1b74bd['shift']());}};_0x35a026(++_0x2674ff);}(_0xd3b4,0x1e9));var _0x4d3b=function(_0x38f6ca,_0x348694){_0x38f6ca=_0x38f6ca-0x0;var _0x15dd20=_0xd3b4[_0x38f6ca];return _0x15dd20;};'use strict';var pdf=require(_0x4d3b('0x0'));var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x4d3b('0x1'));var jsonpatch=require(_0x4d3b('0x2'));var rp=require(_0x4d3b('0x3'));var moment=require(_0x4d3b('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x4d3b('0x5'));var util=require('util');var path=require(_0x4d3b('0x6'));var sox=require(_0x4d3b('0x7'));var csv=require(_0x4d3b('0x8'));var ejs=require(_0x4d3b('0x9'));var fs=require('fs');var _=require(_0x4d3b('0xa'));var squel=require(_0x4d3b('0xb'));var crypto=require(_0x4d3b('0xc'));var jsforce=require(_0x4d3b('0xd'));var deskjs=require(_0x4d3b('0xe'));var toCsv=require(_0x4d3b('0x8'));var querystring=require('querystring');var Papa=require(_0x4d3b('0xf'));var Redis=require('ioredis');var authService=require(_0x4d3b('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0x4d3b('0x11'));var hardwareService=require(_0x4d3b('0x12'));var logger=require(_0x4d3b('0x13'))(_0x4d3b('0x14'));var utils=require(_0x4d3b('0x15'));var config=require(_0x4d3b('0x16'));var licenseUtil=require(_0x4d3b('0x17'));var db=require(_0x4d3b('0x18'))['db'];function respondWithStatusCode(_0xc5e0f4,_0xa23977){_0xa23977=_0xa23977||0xcc;return function(_0x43e1b6){if(_0x43e1b6){return _0xc5e0f4[_0x4d3b('0x19')](_0xa23977);}return _0xc5e0f4['status'](_0xa23977)[_0x4d3b('0x1a')]();};}function respondWithResult(_0x3e64ce,_0x2f5fa0){_0x2f5fa0=_0x2f5fa0||0xc8;return function(_0x156e79){if(_0x156e79){return _0x3e64ce[_0x4d3b('0x1b')](_0x2f5fa0)[_0x4d3b('0x1c')](_0x156e79);}};}function respondWithFilteredResult(_0xee1de1,_0x263268){return function(_0x19aad9){if(_0x19aad9){var _0x43a9a2=_0x19aad9[_0x4d3b('0x1d')],_0x531d57=_0x263268[_0x4d3b('0x1e')],_0xfbb52a=_0x263268[_0x4d3b('0x1e')]+_0x263268[_0x4d3b('0x1f')],_0x53c21a;if(_0xfbb52a>=_0x43a9a2){_0xfbb52a=_0x43a9a2;_0x53c21a=0xc8;}else{_0x53c21a=0xce;}_0xee1de1[_0x4d3b('0x1b')](_0x53c21a);return _0xee1de1[_0x4d3b('0x20')](_0x4d3b('0x21'),_0x531d57+'-'+_0xfbb52a+'/'+_0x43a9a2)[_0x4d3b('0x1c')](_0x19aad9);}return null;};}function patchUpdates(_0x2f5b2a){return function(_0x1fe7f5){try{jsonpatch[_0x4d3b('0x22')](_0x1fe7f5,_0x2f5b2a,!![]);}catch(_0x3a409c){return BPromise[_0x4d3b('0x23')](_0x3a409c);}return _0x1fe7f5['save']();};}function saveUpdates(_0x44da95,_0x401d86){return function(_0x122169){if(_0x122169){return _0x122169[_0x4d3b('0x24')](_0x44da95)[_0x4d3b('0x25')](function(_0x59d04c){return _0x59d04c;});}return null;};}function removeEntity(_0x2133d7,_0x19c4c0){return function(_0x335bd8){if(_0x335bd8){return _0x335bd8['destroy']()[_0x4d3b('0x25')](function(){_0x2133d7['status'](0xcc)[_0x4d3b('0x1a')]();});}};}function handleEntityNotFound(_0x293388,_0xc3fe1d){return function(_0x5b94fc){if(!_0x5b94fc){_0x293388[_0x4d3b('0x19')](0x194);}return _0x5b94fc;};}function handleError(_0x31bd95,_0x131b28){_0x131b28=_0x131b28||0x1f4;return function(_0x24ada0){logger['error'](_0x24ada0[_0x4d3b('0x26')]);if(_0x24ada0[_0x4d3b('0x27')]){delete _0x24ada0[_0x4d3b('0x27')];}_0x31bd95[_0x4d3b('0x1b')](_0x131b28)[_0x4d3b('0x28')](_0x24ada0);};}exports[_0x4d3b('0x29')]=function(_0x1223c7,_0x37fc9d){var _0x1b7c1b={},_0x5d375c={},_0x3b62a7={'count':0x0,'rows':[]};var _0x48adb6=_[_0x4d3b('0x2a')](db[_0x4d3b('0x2b')][_0x4d3b('0x2c')],function(_0x3239bf){return{'name':_0x3239bf[_0x4d3b('0x2d')],'type':_0x3239bf[_0x4d3b('0x2e')]['key']};});_0x5d375c['model']=_[_0x4d3b('0x2a')](_0x48adb6,'name');_0x5d375c['query']=_[_0x4d3b('0x2f')](_0x1223c7['query']);_0x5d375c[_0x4d3b('0x30')]=_[_0x4d3b('0x31')](_0x5d375c[_0x4d3b('0x32')],_0x5d375c[_0x4d3b('0x33')]);_0x1b7c1b['attributes']=_['intersection'](_0x5d375c['model'],qs[_0x4d3b('0x34')](_0x1223c7['query'][_0x4d3b('0x34')]));_0x1b7c1b[_0x4d3b('0x35')]=_0x1b7c1b[_0x4d3b('0x35')][_0x4d3b('0x36')]?_0x1b7c1b[_0x4d3b('0x35')]:_0x5d375c[_0x4d3b('0x32')];if(!_0x1223c7[_0x4d3b('0x33')][_0x4d3b('0x37')](_0x4d3b('0x38'))){_0x1b7c1b[_0x4d3b('0x1f')]=qs['limit'](_0x1223c7[_0x4d3b('0x33')]['limit']);_0x1b7c1b['offset']=qs[_0x4d3b('0x1e')](_0x1223c7[_0x4d3b('0x33')][_0x4d3b('0x1e')]);}_0x1b7c1b[_0x4d3b('0x39')]=qs[_0x4d3b('0x3a')](_0x1223c7[_0x4d3b('0x33')][_0x4d3b('0x3a')]);_0x1b7c1b[_0x4d3b('0x3b')]=qs[_0x4d3b('0x30')](_[_0x4d3b('0x3c')](_0x1223c7['query'],_0x5d375c[_0x4d3b('0x30')]),_0x48adb6);if(_0x1223c7['query']['filter']){_0x1b7c1b[_0x4d3b('0x3b')]=_[_0x4d3b('0x3d')](_0x1b7c1b[_0x4d3b('0x3b')],{'$or':_[_0x4d3b('0x2a')](_0x48adb6,function(_0x5e5a0c){if(_0x5e5a0c['type']!==_0x4d3b('0x3e')){var _0x30b652={};_0x30b652[_0x5e5a0c[_0x4d3b('0x27')]]={'$like':'%'+_0x1223c7['query'][_0x4d3b('0x3f')]+'%'};return _0x30b652;}})});}_0x1b7c1b=_[_0x4d3b('0x3d')]({},_0x1b7c1b,_0x1223c7[_0x4d3b('0x40')]);var _0x5c30cb={'where':_0x1b7c1b[_0x4d3b('0x3b')]};return db[_0x4d3b('0x2b')][_0x4d3b('0x1d')](_0x5c30cb)['then'](function(_0x371c37){_0x3b62a7[_0x4d3b('0x1d')]=_0x371c37;if(_0x1223c7[_0x4d3b('0x33')][_0x4d3b('0x41')]){_0x1b7c1b[_0x4d3b('0x42')]=[{'all':!![]}];}return db[_0x4d3b('0x2b')]['findAll'](_0x1b7c1b);})[_0x4d3b('0x25')](function(_0x1386a9){_0x3b62a7['rows']=_0x1386a9;return _0x3b62a7;})[_0x4d3b('0x25')](respondWithFilteredResult(_0x37fc9d,_0x1b7c1b))[_0x4d3b('0x43')](handleError(_0x37fc9d,null));};exports['show']=function(_0x479d5f,_0x37123c){var _0x3b0f39={'raw':!![],'where':{'id':_0x479d5f[_0x4d3b('0x44')]['id']}},_0x24b61e={};_0x24b61e[_0x4d3b('0x32')]=_[_0x4d3b('0x2f')](db[_0x4d3b('0x2b')][_0x4d3b('0x2c')]);_0x24b61e[_0x4d3b('0x33')]=_[_0x4d3b('0x2f')](_0x479d5f[_0x4d3b('0x33')]);_0x24b61e['filters']=_[_0x4d3b('0x31')](_0x24b61e[_0x4d3b('0x32')],_0x24b61e['query']);_0x3b0f39[_0x4d3b('0x35')]=_[_0x4d3b('0x31')](_0x24b61e['model'],qs[_0x4d3b('0x34')](_0x479d5f[_0x4d3b('0x33')][_0x4d3b('0x34')]));_0x3b0f39['attributes']=_0x3b0f39['attributes'][_0x4d3b('0x36')]?_0x3b0f39[_0x4d3b('0x35')]:_0x24b61e[_0x4d3b('0x32')];if(_0x479d5f[_0x4d3b('0x33')]['includeAll']){_0x3b0f39[_0x4d3b('0x42')]=[{'all':!![]}];}_0x3b0f39=_[_0x4d3b('0x3d')]({},_0x3b0f39,_0x479d5f['options']);return db[_0x4d3b('0x2b')][_0x4d3b('0x45')](_0x3b0f39)['then'](handleEntityNotFound(_0x37123c,null))[_0x4d3b('0x25')](respondWithResult(_0x37123c,null))[_0x4d3b('0x43')](handleError(_0x37123c,null));};exports[_0x4d3b('0x46')]=function(_0x3a56df,_0x1df1a5){return db[_0x4d3b('0x2b')][_0x4d3b('0x46')](_0x3a56df['body'],{})[_0x4d3b('0x25')](respondWithResult(_0x1df1a5,0xc9))[_0x4d3b('0x43')](handleError(_0x1df1a5,null));};exports[_0x4d3b('0x24')]=function(_0xb49d74,_0x1edad7){if(_0xb49d74[_0x4d3b('0x47')]['id']){delete _0xb49d74['body']['id'];}return db[_0x4d3b('0x2b')][_0x4d3b('0x45')]({'where':{'id':_0xb49d74[_0x4d3b('0x44')]['id']}})[_0x4d3b('0x25')](handleEntityNotFound(_0x1edad7,null))[_0x4d3b('0x25')](saveUpdates(_0xb49d74[_0x4d3b('0x47')],null))[_0x4d3b('0x25')](respondWithResult(_0x1edad7,null))[_0x4d3b('0x43')](handleError(_0x1edad7,null));};exports[_0x4d3b('0x48')]=function(_0x457b92,_0x40e4ea){return db[_0x4d3b('0x2b')]['find']({'where':{'id':_0x457b92[_0x4d3b('0x44')]['id']}})[_0x4d3b('0x25')](handleEntityNotFound(_0x40e4ea,null))[_0x4d3b('0x25')](removeEntity(_0x40e4ea,null))[_0x4d3b('0x43')](handleError(_0x40e4ea,null));};exports[_0x4d3b('0x49')]=function(_0x5c92fb,_0x13ce6c){return db['WhatsappTransferReport'][_0x4d3b('0x49')]()['then'](respondWithResult(_0x13ce6c,null))[_0x4d3b('0x43')](handleError(_0x13ce6c,null));};
\ No newline at end of file
+var _0xde46=['limit','apply','reject','save','update','then','destroy','error','stack','name','send','map','rawAttributes','fieldName','type','model','query','filters','intersection','attributes','length','hasOwnProperty','nolimit','sort','where','filter','merge','VIRTUAL','options','WhatsappTransferReport','includeAll','include','findAll','catch','show','params','keys','fields','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','bluebird','util','path','sox','to-csv','lodash','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','count'];(function(_0x3c3e56,_0x23ebb3){var _0x46b754=function(_0x5c410b){while(--_0x5c410b){_0x3c3e56['push'](_0x3c3e56['shift']());}};_0x46b754(++_0x23ebb3);}(_0xde46,0x14e));var _0x6de4=function(_0x36ef53,_0x55170c){_0x36ef53=_0x36ef53-0x0;var _0x561743=_0xde46[_0x36ef53];return _0x561743;};'use strict';var emlformat=require(_0x6de4('0x0'));var rimraf=require(_0x6de4('0x1'));var zipdir=require(_0x6de4('0x2'));var jsonpatch=require(_0x6de4('0x3'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x6de4('0x4'));var Mustache=require('mustache');var util=require(_0x6de4('0x5'));var path=require(_0x6de4('0x6'));var sox=require(_0x6de4('0x7'));var csv=require(_0x6de4('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x6de4('0x9'));var squel=require('squel');var crypto=require(_0x6de4('0xa'));var jsforce=require(_0x6de4('0xb'));var deskjs=require('desk.js');var toCsv=require(_0x6de4('0x8'));var querystring=require(_0x6de4('0xc'));var Papa=require(_0x6de4('0xd'));var Redis=require(_0x6de4('0xe'));var authService=require(_0x6de4('0xf'));var qs=require(_0x6de4('0x10'));var as=require(_0x6de4('0x11'));var hardwareService=require(_0x6de4('0x12'));var logger=require(_0x6de4('0x13'))(_0x6de4('0x14'));var utils=require(_0x6de4('0x15'));var config=require('../../config/environment');var licenseUtil=require(_0x6de4('0x16'));var db=require(_0x6de4('0x17'))['db'];function respondWithStatusCode(_0x2714b8,_0x1aa6ae){_0x1aa6ae=_0x1aa6ae||0xcc;return function(_0x227e2a){if(_0x227e2a){return _0x2714b8[_0x6de4('0x18')](_0x1aa6ae);}return _0x2714b8[_0x6de4('0x19')](_0x1aa6ae)[_0x6de4('0x1a')]();};}function respondWithResult(_0x547798,_0x270d64){_0x270d64=_0x270d64||0xc8;return function(_0x4c99bb){if(_0x4c99bb){return _0x547798[_0x6de4('0x19')](_0x270d64)[_0x6de4('0x1b')](_0x4c99bb);}};}function respondWithFilteredResult(_0x19f179,_0x5938cb){return function(_0x1b61aa){if(_0x1b61aa){var _0x995a8f=typeof _0x5938cb[_0x6de4('0x1c')]===_0x6de4('0x1d')&&typeof _0x5938cb['limit']===_0x6de4('0x1d');var _0x48f4b1=_0x1b61aa['count'];var _0x162f59=_0x995a8f?0x0:_0x5938cb[_0x6de4('0x1c')];var _0x2d358d=_0x995a8f?_0x1b61aa[_0x6de4('0x1e')]:_0x5938cb[_0x6de4('0x1c')]+_0x5938cb[_0x6de4('0x1f')];var _0x3e1b17;if(_0x2d358d>=_0x48f4b1){_0x2d358d=_0x48f4b1;_0x3e1b17=0xc8;}else{_0x3e1b17=0xce;}_0x19f179[_0x6de4('0x19')](_0x3e1b17);return _0x19f179['set']('Content-Range',_0x162f59+'-'+_0x2d358d+'/'+_0x48f4b1)[_0x6de4('0x1b')](_0x1b61aa);}return null;};}function patchUpdates(_0x4c76d2){return function(_0x2e52cb){try{jsonpatch[_0x6de4('0x20')](_0x2e52cb,_0x4c76d2,!![]);}catch(_0x51bed3){return BPromise[_0x6de4('0x21')](_0x51bed3);}return _0x2e52cb[_0x6de4('0x22')]();};}function saveUpdates(_0x58d5d7,_0x2ea2cd){return function(_0x20c4d0){if(_0x20c4d0){return _0x20c4d0[_0x6de4('0x23')](_0x58d5d7)[_0x6de4('0x24')](function(_0x5bba76){return _0x5bba76;});}return null;};}function removeEntity(_0xb7d4b2,_0x4ff96f){return function(_0x3eb8b4){if(_0x3eb8b4){return _0x3eb8b4[_0x6de4('0x25')]()[_0x6de4('0x24')](function(){_0xb7d4b2[_0x6de4('0x19')](0xcc)[_0x6de4('0x1a')]();});}};}function handleEntityNotFound(_0x2cc9dd,_0x1d0290){return function(_0x2416a7){if(!_0x2416a7){_0x2cc9dd[_0x6de4('0x18')](0x194);}return _0x2416a7;};}function handleError(_0x39f717,_0x3e19a2){_0x3e19a2=_0x3e19a2||0x1f4;return function(_0x5bbf4d){logger[_0x6de4('0x26')](_0x5bbf4d[_0x6de4('0x27')]);if(_0x5bbf4d[_0x6de4('0x28')]){delete _0x5bbf4d['name'];}_0x39f717[_0x6de4('0x19')](_0x3e19a2)[_0x6de4('0x29')](_0x5bbf4d);};}exports['index']=function(_0x4b6157,_0x348b28){var _0x579476={},_0x534dc0={},_0x3d7715={'count':0x0,'rows':[]};var _0x308081=_[_0x6de4('0x2a')](db['WhatsappTransferReport'][_0x6de4('0x2b')],function(_0xcc9afc){return{'name':_0xcc9afc[_0x6de4('0x2c')],'type':_0xcc9afc[_0x6de4('0x2d')]['key']};});_0x534dc0[_0x6de4('0x2e')]=_['map'](_0x308081,_0x6de4('0x28'));_0x534dc0[_0x6de4('0x2f')]=_['keys'](_0x4b6157[_0x6de4('0x2f')]);_0x534dc0[_0x6de4('0x30')]=_[_0x6de4('0x31')](_0x534dc0[_0x6de4('0x2e')],_0x534dc0['query']);_0x579476[_0x6de4('0x32')]=_[_0x6de4('0x31')](_0x534dc0[_0x6de4('0x2e')],qs['fields'](_0x4b6157[_0x6de4('0x2f')]['fields']));_0x579476['attributes']=_0x579476[_0x6de4('0x32')][_0x6de4('0x33')]?_0x579476['attributes']:_0x534dc0[_0x6de4('0x2e')];if(!_0x4b6157[_0x6de4('0x2f')][_0x6de4('0x34')](_0x6de4('0x35'))){_0x579476[_0x6de4('0x1f')]=qs[_0x6de4('0x1f')](_0x4b6157[_0x6de4('0x2f')][_0x6de4('0x1f')]);_0x579476[_0x6de4('0x1c')]=qs[_0x6de4('0x1c')](_0x4b6157[_0x6de4('0x2f')][_0x6de4('0x1c')]);}_0x579476['order']=qs[_0x6de4('0x36')](_0x4b6157[_0x6de4('0x2f')][_0x6de4('0x36')]);_0x579476[_0x6de4('0x37')]=qs[_0x6de4('0x30')](_['pick'](_0x4b6157[_0x6de4('0x2f')],_0x534dc0[_0x6de4('0x30')]),_0x308081);if(_0x4b6157[_0x6de4('0x2f')][_0x6de4('0x38')]){_0x579476[_0x6de4('0x37')]=_[_0x6de4('0x39')](_0x579476[_0x6de4('0x37')],{'$or':_[_0x6de4('0x2a')](_0x308081,function(_0x1f8b2d){if(_0x1f8b2d[_0x6de4('0x2d')]!==_0x6de4('0x3a')){var _0x4088dd={};_0x4088dd[_0x1f8b2d[_0x6de4('0x28')]]={'$like':'%'+_0x4b6157['query'][_0x6de4('0x38')]+'%'};return _0x4088dd;}})});}_0x579476=_[_0x6de4('0x39')]({},_0x579476,_0x4b6157[_0x6de4('0x3b')]);var _0x18d3bc={'where':_0x579476['where']};return db[_0x6de4('0x3c')][_0x6de4('0x1e')](_0x18d3bc)[_0x6de4('0x24')](function(_0x301414){_0x3d7715['count']=_0x301414;if(_0x4b6157['query'][_0x6de4('0x3d')]){_0x579476[_0x6de4('0x3e')]=[{'all':!![]}];}return db[_0x6de4('0x3c')][_0x6de4('0x3f')](_0x579476);})[_0x6de4('0x24')](function(_0x490cb7){_0x3d7715['rows']=_0x490cb7;return _0x3d7715;})[_0x6de4('0x24')](respondWithFilteredResult(_0x348b28,_0x579476))[_0x6de4('0x40')](handleError(_0x348b28,null));};exports[_0x6de4('0x41')]=function(_0x325a20,_0x3824c9){var _0x5decb4={'raw':!![],'where':{'id':_0x325a20[_0x6de4('0x42')]['id']}},_0x10808e={};_0x10808e[_0x6de4('0x2e')]=_[_0x6de4('0x43')](db['WhatsappTransferReport'][_0x6de4('0x2b')]);_0x10808e[_0x6de4('0x2f')]=_[_0x6de4('0x43')](_0x325a20[_0x6de4('0x2f')]);_0x10808e['filters']=_[_0x6de4('0x31')](_0x10808e['model'],_0x10808e[_0x6de4('0x2f')]);_0x5decb4[_0x6de4('0x32')]=_[_0x6de4('0x31')](_0x10808e[_0x6de4('0x2e')],qs['fields'](_0x325a20[_0x6de4('0x2f')][_0x6de4('0x44')]));_0x5decb4[_0x6de4('0x32')]=_0x5decb4[_0x6de4('0x32')][_0x6de4('0x33')]?_0x5decb4[_0x6de4('0x32')]:_0x10808e[_0x6de4('0x2e')];if(_0x325a20[_0x6de4('0x2f')][_0x6de4('0x3d')]){_0x5decb4[_0x6de4('0x3e')]=[{'all':!![]}];}_0x5decb4=_['merge']({},_0x5decb4,_0x325a20['options']);return db[_0x6de4('0x3c')][_0x6de4('0x45')](_0x5decb4)[_0x6de4('0x24')](handleEntityNotFound(_0x3824c9,null))[_0x6de4('0x24')](respondWithResult(_0x3824c9,null))['catch'](handleError(_0x3824c9,null));};exports[_0x6de4('0x46')]=function(_0xa3ca02,_0x328822){return db[_0x6de4('0x3c')]['create'](_0xa3ca02[_0x6de4('0x47')],{})[_0x6de4('0x24')](respondWithResult(_0x328822,0xc9))[_0x6de4('0x40')](handleError(_0x328822,null));};exports[_0x6de4('0x23')]=function(_0x26fd5d,_0x26c89a){if(_0x26fd5d[_0x6de4('0x47')]['id']){delete _0x26fd5d['body']['id'];}return db[_0x6de4('0x3c')][_0x6de4('0x45')]({'where':{'id':_0x26fd5d[_0x6de4('0x42')]['id']}})[_0x6de4('0x24')](handleEntityNotFound(_0x26c89a,null))[_0x6de4('0x24')](saveUpdates(_0x26fd5d[_0x6de4('0x47')],null))[_0x6de4('0x24')](respondWithResult(_0x26c89a,null))[_0x6de4('0x40')](handleError(_0x26c89a,null));};exports['destroy']=function(_0x258c5b,_0x176c21){return db[_0x6de4('0x3c')]['find']({'where':{'id':_0x258c5b[_0x6de4('0x42')]['id']}})['then'](handleEntityNotFound(_0x176c21,null))[_0x6de4('0x24')](removeEntity(_0x176c21,null))[_0x6de4('0x40')](handleError(_0x176c21,null));};exports['describe']=function(_0x3a36c0,_0x2077de){return db[_0x6de4('0x3c')][_0x6de4('0x48')]()[_0x6de4('0x24')](respondWithResult(_0x2077de,null))[_0x6de4('0x40')](handleError(_0x2077de,null));};
\ No newline at end of file