Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / intSugarcrmAccount / intSugarcrmAccount.rpc.js
index f0d5b31..1fdb3b4 100644 (file)
@@ -1 +1 @@
-const a309_0x26a9=['map','findOne','SugarcrmAccount','../../config/logger','../../mysqldb','ShowSugarcrmAccount','GetSugarcrmAccount','model','findAll','raw','error','info','limit','catch','stringify','then','where','lodash','include','attributes','message','options','debug'];(function(_0x434737,_0x26a9ee){const _0x2be059=function(_0x10e5c2){while(--_0x10e5c2){_0x434737['push'](_0x434737['shift']());}};_0x2be059(++_0x26a9ee);}(a309_0x26a9,0xf0));const a309_0x2be0=function(_0x434737,_0x26a9ee){_0x434737=_0x434737-0x0;let _0x2be059=a309_0x26a9[_0x434737];return _0x2be059;};const _0x4e6c03=a309_0x2be0;'use strict';const _=require(_0x4e6c03('0x7')),db=require(_0x4e6c03('0x11'))['db'],logger=require(_0x4e6c03('0x10'))('rpc');exports['GetSugarcrmAccount']=function(_0x10e5c2){const _0x1183ad=this;return new Promise(function(_0x515245,_0x4bab37){const _0xcefedb=a309_0x2be0;return db['SugarcrmAccount'][_0xcefedb('0x15')]({'raw':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2[_0xcefedb('0xb')][_0xcefedb('0x16')]===undefined?!![]:![]:!![],'where':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2[_0xcefedb('0xb')][_0xcefedb('0x6')]||null:null,'attributes':_0x10e5c2['options']?_0x10e5c2[_0xcefedb('0xb')][_0xcefedb('0x9')]||null:null,'limit':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2['options'][_0xcefedb('0x2')]||null:null,'include':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2['options'][_0xcefedb('0x8')]?_['map'](_0x10e5c2['options'][_0xcefedb('0x8')],function(_0x491b66){const _0x3a29d0=_0xcefedb;return{'model':db[_0x491b66['model']],'as':_0x491b66['as'],'attributes':_0x491b66['attributes'],'include':_0x491b66[_0x3a29d0('0x8')]?_['map'](_0x491b66['include'],function(_0x1de243){const _0x35043e=_0x3a29d0;return{'model':db[_0x1de243[_0x35043e('0x14')]],'as':_0x1de243['as'],'attributes':_0x1de243[_0x35043e('0x9')],'include':_0x1de243[_0x35043e('0x8')]?_['map'](_0x1de243[_0x35043e('0x8')],function(_0x39d207){const _0x4a70f4=_0x35043e;return{'model':db[_0x39d207['model']],'as':_0x39d207['as'],'attributes':_0x39d207[_0x4a70f4('0x9')]};}):[]};}):[]};}):[]:[]})[_0xcefedb('0x5')](function(_0x5d67c1){const _0x38b146=_0xcefedb;logger[_0x38b146('0x1')](_0x38b146('0x13'),_0x10e5c2),logger[_0x38b146('0xc')](_0x38b146('0x13'),_0x10e5c2,JSON['stringify'](_0x5d67c1)),_0x515245(_0x5d67c1);})[_0xcefedb('0x3')](function(_0x3e2435){const _0x107088=_0xcefedb;logger[_0x107088('0x0')]('GetSugarcrmAccount',_0x3e2435[_0x107088('0xa')],_0x10e5c2),_0x4bab37(_0x1183ad[_0x107088('0x0')](0x1f4,_0x3e2435['message']));});});},exports[_0x4e6c03('0x12')]=function(_0x3713b8){const _0x290c66=this;return new Promise(function(_0x2a330a,_0x3527f7){const _0x6170d3=a309_0x2be0;return db[_0x6170d3('0xf')][_0x6170d3('0xe')]({'raw':_0x3713b8['options']?_0x3713b8[_0x6170d3('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x3713b8[_0x6170d3('0xb')]?_0x3713b8[_0x6170d3('0xb')]['where']||null:null,'attributes':_0x3713b8[_0x6170d3('0xb')]?_0x3713b8[_0x6170d3('0xb')][_0x6170d3('0x9')]||null:null,'include':_0x3713b8['options']?_0x3713b8['options']['include']?_[_0x6170d3('0xd')](_0x3713b8['options']['include'],function(_0x3e0612){const _0x4deebf=_0x6170d3;return{'model':db[_0x3e0612[_0x4deebf('0x14')]],'as':_0x3e0612['as'],'attributes':_0x3e0612[_0x4deebf('0x9')],'include':_0x3e0612[_0x4deebf('0x8')]?_[_0x4deebf('0xd')](_0x3e0612[_0x4deebf('0x8')],function(_0x2695dd){const _0x1a188f=_0x4deebf;return{'model':db[_0x2695dd[_0x1a188f('0x14')]],'as':_0x2695dd['as'],'attributes':_0x2695dd[_0x1a188f('0x9')],'include':_0x2695dd[_0x1a188f('0x8')]?_[_0x1a188f('0xd')](_0x2695dd[_0x1a188f('0x8')],function(_0x1d28fd){const _0x533fae=_0x1a188f;return{'model':db[_0x1d28fd[_0x533fae('0x14')]],'as':_0x1d28fd['as'],'attributes':_0x1d28fd[_0x533fae('0x9')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x490adc){const _0x1d57a2=_0x6170d3;logger['info'](_0x1d57a2('0x12'),_0x3713b8),logger[_0x1d57a2('0xc')]('ShowSugarcrmAccount',_0x3713b8,JSON[_0x1d57a2('0x4')](_0x490adc)),_0x2a330a(_0x490adc);})[_0x6170d3('0x3')](function(_0x402a09){const _0x3eec82=_0x6170d3;logger[_0x3eec82('0x0')](_0x3eec82('0x12'),_0x402a09[_0x3eec82('0xa')],_0x3713b8),_0x3527f7(_0x290c66[_0x3eec82('0x0')](0x1f4,_0x402a09[_0x3eec82('0xa')]));});});};
\ No newline at end of file
+const a309_0x546a=['options','limit','info','findOne','catch','rpc','where','error','SugarcrmAccount','then','attributes','raw','map','debug','stringify','include','ShowSugarcrmAccount','model','GetSugarcrmAccount','../../config/logger','lodash'];(function(_0xad42a7,_0x546a92){const _0x36de34=function(_0x2b5055){while(--_0x2b5055){_0xad42a7['push'](_0xad42a7['shift']());}};_0x36de34(++_0x546a92);}(a309_0x546a,0xc3));const a309_0x36de=function(_0xad42a7,_0x546a92){_0xad42a7=_0xad42a7-0x0;let _0x36de34=a309_0x546a[_0xad42a7];return _0x36de34;};const _0x329e0d=a309_0x36de;'use strict';const _=require(_0x329e0d('0xe')),db=require('../../mysqldb')['db'],logger=require(_0x329e0d('0xd'))(_0x329e0d('0x14'));exports[_0x329e0d('0xc')]=function(_0x2b5055){const _0x4413aa=this;return new Promise(function(_0x425ff2,_0x6432b1){const _0x43fadd=a309_0x36de;return db['SugarcrmAccount']['findAll']({'raw':_0x2b5055['options']?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x5')]===undefined?!![]:![]:!![],'where':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x0')]||null:null,'attributes':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x4')]||null:null,'limit':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x10')]||null:null,'include':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x9')]?_[_0x43fadd('0x6')](_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x9')],function(_0x5b6ce1){const _0x2c075d=_0x43fadd;return{'model':db[_0x5b6ce1['model']],'as':_0x5b6ce1['as'],'attributes':_0x5b6ce1[_0x2c075d('0x4')],'include':_0x5b6ce1[_0x2c075d('0x9')]?_[_0x2c075d('0x6')](_0x5b6ce1[_0x2c075d('0x9')],function(_0x3b5baf){const _0x17e45f=_0x2c075d;return{'model':db[_0x3b5baf['model']],'as':_0x3b5baf['as'],'attributes':_0x3b5baf[_0x17e45f('0x4')],'include':_0x3b5baf[_0x17e45f('0x9')]?_[_0x17e45f('0x6')](_0x3b5baf['include'],function(_0x55237d){const _0x279d1a=_0x17e45f;return{'model':db[_0x55237d[_0x279d1a('0xb')]],'as':_0x55237d['as'],'attributes':_0x55237d[_0x279d1a('0x4')]};}):[]};}):[]};}):[]:[]})[_0x43fadd('0x3')](function(_0x43916c){const _0x306202=_0x43fadd;logger[_0x306202('0x11')](_0x306202('0xc'),_0x2b5055),logger['debug'](_0x306202('0xc'),_0x2b5055,JSON[_0x306202('0x8')](_0x43916c)),_0x425ff2(_0x43916c);})[_0x43fadd('0x13')](function(_0x56f0d9){const _0x504b8d=_0x43fadd;logger['error'](_0x504b8d('0xc'),_0x56f0d9['message'],_0x2b5055),_0x6432b1(_0x4413aa['error'](0x1f4,_0x56f0d9['message']));});});},exports[_0x329e0d('0xa')]=function(_0x44c430){const _0x1dc4dd=this;return new Promise(function(_0x5b8256,_0x178e32){const _0x668126=a309_0x36de;return db[_0x668126('0x2')][_0x668126('0x12')]({'raw':_0x44c430['options']?_0x44c430[_0x668126('0xf')][_0x668126('0x5')]===undefined?!![]:![]:!![],'where':_0x44c430[_0x668126('0xf')]?_0x44c430['options'][_0x668126('0x0')]||null:null,'attributes':_0x44c430[_0x668126('0xf')]?_0x44c430[_0x668126('0xf')][_0x668126('0x4')]||null:null,'include':_0x44c430[_0x668126('0xf')]?_0x44c430[_0x668126('0xf')][_0x668126('0x9')]?_[_0x668126('0x6')](_0x44c430[_0x668126('0xf')]['include'],function(_0x4ff0ac){const _0x16838=_0x668126;return{'model':db[_0x4ff0ac[_0x16838('0xb')]],'as':_0x4ff0ac['as'],'attributes':_0x4ff0ac[_0x16838('0x4')],'include':_0x4ff0ac[_0x16838('0x9')]?_[_0x16838('0x6')](_0x4ff0ac[_0x16838('0x9')],function(_0x2aaa3c){const _0x27b676=_0x16838;return{'model':db[_0x2aaa3c['model']],'as':_0x2aaa3c['as'],'attributes':_0x2aaa3c[_0x27b676('0x4')],'include':_0x2aaa3c[_0x27b676('0x9')]?_[_0x27b676('0x6')](_0x2aaa3c[_0x27b676('0x9')],function(_0x1294c9){return{'model':db[_0x1294c9['model']],'as':_0x1294c9['as'],'attributes':_0x1294c9['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x7ff70d){const _0x363b32=_0x668126;logger[_0x363b32('0x11')]('ShowSugarcrmAccount',_0x44c430),logger[_0x363b32('0x7')](_0x363b32('0xa'),_0x44c430,JSON[_0x363b32('0x8')](_0x7ff70d)),_0x5b8256(_0x7ff70d);})[_0x668126('0x13')](function(_0x1fbf85){const _0x4cb921=_0x668126;logger[_0x4cb921('0x1')](_0x4cb921('0xa'),_0x1fbf85['message'],_0x44c430),_0x178e32(_0x1dc4dd[_0x4cb921('0x1')](0x1f4,_0x1fbf85['message']));});});};
\ No newline at end of file