Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / intVtigerAccount / intVtigerAccount.rpc.js
index c461bb0..a421aa4 100644 (file)
@@ -1 +1 @@
-const a387_0xfa05=['message','raw','VtigerAccount','attributes','findAll','debug','error','limit','stringify','info','GetVtigerAccount','where','ShowVtigerAccount','../../config/logger','map','../../mysqldb','catch','then','options','model','include','rpc'];(function(_0x27f907,_0x22efca){const _0xfa05cf=function(_0x20aeed){while(--_0x20aeed){_0x27f907['push'](_0x27f907['shift']());}};_0xfa05cf(++_0x22efca);}(a387_0xfa05,0x150));const a387_0x20ae=function(_0x27f907,_0x22efca){_0x27f907=_0x27f907-0x6b;let _0xfa05cf=a387_0xfa05[_0x27f907];return _0xfa05cf;};const a387_0x107506=a387_0x20ae;'use strict';const _=require('lodash'),db=require(a387_0x107506(0x74))['db'],logger=require(a387_0x107506(0x72))(a387_0x107506(0x7a));exports['GetVtigerAccount']=function(_0x151a28){const _0x3fab59=this;return new Promise(function(_0x539710,_0x56a643){const _0x4ce056=a387_0x20ae;return db[_0x4ce056(0x7d)][_0x4ce056(0x7f)]({'raw':_0x151a28[_0x4ce056(0x77)]?_0x151a28['options'][_0x4ce056(0x7c)]===undefined?!![]:![]:!![],'where':_0x151a28[_0x4ce056(0x77)]?_0x151a28[_0x4ce056(0x77)][_0x4ce056(0x70)]||null:null,'attributes':_0x151a28[_0x4ce056(0x77)]?_0x151a28['options'][_0x4ce056(0x7e)]||null:null,'limit':_0x151a28[_0x4ce056(0x77)]?_0x151a28[_0x4ce056(0x77)][_0x4ce056(0x6c)]||null:null,'include':_0x151a28['options']?_0x151a28['options'][_0x4ce056(0x79)]?_[_0x4ce056(0x73)](_0x151a28[_0x4ce056(0x77)][_0x4ce056(0x79)],function(_0x20f087){const _0x3e7621=_0x4ce056;return{'model':db[_0x20f087[_0x3e7621(0x78)]],'as':_0x20f087['as'],'attributes':_0x20f087[_0x3e7621(0x7e)],'include':_0x20f087[_0x3e7621(0x79)]?_[_0x3e7621(0x73)](_0x20f087[_0x3e7621(0x79)],function(_0x149f95){const _0xfb5701=_0x3e7621;return{'model':db[_0x149f95[_0xfb5701(0x78)]],'as':_0x149f95['as'],'attributes':_0x149f95[_0xfb5701(0x7e)],'include':_0x149f95[_0xfb5701(0x79)]?_[_0xfb5701(0x73)](_0x149f95['include'],function(_0x233bc4){const _0x16a5a0=_0xfb5701;return{'model':db[_0x233bc4[_0x16a5a0(0x78)]],'as':_0x233bc4['as'],'attributes':_0x233bc4[_0x16a5a0(0x7e)]};}):[]};}):[]};}):[]:[]})[_0x4ce056(0x76)](function(_0x1c8116){const _0x492439=_0x4ce056;logger['info'](_0x492439(0x6f),_0x151a28),logger[_0x492439(0x80)](_0x492439(0x6f),_0x151a28,JSON[_0x492439(0x6d)](_0x1c8116)),_0x539710(_0x1c8116);})[_0x4ce056(0x75)](function(_0x41ce89){const _0x174646=_0x4ce056;logger[_0x174646(0x6b)](_0x174646(0x6f),_0x41ce89[_0x174646(0x7b)],_0x151a28),_0x56a643(_0x3fab59[_0x174646(0x6b)](0x1f4,_0x41ce89['message']));});});},exports[a387_0x107506(0x71)]=function(_0x4248b6){const _0x1fabca=this;return new Promise(function(_0x372604,_0x1805f9){const _0x1f5996=a387_0x20ae;return db['VtigerAccount']['findOne']({'raw':_0x4248b6[_0x1f5996(0x77)]?_0x4248b6[_0x1f5996(0x77)][_0x1f5996(0x7c)]===undefined?!![]:![]:!![],'where':_0x4248b6[_0x1f5996(0x77)]?_0x4248b6[_0x1f5996(0x77)]['where']||null:null,'attributes':_0x4248b6[_0x1f5996(0x77)]?_0x4248b6[_0x1f5996(0x77)][_0x1f5996(0x7e)]||null:null,'include':_0x4248b6['options']?_0x4248b6['options'][_0x1f5996(0x79)]?_['map'](_0x4248b6[_0x1f5996(0x77)][_0x1f5996(0x79)],function(_0x4b74de){const _0x5bb2e7=_0x1f5996;return{'model':db[_0x4b74de[_0x5bb2e7(0x78)]],'as':_0x4b74de['as'],'attributes':_0x4b74de['attributes'],'include':_0x4b74de[_0x5bb2e7(0x79)]?_['map'](_0x4b74de[_0x5bb2e7(0x79)],function(_0x26d948){const _0x40a65a=_0x5bb2e7;return{'model':db[_0x26d948['model']],'as':_0x26d948['as'],'attributes':_0x26d948['attributes'],'include':_0x26d948[_0x40a65a(0x79)]?_[_0x40a65a(0x73)](_0x26d948['include'],function(_0x21c13d){const _0x35eb04=_0x40a65a;return{'model':db[_0x21c13d[_0x35eb04(0x78)]],'as':_0x21c13d['as'],'attributes':_0x21c13d[_0x35eb04(0x7e)]};}):[]};}):[]};}):[]:[]})[_0x1f5996(0x76)](function(_0x3ef405){const _0x1d940d=_0x1f5996;logger[_0x1d940d(0x6e)]('ShowVtigerAccount',_0x4248b6),logger[_0x1d940d(0x80)](_0x1d940d(0x71),_0x4248b6,JSON['stringify'](_0x3ef405)),_0x372604(_0x3ef405);})[_0x1f5996(0x75)](function(_0x25dba6){const _0x533ea5=_0x1f5996;logger['error'](_0x533ea5(0x71),_0x25dba6[_0x533ea5(0x7b)],_0x4248b6),_0x1805f9(_0x1fabca[_0x533ea5(0x6b)](0x1f4,_0x25dba6[_0x533ea5(0x7b)]));});});};
\ No newline at end of file
+const a387_0x4b99=['attributes','catch','message','../../config/logger','error','debug','lodash','info','include','map','stringify','then','where','VtigerAccount','findOne','ShowVtigerAccount','model','limit','raw','rpc','../../mysqldb','GetVtigerAccount','findAll','options'];(function(_0x13206a,_0x4ac0e6){const _0x4b994e=function(_0x18f174){while(--_0x18f174){_0x13206a['push'](_0x13206a['shift']());}};_0x4b994e(++_0x4ac0e6);}(a387_0x4b99,0xb7));const a387_0x18f1=function(_0x13206a,_0x4ac0e6){_0x13206a=_0x13206a-0x113;let _0x4b994e=a387_0x4b99[_0x13206a];return _0x4b994e;};const a387_0x466ae5=a387_0x18f1;'use strict';const _=require(a387_0x466ae5(0x122)),db=require(a387_0x466ae5(0x118))['db'],logger=require(a387_0x466ae5(0x11f))(a387_0x466ae5(0x117));exports['GetVtigerAccount']=function(_0xcee2e3){const _0x5835bc=this;return new Promise(function(_0x144c7e,_0x1954c1){const _0x21dbc2=a387_0x18f1;return db[_0x21dbc2(0x129)][_0x21dbc2(0x11a)]({'raw':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3['options'][_0x21dbc2(0x116)]===undefined?!![]:![]:!![],'where':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3[_0x21dbc2(0x11b)][_0x21dbc2(0x128)]||null:null,'attributes':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3[_0x21dbc2(0x11b)]['attributes']||null:null,'limit':_0xcee2e3['options']?_0xcee2e3[_0x21dbc2(0x11b)][_0x21dbc2(0x115)]||null:null,'include':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3[_0x21dbc2(0x11b)]['include']?_[_0x21dbc2(0x125)](_0xcee2e3['options'][_0x21dbc2(0x124)],function(_0x4496f8){const _0xe28904=_0x21dbc2;return{'model':db[_0x4496f8['model']],'as':_0x4496f8['as'],'attributes':_0x4496f8['attributes'],'include':_0x4496f8[_0xe28904(0x124)]?_[_0xe28904(0x125)](_0x4496f8['include'],function(_0x367fea){const _0x34bb3=_0xe28904;return{'model':db[_0x367fea[_0x34bb3(0x114)]],'as':_0x367fea['as'],'attributes':_0x367fea['attributes'],'include':_0x367fea['include']?_['map'](_0x367fea[_0x34bb3(0x124)],function(_0x1606f2){const _0x565d46=_0x34bb3;return{'model':db[_0x1606f2['model']],'as':_0x1606f2['as'],'attributes':_0x1606f2[_0x565d46(0x11c)]};}):[]};}):[]};}):[]:[]})[_0x21dbc2(0x127)](function(_0x1a6844){const _0x4f2557=_0x21dbc2;logger[_0x4f2557(0x123)](_0x4f2557(0x119),_0xcee2e3),logger[_0x4f2557(0x121)](_0x4f2557(0x119),_0xcee2e3,JSON[_0x4f2557(0x126)](_0x1a6844)),_0x144c7e(_0x1a6844);})[_0x21dbc2(0x11d)](function(_0x40e5b8){const _0x2b52c9=_0x21dbc2;logger[_0x2b52c9(0x120)](_0x2b52c9(0x119),_0x40e5b8[_0x2b52c9(0x11e)],_0xcee2e3),_0x1954c1(_0x5835bc[_0x2b52c9(0x120)](0x1f4,_0x40e5b8[_0x2b52c9(0x11e)]));});});},exports['ShowVtigerAccount']=function(_0x3c78d1){const _0x34a648=this;return new Promise(function(_0x3476c1,_0x28eb76){const _0x210ca9=a387_0x18f1;return db[_0x210ca9(0x129)][_0x210ca9(0x12a)]({'raw':_0x3c78d1[_0x210ca9(0x11b)]?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x116)]===undefined?!![]:![]:!![],'where':_0x3c78d1['options']?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x128)]||null:null,'attributes':_0x3c78d1[_0x210ca9(0x11b)]?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x11c)]||null:null,'include':_0x3c78d1[_0x210ca9(0x11b)]?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x124)]?_[_0x210ca9(0x125)](_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x124)],function(_0x2b58dc){const _0x5124e8=_0x210ca9;return{'model':db[_0x2b58dc['model']],'as':_0x2b58dc['as'],'attributes':_0x2b58dc[_0x5124e8(0x11c)],'include':_0x2b58dc[_0x5124e8(0x124)]?_['map'](_0x2b58dc[_0x5124e8(0x124)],function(_0x13df0f){const _0x1a24bc=_0x5124e8;return{'model':db[_0x13df0f[_0x1a24bc(0x114)]],'as':_0x13df0f['as'],'attributes':_0x13df0f['attributes'],'include':_0x13df0f[_0x1a24bc(0x124)]?_[_0x1a24bc(0x125)](_0x13df0f[_0x1a24bc(0x124)],function(_0x228e08){const _0x392fd0=_0x1a24bc;return{'model':db[_0x228e08[_0x392fd0(0x114)]],'as':_0x228e08['as'],'attributes':_0x228e08['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2b5a8e){const _0x2df7cd=_0x210ca9;logger['info']('ShowVtigerAccount',_0x3c78d1),logger[_0x2df7cd(0x121)](_0x2df7cd(0x113),_0x3c78d1,JSON['stringify'](_0x2b5a8e)),_0x3476c1(_0x2b5a8e);})[_0x210ca9(0x11d)](function(_0x6805d1){const _0x38e506=_0x210ca9;logger[_0x38e506(0x120)](_0x38e506(0x113),_0x6805d1['message'],_0x3c78d1),_0x28eb76(_0x34a648[_0x38e506(0x120)](0x1f4,_0x6805d1[_0x38e506(0x11e)]));});});};
\ No newline at end of file