Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / smsQueueReport / smsQueueReport.controller.js
index 2e52f6f..52f15de 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc4b8=['reject','save','then','destroy','error','stack','name','send','map','SmsQueueReport','rawAttributes','type','key','model','query','keys','attributes','fields','hasOwnProperty','nolimit','limit','order','sort','where','filters','pick','filter','VIRTUAL','merge','options','includeAll','include','findAll','rows','catch','show','params','intersection','length','find','body','update','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','util','sox','to-csv','ejs','lodash','squel','crypto','jsforce','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','set','Content-Range','apply'];(function(_0x3e7df3,_0x1f1ec7){var _0x3e7e79=function(_0x3f99a0){while(--_0x3f99a0){_0x3e7df3['push'](_0x3e7df3['shift']());}};_0x3e7e79(++_0x1f1ec7);}(_0xc4b8,0x78));var _0x8c4b=function(_0x1e991b,_0x3e014e){_0x1e991b=_0x1e991b-0x0;var _0x308d54=_0xc4b8[_0x1e991b];return _0x308d54;};'use strict';var pdf=require(_0x8c4b('0x0'));var emlformat=require(_0x8c4b('0x1'));var rimraf=require(_0x8c4b('0x2'));var zipdir=require(_0x8c4b('0x3'));var jsonpatch=require(_0x8c4b('0x4'));var rp=require('request-promise');var moment=require(_0x8c4b('0x5'));var BPromise=require(_0x8c4b('0x6'));var Mustache=require('mustache');var util=require(_0x8c4b('0x7'));var path=require('path');var sox=require(_0x8c4b('0x8'));var csv=require(_0x8c4b('0x9'));var ejs=require(_0x8c4b('0xa'));var fs=require('fs');var _=require(_0x8c4b('0xb'));var squel=require(_0x8c4b('0xc'));var crypto=require(_0x8c4b('0xd'));var jsforce=require(_0x8c4b('0xe'));var deskjs=require('desk.js');var toCsv=require(_0x8c4b('0x9'));var querystring=require('querystring');var Papa=require(_0x8c4b('0xf'));var Redis=require(_0x8c4b('0x10'));var authService=require(_0x8c4b('0x11'));var qs=require(_0x8c4b('0x12'));var as=require(_0x8c4b('0x13'));var hardwareService=require(_0x8c4b('0x14'));var logger=require(_0x8c4b('0x15'))(_0x8c4b('0x16'));var utils=require('../../config/utils');var config=require(_0x8c4b('0x17'));var db=require(_0x8c4b('0x18'))['db'];function respondWithStatusCode(_0x16435b,_0x2fbd2b){_0x2fbd2b=_0x2fbd2b||0xcc;return function(_0x538c2a){if(_0x538c2a){return _0x16435b[_0x8c4b('0x19')](_0x2fbd2b);}return _0x16435b[_0x8c4b('0x1a')](_0x2fbd2b)[_0x8c4b('0x1b')]();};}function respondWithResult(_0x42c219,_0x57f099){_0x57f099=_0x57f099||0xc8;return function(_0x2d1a66){if(_0x2d1a66){return _0x42c219[_0x8c4b('0x1a')](_0x57f099)[_0x8c4b('0x1c')](_0x2d1a66);}};}function respondWithFilteredResult(_0x55d73d,_0x3c5cea){return function(_0x1aa929){if(_0x1aa929){var _0x34abc6=_0x1aa929[_0x8c4b('0x1d')],_0x283a6e=_0x3c5cea[_0x8c4b('0x1e')],_0x3d9e89=_0x3c5cea[_0x8c4b('0x1e')]+_0x3c5cea['limit'],_0x9d9a3d;if(_0x3d9e89>=_0x34abc6){_0x3d9e89=_0x34abc6;_0x9d9a3d=0xc8;}else{_0x9d9a3d=0xce;}_0x55d73d['status'](_0x9d9a3d);return _0x55d73d[_0x8c4b('0x1f')](_0x8c4b('0x20'),_0x283a6e+'-'+_0x3d9e89+'/'+_0x34abc6)[_0x8c4b('0x1c')](_0x1aa929);}return null;};}function patchUpdates(_0xdf39a2){return function(_0xaa2ca7){try{jsonpatch[_0x8c4b('0x21')](_0xaa2ca7,_0xdf39a2,!![]);}catch(_0x41f349){return BPromise[_0x8c4b('0x22')](_0x41f349);}return _0xaa2ca7[_0x8c4b('0x23')]();};}function saveUpdates(_0x2c8b2b,_0x78fedc){return function(_0x43bf2f){if(_0x43bf2f){return _0x43bf2f['update'](_0x2c8b2b)[_0x8c4b('0x24')](function(_0x4e9ebb){return _0x4e9ebb;});}return null;};}function removeEntity(_0x302be8,_0x531811){return function(_0x4d6979){if(_0x4d6979){return _0x4d6979[_0x8c4b('0x25')]()[_0x8c4b('0x24')](function(){_0x302be8[_0x8c4b('0x1a')](0xcc)['end']();});}};}function handleEntityNotFound(_0x218a17,_0x2746ca){return function(_0x1bd148){if(!_0x1bd148){_0x218a17[_0x8c4b('0x19')](0x194);}return _0x1bd148;};}function handleError(_0x420001,_0x52ba14){_0x52ba14=_0x52ba14||0x1f4;return function(_0x20e614){logger[_0x8c4b('0x26')](_0x20e614[_0x8c4b('0x27')]);if(_0x20e614[_0x8c4b('0x28')]){delete _0x20e614[_0x8c4b('0x28')];}_0x420001[_0x8c4b('0x1a')](_0x52ba14)[_0x8c4b('0x29')](_0x20e614);};}exports['index']=function(_0x1e93c2,_0x4a58e6){var _0x1be6c1={},_0x289e68={},_0xe7a198={'count':0x0,'rows':[]};var _0x2290da=_[_0x8c4b('0x2a')](db[_0x8c4b('0x2b')][_0x8c4b('0x2c')],function(_0x3cfe0b){return{'name':_0x3cfe0b['fieldName'],'type':_0x3cfe0b[_0x8c4b('0x2d')][_0x8c4b('0x2e')]};});_0x289e68[_0x8c4b('0x2f')]=_['map'](_0x2290da,_0x8c4b('0x28'));_0x289e68[_0x8c4b('0x30')]=_[_0x8c4b('0x31')](_0x1e93c2['query']);_0x289e68['filters']=_['intersection'](_0x289e68['model'],_0x289e68[_0x8c4b('0x30')]);_0x1be6c1[_0x8c4b('0x32')]=_['intersection'](_0x289e68[_0x8c4b('0x2f')],qs[_0x8c4b('0x33')](_0x1e93c2[_0x8c4b('0x30')][_0x8c4b('0x33')]));_0x1be6c1[_0x8c4b('0x32')]=_0x1be6c1[_0x8c4b('0x32')]['length']?_0x1be6c1[_0x8c4b('0x32')]:_0x289e68['model'];if(!_0x1e93c2['query'][_0x8c4b('0x34')](_0x8c4b('0x35'))){_0x1be6c1[_0x8c4b('0x36')]=qs[_0x8c4b('0x36')](_0x1e93c2[_0x8c4b('0x30')][_0x8c4b('0x36')]);_0x1be6c1[_0x8c4b('0x1e')]=qs[_0x8c4b('0x1e')](_0x1e93c2[_0x8c4b('0x30')][_0x8c4b('0x1e')]);}_0x1be6c1[_0x8c4b('0x37')]=qs[_0x8c4b('0x38')](_0x1e93c2[_0x8c4b('0x30')]['sort']);_0x1be6c1[_0x8c4b('0x39')]=qs[_0x8c4b('0x3a')](_[_0x8c4b('0x3b')](_0x1e93c2[_0x8c4b('0x30')],_0x289e68[_0x8c4b('0x3a')]));if(_0x1e93c2[_0x8c4b('0x30')][_0x8c4b('0x3c')]){_0x1be6c1[_0x8c4b('0x39')]=_['merge'](_0x1be6c1[_0x8c4b('0x39')],{'$or':_['map'](_0x2290da,function(_0x14db11){if(_0x14db11[_0x8c4b('0x2d')]!==_0x8c4b('0x3d')){var _0x4e5892={};_0x4e5892[_0x14db11['name']]={'$like':'%'+_0x1e93c2[_0x8c4b('0x30')][_0x8c4b('0x3c')]+'%'};return _0x4e5892;}})});}_0x1be6c1=_[_0x8c4b('0x3e')]({},_0x1be6c1,_0x1e93c2[_0x8c4b('0x3f')]);var _0x9a5ec6={'where':_0x1be6c1[_0x8c4b('0x39')]};return db[_0x8c4b('0x2b')]['count'](_0x9a5ec6)[_0x8c4b('0x24')](function(_0x33e336){_0xe7a198[_0x8c4b('0x1d')]=_0x33e336;if(_0x1e93c2[_0x8c4b('0x30')][_0x8c4b('0x40')]){_0x1be6c1[_0x8c4b('0x41')]=[{'all':!![]}];}return db[_0x8c4b('0x2b')][_0x8c4b('0x42')](_0x1be6c1);})[_0x8c4b('0x24')](function(_0x134caa){_0xe7a198[_0x8c4b('0x43')]=_0x134caa;return _0xe7a198;})[_0x8c4b('0x24')](respondWithFilteredResult(_0x4a58e6,_0x1be6c1))[_0x8c4b('0x44')](handleError(_0x4a58e6,null));};exports[_0x8c4b('0x45')]=function(_0x3ea86d,_0x80326d){var _0x249dac={'raw':!![],'where':{'id':_0x3ea86d[_0x8c4b('0x46')]['id']}},_0x546e77={};_0x546e77[_0x8c4b('0x2f')]=_[_0x8c4b('0x31')](db[_0x8c4b('0x2b')][_0x8c4b('0x2c')]);_0x546e77[_0x8c4b('0x30')]=_[_0x8c4b('0x31')](_0x3ea86d['query']);_0x546e77['filters']=_[_0x8c4b('0x47')](_0x546e77[_0x8c4b('0x2f')],_0x546e77[_0x8c4b('0x30')]);_0x249dac['attributes']=_[_0x8c4b('0x47')](_0x546e77[_0x8c4b('0x2f')],qs[_0x8c4b('0x33')](_0x3ea86d['query']['fields']));_0x249dac[_0x8c4b('0x32')]=_0x249dac[_0x8c4b('0x32')][_0x8c4b('0x48')]?_0x249dac['attributes']:_0x546e77[_0x8c4b('0x2f')];if(_0x3ea86d[_0x8c4b('0x30')][_0x8c4b('0x40')]){_0x249dac[_0x8c4b('0x41')]=[{'all':!![]}];}_0x249dac=_[_0x8c4b('0x3e')]({},_0x249dac,_0x3ea86d[_0x8c4b('0x3f')]);return db[_0x8c4b('0x2b')][_0x8c4b('0x49')](_0x249dac)[_0x8c4b('0x24')](handleEntityNotFound(_0x80326d,null))[_0x8c4b('0x24')](respondWithResult(_0x80326d,null))['catch'](handleError(_0x80326d,null));};exports['create']=function(_0x35adf6,_0xb27cf5){return db[_0x8c4b('0x2b')]['create'](_0x35adf6[_0x8c4b('0x4a')],{})[_0x8c4b('0x24')](respondWithResult(_0xb27cf5,0xc9))[_0x8c4b('0x44')](handleError(_0xb27cf5,null));};exports[_0x8c4b('0x4b')]=function(_0x2ee5e0,_0x54beae){if(_0x2ee5e0[_0x8c4b('0x4a')]['id']){delete _0x2ee5e0['body']['id'];}return db[_0x8c4b('0x2b')]['find']({'where':{'id':_0x2ee5e0[_0x8c4b('0x46')]['id']}})[_0x8c4b('0x24')](handleEntityNotFound(_0x54beae,null))['then'](saveUpdates(_0x2ee5e0[_0x8c4b('0x4a')],null))[_0x8c4b('0x24')](respondWithResult(_0x54beae,null))['catch'](handleError(_0x54beae,null));};exports[_0x8c4b('0x25')]=function(_0xdb2406,_0x5e100d){return db['SmsQueueReport']['find']({'where':{'id':_0xdb2406['params']['id']}})[_0x8c4b('0x24')](handleEntityNotFound(_0x5e100d,null))['then'](removeEntity(_0x5e100d,null))['catch'](handleError(_0x5e100d,null));};exports[_0x8c4b('0x4c')]=function(_0x313993,_0x49d9b2){return db[_0x8c4b('0x2b')][_0x8c4b('0x4c')]()['then'](respondWithResult(_0x49d9b2,null))[_0x8c4b('0x44')](handleError(_0x49d9b2,null));};
\ No newline at end of file
+var _0x39fb=['nolimit','order','sort','where','filters','pick','merge','VIRTUAL','filter','options','includeAll','include','SmsQueueReport','findAll','rows','catch','show','params','find','create','body','update','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','crypto','jsforce','desk.js','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','end','status','json','undefined','limit','count','offset','set','Content-Range','apply','reject','then','destroy','sendStatus','stack','name','map','rawAttributes','fieldName','type','key','model','query','keys','attributes','intersection','fields','length','hasOwnProperty'];(function(_0x5aaf01,_0x1092c5){var _0x3d62bf=function(_0x3a3975){while(--_0x3a3975){_0x5aaf01['push'](_0x5aaf01['shift']());}};_0x3d62bf(++_0x1092c5);}(_0x39fb,0xb1));var _0xb39f=function(_0x4148e0,_0x1e9ceb){_0x4148e0=_0x4148e0-0x0;var _0x26af68=_0x39fb[_0x4148e0];return _0x26af68;};'use strict';var emlformat=require(_0xb39f('0x0'));var rimraf=require(_0xb39f('0x1'));var zipdir=require(_0xb39f('0x2'));var jsonpatch=require(_0xb39f('0x3'));var rp=require(_0xb39f('0x4'));var moment=require(_0xb39f('0x5'));var BPromise=require(_0xb39f('0x6'));var Mustache=require(_0xb39f('0x7'));var util=require(_0xb39f('0x8'));var path=require('path');var sox=require(_0xb39f('0x9'));var csv=require(_0xb39f('0xa'));var ejs=require(_0xb39f('0xb'));var fs=require('fs');var fs_extra=require(_0xb39f('0xc'));var _=require('lodash');var squel=require('squel');var crypto=require(_0xb39f('0xd'));var jsforce=require(_0xb39f('0xe'));var deskjs=require(_0xb39f('0xf'));var toCsv=require(_0xb39f('0xa'));var querystring=require('querystring');var Papa=require(_0xb39f('0x10'));var Redis=require(_0xb39f('0x11'));var authService=require('../../components/auth/service');var qs=require(_0xb39f('0x12'));var as=require(_0xb39f('0x13'));var hardwareService=require(_0xb39f('0x14'));var logger=require('../../config/logger')(_0xb39f('0x15'));var utils=require(_0xb39f('0x16'));var config=require(_0xb39f('0x17'));var licenseUtil=require('../../config/license/util');var db=require(_0xb39f('0x18'))['db'];function respondWithStatusCode(_0x341a0d,_0x220790){_0x220790=_0x220790||0xcc;return function(_0x5a2f6b){if(_0x5a2f6b){return _0x341a0d['sendStatus'](_0x220790);}return _0x341a0d['status'](_0x220790)[_0xb39f('0x19')]();};}function respondWithResult(_0x2fc48a,_0x262539){_0x262539=_0x262539||0xc8;return function(_0x33267c){if(_0x33267c){return _0x2fc48a[_0xb39f('0x1a')](_0x262539)[_0xb39f('0x1b')](_0x33267c);}};}function respondWithFilteredResult(_0x2a1ca0,_0x3c3be9){return function(_0x30d979){if(_0x30d979){var _0x47c9b2=typeof _0x3c3be9['offset']===_0xb39f('0x1c')&&typeof _0x3c3be9[_0xb39f('0x1d')]===_0xb39f('0x1c');var _0x3cad9a=_0x30d979[_0xb39f('0x1e')];var _0x30699e=_0x47c9b2?0x0:_0x3c3be9[_0xb39f('0x1f')];var _0x3a379a=_0x47c9b2?_0x30d979[_0xb39f('0x1e')]:_0x3c3be9['offset']+_0x3c3be9[_0xb39f('0x1d')];var _0x4d0983;if(_0x3a379a>=_0x3cad9a){_0x3a379a=_0x3cad9a;_0x4d0983=0xc8;}else{_0x4d0983=0xce;}_0x2a1ca0[_0xb39f('0x1a')](_0x4d0983);return _0x2a1ca0[_0xb39f('0x20')](_0xb39f('0x21'),_0x30699e+'-'+_0x3a379a+'/'+_0x3cad9a)[_0xb39f('0x1b')](_0x30d979);}return null;};}function patchUpdates(_0x2c3fde){return function(_0x6a3fba){try{jsonpatch[_0xb39f('0x22')](_0x6a3fba,_0x2c3fde,!![]);}catch(_0x2f476c){return BPromise[_0xb39f('0x23')](_0x2f476c);}return _0x6a3fba['save']();};}function saveUpdates(_0x6c1c0a,_0x4be0af){return function(_0x5b8cdd){if(_0x5b8cdd){return _0x5b8cdd['update'](_0x6c1c0a)[_0xb39f('0x24')](function(_0x38983f){return _0x38983f;});}return null;};}function removeEntity(_0xa04edd,_0x1cfccc){return function(_0x266572){if(_0x266572){return _0x266572[_0xb39f('0x25')]()[_0xb39f('0x24')](function(){_0xa04edd[_0xb39f('0x1a')](0xcc)[_0xb39f('0x19')]();});}};}function handleEntityNotFound(_0x1c66e2,_0xa31679){return function(_0x21e2e5){if(!_0x21e2e5){_0x1c66e2[_0xb39f('0x26')](0x194);}return _0x21e2e5;};}function handleError(_0x12683b,_0x7d535a){_0x7d535a=_0x7d535a||0x1f4;return function(_0x5e3873){logger['error'](_0x5e3873[_0xb39f('0x27')]);if(_0x5e3873[_0xb39f('0x28')]){delete _0x5e3873['name'];}_0x12683b[_0xb39f('0x1a')](_0x7d535a)['send'](_0x5e3873);};}exports['index']=function(_0x4dcccd,_0x57a81f){var _0x209bc9={},_0x137f8c={},_0x1d9b16={'count':0x0,'rows':[]};var _0x2a5bbe=_[_0xb39f('0x29')](db['SmsQueueReport'][_0xb39f('0x2a')],function(_0x14fff5){return{'name':_0x14fff5[_0xb39f('0x2b')],'type':_0x14fff5[_0xb39f('0x2c')][_0xb39f('0x2d')]};});_0x137f8c[_0xb39f('0x2e')]=_[_0xb39f('0x29')](_0x2a5bbe,_0xb39f('0x28'));_0x137f8c[_0xb39f('0x2f')]=_[_0xb39f('0x30')](_0x4dcccd[_0xb39f('0x2f')]);_0x137f8c['filters']=_['intersection'](_0x137f8c['model'],_0x137f8c[_0xb39f('0x2f')]);_0x209bc9[_0xb39f('0x31')]=_[_0xb39f('0x32')](_0x137f8c[_0xb39f('0x2e')],qs[_0xb39f('0x33')](_0x4dcccd[_0xb39f('0x2f')][_0xb39f('0x33')]));_0x209bc9[_0xb39f('0x31')]=_0x209bc9[_0xb39f('0x31')][_0xb39f('0x34')]?_0x209bc9[_0xb39f('0x31')]:_0x137f8c[_0xb39f('0x2e')];if(!_0x4dcccd[_0xb39f('0x2f')][_0xb39f('0x35')](_0xb39f('0x36'))){_0x209bc9[_0xb39f('0x1d')]=qs['limit'](_0x4dcccd[_0xb39f('0x2f')]['limit']);_0x209bc9[_0xb39f('0x1f')]=qs[_0xb39f('0x1f')](_0x4dcccd[_0xb39f('0x2f')][_0xb39f('0x1f')]);}_0x209bc9[_0xb39f('0x37')]=qs['sort'](_0x4dcccd[_0xb39f('0x2f')][_0xb39f('0x38')]);_0x209bc9[_0xb39f('0x39')]=qs[_0xb39f('0x3a')](_[_0xb39f('0x3b')](_0x4dcccd[_0xb39f('0x2f')],_0x137f8c[_0xb39f('0x3a')]),_0x2a5bbe);if(_0x4dcccd[_0xb39f('0x2f')]['filter']){_0x209bc9[_0xb39f('0x39')]=_[_0xb39f('0x3c')](_0x209bc9[_0xb39f('0x39')],{'$or':_[_0xb39f('0x29')](_0x2a5bbe,function(_0x5c01ff){if(_0x5c01ff['type']!==_0xb39f('0x3d')){var _0x4ae2e2={};_0x4ae2e2[_0x5c01ff[_0xb39f('0x28')]]={'$like':'%'+_0x4dcccd[_0xb39f('0x2f')][_0xb39f('0x3e')]+'%'};return _0x4ae2e2;}})});}_0x209bc9=_[_0xb39f('0x3c')]({},_0x209bc9,_0x4dcccd[_0xb39f('0x3f')]);var _0x500256={'where':_0x209bc9[_0xb39f('0x39')]};return db['SmsQueueReport'][_0xb39f('0x1e')](_0x500256)['then'](function(_0x1f237a){_0x1d9b16[_0xb39f('0x1e')]=_0x1f237a;if(_0x4dcccd[_0xb39f('0x2f')][_0xb39f('0x40')]){_0x209bc9[_0xb39f('0x41')]=[{'all':!![]}];}return db[_0xb39f('0x42')][_0xb39f('0x43')](_0x209bc9);})[_0xb39f('0x24')](function(_0x20f627){_0x1d9b16[_0xb39f('0x44')]=_0x20f627;return _0x1d9b16;})[_0xb39f('0x24')](respondWithFilteredResult(_0x57a81f,_0x209bc9))[_0xb39f('0x45')](handleError(_0x57a81f,null));};exports[_0xb39f('0x46')]=function(_0x469078,_0x533a6e){var _0x3c80a6={'raw':!![],'where':{'id':_0x469078[_0xb39f('0x47')]['id']}},_0x4184f8={};_0x4184f8[_0xb39f('0x2e')]=_[_0xb39f('0x30')](db[_0xb39f('0x42')][_0xb39f('0x2a')]);_0x4184f8[_0xb39f('0x2f')]=_[_0xb39f('0x30')](_0x469078['query']);_0x4184f8[_0xb39f('0x3a')]=_[_0xb39f('0x32')](_0x4184f8['model'],_0x4184f8[_0xb39f('0x2f')]);_0x3c80a6[_0xb39f('0x31')]=_[_0xb39f('0x32')](_0x4184f8['model'],qs[_0xb39f('0x33')](_0x469078[_0xb39f('0x2f')][_0xb39f('0x33')]));_0x3c80a6[_0xb39f('0x31')]=_0x3c80a6[_0xb39f('0x31')][_0xb39f('0x34')]?_0x3c80a6[_0xb39f('0x31')]:_0x4184f8[_0xb39f('0x2e')];if(_0x469078[_0xb39f('0x2f')][_0xb39f('0x40')]){_0x3c80a6[_0xb39f('0x41')]=[{'all':!![]}];}_0x3c80a6=_[_0xb39f('0x3c')]({},_0x3c80a6,_0x469078[_0xb39f('0x3f')]);return db[_0xb39f('0x42')][_0xb39f('0x48')](_0x3c80a6)[_0xb39f('0x24')](handleEntityNotFound(_0x533a6e,null))[_0xb39f('0x24')](respondWithResult(_0x533a6e,null))[_0xb39f('0x45')](handleError(_0x533a6e,null));};exports[_0xb39f('0x49')]=function(_0xe1ed67,_0x4b625c){return db[_0xb39f('0x42')][_0xb39f('0x49')](_0xe1ed67[_0xb39f('0x4a')],{})[_0xb39f('0x24')](respondWithResult(_0x4b625c,0xc9))['catch'](handleError(_0x4b625c,null));};exports[_0xb39f('0x4b')]=function(_0x55a2fb,_0x43e2df){if(_0x55a2fb[_0xb39f('0x4a')]['id']){delete _0x55a2fb[_0xb39f('0x4a')]['id'];}return db[_0xb39f('0x42')][_0xb39f('0x48')]({'where':{'id':_0x55a2fb[_0xb39f('0x47')]['id']}})[_0xb39f('0x24')](handleEntityNotFound(_0x43e2df,null))[_0xb39f('0x24')](saveUpdates(_0x55a2fb['body'],null))[_0xb39f('0x24')](respondWithResult(_0x43e2df,null))[_0xb39f('0x45')](handleError(_0x43e2df,null));};exports[_0xb39f('0x25')]=function(_0x859ef3,_0x3fc2e7){return db[_0xb39f('0x42')][_0xb39f('0x48')]({'where':{'id':_0x859ef3['params']['id']}})[_0xb39f('0x24')](handleEntityNotFound(_0x3fc2e7,null))[_0xb39f('0x24')](removeEntity(_0x3fc2e7,null))[_0xb39f('0x45')](handleError(_0x3fc2e7,null));};exports['describe']=function(_0x308d29,_0x393c2e){return db[_0xb39f('0x42')][_0xb39f('0x4c')]()['then'](respondWithResult(_0x393c2e,null))[_0xb39f('0x45')](handleError(_0x393c2e,null));};
\ No newline at end of file