Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / squareProject / squareProject.rpc.js
1 const a601_0x551f=['stringify','message','then','model','lodash','debug','attributes','raw','../../rediscache','catch','../../config/logger','include','map','rpc','options','ShowSquareProject','info','error','SquareProject','./squareProject.socket'];(function(_0x296ff0,_0x551f31){const _0x51db5b=function(_0xaa1079){while(--_0xaa1079){_0x296ff0['push'](_0x296ff0['shift']());}};_0x51db5b(++_0x551f31);}(a601_0x551f,0x12a));const a601_0x51db=function(_0x296ff0,_0x551f31){_0x296ff0=_0x296ff0-0x0;let _0x51db5b=a601_0x551f[_0x296ff0];return _0x51db5b;};const _0x384397=a601_0x51db;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x384397('0xc'))(_0x384397('0xf')),_=require(_0x384397('0x6')),{getSocket}=require(_0x384397('0xa')),socket=getSocket();require(_0x384397('0x1'))['register'](socket),exports[_0x384397('0x11')]=function(_0xaa1079){const _0x2dd1b4=this;return new Promise(function(_0x1cb3b3,_0x2aa996){const _0x499451=a601_0x51db;return db[_0x499451('0x0')]['findOne']({'raw':_0xaa1079[_0x499451('0x10')]?_0xaa1079['options'][_0x499451('0x9')]===undefined?!![]:![]:!![],'where':_0xaa1079[_0x499451('0x10')]?_0xaa1079[_0x499451('0x10')]['where']||null:null,'attributes':_0xaa1079['options']?_0xaa1079[_0x499451('0x10')][_0x499451('0x8')]||null:null,'include':_0xaa1079[_0x499451('0x10')]?_0xaa1079['options'][_0x499451('0xd')]?_[_0x499451('0xe')](_0xaa1079[_0x499451('0x10')][_0x499451('0xd')],function(_0x1667c6){const _0x3c2c74=_0x499451;return{'model':db[_0x1667c6[_0x3c2c74('0x5')]],'as':_0x1667c6['as'],'attributes':_0x1667c6[_0x3c2c74('0x8')],'include':_0x1667c6['include']?_[_0x3c2c74('0xe')](_0x1667c6[_0x3c2c74('0xd')],function(_0x2b5349){const _0x80452f=_0x3c2c74;return{'model':db[_0x2b5349[_0x80452f('0x5')]],'as':_0x2b5349['as'],'attributes':_0x2b5349['attributes'],'include':_0x2b5349['include']?_[_0x80452f('0xe')](_0x2b5349[_0x80452f('0xd')],function(_0x5a484f){const _0x5d4ffb=_0x80452f;return{'model':db[_0x5a484f[_0x5d4ffb('0x5')]],'as':_0x5a484f['as'],'attributes':_0x5a484f[_0x5d4ffb('0x8')]};}):[]};}):[]};}):[]:[]})[_0x499451('0x4')](function(_0xed4f82){const _0xdb82b8=_0x499451;logger[_0xdb82b8('0x12')](_0xdb82b8('0x11'),_0xaa1079),logger[_0xdb82b8('0x7')](_0xdb82b8('0x11'),_0xaa1079,JSON[_0xdb82b8('0x2')](_0xed4f82)),_0x1cb3b3(_0xed4f82);})[_0x499451('0xb')](function(_0x103ef2){const _0x3fe159=_0x499451;logger[_0x3fe159('0x13')](_0x3fe159('0x11'),_0x103ef2['message'],_0xaa1079),_0x2aa996(_0x2dd1b4[_0x3fe159('0x13')](0x1f4,_0x103ef2[_0x3fe159('0x3')]));});});};