Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / api / pause / pause.rpc.js
1 'use strict';const a615_0xcc9e=['model','3296428lSEjBG','316288NSVjDw','catch','raw','2hHxxJg','include','findOne','stringify','rpc','lodash','184669XDAtOf','error','1511871LiezkW','attributes','message','@config/logger','map','1065837efoMXJ','1721687Uwjlqf','debug','ShowPause','options','then','320237vGrAZt'];const a615_0x4dfd=function(_0xaacef,_0x34313d){_0xaacef=_0xaacef-0x189;let _0xcc9ec2=a615_0xcc9e[_0xaacef];return _0xcc9ec2;};const a615_0x299a83=a615_0x4dfd;(function(_0x5739e9,_0x2a779f){const _0xd70ef4=a615_0x4dfd;while(!![]){try{const _0x23d994=-parseInt(_0xd70ef4(0x19b))+parseInt(_0xd70ef4(0x193))+-parseInt(_0xd70ef4(0x18d))*parseInt(_0xd70ef4(0x1a0))+parseInt(_0xd70ef4(0x19a))+parseInt(_0xd70ef4(0x18a))+-parseInt(_0xd70ef4(0x195))+parseInt(_0xd70ef4(0x189));if(_0x23d994===_0x2a779f)break;else _0x5739e9['push'](_0x5739e9['shift']());}catch(_0x42a99f){_0x5739e9['push'](_0x5739e9['shift']());}}}(a615_0xcc9e,0xf1806));const db=require('@mysqldb')['db'],logger=require(a615_0x299a83(0x198))(a615_0x299a83(0x191)),_=require(a615_0x299a83(0x192));exports[a615_0x299a83(0x19d)]=function(_0x51987a){const _0x339041=this;return new Promise(function(_0x3ec292,_0x4f8b84){const _0x3afcaa=a615_0x4dfd;return db['Pause'][_0x3afcaa(0x18f)]({'raw':_0x51987a[_0x3afcaa(0x19e)]?_0x51987a[_0x3afcaa(0x19e)][_0x3afcaa(0x18c)]===undefined?!![]:![]:!![],'where':_0x51987a[_0x3afcaa(0x19e)]?_0x51987a[_0x3afcaa(0x19e)]['where']||null:null,'attributes':_0x51987a[_0x3afcaa(0x19e)]?_0x51987a[_0x3afcaa(0x19e)][_0x3afcaa(0x196)]||null:null,'include':_0x51987a['options']?_0x51987a[_0x3afcaa(0x19e)]['include']?_[_0x3afcaa(0x199)](_0x51987a[_0x3afcaa(0x19e)]['include'],function(_0xe1e781){const _0x4074e1=_0x3afcaa;return{'model':db[_0xe1e781[_0x4074e1(0x1a1)]],'as':_0xe1e781['as'],'attributes':_0xe1e781[_0x4074e1(0x196)],'include':_0xe1e781[_0x4074e1(0x18e)]?_[_0x4074e1(0x199)](_0xe1e781[_0x4074e1(0x18e)],function(_0x27d202){const _0x2945a6=_0x4074e1;return{'model':db[_0x27d202[_0x2945a6(0x1a1)]],'as':_0x27d202['as'],'attributes':_0x27d202[_0x2945a6(0x196)],'include':_0x27d202['include']?_['map'](_0x27d202[_0x2945a6(0x18e)],function(_0x5f3c69){const _0x883a63=_0x2945a6;return{'model':db[_0x5f3c69[_0x883a63(0x1a1)]],'as':_0x5f3c69['as'],'attributes':_0x5f3c69[_0x883a63(0x196)]};}):[]};}):[]};}):[]:[]})[_0x3afcaa(0x19f)](function(_0x7b85f1){const _0x57cd33=_0x3afcaa;logger['info'](_0x57cd33(0x19d),_0x51987a),logger[_0x57cd33(0x19c)]('ShowPause',_0x51987a,JSON[_0x57cd33(0x190)](_0x7b85f1)),_0x3ec292(_0x7b85f1);})[_0x3afcaa(0x18b)](function(_0x10ac1e){const _0x528cc3=_0x3afcaa;logger[_0x528cc3(0x194)](_0x528cc3(0x19d),_0x10ac1e['message'],_0x51987a),_0x4f8b84(_0x339041[_0x528cc3(0x194)](0x1f4,_0x10ac1e[_0x528cc3(0x197)]));});});};