Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / api / pause / pause.controller.js
index ab47a15..8129f1e 100644 (file)
@@ -1 +1 @@
-const a510_0x46f5=['autoAssociation','fields','findAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','status','findOne','options','userProfileId','pick','filters','rows','limit','Pause','../../components/parsers/qs','keys','UserProfileResource','role','query','type','catch','offset','where','show','intersection','key','Content-Range','includeAll','json','get','include','VIRTUAL','destroy','create','rawAttributes','Pauses','filter','sequelize','body','merge','params','length','nolimit','map','then','../../config/logger','count','sendStatus','update','user','UserProfileSection','attributes','name','set','model','fieldName','stack'];(function(_0x518a72,_0x46f535){const _0x1e9492=function(_0x3201ef){while(--_0x3201ef){_0x518a72['push'](_0x518a72['shift']());}};_0x1e9492(++_0x46f535);}(a510_0x46f5,0x16d));const a510_0x1e94=function(_0x518a72,_0x46f535){_0x518a72=_0x518a72-0x0;let _0x1e9492=a510_0x46f5[_0x518a72];return _0x1e9492;};const _0xd0e5b=a510_0x1e94;'use strict';const _=require('lodash'),qs=require(_0xd0e5b('0x28')),logger=require(_0xd0e5b('0xf'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0xd0e5b('0x7'));function respondWithResult(_0x3201ef,_0xa19d84){return _0xa19d84=_0xa19d84||0xc8,function(_0x1afe07){const _0x436483=a510_0x1e94;if(_0x1afe07)return _0x3201ef[_0x436483('0x1f')](_0xa19d84)['json'](_0x1afe07);};}function respondWithFilteredResult(_0x2d875c,_0x5720f2){return function(_0x2b7a8a){const _0x543a9d=a510_0x1e94;if(_0x2b7a8a){const _0x215958=_0x2b7a8a['count'],_0x7f480c=_0x5720f2[_0x543a9d('0x2f')];let _0x97b042=_0x5720f2[_0x543a9d('0x2f')]+_0x5720f2[_0x543a9d('0x26')],_0x1fb4af;return _0x97b042>=_0x215958?(_0x97b042=_0x215958,_0x1fb4af=0xc8):_0x1fb4af=0xce,_0x2d875c[_0x543a9d('0x1f')](_0x1fb4af),_0x2d875c[_0x543a9d('0x17')](_0x543a9d('0x34'),_0x7f480c+'-'+_0x97b042+'/'+_0x215958)[_0x543a9d('0x36')](_0x2b7a8a);}return null;};}function saveUpdates(_0x3de90e){return function(_0x4354ce){const _0x192e8a=a510_0x1e94;if(_0x4354ce)return _0x4354ce[_0x192e8a('0x12')](_0x3de90e)[_0x192e8a('0xe')](function(_0x54aee1){return _0x54aee1;});return null;};}function removeEntity(_0x14297e){return function(_0x17b459){const _0x3869c6=a510_0x1e94;if(_0x17b459)return _0x17b459['destroy']()[_0x3869c6('0xe')](function(){const _0x4699d9=_0x3869c6,_0x21dca5=_0x17b459[_0x4699d9('0x37')]({'plain':!![]}),_0x4ca115=_0x4699d9('0x5');return db[_0x4699d9('0x2a')]['destroy']({'where':{'type':_0x4ca115,'resourceId':_0x21dca5['id']}})[_0x4699d9('0xe')](function(){return _0x17b459;});})[_0x3869c6('0xe')](function(){const _0x513669=_0x3869c6;_0x14297e[_0x513669('0x1f')](0xcc)['end']();});};}function handleEntityNotFound(_0x1511fb){return function(_0x127744){const _0x416a03=a510_0x1e94;return!_0x127744&&_0x1511fb[_0x416a03('0x11')](0x194),_0x127744;};}function handleError(_0x120074,_0x155f9f){return _0x155f9f=_0x155f9f||0x1f4,function(_0x48c5f8){const _0x459830=a510_0x1e94;logger['error'](_0x48c5f8[_0x459830('0x1a')]),_0x48c5f8[_0x459830('0x16')]&&delete _0x48c5f8[_0x459830('0x16')],_0x120074[_0x459830('0x1f')](_0x155f9f)['send'](_0x48c5f8);};}exports['index']=function(_0x485b31,_0x55c070){const _0x32050b=_0xd0e5b;let _0x595bf4={};const _0x35a9cc={},_0x29f905={'count':0x0,'rows':[]},_0x302c60=_[_0x32050b('0xd')](db[_0x32050b('0x27')]['rawAttributes'],function(_0x3f29cd){const _0x49c1b0=_0x32050b;return{'name':_0x3f29cd[_0x49c1b0('0x19')],'type':_0x3f29cd[_0x49c1b0('0x2d')][_0x49c1b0('0x33')]};});_0x35a9cc[_0x32050b('0x18')]=_['map'](_0x302c60,_0x32050b('0x16')),_0x35a9cc[_0x32050b('0x2c')]=_[_0x32050b('0x29')](_0x485b31['query']),_0x35a9cc[_0x32050b('0x24')]=_[_0x32050b('0x32')](_0x35a9cc['model'],_0x35a9cc['query']),_0x595bf4[_0x32050b('0x15')]=_[_0x32050b('0x32')](_0x35a9cc[_0x32050b('0x18')],qs[_0x32050b('0x1c')](_0x485b31[_0x32050b('0x2c')]['fields'])),_0x595bf4[_0x32050b('0x15')]=_0x595bf4[_0x32050b('0x15')][_0x32050b('0xb')]?_0x595bf4[_0x32050b('0x15')]:_0x35a9cc[_0x32050b('0x18')];typeof _0x485b31[_0x32050b('0x2c')][_0x32050b('0xc')]==='undefined'&&(_0x595bf4['limit']=qs[_0x32050b('0x26')](_0x485b31[_0x32050b('0x2c')]['limit']),_0x595bf4[_0x32050b('0x2f')]=qs[_0x32050b('0x2f')](_0x485b31[_0x32050b('0x2c')]['offset']));_0x595bf4['order']=qs['sort'](_0x485b31[_0x32050b('0x2c')]['sort']),_0x595bf4[_0x32050b('0x30')]=qs[_0x32050b('0x24')](_[_0x32050b('0x23')](_0x485b31[_0x32050b('0x2c')],_0x35a9cc[_0x32050b('0x24')]),_0x302c60);_0x485b31[_0x32050b('0x2c')][_0x32050b('0x6')]&&(_0x595bf4['where']=_[_0x32050b('0x9')](_0x595bf4['where'],{[Op['or']]:_['map'](_0x302c60,function(_0x4f874c){const _0x591689=_0x32050b;if(_0x4f874c[_0x591689('0x2d')]!==_0x591689('0x1')){const _0x35ac24={};return _0x35ac24[_0x4f874c[_0x591689('0x16')]]={[Op['like']]:'%'+_0x485b31[_0x591689('0x2c')][_0x591689('0x6')]+'%'},_0x35ac24;}})}));_0x595bf4=_[_0x32050b('0x9')]({},_0x595bf4,_0x485b31[_0x32050b('0x21')]);const _0x113dcf={'where':_0x595bf4[_0x32050b('0x30')]};return db[_0x32050b('0x27')][_0x32050b('0x10')](_0x113dcf)['then'](function(_0x173b11){const _0x54499e=_0x32050b;return _0x29f905[_0x54499e('0x10')]=_0x173b11,_0x485b31[_0x54499e('0x2c')][_0x54499e('0x35')]&&(_0x595bf4[_0x54499e('0x0')]=[{'all':!![]}]),db[_0x54499e('0x27')][_0x54499e('0x1d')](_0x595bf4);})[_0x32050b('0xe')](function(_0x5c611){const _0x52b4a8=_0x32050b;return _0x29f905[_0x52b4a8('0x25')]=_0x5c611,_0x29f905;})[_0x32050b('0xe')](respondWithFilteredResult(_0x55c070,_0x595bf4))[_0x32050b('0x2e')](handleError(_0x55c070,null));},exports[_0xd0e5b('0x31')]=function(_0x23da91,_0xf4532d){const _0x17ad78=_0xd0e5b;let _0x2d77c7={'raw':!![],'where':{'id':_0x23da91[_0x17ad78('0xa')]['id']}};const _0x2c9014={};return _0x2c9014['model']=_[_0x17ad78('0x29')](db[_0x17ad78('0x27')][_0x17ad78('0x4')]),_0x2c9014[_0x17ad78('0x2c')]=_[_0x17ad78('0x29')](_0x23da91[_0x17ad78('0x2c')]),_0x2c9014['filters']=_[_0x17ad78('0x32')](_0x2c9014[_0x17ad78('0x18')],_0x2c9014[_0x17ad78('0x2c')]),_0x2d77c7[_0x17ad78('0x15')]=_[_0x17ad78('0x32')](_0x2c9014[_0x17ad78('0x18')],qs[_0x17ad78('0x1c')](_0x23da91[_0x17ad78('0x2c')][_0x17ad78('0x1c')])),_0x2d77c7[_0x17ad78('0x15')]=_0x2d77c7[_0x17ad78('0x15')]['length']?_0x2d77c7[_0x17ad78('0x15')]:_0x2c9014[_0x17ad78('0x18')],_0x23da91[_0x17ad78('0x2c')]['includeAll']&&(_0x2d77c7[_0x17ad78('0x0')]=[{'all':!![]}]),_0x2d77c7=_[_0x17ad78('0x9')]({},_0x2d77c7,_0x23da91['options']),db['Pause'][_0x17ad78('0x20')](_0x2d77c7)['then'](handleEntityNotFound(_0xf4532d,null))['then'](respondWithResult(_0xf4532d,null))[_0x17ad78('0x2e')](handleError(_0xf4532d,null));},exports[_0xd0e5b('0x3')]=function(_0x22d107,_0x18f74c){const _0x3c1b30=_0xd0e5b;return db[_0x3c1b30('0x27')][_0x3c1b30('0x3')](_0x22d107[_0x3c1b30('0x8')],{})[_0x3c1b30('0xe')](function(_0x21b26b){const _0x50c860=_0x3c1b30,_0xbeb329=_0x22d107[_0x50c860('0x13')][_0x50c860('0x37')]({'plain':!![]});if(!_0xbeb329)throw new Error(_0x50c860('0x1e'));if(_0xbeb329[_0x50c860('0x2b')]==='user'){const _0x526434=_0x21b26b[_0x50c860('0x37')]({'plain':!![]}),_0x451cbe='Pauses';return db[_0x50c860('0x14')][_0x50c860('0x20')]({'where':{'name':_0x451cbe,'userProfileId':_0xbeb329[_0x50c860('0x22')]},'raw':!![]})[_0x50c860('0xe')](function(_0x1e6fc8){const _0x43c0ea=_0x50c860;return _0x1e6fc8&&_0x1e6fc8[_0x43c0ea('0x1b')]===0x0?db[_0x43c0ea('0x2a')][_0x43c0ea('0x3')]({'name':_0x526434[_0x43c0ea('0x16')],'resourceId':_0x526434['id'],'type':_0x1e6fc8[_0x43c0ea('0x16')],'sectionId':_0x1e6fc8['id']},{})[_0x43c0ea('0xe')](function(){return _0x21b26b;}):_0x21b26b;})[_0x50c860('0x2e')](function(_0x3099fb){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3099fb);throw _0x3099fb;});}return _0x21b26b;})[_0x3c1b30('0xe')](respondWithResult(_0x18f74c,0xc9))[_0x3c1b30('0x2e')](handleError(_0x18f74c,null));},exports[_0xd0e5b('0x12')]=function(_0x56ae57,_0x22a5b8){const _0x40636b=_0xd0e5b;return _0x56ae57[_0x40636b('0x8')]['id']&&delete _0x56ae57[_0x40636b('0x8')]['id'],db['Pause']['findOne']({'where':{'id':_0x56ae57[_0x40636b('0xa')]['id']}})[_0x40636b('0xe')](handleEntityNotFound(_0x22a5b8,null))['then'](saveUpdates(_0x56ae57[_0x40636b('0x8')],null))['then'](respondWithResult(_0x22a5b8,null))[_0x40636b('0x2e')](handleError(_0x22a5b8,null));},exports[_0xd0e5b('0x2')]=function(_0x567aef,_0xe4b8be){const _0x4de45c=_0xd0e5b;return db[_0x4de45c('0x27')][_0x4de45c('0x20')]({'where':{'id':_0x567aef[_0x4de45c('0xa')]['id']}})['then'](handleEntityNotFound(_0xe4b8be,null))[_0x4de45c('0xe')](removeEntity(_0xe4b8be,null))[_0x4de45c('0x2e')](handleError(_0xe4b8be,null));};
\ No newline at end of file
+const a510_0x509b=['catch','keys','includeAll','create','fields','length','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','stack','role','lodash','UserProfileResource','Pauses','pick','destroy','findAll','options','filter','where','map','set','intersection','rawAttributes','findOne','json','body','UserProfileSection','../../config/logger','api','userProfileId','Pause','undefined','update','query','fieldName','error','VIRTUAL','name','offset','merge','then','like','sort','order','sequelize','limit','autoAssociation','user','include','model','status','params','end','nolimit','get','filters','count'];(function(_0x2e3142,_0x509b08){const _0x574168=function(_0x574501){while(--_0x574501){_0x2e3142['push'](_0x2e3142['shift']());}};_0x574168(++_0x509b08);}(a510_0x509b,0x153));const a510_0x5741=function(_0x2e3142,_0x509b08){_0x2e3142=_0x2e3142-0x0;let _0x574168=a510_0x509b[_0x2e3142];return _0x574168;};const _0x5afd1c=a510_0x5741;'use strict';const _=require(_0x5afd1c('0xd')),qs=require('../../components/parsers/qs'),logger=require(_0x5afd1c('0x1e'))(_0x5afd1c('0x1f')),db=require('../../mysqldb')['db'],{Op}=require(_0x5afd1c('0x2f'));function respondWithResult(_0x574501,_0x46c6e0){return _0x46c6e0=_0x46c6e0||0xc8,function(_0x4c22c9){const _0x429a99=a510_0x5741;if(_0x4c22c9)return _0x574501['status'](_0x46c6e0)[_0x429a99('0x1b')](_0x4c22c9);};}function respondWithFilteredResult(_0x475be7,_0x1f23ba){return function(_0x45f0d4){const _0x2c02e3=a510_0x5741;if(_0x45f0d4){const _0xa49f4a=_0x45f0d4[_0x2c02e3('0x2')],_0x364744=_0x1f23ba['offset'];let _0x68dd2e=_0x1f23ba['offset']+_0x1f23ba['limit'],_0x495f35;return _0x68dd2e>=_0xa49f4a?(_0x68dd2e=_0xa49f4a,_0x495f35=0xc8):_0x495f35=0xce,_0x475be7[_0x2c02e3('0x35')](_0x495f35),_0x475be7[_0x2c02e3('0x17')]('Content-Range',_0x364744+'-'+_0x68dd2e+'/'+_0xa49f4a)[_0x2c02e3('0x1b')](_0x45f0d4);}return null;};}function saveUpdates(_0x4d71c2){return function(_0x2bd833){const _0x2d21e4=a510_0x5741;if(_0x2bd833)return _0x2bd833[_0x2d21e4('0x23')](_0x4d71c2)[_0x2d21e4('0x2b')](function(_0x40f7b2){return _0x40f7b2;});return null;};}function removeEntity(_0x17d840){return function(_0x3ad439){const _0x56b17e=a510_0x5741;if(_0x3ad439)return _0x3ad439[_0x56b17e('0x11')]()['then'](function(){const _0x24fadc=_0x56b17e,_0x2f3b16=_0x3ad439[_0x24fadc('0x0')]({'plain':!![]}),_0x11aaaa='Pauses';return db['UserProfileResource']['destroy']({'where':{'type':_0x11aaaa,'resourceId':_0x2f3b16['id']}})[_0x24fadc('0x2b')](function(){return _0x3ad439;});})[_0x56b17e('0x2b')](function(){const _0xe7038a=_0x56b17e;_0x17d840['status'](0xcc)[_0xe7038a('0x37')]();});};}function handleEntityNotFound(_0x564524){return function(_0x1cdbf6){return!_0x1cdbf6&&_0x564524['sendStatus'](0x194),_0x1cdbf6;};}function handleError(_0x12ebdd,_0x4ae114){return _0x4ae114=_0x4ae114||0x1f4,function(_0x5427a9){const _0x8468cf=a510_0x5741;logger[_0x8468cf('0x26')](_0x5427a9[_0x8468cf('0xb')]),_0x5427a9[_0x8468cf('0x28')]&&delete _0x5427a9[_0x8468cf('0x28')],_0x12ebdd[_0x8468cf('0x35')](_0x4ae114)['send'](_0x5427a9);};}exports['index']=function(_0x1b41f4,_0x46e0a1){const _0x2b63d3=_0x5afd1c;let _0x150e69={};const _0x30bac9={},_0x4ce926={'count':0x0,'rows':[]},_0x449cbf=_['map'](db['Pause']['rawAttributes'],function(_0x344e08){const _0x4b998b=a510_0x5741;return{'name':_0x344e08[_0x4b998b('0x25')],'type':_0x344e08['type']['key']};});_0x30bac9[_0x2b63d3('0x34')]=_[_0x2b63d3('0x16')](_0x449cbf,'name'),_0x30bac9[_0x2b63d3('0x24')]=_[_0x2b63d3('0x4')](_0x1b41f4['query']),_0x30bac9[_0x2b63d3('0x1')]=_[_0x2b63d3('0x18')](_0x30bac9[_0x2b63d3('0x34')],_0x30bac9[_0x2b63d3('0x24')]),_0x150e69[_0x2b63d3('0xa')]=_['intersection'](_0x30bac9['model'],qs[_0x2b63d3('0x7')](_0x1b41f4[_0x2b63d3('0x24')][_0x2b63d3('0x7')])),_0x150e69[_0x2b63d3('0xa')]=_0x150e69[_0x2b63d3('0xa')][_0x2b63d3('0x8')]?_0x150e69[_0x2b63d3('0xa')]:_0x30bac9['model'];typeof _0x1b41f4[_0x2b63d3('0x24')][_0x2b63d3('0x38')]===_0x2b63d3('0x22')&&(_0x150e69[_0x2b63d3('0x30')]=qs[_0x2b63d3('0x30')](_0x1b41f4[_0x2b63d3('0x24')][_0x2b63d3('0x30')]),_0x150e69[_0x2b63d3('0x29')]=qs['offset'](_0x1b41f4[_0x2b63d3('0x24')]['offset']));_0x150e69[_0x2b63d3('0x2e')]=qs[_0x2b63d3('0x2d')](_0x1b41f4[_0x2b63d3('0x24')]['sort']),_0x150e69['where']=qs[_0x2b63d3('0x1')](_[_0x2b63d3('0x10')](_0x1b41f4[_0x2b63d3('0x24')],_0x30bac9['filters']),_0x449cbf);_0x1b41f4[_0x2b63d3('0x24')][_0x2b63d3('0x14')]&&(_0x150e69[_0x2b63d3('0x15')]=_[_0x2b63d3('0x2a')](_0x150e69[_0x2b63d3('0x15')],{[Op['or']]:_[_0x2b63d3('0x16')](_0x449cbf,function(_0x4e263c){const _0x217956=_0x2b63d3;if(_0x4e263c['type']!==_0x217956('0x27')){const _0x3b7e5d={};return _0x3b7e5d[_0x4e263c[_0x217956('0x28')]]={[Op[_0x217956('0x2c')]]:'%'+_0x1b41f4['query'][_0x217956('0x14')]+'%'},_0x3b7e5d;}})}));_0x150e69=_[_0x2b63d3('0x2a')]({},_0x150e69,_0x1b41f4[_0x2b63d3('0x13')]);const _0x2952d8={'where':_0x150e69[_0x2b63d3('0x15')]};return db[_0x2b63d3('0x21')]['count'](_0x2952d8)[_0x2b63d3('0x2b')](function(_0x229554){const _0x8c5f88=_0x2b63d3;return _0x4ce926[_0x8c5f88('0x2')]=_0x229554,_0x1b41f4[_0x8c5f88('0x24')][_0x8c5f88('0x5')]&&(_0x150e69[_0x8c5f88('0x33')]=[{'all':!![]}]),db[_0x8c5f88('0x21')][_0x8c5f88('0x12')](_0x150e69);})[_0x2b63d3('0x2b')](function(_0x4bc069){return _0x4ce926['rows']=_0x4bc069,_0x4ce926;})[_0x2b63d3('0x2b')](respondWithFilteredResult(_0x46e0a1,_0x150e69))[_0x2b63d3('0x3')](handleError(_0x46e0a1,null));},exports['show']=function(_0x2d2c65,_0xdf32cf){const _0x2657a7=_0x5afd1c;let _0x20d5fd={'raw':!![],'where':{'id':_0x2d2c65[_0x2657a7('0x36')]['id']}};const _0x50553a={};return _0x50553a[_0x2657a7('0x34')]=_[_0x2657a7('0x4')](db[_0x2657a7('0x21')][_0x2657a7('0x19')]),_0x50553a['query']=_[_0x2657a7('0x4')](_0x2d2c65[_0x2657a7('0x24')]),_0x50553a[_0x2657a7('0x1')]=_[_0x2657a7('0x18')](_0x50553a[_0x2657a7('0x34')],_0x50553a[_0x2657a7('0x24')]),_0x20d5fd[_0x2657a7('0xa')]=_[_0x2657a7('0x18')](_0x50553a[_0x2657a7('0x34')],qs['fields'](_0x2d2c65[_0x2657a7('0x24')][_0x2657a7('0x7')])),_0x20d5fd[_0x2657a7('0xa')]=_0x20d5fd[_0x2657a7('0xa')][_0x2657a7('0x8')]?_0x20d5fd[_0x2657a7('0xa')]:_0x50553a[_0x2657a7('0x34')],_0x2d2c65[_0x2657a7('0x24')][_0x2657a7('0x5')]&&(_0x20d5fd[_0x2657a7('0x33')]=[{'all':!![]}]),_0x20d5fd=_[_0x2657a7('0x2a')]({},_0x20d5fd,_0x2d2c65[_0x2657a7('0x13')]),db[_0x2657a7('0x21')][_0x2657a7('0x1a')](_0x20d5fd)[_0x2657a7('0x2b')](handleEntityNotFound(_0xdf32cf,null))[_0x2657a7('0x2b')](respondWithResult(_0xdf32cf,null))['catch'](handleError(_0xdf32cf,null));},exports['create']=function(_0x4fc825,_0x23a4e5){const _0x6399ec=_0x5afd1c;return db[_0x6399ec('0x21')][_0x6399ec('0x6')](_0x4fc825['body'],{})['then'](function(_0x175026){const _0x4a1803=_0x6399ec,_0x56d3cb=_0x4fc825[_0x4a1803('0x32')][_0x4a1803('0x0')]({'plain':!![]});if(!_0x56d3cb)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x56d3cb[_0x4a1803('0xc')]===_0x4a1803('0x32')){const _0x5da291=_0x175026[_0x4a1803('0x0')]({'plain':!![]}),_0x5e8710=_0x4a1803('0xf');return db[_0x4a1803('0x1d')][_0x4a1803('0x1a')]({'where':{'name':_0x5e8710,'userProfileId':_0x56d3cb[_0x4a1803('0x20')]},'raw':!![]})[_0x4a1803('0x2b')](function(_0x293454){const _0x53c1ce=_0x4a1803;return _0x293454&&_0x293454[_0x53c1ce('0x31')]===0x0?db[_0x53c1ce('0xe')][_0x53c1ce('0x6')]({'name':_0x5da291[_0x53c1ce('0x28')],'resourceId':_0x5da291['id'],'type':_0x293454[_0x53c1ce('0x28')],'sectionId':_0x293454['id']},{})[_0x53c1ce('0x2b')](function(){return _0x175026;}):_0x175026;})['catch'](function(_0x18850a){const _0x3e612e=_0x4a1803;logger['error'](_0x3e612e('0x9'),_0x18850a);throw _0x18850a;});}return _0x175026;})[_0x6399ec('0x2b')](respondWithResult(_0x23a4e5,0xc9))[_0x6399ec('0x3')](handleError(_0x23a4e5,null));},exports[_0x5afd1c('0x23')]=function(_0x9ad649,_0x440697){const _0x5ec4c0=_0x5afd1c;return _0x9ad649['body']['id']&&delete _0x9ad649['body']['id'],db['Pause'][_0x5ec4c0('0x1a')]({'where':{'id':_0x9ad649[_0x5ec4c0('0x36')]['id']}})[_0x5ec4c0('0x2b')](handleEntityNotFound(_0x440697,null))[_0x5ec4c0('0x2b')](saveUpdates(_0x9ad649[_0x5ec4c0('0x1c')],null))[_0x5ec4c0('0x2b')](respondWithResult(_0x440697,null))[_0x5ec4c0('0x3')](handleError(_0x440697,null));},exports[_0x5afd1c('0x11')]=function(_0x386da2,_0x579f2d){const _0x2351f1=_0x5afd1c;return db['Pause'][_0x2351f1('0x1a')]({'where':{'id':_0x386da2[_0x2351f1('0x36')]['id']}})[_0x2351f1('0x2b')](handleEntityNotFound(_0x579f2d,null))[_0x2351f1('0x2b')](removeEntity(_0x579f2d,null))[_0x2351f1('0x3')](handleError(_0x579f2d,null));};
\ No newline at end of file