Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / intDynamics365Account / intDynamics365Account.rpc.js
index 167f3f4..ad574e7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf846=['Dynamics365Account,\x20%s,\x20%s,\x20%s','request\x20sent','error','message','result','catch','GetDynamics365Account','Dynamics365Account','findAll','raw','options','where','attributes','limit','include','map','model','debug','ShowDynamics365Account','stringify','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','Dynamics365Account,\x20%s,\x20%s'];(function(_0x5884d8,_0x2ec185){var _0x2f6b76=function(_0x512dd1){while(--_0x512dd1){_0x5884d8['push'](_0x5884d8['shift']());}};_0x2f6b76(++_0x2ec185);}(_0xf846,0x110));var _0x6f84=function(_0x27d468,_0x1e2921){_0x27d468=_0x27d468-0x0;var _0x31b4f0=_0xf846[_0x27d468];return _0x31b4f0;};'use strict';var _=require(_0x6f84('0x0'));var util=require(_0x6f84('0x1'));var moment=require('moment');var BPromise=require(_0x6f84('0x2'));var rs=require(_0x6f84('0x3'));var fs=require('fs');var Redis=require(_0x6f84('0x4'));var db=require(_0x6f84('0x5'))['db'];var utils=require(_0x6f84('0x6'));var logger=require(_0x6f84('0x7'))('rpc');var config=require(_0x6f84('0x8'));var jayson=require(_0x6f84('0x9'));var client=jayson[_0x6f84('0xa')][_0x6f84('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1b7c1f,_0x4b9d1f,_0x4af50d){return new BPromise(function(_0x32292e,_0x436c75){return client[_0x6f84('0xc')](_0x1b7c1f,_0x4af50d)[_0x6f84('0xd')](function(_0x3d43d4){logger[_0x6f84('0xe')](_0x6f84('0xf'),_0x4b9d1f,'request\x20sent');logger['debug'](_0x6f84('0x10'),_0x4b9d1f,_0x6f84('0x11'),JSON['stringify'](_0x3d43d4));if(_0x3d43d4[_0x6f84('0x12')]){if(_0x3d43d4[_0x6f84('0x12')]['code']===0x1f4){logger[_0x6f84('0x12')](_0x6f84('0xf'),_0x4b9d1f,_0x3d43d4[_0x6f84('0x12')][_0x6f84('0x13')]);return _0x436c75(_0x3d43d4[_0x6f84('0x12')][_0x6f84('0x13')]);}logger[_0x6f84('0x12')](_0x6f84('0xf'),_0x4b9d1f,_0x3d43d4[_0x6f84('0x12')][_0x6f84('0x13')]);return _0x32292e(_0x3d43d4[_0x6f84('0x12')][_0x6f84('0x13')]);}else{logger['info'](_0x6f84('0xf'),_0x4b9d1f,_0x6f84('0x11'));_0x32292e(_0x3d43d4[_0x6f84('0x14')]['message']);}})[_0x6f84('0x15')](function(_0x1bd3b7){logger[_0x6f84('0x12')](_0x6f84('0xf'),_0x4b9d1f,_0x1bd3b7);_0x436c75(_0x1bd3b7);});});}exports[_0x6f84('0x16')]=function(_0x5bea20){var _0x39ae15=this;return new Promise(function(_0x1c285a,_0x5129e1){return db[_0x6f84('0x17')][_0x6f84('0x18')]({'raw':_0x5bea20['options']?_0x5bea20['options'][_0x6f84('0x19')]===undefined?!![]:![]:!![],'where':_0x5bea20[_0x6f84('0x1a')]?_0x5bea20[_0x6f84('0x1a')][_0x6f84('0x1b')]||null:null,'attributes':_0x5bea20[_0x6f84('0x1a')]?_0x5bea20['options'][_0x6f84('0x1c')]||null:null,'limit':_0x5bea20[_0x6f84('0x1a')]?_0x5bea20[_0x6f84('0x1a')][_0x6f84('0x1d')]||null:null,'include':_0x5bea20[_0x6f84('0x1a')]?_0x5bea20[_0x6f84('0x1a')][_0x6f84('0x1e')]?_[_0x6f84('0x1f')](_0x5bea20[_0x6f84('0x1a')][_0x6f84('0x1e')],function(_0x58112f){return{'model':db[_0x58112f['model']],'as':_0x58112f['as'],'attributes':_0x58112f[_0x6f84('0x1c')],'include':_0x58112f[_0x6f84('0x1e')]?_['map'](_0x58112f[_0x6f84('0x1e')],function(_0xebaef2){return{'model':db[_0xebaef2[_0x6f84('0x20')]],'as':_0xebaef2['as'],'attributes':_0xebaef2['attributes'],'include':_0xebaef2[_0x6f84('0x1e')]?_[_0x6f84('0x1f')](_0xebaef2['include'],function(_0x4ad6b6){return{'model':db[_0x4ad6b6[_0x6f84('0x20')]],'as':_0x4ad6b6['as'],'attributes':_0x4ad6b6['attributes']};}):[]};}):[]};}):[]:[]})[_0x6f84('0xd')](function(_0x2c160a){logger[_0x6f84('0xe')](_0x6f84('0x16'),_0x5bea20);logger[_0x6f84('0x21')](_0x6f84('0x16'),_0x5bea20,JSON['stringify'](_0x2c160a));_0x1c285a(_0x2c160a);})[_0x6f84('0x15')](function(_0x6a02a){logger[_0x6f84('0x12')]('GetDynamics365Account',_0x6a02a['message'],_0x5bea20);_0x5129e1(_0x39ae15[_0x6f84('0x12')](0x1f4,_0x6a02a[_0x6f84('0x13')]));});});};exports['ShowDynamics365Account']=function(_0x574a80){var _0x3122de=this;return new Promise(function(_0x7cf027,_0x4543fe){return db[_0x6f84('0x17')]['find']({'raw':_0x574a80[_0x6f84('0x1a')]?_0x574a80[_0x6f84('0x1a')]['raw']===undefined?!![]:![]:!![],'where':_0x574a80['options']?_0x574a80[_0x6f84('0x1a')]['where']||null:null,'attributes':_0x574a80[_0x6f84('0x1a')]?_0x574a80['options'][_0x6f84('0x1c')]||null:null,'include':_0x574a80['options']?_0x574a80[_0x6f84('0x1a')]['include']?_['map'](_0x574a80[_0x6f84('0x1a')][_0x6f84('0x1e')],function(_0xea6dfd){return{'model':db[_0xea6dfd[_0x6f84('0x20')]],'as':_0xea6dfd['as'],'attributes':_0xea6dfd['attributes'],'include':_0xea6dfd[_0x6f84('0x1e')]?_[_0x6f84('0x1f')](_0xea6dfd[_0x6f84('0x1e')],function(_0x211b83){return{'model':db[_0x211b83[_0x6f84('0x20')]],'as':_0x211b83['as'],'attributes':_0x211b83[_0x6f84('0x1c')],'include':_0x211b83[_0x6f84('0x1e')]?_[_0x6f84('0x1f')](_0x211b83[_0x6f84('0x1e')],function(_0x2db49c){return{'model':db[_0x2db49c[_0x6f84('0x20')]],'as':_0x2db49c['as'],'attributes':_0x2db49c['attributes']};}):[]};}):[]};}):[]:[]})[_0x6f84('0xd')](function(_0x9873bd){logger[_0x6f84('0xe')](_0x6f84('0x22'),_0x574a80);logger['debug'](_0x6f84('0x22'),_0x574a80,JSON[_0x6f84('0x23')](_0x9873bd));_0x7cf027(_0x9873bd);})[_0x6f84('0x15')](function(_0x340935){logger[_0x6f84('0x12')]('ShowDynamics365Account',_0x340935[_0x6f84('0x13')],_0x574a80);_0x4543fe(_0x3122de['error'](0x1f4,_0x340935[_0x6f84('0x13')]));});});};
\ No newline at end of file
+var _0x6129=['include','model','map','GetDynamics365Account','ShowDynamics365Account','find','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','Dynamics365Account,\x20%s,\x20%s','request\x20sent','debug','Dynamics365Account,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','Dynamics365Account','findAll','options','raw','where','attributes','limit'];(function(_0x354421,_0x2a354d){var _0x2fd01c=function(_0x34e307){while(--_0x34e307){_0x354421['push'](_0x354421['shift']());}};_0x2fd01c(++_0x2a354d);}(_0x6129,0x1a8));var _0x9612=function(_0x140c64,_0x4c4056){_0x140c64=_0x140c64-0x0;var _0x3f0c30=_0x6129[_0x140c64];return _0x3f0c30;};'use strict';var _=require(_0x9612('0x0'));var util=require(_0x9612('0x1'));var moment=require(_0x9612('0x2'));var BPromise=require('bluebird');var rs=require(_0x9612('0x3'));var fs=require('fs');var Redis=require(_0x9612('0x4'));var db=require(_0x9612('0x5'))['db'];var utils=require(_0x9612('0x6'));var logger=require(_0x9612('0x7'))(_0x9612('0x8'));var config=require(_0x9612('0x9'));var jayson=require(_0x9612('0xa'));var client=jayson[_0x9612('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x128637,_0x2ad0b4,_0x2f4748){return new BPromise(function(_0x1fa247,_0x5340eb){return client[_0x9612('0xc')](_0x128637,_0x2f4748)[_0x9612('0xd')](function(_0x2ed581){logger[_0x9612('0xe')](_0x9612('0xf'),_0x2ad0b4,_0x9612('0x10'));logger[_0x9612('0x11')](_0x9612('0x12'),_0x2ad0b4,'request\x20sent',JSON[_0x9612('0x13')](_0x2ed581));if(_0x2ed581['error']){if(_0x2ed581[_0x9612('0x14')][_0x9612('0x15')]===0x1f4){logger['error'](_0x9612('0xf'),_0x2ad0b4,_0x2ed581['error'][_0x9612('0x16')]);return _0x5340eb(_0x2ed581[_0x9612('0x14')][_0x9612('0x16')]);}logger[_0x9612('0x14')](_0x9612('0xf'),_0x2ad0b4,_0x2ed581['error'][_0x9612('0x16')]);return _0x1fa247(_0x2ed581['error'][_0x9612('0x16')]);}else{logger[_0x9612('0xe')](_0x9612('0xf'),_0x2ad0b4,'request\x20sent');_0x1fa247(_0x2ed581[_0x9612('0x17')]['message']);}})[_0x9612('0x18')](function(_0x1c9538){logger[_0x9612('0x14')](_0x9612('0xf'),_0x2ad0b4,_0x1c9538);_0x5340eb(_0x1c9538);});});}exports['GetDynamics365Account']=function(_0x1d5070){var _0x174c64=this;return new Promise(function(_0x3c2c92,_0xab3301){return db[_0x9612('0x19')][_0x9612('0x1a')]({'raw':_0x1d5070[_0x9612('0x1b')]?_0x1d5070['options'][_0x9612('0x1c')]===undefined?!![]:![]:!![],'where':_0x1d5070[_0x9612('0x1b')]?_0x1d5070['options'][_0x9612('0x1d')]||null:null,'attributes':_0x1d5070[_0x9612('0x1b')]?_0x1d5070[_0x9612('0x1b')][_0x9612('0x1e')]||null:null,'limit':_0x1d5070[_0x9612('0x1b')]?_0x1d5070['options'][_0x9612('0x1f')]||null:null,'include':_0x1d5070[_0x9612('0x1b')]?_0x1d5070[_0x9612('0x1b')][_0x9612('0x20')]?_['map'](_0x1d5070[_0x9612('0x1b')][_0x9612('0x20')],function(_0x1c38aa){return{'model':db[_0x1c38aa[_0x9612('0x21')]],'as':_0x1c38aa['as'],'attributes':_0x1c38aa[_0x9612('0x1e')],'include':_0x1c38aa[_0x9612('0x20')]?_[_0x9612('0x22')](_0x1c38aa[_0x9612('0x20')],function(_0x179c78){return{'model':db[_0x179c78['model']],'as':_0x179c78['as'],'attributes':_0x179c78[_0x9612('0x1e')],'include':_0x179c78[_0x9612('0x20')]?_['map'](_0x179c78[_0x9612('0x20')],function(_0x51c924){return{'model':db[_0x51c924['model']],'as':_0x51c924['as'],'attributes':_0x51c924[_0x9612('0x1e')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2f47d7){logger['info']('GetDynamics365Account',_0x1d5070);logger[_0x9612('0x11')](_0x9612('0x23'),_0x1d5070,JSON[_0x9612('0x13')](_0x2f47d7));_0x3c2c92(_0x2f47d7);})[_0x9612('0x18')](function(_0x5224c6){logger['error']('GetDynamics365Account',_0x5224c6[_0x9612('0x16')],_0x1d5070);_0xab3301(_0x174c64['error'](0x1f4,_0x5224c6['message']));});});};exports[_0x9612('0x24')]=function(_0x52f073){var _0x54e6dd=this;return new Promise(function(_0x4b95e2,_0x3384ae){return db['Dynamics365Account'][_0x9612('0x25')]({'raw':_0x52f073[_0x9612('0x1b')]?_0x52f073[_0x9612('0x1b')][_0x9612('0x1c')]===undefined?!![]:![]:!![],'where':_0x52f073[_0x9612('0x1b')]?_0x52f073[_0x9612('0x1b')][_0x9612('0x1d')]||null:null,'attributes':_0x52f073[_0x9612('0x1b')]?_0x52f073['options'][_0x9612('0x1e')]||null:null,'include':_0x52f073[_0x9612('0x1b')]?_0x52f073[_0x9612('0x1b')][_0x9612('0x20')]?_[_0x9612('0x22')](_0x52f073[_0x9612('0x1b')]['include'],function(_0x44dd2b){return{'model':db[_0x44dd2b['model']],'as':_0x44dd2b['as'],'attributes':_0x44dd2b[_0x9612('0x1e')],'include':_0x44dd2b[_0x9612('0x20')]?_['map'](_0x44dd2b['include'],function(_0x425f9a){return{'model':db[_0x425f9a[_0x9612('0x21')]],'as':_0x425f9a['as'],'attributes':_0x425f9a[_0x9612('0x1e')],'include':_0x425f9a[_0x9612('0x20')]?_['map'](_0x425f9a[_0x9612('0x20')],function(_0x2dd830){return{'model':db[_0x2dd830['model']],'as':_0x2dd830['as'],'attributes':_0x2dd830['attributes']};}):[]};}):[]};}):[]:[]})[_0x9612('0xd')](function(_0xe94430){logger[_0x9612('0xe')](_0x9612('0x24'),_0x52f073);logger[_0x9612('0x11')](_0x9612('0x24'),_0x52f073,JSON[_0x9612('0x13')](_0xe94430));_0x4b95e2(_0xe94430);})['catch'](function(_0x57a6a6){logger[_0x9612('0x14')](_0x9612('0x24'),_0x57a6a6['message'],_0x52f073);_0x3384ae(_0x54e6dd[_0x9612('0x14')](0x1f4,_0x57a6a6[_0x9612('0x16')]));});});};
\ No newline at end of file