Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / squareOdbc / squareOdbc.rpc.js
index 7f1ac66..556d6e4 100644 (file)
@@ -1 +1 @@
-const a595_0x508c=['../../config/logger','error','raw','then','include','attributes','stringify','rpc','model','ShowSquareOdbc','message','where','debug','info','lodash','map','options'];(function(_0x19ae41,_0x508c6c){const _0x1ef9ea=function(_0x4fbb05){while(--_0x4fbb05){_0x19ae41['push'](_0x19ae41['shift']());}};_0x1ef9ea(++_0x508c6c);}(a595_0x508c,0x1ee));const a595_0x1ef9=function(_0x19ae41,_0x508c6c){_0x19ae41=_0x19ae41-0x0;let _0x1ef9ea=a595_0x508c[_0x19ae41];return _0x1ef9ea;};const _0x3f96e3=a595_0x1ef9;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x3f96e3('0x10'))(_0x3f96e3('0x6')),_=require(_0x3f96e3('0xd'));exports[_0x3f96e3('0x8')]=function(_0x4fbb05){const _0x556b56=this;return new Promise(function(_0x5b6a04,_0xfc79dc){const _0x49b3f6=a595_0x1ef9;return db['SquareOdbc']['findOne']({'raw':_0x4fbb05[_0x49b3f6('0xf')]?_0x4fbb05[_0x49b3f6('0xf')][_0x49b3f6('0x1')]===undefined?!![]:![]:!![],'where':_0x4fbb05['options']?_0x4fbb05['options'][_0x49b3f6('0xa')]||null:null,'attributes':_0x4fbb05[_0x49b3f6('0xf')]?_0x4fbb05[_0x49b3f6('0xf')]['attributes']||null:null,'include':_0x4fbb05[_0x49b3f6('0xf')]?_0x4fbb05[_0x49b3f6('0xf')][_0x49b3f6('0x3')]?_[_0x49b3f6('0xe')](_0x4fbb05['options']['include'],function(_0x48bc48){const _0x265fbf=_0x49b3f6;return{'model':db[_0x48bc48[_0x265fbf('0x7')]],'as':_0x48bc48['as'],'attributes':_0x48bc48['attributes'],'include':_0x48bc48[_0x265fbf('0x3')]?_[_0x265fbf('0xe')](_0x48bc48['include'],function(_0x42f4cf){const _0x4fdb04=_0x265fbf;return{'model':db[_0x42f4cf[_0x4fdb04('0x7')]],'as':_0x42f4cf['as'],'attributes':_0x42f4cf[_0x4fdb04('0x4')],'include':_0x42f4cf[_0x4fdb04('0x3')]?_[_0x4fdb04('0xe')](_0x42f4cf[_0x4fdb04('0x3')],function(_0x575473){const _0x26373f=_0x4fdb04;return{'model':db[_0x575473[_0x26373f('0x7')]],'as':_0x575473['as'],'attributes':_0x575473['attributes']};}):[]};}):[]};}):[]:[]})[_0x49b3f6('0x2')](function(_0x439794){const _0x9724b7=_0x49b3f6;logger[_0x9724b7('0xc')]('ShowSquareOdbc',_0x4fbb05),logger[_0x9724b7('0xb')](_0x9724b7('0x8'),_0x4fbb05,JSON[_0x9724b7('0x5')](_0x439794)),_0x5b6a04(_0x439794);})['catch'](function(_0xf91589){const _0x3eba34=_0x49b3f6;logger[_0x3eba34('0x0')](_0x3eba34('0x8'),_0xf91589[_0x3eba34('0x9')],_0x4fbb05),_0xfc79dc(_0x556b56['error'](0x1f4,_0xf91589[_0x3eba34('0x9')]));});});};
\ No newline at end of file
+const a595_0x556b=['../../mysqldb','ShowSquareOdbc','info','error','include','attributes','stringify','raw','SquareOdbc','catch','rpc','map','lodash','message','model','where','options'];(function(_0x1613ea,_0x556b55){const _0x25927d=function(_0x30900d){while(--_0x30900d){_0x1613ea['push'](_0x1613ea['shift']());}};_0x25927d(++_0x556b55);}(a595_0x556b,0xaf));const a595_0x2592=function(_0x1613ea,_0x556b55){_0x1613ea=_0x1613ea-0x0;let _0x25927d=a595_0x556b[_0x1613ea];return _0x25927d;};const _0x3aacc8=a595_0x2592;'use strict';const db=require(_0x3aacc8('0xc'))['db'],logger=require('../../config/logger')(_0x3aacc8('0x5')),_=require(_0x3aacc8('0x7'));exports[_0x3aacc8('0xd')]=function(_0x30900d){const _0x4b5ee8=this;return new Promise(function(_0xdfb124,_0x4be95b){const _0x1aebe3=a595_0x2592;return db[_0x1aebe3('0x3')]['findOne']({'raw':_0x30900d[_0x1aebe3('0xb')]?_0x30900d[_0x1aebe3('0xb')][_0x1aebe3('0x2')]===undefined?!![]:![]:!![],'where':_0x30900d[_0x1aebe3('0xb')]?_0x30900d[_0x1aebe3('0xb')][_0x1aebe3('0xa')]||null:null,'attributes':_0x30900d[_0x1aebe3('0xb')]?_0x30900d[_0x1aebe3('0xb')][_0x1aebe3('0x0')]||null:null,'include':_0x30900d[_0x1aebe3('0xb')]?_0x30900d['options']['include']?_[_0x1aebe3('0x6')](_0x30900d[_0x1aebe3('0xb')]['include'],function(_0x18229c){const _0x525643=_0x1aebe3;return{'model':db[_0x18229c['model']],'as':_0x18229c['as'],'attributes':_0x18229c[_0x525643('0x0')],'include':_0x18229c[_0x525643('0x10')]?_[_0x525643('0x6')](_0x18229c['include'],function(_0x16b838){const _0x44b34a=_0x525643;return{'model':db[_0x16b838[_0x44b34a('0x9')]],'as':_0x16b838['as'],'attributes':_0x16b838[_0x44b34a('0x0')],'include':_0x16b838[_0x44b34a('0x10')]?_['map'](_0x16b838[_0x44b34a('0x10')],function(_0x152877){const _0x47619b=_0x44b34a;return{'model':db[_0x152877['model']],'as':_0x152877['as'],'attributes':_0x152877[_0x47619b('0x0')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4f35c6){const _0x2ccb7d=_0x1aebe3;logger[_0x2ccb7d('0xe')](_0x2ccb7d('0xd'),_0x30900d),logger['debug']('ShowSquareOdbc',_0x30900d,JSON[_0x2ccb7d('0x1')](_0x4f35c6)),_0xdfb124(_0x4f35c6);})[_0x1aebe3('0x4')](function(_0x38ff05){const _0x43af00=_0x1aebe3;logger['error'](_0x43af00('0xd'),_0x38ff05[_0x43af00('0x8')],_0x30900d),_0x4be95b(_0x4b5ee8[_0x43af00('0xf')](0x1f4,_0x38ff05[_0x43af00('0x8')]));});});};
\ No newline at end of file