Built motion from commit (unavailable).|2.0.76
[motion2.git] / server / api / intZohoAccount / intZohoAccount.rpc.js
index 336521f..92e800d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7b96=['jayson/promise','client','http','request','then','info','ZohoAccount,\x20%s,\x20%s','request\x20sent','debug','ZohoAccount,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','GetZohoAccount','ZohoAccount','findAll','options','raw','attributes','limit','include','map','model','ShowZohoAccount','find','where','stringify','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment'];(function(_0x1a31f9,_0x2619ec){var _0x245448=function(_0x18ba77){while(--_0x18ba77){_0x1a31f9['push'](_0x1a31f9['shift']());}};_0x245448(++_0x2619ec);}(_0x7b96,0x92));var _0x67b9=function(_0x2cf4b9,_0x38a710){_0x2cf4b9=_0x2cf4b9-0x0;var _0x2bc7c8=_0x7b96[_0x2cf4b9];return _0x2bc7c8;};'use strict';var _=require(_0x67b9('0x0'));var util=require(_0x67b9('0x1'));var moment=require(_0x67b9('0x2'));var BPromise=require(_0x67b9('0x3'));var rs=require(_0x67b9('0x4'));var fs=require('fs');var db=require(_0x67b9('0x5'))['db'];var utils=require(_0x67b9('0x6'));var logger=require(_0x67b9('0x7'))(_0x67b9('0x8'));var config=require(_0x67b9('0x9'));var jayson=require(_0x67b9('0xa'));var client=jayson[_0x67b9('0xb')][_0x67b9('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x8cce65,_0x1b2e74,_0x5d151e){return new BPromise(function(_0x53f895,_0x52f2c9){return client[_0x67b9('0xd')](_0x8cce65,_0x5d151e)[_0x67b9('0xe')](function(_0xdd3cec){logger[_0x67b9('0xf')](_0x67b9('0x10'),_0x1b2e74,_0x67b9('0x11'));logger[_0x67b9('0x12')](_0x67b9('0x13'),_0x1b2e74,_0x67b9('0x11'),JSON['stringify'](_0xdd3cec));if(_0xdd3cec[_0x67b9('0x14')]){if(_0xdd3cec['error'][_0x67b9('0x15')]===0x1f4){logger[_0x67b9('0x14')]('ZohoAccount,\x20%s,\x20%s',_0x1b2e74,_0xdd3cec[_0x67b9('0x14')][_0x67b9('0x16')]);return _0x52f2c9(_0xdd3cec[_0x67b9('0x14')][_0x67b9('0x16')]);}logger[_0x67b9('0x14')]('ZohoAccount,\x20%s,\x20%s',_0x1b2e74,_0xdd3cec[_0x67b9('0x14')][_0x67b9('0x16')]);return _0x53f895(_0xdd3cec[_0x67b9('0x14')][_0x67b9('0x16')]);}else{logger[_0x67b9('0xf')]('ZohoAccount,\x20%s,\x20%s',_0x1b2e74,'request\x20sent');_0x53f895(_0xdd3cec[_0x67b9('0x17')][_0x67b9('0x16')]);}})[_0x67b9('0x18')](function(_0x482843){logger['error']('ZohoAccount,\x20%s,\x20%s',_0x1b2e74,_0x482843);_0x52f2c9(_0x482843);});});}exports[_0x67b9('0x19')]=function(_0xffb1a6){var _0x119b92=this;return new Promise(function(_0x1884fb,_0x3e2b60){return db[_0x67b9('0x1a')][_0x67b9('0x1b')]({'raw':_0xffb1a6[_0x67b9('0x1c')]?_0xffb1a6[_0x67b9('0x1c')][_0x67b9('0x1d')]===undefined?!![]:![]:!![],'where':_0xffb1a6[_0x67b9('0x1c')]?_0xffb1a6['options']['where']||null:null,'attributes':_0xffb1a6[_0x67b9('0x1c')]?_0xffb1a6[_0x67b9('0x1c')][_0x67b9('0x1e')]||null:null,'limit':_0xffb1a6[_0x67b9('0x1c')]?_0xffb1a6[_0x67b9('0x1c')][_0x67b9('0x1f')]||null:null,'include':_0xffb1a6[_0x67b9('0x1c')]?_0xffb1a6['options'][_0x67b9('0x20')]?_[_0x67b9('0x21')](_0xffb1a6['options'][_0x67b9('0x20')],function(_0x433e77){return{'model':db[_0x433e77[_0x67b9('0x22')]],'as':_0x433e77['as'],'attributes':_0x433e77[_0x67b9('0x1e')],'include':_0x433e77[_0x67b9('0x20')]?_[_0x67b9('0x21')](_0x433e77['include'],function(_0x1675dd){return{'model':db[_0x1675dd[_0x67b9('0x22')]],'as':_0x1675dd['as'],'attributes':_0x1675dd[_0x67b9('0x1e')],'include':_0x1675dd['include']?_[_0x67b9('0x21')](_0x1675dd[_0x67b9('0x20')],function(_0x5bb3bf){return{'model':db[_0x5bb3bf[_0x67b9('0x22')]],'as':_0x5bb3bf['as'],'attributes':_0x5bb3bf[_0x67b9('0x1e')]};}):[]};}):[]};}):[]:[]})[_0x67b9('0xe')](function(_0x394254){logger[_0x67b9('0xf')](_0x67b9('0x19'),_0xffb1a6);logger[_0x67b9('0x12')](_0x67b9('0x19'),_0xffb1a6,JSON['stringify'](_0x394254));_0x1884fb(_0x394254);})[_0x67b9('0x18')](function(_0x379ee8){logger[_0x67b9('0x14')]('GetZohoAccount',_0x379ee8[_0x67b9('0x16')],_0xffb1a6);_0x3e2b60(_0x119b92[_0x67b9('0x14')](0x1f4,_0x379ee8[_0x67b9('0x16')]));});});};exports[_0x67b9('0x23')]=function(_0x25c3e8){var _0x19b535=this;return new Promise(function(_0x25c979,_0x3c0b62){return db['ZohoAccount'][_0x67b9('0x24')]({'raw':_0x25c3e8[_0x67b9('0x1c')]?_0x25c3e8['options'][_0x67b9('0x1d')]===undefined?!![]:![]:!![],'where':_0x25c3e8[_0x67b9('0x1c')]?_0x25c3e8[_0x67b9('0x1c')][_0x67b9('0x25')]||null:null,'attributes':_0x25c3e8[_0x67b9('0x1c')]?_0x25c3e8[_0x67b9('0x1c')][_0x67b9('0x1e')]||null:null,'include':_0x25c3e8[_0x67b9('0x1c')]?_0x25c3e8[_0x67b9('0x1c')][_0x67b9('0x20')]?_['map'](_0x25c3e8[_0x67b9('0x1c')][_0x67b9('0x20')],function(_0x2196e7){return{'model':db[_0x2196e7[_0x67b9('0x22')]],'as':_0x2196e7['as'],'attributes':_0x2196e7[_0x67b9('0x1e')],'include':_0x2196e7[_0x67b9('0x20')]?_[_0x67b9('0x21')](_0x2196e7[_0x67b9('0x20')],function(_0x3219a3){return{'model':db[_0x3219a3['model']],'as':_0x3219a3['as'],'attributes':_0x3219a3[_0x67b9('0x1e')],'include':_0x3219a3['include']?_[_0x67b9('0x21')](_0x3219a3[_0x67b9('0x20')],function(_0x1e75cd){return{'model':db[_0x1e75cd[_0x67b9('0x22')]],'as':_0x1e75cd['as'],'attributes':_0x1e75cd[_0x67b9('0x1e')]};}):[]};}):[]};}):[]:[]})[_0x67b9('0xe')](function(_0x129354){logger['info']('ShowZohoAccount',_0x25c3e8);logger[_0x67b9('0x12')]('ShowZohoAccount',_0x25c3e8,JSON[_0x67b9('0x26')](_0x129354));_0x25c979(_0x129354);})[_0x67b9('0x18')](function(_0x9cda7d){logger['error'](_0x67b9('0x23'),_0x9cda7d[_0x67b9('0x16')],_0x25c3e8);_0x3c0b62(_0x19b535[_0x67b9('0x14')](0x1f4,_0x9cda7d['message']));});});};
\ No newline at end of file
+var _0xc5cf=['then','info','request\x20sent','debug','ZohoAccount,\x20%s,\x20%s,\x20%s','stringify','error','code','ZohoAccount,\x20%s,\x20%s','message','GetZohoAccount','ZohoAccount','findAll','raw','options','attributes','limit','include','map','model','catch','ShowZohoAccount','find','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request'];(function(_0x5b561d,_0x422b7c){var _0x431060=function(_0x401409){while(--_0x401409){_0x5b561d['push'](_0x5b561d['shift']());}};_0x431060(++_0x422b7c);}(_0xc5cf,0x15b));var _0xfc5c=function(_0x322d57,_0x3a931a){_0x322d57=_0x322d57-0x0;var _0x216afd=_0xc5cf[_0x322d57];return _0x216afd;};'use strict';var _=require(_0xfc5c('0x0'));var util=require(_0xfc5c('0x1'));var moment=require(_0xfc5c('0x2'));var BPromise=require(_0xfc5c('0x3'));var rs=require(_0xfc5c('0x4'));var fs=require('fs');var db=require(_0xfc5c('0x5'))['db'];var utils=require(_0xfc5c('0x6'));var logger=require(_0xfc5c('0x7'))(_0xfc5c('0x8'));var config=require('../../config/environment');var jayson=require(_0xfc5c('0x9'));var client=jayson[_0xfc5c('0xa')][_0xfc5c('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x23ae81,_0x2e99e9,_0x5e2429){return new BPromise(function(_0x56a628,_0x5b53e1){return client[_0xfc5c('0xc')](_0x23ae81,_0x5e2429)[_0xfc5c('0xd')](function(_0x2d23fa){logger[_0xfc5c('0xe')]('ZohoAccount,\x20%s,\x20%s',_0x2e99e9,_0xfc5c('0xf'));logger[_0xfc5c('0x10')](_0xfc5c('0x11'),_0x2e99e9,_0xfc5c('0xf'),JSON[_0xfc5c('0x12')](_0x2d23fa));if(_0x2d23fa[_0xfc5c('0x13')]){if(_0x2d23fa[_0xfc5c('0x13')][_0xfc5c('0x14')]===0x1f4){logger[_0xfc5c('0x13')](_0xfc5c('0x15'),_0x2e99e9,_0x2d23fa[_0xfc5c('0x13')][_0xfc5c('0x16')]);return _0x5b53e1(_0x2d23fa[_0xfc5c('0x13')][_0xfc5c('0x16')]);}logger[_0xfc5c('0x13')]('ZohoAccount,\x20%s,\x20%s',_0x2e99e9,_0x2d23fa[_0xfc5c('0x13')]['message']);return _0x56a628(_0x2d23fa[_0xfc5c('0x13')][_0xfc5c('0x16')]);}else{logger[_0xfc5c('0xe')]('ZohoAccount,\x20%s,\x20%s',_0x2e99e9,_0xfc5c('0xf'));_0x56a628(_0x2d23fa['result']['message']);}})['catch'](function(_0x48cc3a){logger[_0xfc5c('0x13')]('ZohoAccount,\x20%s,\x20%s',_0x2e99e9,_0x48cc3a);_0x5b53e1(_0x48cc3a);});});}exports[_0xfc5c('0x17')]=function(_0x4e2c18){var _0x1c12e9=this;return new Promise(function(_0x3b90f4,_0x3e5f01){return db[_0xfc5c('0x18')][_0xfc5c('0x19')]({'raw':_0x4e2c18['options']?_0x4e2c18['options'][_0xfc5c('0x1a')]===undefined?!![]:![]:!![],'where':_0x4e2c18['options']?_0x4e2c18[_0xfc5c('0x1b')]['where']||null:null,'attributes':_0x4e2c18[_0xfc5c('0x1b')]?_0x4e2c18[_0xfc5c('0x1b')][_0xfc5c('0x1c')]||null:null,'limit':_0x4e2c18[_0xfc5c('0x1b')]?_0x4e2c18[_0xfc5c('0x1b')][_0xfc5c('0x1d')]||null:null,'include':_0x4e2c18[_0xfc5c('0x1b')]?_0x4e2c18[_0xfc5c('0x1b')][_0xfc5c('0x1e')]?_[_0xfc5c('0x1f')](_0x4e2c18[_0xfc5c('0x1b')][_0xfc5c('0x1e')],function(_0x354217){return{'model':db[_0x354217['model']],'as':_0x354217['as'],'attributes':_0x354217['attributes'],'include':_0x354217['include']?_[_0xfc5c('0x1f')](_0x354217['include'],function(_0x575a9b){return{'model':db[_0x575a9b[_0xfc5c('0x20')]],'as':_0x575a9b['as'],'attributes':_0x575a9b[_0xfc5c('0x1c')],'include':_0x575a9b[_0xfc5c('0x1e')]?_[_0xfc5c('0x1f')](_0x575a9b[_0xfc5c('0x1e')],function(_0x3ad3e5){return{'model':db[_0x3ad3e5[_0xfc5c('0x20')]],'as':_0x3ad3e5['as'],'attributes':_0x3ad3e5[_0xfc5c('0x1c')]};}):[]};}):[]};}):[]:[]})[_0xfc5c('0xd')](function(_0x45bad5){logger[_0xfc5c('0xe')](_0xfc5c('0x17'),_0x4e2c18);logger[_0xfc5c('0x10')](_0xfc5c('0x17'),_0x4e2c18,JSON[_0xfc5c('0x12')](_0x45bad5));_0x3b90f4(_0x45bad5);})[_0xfc5c('0x21')](function(_0x191c5d){logger[_0xfc5c('0x13')]('GetZohoAccount',_0x191c5d[_0xfc5c('0x16')],_0x4e2c18);_0x3e5f01(_0x1c12e9[_0xfc5c('0x13')](0x1f4,_0x191c5d['message']));});});};exports[_0xfc5c('0x22')]=function(_0x4829df){var _0x42cc94=this;return new Promise(function(_0xf16998,_0x1ed6d8){return db['ZohoAccount'][_0xfc5c('0x23')]({'raw':_0x4829df[_0xfc5c('0x1b')]?_0x4829df[_0xfc5c('0x1b')][_0xfc5c('0x1a')]===undefined?!![]:![]:!![],'where':_0x4829df[_0xfc5c('0x1b')]?_0x4829df['options']['where']||null:null,'attributes':_0x4829df[_0xfc5c('0x1b')]?_0x4829df['options'][_0xfc5c('0x1c')]||null:null,'include':_0x4829df['options']?_0x4829df[_0xfc5c('0x1b')][_0xfc5c('0x1e')]?_[_0xfc5c('0x1f')](_0x4829df[_0xfc5c('0x1b')][_0xfc5c('0x1e')],function(_0x1de196){return{'model':db[_0x1de196[_0xfc5c('0x20')]],'as':_0x1de196['as'],'attributes':_0x1de196[_0xfc5c('0x1c')],'include':_0x1de196[_0xfc5c('0x1e')]?_[_0xfc5c('0x1f')](_0x1de196[_0xfc5c('0x1e')],function(_0x282752){return{'model':db[_0x282752[_0xfc5c('0x20')]],'as':_0x282752['as'],'attributes':_0x282752[_0xfc5c('0x1c')],'include':_0x282752[_0xfc5c('0x1e')]?_['map'](_0x282752['include'],function(_0x45928b){return{'model':db[_0x45928b[_0xfc5c('0x20')]],'as':_0x45928b['as'],'attributes':_0x45928b['attributes']};}):[]};}):[]};}):[]:[]})[_0xfc5c('0xd')](function(_0xc973b1){logger[_0xfc5c('0xe')](_0xfc5c('0x22'),_0x4829df);logger[_0xfc5c('0x10')](_0xfc5c('0x22'),_0x4829df,JSON[_0xfc5c('0x12')](_0xc973b1));_0xf16998(_0xc973b1);})[_0xfc5c('0x21')](function(_0x59ab91){logger[_0xfc5c('0x13')](_0xfc5c('0x22'),_0x59ab91[_0xfc5c('0x16')],_0x4829df);_0x1ed6d8(_0x42cc94[_0xfc5c('0x13')](0x1f4,_0x59ab91[_0xfc5c('0x16')]));});});};
\ No newline at end of file