Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index 98993e0..3997aa2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x011e=['catch','lodash','util','moment','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','error','code','message'];(function(_0x3e8dd2,_0x5d4c93){var _0x1ec0c4=function(_0xd59e93){while(--_0xd59e93){_0x3e8dd2['push'](_0x3e8dd2['shift']());}};_0x1ec0c4(++_0x5d4c93);}(_0x011e,0x85));var _0xe011=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x011e[_0x501510];return _0x1e6ee5;};'use strict';var _=require(_0xe011('0x0'));var util=require(_0xe011('0x1'));var moment=require(_0xe011('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xe011('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0xe011('0x4'));var logger=require(_0xe011('0x5'))(_0xe011('0x6'));var config=require(_0xe011('0x7'));var jayson=require(_0xe011('0x8'));var client=jayson[_0xe011('0x9')][_0xe011('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5465df,_0x41cbed,_0x31210f){return new BPromise(function(_0x1ec29a,_0x254834){return client[_0xe011('0xb')](_0x5465df,_0x31210f)[_0xe011('0xc')](function(_0x20d811){logger[_0xe011('0xd')](_0xe011('0xe'),_0x41cbed,_0xe011('0xf'));logger[_0xe011('0x10')](_0xe011('0x11'),_0x41cbed,'request\x20sent',JSON['stringify'](_0x20d811));if(_0x20d811['error']){if(_0x20d811[_0xe011('0x12')][_0xe011('0x13')]===0x1f4){logger[_0xe011('0x12')](_0xe011('0xe'),_0x41cbed,_0x20d811[_0xe011('0x12')]['message']);return _0x254834(_0x20d811['error'][_0xe011('0x14')]);}logger[_0xe011('0x12')](_0xe011('0xe'),_0x41cbed,_0x20d811[_0xe011('0x12')][_0xe011('0x14')]);return _0x1ec29a(_0x20d811[_0xe011('0x12')][_0xe011('0x14')]);}else{logger[_0xe011('0xd')](_0xe011('0xe'),_0x41cbed,_0xe011('0xf'));_0x1ec29a(_0x20d811['result'][_0xe011('0x14')]);}})[_0xe011('0x15')](function(_0x4aaa28){logger['error'](_0xe011('0xe'),_0x41cbed,_0x4aaa28);_0x254834(_0x4aaa28);});});}
\ No newline at end of file
+var _0x51f6=['request','then','info','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','moment','bluebird','randomstring','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','http'];(function(_0x18afca,_0x4219d9){var _0x11603f=function(_0x21d5d1){while(--_0x21d5d1){_0x18afca['push'](_0x18afca['shift']());}};_0x11603f(++_0x4219d9);}(_0x51f6,0x127));var _0x651f=function(_0x226f3d,_0x57959d){_0x226f3d=_0x226f3d-0x0;var _0x1727fc=_0x51f6[_0x226f3d];return _0x1727fc;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x651f('0x0'));var BPromise=require(_0x651f('0x1'));var rs=require(_0x651f('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x651f('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x651f('0x4'))('rpc');var config=require(_0x651f('0x5'));var jayson=require(_0x651f('0x6'));var client=jayson[_0x651f('0x7')][_0x651f('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x243756,_0x44551f,_0x41e3fd){return new BPromise(function(_0x3cb422,_0x2968e4){return client[_0x651f('0x9')](_0x243756,_0x41e3fd)[_0x651f('0xa')](function(_0x518a37){logger[_0x651f('0xb')](_0x651f('0xc'),_0x44551f,_0x651f('0xd'));logger['debug']('SugarcrmConfiguration,\x20%s,\x20%s,\x20%s',_0x44551f,_0x651f('0xd'),JSON[_0x651f('0xe')](_0x518a37));if(_0x518a37['error']){if(_0x518a37[_0x651f('0xf')][_0x651f('0x10')]===0x1f4){logger[_0x651f('0xf')](_0x651f('0xc'),_0x44551f,_0x518a37[_0x651f('0xf')][_0x651f('0x11')]);return _0x2968e4(_0x518a37[_0x651f('0xf')]['message']);}logger[_0x651f('0xf')](_0x651f('0xc'),_0x44551f,_0x518a37[_0x651f('0xf')][_0x651f('0x11')]);return _0x3cb422(_0x518a37['error'][_0x651f('0x11')]);}else{logger['info'](_0x651f('0xc'),_0x44551f,_0x651f('0xd'));_0x3cb422(_0x518a37['result'][_0x651f('0x11')]);}})[_0x651f('0x12')](function(_0xcf3699){logger[_0x651f('0xf')](_0x651f('0xc'),_0x44551f,_0xcf3699);_0x2968e4(_0xcf3699);});});}
\ No newline at end of file