Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / api / pause / pause.rpc.js
1 const a512_0x7bc6=['model','rpc','then','lodash','error','../../config/logger','map','message','raw','catch','../../mysqldb','ShowPause','Pause','attributes','where','options','include'];(function(_0x577868,_0x7bc665){const _0x37e46e=function(_0x253a53){while(--_0x253a53){_0x577868['push'](_0x577868['shift']());}};_0x37e46e(++_0x7bc665);}(a512_0x7bc6,0x1c1));const a512_0x37e4=function(_0x577868,_0x7bc665){_0x577868=_0x577868-0x0;let _0x37e46e=a512_0x7bc6[_0x577868];return _0x37e46e;};const _0x486712=a512_0x37e4;'use strict';const db=require(_0x486712('0x3'))['db'],logger=require(_0x486712('0xf'))(_0x486712('0xb')),_=require(_0x486712('0xd'));exports[_0x486712('0x4')]=function(_0x253a53){const _0x529ea6=this;return new Promise(function(_0x3fd9b6,_0x447487){const _0x1194a6=a512_0x37e4;return db[_0x1194a6('0x5')]['findOne']({'raw':_0x253a53[_0x1194a6('0x8')]?_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x1')]===undefined?!![]:![]:!![],'where':_0x253a53['options']?_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x7')]||null:null,'attributes':_0x253a53[_0x1194a6('0x8')]?_0x253a53['options'][_0x1194a6('0x6')]||null:null,'include':_0x253a53[_0x1194a6('0x8')]?_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x9')]?_[_0x1194a6('0x10')](_0x253a53[_0x1194a6('0x8')][_0x1194a6('0x9')],function(_0x513184){const _0x5a7f68=_0x1194a6;return{'model':db[_0x513184[_0x5a7f68('0xa')]],'as':_0x513184['as'],'attributes':_0x513184[_0x5a7f68('0x6')],'include':_0x513184['include']?_[_0x5a7f68('0x10')](_0x513184[_0x5a7f68('0x9')],function(_0x1ded41){const _0x2573d7=_0x5a7f68;return{'model':db[_0x1ded41[_0x2573d7('0xa')]],'as':_0x1ded41['as'],'attributes':_0x1ded41['attributes'],'include':_0x1ded41['include']?_[_0x2573d7('0x10')](_0x1ded41[_0x2573d7('0x9')],function(_0x410e48){const _0x25fef7=_0x2573d7;return{'model':db[_0x410e48[_0x25fef7('0xa')]],'as':_0x410e48['as'],'attributes':_0x410e48['attributes']};}):[]};}):[]};}):[]:[]})[_0x1194a6('0xc')](function(_0x52faf5){const _0x18c3eb=_0x1194a6;logger['info'](_0x18c3eb('0x4'),_0x253a53),logger['debug'](_0x18c3eb('0x4'),_0x253a53,JSON['stringify'](_0x52faf5)),_0x3fd9b6(_0x52faf5);})[_0x1194a6('0x2')](function(_0x19f23d){const _0x3e2cfc=_0x1194a6;logger[_0x3e2cfc('0xe')]('ShowPause',_0x19f23d[_0x3e2cfc('0x0')],_0x253a53),_0x447487(_0x529ea6[_0x3e2cfc('0xe')](0x1f4,_0x19f23d['message']));});});};