Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / api / intVtigerAccount / intVtigerAccount.rpc.js
index a8ea49e..def9e22 100644 (file)
@@ -1 +1 @@
-const a322_0x22d3=['message','where','GetVtigerAccount','VtigerAccount','lodash','../../mysqldb','options','error','../../config/logger','limit','stringify','then','include','debug','catch','attributes','info','raw','ShowVtigerAccount','model','map','findAll'];(function(_0x42df59,_0x22d349){const _0x543fa9=function(_0x29bd06){while(--_0x29bd06){_0x42df59['push'](_0x42df59['shift']());}};_0x543fa9(++_0x22d349);}(a322_0x22d3,0x1e5));const a322_0x543f=function(_0x42df59,_0x22d349){_0x42df59=_0x42df59-0x0;let _0x543fa9=a322_0x22d3[_0x42df59];return _0x543fa9;};const _0x33159d=a322_0x543f;'use strict';const _=require(_0x33159d('0x3')),db=require(_0x33159d('0x4'))['db'],logger=require(_0x33159d('0x7'))('rpc');exports['GetVtigerAccount']=function(_0x29bd06){const _0x559eed=this;return new Promise(function(_0x379329,_0x5e6bc6){const _0x21c17a=a322_0x543f;return db[_0x21c17a('0x2')][_0x21c17a('0x14')]({'raw':_0x29bd06[_0x21c17a('0x5')]?_0x29bd06['options'][_0x21c17a('0x10')]===undefined?!![]:![]:!![],'where':_0x29bd06['options']?_0x29bd06[_0x21c17a('0x5')][_0x21c17a('0x0')]||null:null,'attributes':_0x29bd06[_0x21c17a('0x5')]?_0x29bd06[_0x21c17a('0x5')][_0x21c17a('0xe')]||null:null,'limit':_0x29bd06['options']?_0x29bd06['options'][_0x21c17a('0x8')]||null:null,'include':_0x29bd06[_0x21c17a('0x5')]?_0x29bd06[_0x21c17a('0x5')][_0x21c17a('0xb')]?_['map'](_0x29bd06['options'][_0x21c17a('0xb')],function(_0x56af35){const _0x362db3=_0x21c17a;return{'model':db[_0x56af35[_0x362db3('0x12')]],'as':_0x56af35['as'],'attributes':_0x56af35[_0x362db3('0xe')],'include':_0x56af35['include']?_[_0x362db3('0x13')](_0x56af35[_0x362db3('0xb')],function(_0x570b88){const _0xc571f1=_0x362db3;return{'model':db[_0x570b88[_0xc571f1('0x12')]],'as':_0x570b88['as'],'attributes':_0x570b88[_0xc571f1('0xe')],'include':_0x570b88['include']?_[_0xc571f1('0x13')](_0x570b88[_0xc571f1('0xb')],function(_0x266b5c){const _0x2d7813=_0xc571f1;return{'model':db[_0x266b5c[_0x2d7813('0x12')]],'as':_0x266b5c['as'],'attributes':_0x266b5c[_0x2d7813('0xe')]};}):[]};}):[]};}):[]:[]})[_0x21c17a('0xa')](function(_0x7e65f4){const _0x59a58a=_0x21c17a;logger[_0x59a58a('0xf')]('GetVtigerAccount',_0x29bd06),logger['debug'](_0x59a58a('0x1'),_0x29bd06,JSON[_0x59a58a('0x9')](_0x7e65f4)),_0x379329(_0x7e65f4);})[_0x21c17a('0xd')](function(_0x1cdf87){const _0x159b2b=_0x21c17a;logger[_0x159b2b('0x6')](_0x159b2b('0x1'),_0x1cdf87[_0x159b2b('0x15')],_0x29bd06),_0x5e6bc6(_0x559eed['error'](0x1f4,_0x1cdf87['message']));});});},exports[_0x33159d('0x11')]=function(_0x17bd10){const _0x19bf20=this;return new Promise(function(_0x4a44a7,_0x364129){const _0x47b40d=a322_0x543f;return db[_0x47b40d('0x2')]['findOne']({'raw':_0x17bd10[_0x47b40d('0x5')]?_0x17bd10[_0x47b40d('0x5')][_0x47b40d('0x10')]===undefined?!![]:![]:!![],'where':_0x17bd10[_0x47b40d('0x5')]?_0x17bd10[_0x47b40d('0x5')]['where']||null:null,'attributes':_0x17bd10[_0x47b40d('0x5')]?_0x17bd10[_0x47b40d('0x5')][_0x47b40d('0xe')]||null:null,'include':_0x17bd10['options']?_0x17bd10[_0x47b40d('0x5')][_0x47b40d('0xb')]?_[_0x47b40d('0x13')](_0x17bd10[_0x47b40d('0x5')][_0x47b40d('0xb')],function(_0x14cef9){const _0x514253=_0x47b40d;return{'model':db[_0x14cef9[_0x514253('0x12')]],'as':_0x14cef9['as'],'attributes':_0x14cef9[_0x514253('0xe')],'include':_0x14cef9['include']?_[_0x514253('0x13')](_0x14cef9[_0x514253('0xb')],function(_0x175199){const _0x5de4e8=_0x514253;return{'model':db[_0x175199['model']],'as':_0x175199['as'],'attributes':_0x175199['attributes'],'include':_0x175199[_0x5de4e8('0xb')]?_[_0x5de4e8('0x13')](_0x175199[_0x5de4e8('0xb')],function(_0x18a6ac){const _0x532c15=_0x5de4e8;return{'model':db[_0x18a6ac[_0x532c15('0x12')]],'as':_0x18a6ac['as'],'attributes':_0x18a6ac[_0x532c15('0xe')]};}):[]};}):[]};}):[]:[]})[_0x47b40d('0xa')](function(_0x4d99ae){const _0xb20f2c=_0x47b40d;logger[_0xb20f2c('0xf')](_0xb20f2c('0x11'),_0x17bd10),logger[_0xb20f2c('0xc')](_0xb20f2c('0x11'),_0x17bd10,JSON[_0xb20f2c('0x9')](_0x4d99ae)),_0x4a44a7(_0x4d99ae);})['catch'](function(_0x5779c0){const _0x59c17f=_0x47b40d;logger[_0x59c17f('0x6')](_0x59c17f('0x11'),_0x5779c0[_0x59c17f('0x15')],_0x17bd10),_0x364129(_0x19bf20['error'](0x1f4,_0x5779c0['message']));});});};
\ No newline at end of file
+const a322_0x5e7f=['message','error','catch','../../mysqldb','VtigerAccount','where','raw','debug','GetVtigerAccount','stringify','attributes','then','limit','ShowVtigerAccount','map','findAll','options','lodash','info','include','../../config/logger','model'];(function(_0x27b7d0,_0x5e7fa5){const _0x29157e=function(_0x141368){while(--_0x141368){_0x27b7d0['push'](_0x27b7d0['shift']());}};_0x29157e(++_0x5e7fa5);}(a322_0x5e7f,0x16b));const a322_0x2915=function(_0x27b7d0,_0x5e7fa5){_0x27b7d0=_0x27b7d0-0x0;let _0x29157e=a322_0x5e7f[_0x27b7d0];return _0x29157e;};const _0x4bc984=a322_0x2915;'use strict';const _=require(_0x4bc984('0x6')),db=require(_0x4bc984('0xe'))['db'],logger=require(_0x4bc984('0x9'))('rpc');exports[_0x4bc984('0x13')]=function(_0x141368){const _0x134000=this;return new Promise(function(_0x69b1c1,_0x56f51d){const _0x5c263f=a322_0x2915;return db[_0x5c263f('0xf')][_0x5c263f('0x4')]({'raw':_0x141368['options']?_0x141368[_0x5c263f('0x5')]['raw']===undefined?!![]:![]:!![],'where':_0x141368['options']?_0x141368[_0x5c263f('0x5')][_0x5c263f('0x10')]||null:null,'attributes':_0x141368['options']?_0x141368[_0x5c263f('0x5')]['attributes']||null:null,'limit':_0x141368[_0x5c263f('0x5')]?_0x141368[_0x5c263f('0x5')][_0x5c263f('0x1')]||null:null,'include':_0x141368[_0x5c263f('0x5')]?_0x141368[_0x5c263f('0x5')][_0x5c263f('0x8')]?_[_0x5c263f('0x3')](_0x141368[_0x5c263f('0x5')]['include'],function(_0x10a9e8){const _0x488525=_0x5c263f;return{'model':db[_0x10a9e8[_0x488525('0xa')]],'as':_0x10a9e8['as'],'attributes':_0x10a9e8['attributes'],'include':_0x10a9e8[_0x488525('0x8')]?_[_0x488525('0x3')](_0x10a9e8['include'],function(_0x35c352){const _0x4dd8f5=_0x488525;return{'model':db[_0x35c352['model']],'as':_0x35c352['as'],'attributes':_0x35c352[_0x4dd8f5('0x15')],'include':_0x35c352[_0x4dd8f5('0x8')]?_['map'](_0x35c352['include'],function(_0x8d1511){const _0x216052=_0x4dd8f5;return{'model':db[_0x8d1511[_0x216052('0xa')]],'as':_0x8d1511['as'],'attributes':_0x8d1511['attributes']};}):[]};}):[]};}):[]:[]})[_0x5c263f('0x0')](function(_0x5f4a51){const _0x3e13bf=_0x5c263f;logger[_0x3e13bf('0x7')]('GetVtigerAccount',_0x141368),logger[_0x3e13bf('0x12')](_0x3e13bf('0x13'),_0x141368,JSON[_0x3e13bf('0x14')](_0x5f4a51)),_0x69b1c1(_0x5f4a51);})[_0x5c263f('0xd')](function(_0xa6125){const _0x1ac668=_0x5c263f;logger['error'](_0x1ac668('0x13'),_0xa6125['message'],_0x141368),_0x56f51d(_0x134000[_0x1ac668('0xc')](0x1f4,_0xa6125[_0x1ac668('0xb')]));});});},exports[_0x4bc984('0x2')]=function(_0xcbb161){const _0x561ad9=this;return new Promise(function(_0x3fd943,_0x1634e6){const _0x3d5e51=a322_0x2915;return db['VtigerAccount']['findOne']({'raw':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161['options'][_0x3d5e51('0x11')]===undefined?!![]:![]:!![],'where':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161[_0x3d5e51('0x5')][_0x3d5e51('0x10')]||null:null,'attributes':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161['options'][_0x3d5e51('0x15')]||null:null,'include':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161[_0x3d5e51('0x5')][_0x3d5e51('0x8')]?_[_0x3d5e51('0x3')](_0xcbb161[_0x3d5e51('0x5')][_0x3d5e51('0x8')],function(_0x3dc964){const _0x2c2c76=_0x3d5e51;return{'model':db[_0x3dc964[_0x2c2c76('0xa')]],'as':_0x3dc964['as'],'attributes':_0x3dc964['attributes'],'include':_0x3dc964['include']?_[_0x2c2c76('0x3')](_0x3dc964['include'],function(_0x3e8021){const _0x2588dc=_0x2c2c76;return{'model':db[_0x3e8021['model']],'as':_0x3e8021['as'],'attributes':_0x3e8021[_0x2588dc('0x15')],'include':_0x3e8021[_0x2588dc('0x8')]?_[_0x2588dc('0x3')](_0x3e8021['include'],function(_0x477086){const _0x11e01c=_0x2588dc;return{'model':db[_0x477086['model']],'as':_0x477086['as'],'attributes':_0x477086[_0x11e01c('0x15')]};}):[]};}):[]};}):[]:[]})[_0x3d5e51('0x0')](function(_0x485f18){const _0x39bafb=_0x3d5e51;logger['info'](_0x39bafb('0x2'),_0xcbb161),logger[_0x39bafb('0x12')]('ShowVtigerAccount',_0xcbb161,JSON[_0x39bafb('0x14')](_0x485f18)),_0x3fd943(_0x485f18);})[_0x3d5e51('0xd')](function(_0x2517df){const _0x5aa880=_0x3d5e51;logger[_0x5aa880('0xc')](_0x5aa880('0x2'),_0x2517df['message'],_0xcbb161),_0x1634e6(_0x561ad9[_0x5aa880('0xc')](0x1f4,_0x2517df['message']));});});};
\ No newline at end of file