Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / api / intSugarcrmAccount / intSugarcrmAccount.rpc.js
index 277b15d..9e6fddb 100644 (file)
@@ -1 +1 @@
-const a309_0xafa5=['info','../../mysqldb','raw','SugarcrmAccount','include','options','attributes','lodash','then','findAll','message','where','map','model','debug','findOne','rpc','catch','error','stringify','GetSugarcrmAccount','ShowSugarcrmAccount'];(function(_0x1c0f60,_0xafa556){const _0x5bb950=function(_0x4f7586){while(--_0x4f7586){_0x1c0f60['push'](_0x1c0f60['shift']());}};_0x5bb950(++_0xafa556);}(a309_0xafa5,0x177));const a309_0x5bb9=function(_0x1c0f60,_0xafa556){_0x1c0f60=_0x1c0f60-0x0;let _0x5bb950=a309_0xafa5[_0x1c0f60];return _0x5bb950;};const _0x2357a5=a309_0x5bb9;'use strict';const _=require(_0x2357a5('0x6')),db=require(_0x2357a5('0x0'))['db'],logger=require('../../config/logger')(_0x2357a5('0xf'));exports[_0x2357a5('0x13')]=function(_0x4f7586){const _0xb08751=this;return new Promise(function(_0x2d4be2,_0x3509ea){const _0x251b44=a309_0x5bb9;return db[_0x251b44('0x2')][_0x251b44('0x8')]({'raw':_0x4f7586[_0x251b44('0x4')]?_0x4f7586['options'][_0x251b44('0x1')]===undefined?!![]:![]:!![],'where':_0x4f7586[_0x251b44('0x4')]?_0x4f7586[_0x251b44('0x4')][_0x251b44('0xa')]||null:null,'attributes':_0x4f7586[_0x251b44('0x4')]?_0x4f7586[_0x251b44('0x4')][_0x251b44('0x5')]||null:null,'limit':_0x4f7586[_0x251b44('0x4')]?_0x4f7586['options']['limit']||null:null,'include':_0x4f7586[_0x251b44('0x4')]?_0x4f7586[_0x251b44('0x4')][_0x251b44('0x3')]?_[_0x251b44('0xb')](_0x4f7586['options']['include'],function(_0x6d73d4){const _0x18549f=_0x251b44;return{'model':db[_0x6d73d4[_0x18549f('0xc')]],'as':_0x6d73d4['as'],'attributes':_0x6d73d4[_0x18549f('0x5')],'include':_0x6d73d4[_0x18549f('0x3')]?_[_0x18549f('0xb')](_0x6d73d4['include'],function(_0x29a090){const _0x2332fe=_0x18549f;return{'model':db[_0x29a090[_0x2332fe('0xc')]],'as':_0x29a090['as'],'attributes':_0x29a090[_0x2332fe('0x5')],'include':_0x29a090[_0x2332fe('0x3')]?_['map'](_0x29a090[_0x2332fe('0x3')],function(_0xe78182){const _0x151c3c=_0x2332fe;return{'model':db[_0xe78182[_0x151c3c('0xc')]],'as':_0xe78182['as'],'attributes':_0xe78182[_0x151c3c('0x5')]};}):[]};}):[]};}):[]:[]})[_0x251b44('0x7')](function(_0x42a31d){const _0x34cf66=_0x251b44;logger[_0x34cf66('0x15')](_0x34cf66('0x13'),_0x4f7586),logger[_0x34cf66('0xd')](_0x34cf66('0x13'),_0x4f7586,JSON['stringify'](_0x42a31d)),_0x2d4be2(_0x42a31d);})[_0x251b44('0x10')](function(_0x37ee4b){const _0x30aa36=_0x251b44;logger[_0x30aa36('0x11')](_0x30aa36('0x13'),_0x37ee4b[_0x30aa36('0x9')],_0x4f7586),_0x3509ea(_0xb08751['error'](0x1f4,_0x37ee4b[_0x30aa36('0x9')]));});});},exports[_0x2357a5('0x14')]=function(_0x1e4780){const _0x2a1cba=this;return new Promise(function(_0x202ce0,_0x32d2d3){const _0x2574be=a309_0x5bb9;return db[_0x2574be('0x2')][_0x2574be('0xe')]({'raw':_0x1e4780[_0x2574be('0x4')]?_0x1e4780[_0x2574be('0x4')][_0x2574be('0x1')]===undefined?!![]:![]:!![],'where':_0x1e4780[_0x2574be('0x4')]?_0x1e4780[_0x2574be('0x4')][_0x2574be('0xa')]||null:null,'attributes':_0x1e4780[_0x2574be('0x4')]?_0x1e4780['options'][_0x2574be('0x5')]||null:null,'include':_0x1e4780[_0x2574be('0x4')]?_0x1e4780[_0x2574be('0x4')]['include']?_[_0x2574be('0xb')](_0x1e4780['options'][_0x2574be('0x3')],function(_0x21535c){const _0x43f9ae=_0x2574be;return{'model':db[_0x21535c['model']],'as':_0x21535c['as'],'attributes':_0x21535c[_0x43f9ae('0x5')],'include':_0x21535c['include']?_['map'](_0x21535c['include'],function(_0x1dd92f){const _0x38a13a=_0x43f9ae;return{'model':db[_0x1dd92f[_0x38a13a('0xc')]],'as':_0x1dd92f['as'],'attributes':_0x1dd92f['attributes'],'include':_0x1dd92f[_0x38a13a('0x3')]?_[_0x38a13a('0xb')](_0x1dd92f[_0x38a13a('0x3')],function(_0x4e485a){const _0x48909c=_0x38a13a;return{'model':db[_0x4e485a[_0x48909c('0xc')]],'as':_0x4e485a['as'],'attributes':_0x4e485a[_0x48909c('0x5')]};}):[]};}):[]};}):[]:[]})[_0x2574be('0x7')](function(_0x531684){const _0x52001f=_0x2574be;logger[_0x52001f('0x15')](_0x52001f('0x14'),_0x1e4780),logger['debug'](_0x52001f('0x14'),_0x1e4780,JSON[_0x52001f('0x12')](_0x531684)),_0x202ce0(_0x531684);})[_0x2574be('0x10')](function(_0x5878b9){const _0x4d950d=_0x2574be;logger['error'](_0x4d950d('0x14'),_0x5878b9[_0x4d950d('0x9')],_0x1e4780),_0x32d2d3(_0x2a1cba[_0x4d950d('0x11')](0x1f4,_0x5878b9[_0x4d950d('0x9')]));});});};
\ No newline at end of file
+const a309_0x5399=['../../config/logger','GetSugarcrmAccount','error','debug','findOne','info','catch','ShowSugarcrmAccount','message','limit','map','include','lodash','stringify','then','SugarcrmAccount','options','attributes','rpc','raw','where','findAll','model'];(function(_0x33475b,_0x5399f5){const _0x4cc674=function(_0x4ac316){while(--_0x4ac316){_0x33475b['push'](_0x33475b['shift']());}};_0x4cc674(++_0x5399f5);}(a309_0x5399,0xb9));const a309_0x4cc6=function(_0x33475b,_0x5399f5){_0x33475b=_0x33475b-0x0;let _0x4cc674=a309_0x5399[_0x33475b];return _0x4cc674;};const _0x434f0b=a309_0x4cc6;'use strict';const _=require(_0x434f0b('0xb')),db=require('../../mysqldb')['db'],logger=require(_0x434f0b('0x16'))(_0x434f0b('0x11'));exports['GetSugarcrmAccount']=function(_0x4ac316){const _0x40a63b=this;return new Promise(function(_0x1457b7,_0x1af1c5){const _0x1b4673=a309_0x4cc6;return db[_0x1b4673('0xe')][_0x1b4673('0x14')]({'raw':_0x4ac316[_0x1b4673('0xf')]?_0x4ac316[_0x1b4673('0xf')][_0x1b4673('0x12')]===undefined?!![]:![]:!![],'where':_0x4ac316[_0x1b4673('0xf')]?_0x4ac316[_0x1b4673('0xf')][_0x1b4673('0x13')]||null:null,'attributes':_0x4ac316[_0x1b4673('0xf')]?_0x4ac316['options'][_0x1b4673('0x10')]||null:null,'limit':_0x4ac316[_0x1b4673('0xf')]?_0x4ac316[_0x1b4673('0xf')][_0x1b4673('0x8')]||null:null,'include':_0x4ac316['options']?_0x4ac316[_0x1b4673('0xf')][_0x1b4673('0xa')]?_['map'](_0x4ac316[_0x1b4673('0xf')][_0x1b4673('0xa')],function(_0x121a93){const _0x3f14b3=_0x1b4673;return{'model':db[_0x121a93[_0x3f14b3('0x15')]],'as':_0x121a93['as'],'attributes':_0x121a93[_0x3f14b3('0x10')],'include':_0x121a93[_0x3f14b3('0xa')]?_[_0x3f14b3('0x9')](_0x121a93[_0x3f14b3('0xa')],function(_0x4aca6a){const _0x1437f0=_0x3f14b3;return{'model':db[_0x4aca6a[_0x1437f0('0x15')]],'as':_0x4aca6a['as'],'attributes':_0x4aca6a[_0x1437f0('0x10')],'include':_0x4aca6a['include']?_['map'](_0x4aca6a[_0x1437f0('0xa')],function(_0x148f6e){const _0x235a48=_0x1437f0;return{'model':db[_0x148f6e['model']],'as':_0x148f6e['as'],'attributes':_0x148f6e[_0x235a48('0x10')]};}):[]};}):[]};}):[]:[]})[_0x1b4673('0xd')](function(_0x2dcbdc){const _0x16ad29=_0x1b4673;logger[_0x16ad29('0x4')]('GetSugarcrmAccount',_0x4ac316),logger['debug'](_0x16ad29('0x0'),_0x4ac316,JSON[_0x16ad29('0xc')](_0x2dcbdc)),_0x1457b7(_0x2dcbdc);})['catch'](function(_0x38513c){const _0xaf8422=_0x1b4673;logger['error'](_0xaf8422('0x0'),_0x38513c[_0xaf8422('0x7')],_0x4ac316),_0x1af1c5(_0x40a63b['error'](0x1f4,_0x38513c[_0xaf8422('0x7')]));});});},exports[_0x434f0b('0x6')]=function(_0x2fcde8){const _0x1143ec=this;return new Promise(function(_0x118e69,_0x7115b2){const _0xe3d753=a309_0x4cc6;return db[_0xe3d753('0xe')][_0xe3d753('0x3')]({'raw':_0x2fcde8[_0xe3d753('0xf')]?_0x2fcde8[_0xe3d753('0xf')][_0xe3d753('0x12')]===undefined?!![]:![]:!![],'where':_0x2fcde8[_0xe3d753('0xf')]?_0x2fcde8[_0xe3d753('0xf')][_0xe3d753('0x13')]||null:null,'attributes':_0x2fcde8['options']?_0x2fcde8['options'][_0xe3d753('0x10')]||null:null,'include':_0x2fcde8[_0xe3d753('0xf')]?_0x2fcde8['options'][_0xe3d753('0xa')]?_[_0xe3d753('0x9')](_0x2fcde8[_0xe3d753('0xf')][_0xe3d753('0xa')],function(_0x4e5d16){const _0x52be5f=_0xe3d753;return{'model':db[_0x4e5d16[_0x52be5f('0x15')]],'as':_0x4e5d16['as'],'attributes':_0x4e5d16[_0x52be5f('0x10')],'include':_0x4e5d16['include']?_[_0x52be5f('0x9')](_0x4e5d16['include'],function(_0x3bbb10){const _0x519ea0=_0x52be5f;return{'model':db[_0x3bbb10['model']],'as':_0x3bbb10['as'],'attributes':_0x3bbb10['attributes'],'include':_0x3bbb10[_0x519ea0('0xa')]?_['map'](_0x3bbb10['include'],function(_0x435753){const _0xe3db8c=_0x519ea0;return{'model':db[_0x435753['model']],'as':_0x435753['as'],'attributes':_0x435753[_0xe3db8c('0x10')]};}):[]};}):[]};}):[]:[]})[_0xe3d753('0xd')](function(_0x4e9d56){const _0x4747eb=_0xe3d753;logger[_0x4747eb('0x4')](_0x4747eb('0x6'),_0x2fcde8),logger[_0x4747eb('0x2')](_0x4747eb('0x6'),_0x2fcde8,JSON[_0x4747eb('0xc')](_0x4e9d56)),_0x118e69(_0x4e9d56);})[_0xe3d753('0x5')](function(_0x3f1c04){const _0x27cdcf=_0xe3d753;logger[_0x27cdcf('0x1')]('ShowSugarcrmAccount',_0x3f1c04[_0x27cdcf('0x7')],_0x2fcde8),_0x7115b2(_0x1143ec[_0x27cdcf('0x1')](0x1f4,_0x3f1c04['message']));});});};
\ No newline at end of file