Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index f6167c0..b806490 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1f0b=['../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','SugarcrmConfiguration,\x20%s,\x20%s','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x25b8da,_0x26bca9){var _0x3d1676=function(_0x2e09bb){while(--_0x2e09bb){_0x25b8da['push'](_0x25b8da['shift']());}};_0x3d1676(++_0x26bca9);}(_0x1f0b,0x156));var _0xb1f0=function(_0xc93161,_0x347e90){_0xc93161=_0xc93161-0x0;var _0x13c4f0=_0x1f0b[_0xc93161];return _0x13c4f0;};'use strict';var _=require(_0xb1f0('0x0'));var util=require(_0xb1f0('0x1'));var moment=require(_0xb1f0('0x2'));var BPromise=require(_0xb1f0('0x3'));var rs=require(_0xb1f0('0x4'));var fs=require('fs');var Redis=require(_0xb1f0('0x5'));var db=require(_0xb1f0('0x6'))['db'];var utils=require(_0xb1f0('0x7'));var logger=require(_0xb1f0('0x8'))('rpc');var config=require(_0xb1f0('0x9'));var jayson=require(_0xb1f0('0xa'));var client=jayson[_0xb1f0('0xb')][_0xb1f0('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x400b98,_0xc280c5,_0x34483a){return new BPromise(function(_0x553a05,_0x4e1142){return client[_0xb1f0('0xd')](_0x400b98,_0x34483a)[_0xb1f0('0xe')](function(_0x2ef68e){logger[_0xb1f0('0xf')](_0xb1f0('0x10'),_0xc280c5,'request\x20sent');logger['debug'](_0xb1f0('0x11'),_0xc280c5,'request\x20sent',JSON[_0xb1f0('0x12')](_0x2ef68e));if(_0x2ef68e[_0xb1f0('0x13')]){if(_0x2ef68e[_0xb1f0('0x13')][_0xb1f0('0x14')]===0x1f4){logger['error'](_0xb1f0('0x10'),_0xc280c5,_0x2ef68e[_0xb1f0('0x13')]['message']);return _0x4e1142(_0x2ef68e['error'][_0xb1f0('0x15')]);}logger['error'](_0xb1f0('0x10'),_0xc280c5,_0x2ef68e[_0xb1f0('0x13')]['message']);return _0x553a05(_0x2ef68e[_0xb1f0('0x13')][_0xb1f0('0x15')]);}else{logger[_0xb1f0('0xf')]('SugarcrmConfiguration,\x20%s,\x20%s',_0xc280c5,_0xb1f0('0x16'));_0x553a05(_0x2ef68e[_0xb1f0('0x17')][_0xb1f0('0x15')]);}})[_0xb1f0('0x18')](function(_0xa9fc73){logger[_0xb1f0('0x13')]('SugarcrmConfiguration,\x20%s,\x20%s',_0xc280c5,_0xa9fc73);_0x4e1142(_0xa9fc73);});});}
\ No newline at end of file
+var _0x3385=['catch','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','request','then','info','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','message','result'];(function(_0x421263,_0x18187d){var _0x34e4b5=function(_0x4e7978){while(--_0x4e7978){_0x421263['push'](_0x421263['shift']());}};_0x34e4b5(++_0x18187d);}(_0x3385,0x166));var _0x5338=function(_0x472ee7,_0x302242){_0x472ee7=_0x472ee7-0x0;var _0x6aa3f3=_0x3385[_0x472ee7];return _0x6aa3f3;};'use strict';var _=require('lodash');var util=require(_0x5338('0x0'));var moment=require(_0x5338('0x1'));var BPromise=require(_0x5338('0x2'));var rs=require(_0x5338('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x5338('0x4'))['db'];var utils=require(_0x5338('0x5'));var logger=require(_0x5338('0x6'))(_0x5338('0x7'));var config=require(_0x5338('0x8'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x5ce459,_0x5bd403,_0x2072dd){return new BPromise(function(_0x364ca1,_0x347cac){return client[_0x5338('0x9')](_0x5ce459,_0x2072dd)[_0x5338('0xa')](function(_0x2231fe){logger[_0x5338('0xb')](_0x5338('0xc'),_0x5bd403,_0x5338('0xd'));logger[_0x5338('0xe')](_0x5338('0xf'),_0x5bd403,_0x5338('0xd'),JSON[_0x5338('0x10')](_0x2231fe));if(_0x2231fe[_0x5338('0x11')]){if(_0x2231fe[_0x5338('0x11')]['code']===0x1f4){logger[_0x5338('0x11')](_0x5338('0xc'),_0x5bd403,_0x2231fe[_0x5338('0x11')]['message']);return _0x347cac(_0x2231fe['error'][_0x5338('0x12')]);}logger[_0x5338('0x11')](_0x5338('0xc'),_0x5bd403,_0x2231fe[_0x5338('0x11')][_0x5338('0x12')]);return _0x364ca1(_0x2231fe['error'][_0x5338('0x12')]);}else{logger[_0x5338('0xb')](_0x5338('0xc'),_0x5bd403,_0x5338('0xd'));_0x364ca1(_0x2231fe[_0x5338('0x13')][_0x5338('0x12')]);}})[_0x5338('0x14')](function(_0xc9d987){logger['error'](_0x5338('0xc'),_0x5bd403,_0xc9d987);_0x347cac(_0xc9d987);});});}
\ No newline at end of file