Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.rpc.js
index 8bbdd9d..9ed8778 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0b0e=['SugarcrmField,\x20%s,\x20%s,\x20%s','stringify','error','message','request\x20sent','result','catch','lodash','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','SugarcrmField,\x20%s,\x20%s','debug'];(function(_0x46d87a,_0x5183db){var _0x115296=function(_0x880a1c){while(--_0x880a1c){_0x46d87a['push'](_0x46d87a['shift']());}};_0x115296(++_0x5183db);}(_0x0b0e,0x187));var _0xe0b0=function(_0x4817f9,_0x4070d1){_0x4817f9=_0x4817f9-0x0;var _0x2dcfa6=_0x0b0e[_0x4817f9];return _0x2dcfa6;};'use strict';var _=require(_0xe0b0('0x0'));var util=require('util');var moment=require(_0xe0b0('0x1'));var BPromise=require('bluebird');var rs=require(_0xe0b0('0x2'));var fs=require('fs');var Redis=require(_0xe0b0('0x3'));var db=require(_0xe0b0('0x4'))['db'];var utils=require(_0xe0b0('0x5'));var logger=require(_0xe0b0('0x6'))(_0xe0b0('0x7'));var config=require(_0xe0b0('0x8'));var jayson=require(_0xe0b0('0x9'));var client=jayson[_0xe0b0('0xa')][_0xe0b0('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x219b1c,_0x5cf9cc,_0x50be7f){return new BPromise(function(_0x11effc,_0x435060){return client[_0xe0b0('0xc')](_0x219b1c,_0x50be7f)[_0xe0b0('0xd')](function(_0x4c24f9){logger[_0xe0b0('0xe')](_0xe0b0('0xf'),_0x5cf9cc,'request\x20sent');logger[_0xe0b0('0x10')](_0xe0b0('0x11'),_0x5cf9cc,'request\x20sent',JSON[_0xe0b0('0x12')](_0x4c24f9));if(_0x4c24f9[_0xe0b0('0x13')]){if(_0x4c24f9[_0xe0b0('0x13')]['code']===0x1f4){logger[_0xe0b0('0x13')](_0xe0b0('0xf'),_0x5cf9cc,_0x4c24f9[_0xe0b0('0x13')][_0xe0b0('0x14')]);return _0x435060(_0x4c24f9[_0xe0b0('0x13')]['message']);}logger[_0xe0b0('0x13')](_0xe0b0('0xf'),_0x5cf9cc,_0x4c24f9[_0xe0b0('0x13')][_0xe0b0('0x14')]);return _0x11effc(_0x4c24f9[_0xe0b0('0x13')]['message']);}else{logger[_0xe0b0('0xe')]('SugarcrmField,\x20%s,\x20%s',_0x5cf9cc,_0xe0b0('0x15'));_0x11effc(_0x4c24f9[_0xe0b0('0x16')]['message']);}})[_0xe0b0('0x17')](function(_0x4a4cc0){logger[_0xe0b0('0x13')](_0xe0b0('0xf'),_0x5cf9cc,_0x4a4cc0);_0x435060(_0x4a4cc0);});});}
\ No newline at end of file
+var _0xf50f=['info','catch','lodash','moment','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','SugarcrmField,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message'];(function(_0x1227bc,_0x398a69){var _0x14688a=function(_0x4b90b5){while(--_0x4b90b5){_0x1227bc['push'](_0x1227bc['shift']());}};_0x14688a(++_0x398a69);}(_0xf50f,0xde));var _0xff50=function(_0x3c907d,_0x4642f0){_0x3c907d=_0x3c907d-0x0;var _0x66a576=_0xf50f[_0x3c907d];return _0x66a576;};'use strict';var _=require(_0xff50('0x0'));var util=require('util');var moment=require(_0xff50('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xff50('0x2'));var db=require(_0xff50('0x3'))['db'];var utils=require(_0xff50('0x4'));var logger=require(_0xff50('0x5'))(_0xff50('0x6'));var config=require(_0xff50('0x7'));var jayson=require(_0xff50('0x8'));var client=jayson[_0xff50('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2bfc21,_0x11e7c5,_0x31966a){return new BPromise(function(_0x34ada0,_0x1f4ca3){return client[_0xff50('0xa')](_0x2bfc21,_0x31966a)[_0xff50('0xb')](function(_0x2c227a){logger['info'](_0xff50('0xc'),_0x11e7c5,_0xff50('0xd'));logger[_0xff50('0xe')]('SugarcrmField,\x20%s,\x20%s,\x20%s',_0x11e7c5,_0xff50('0xd'),JSON[_0xff50('0xf')](_0x2c227a));if(_0x2c227a[_0xff50('0x10')]){if(_0x2c227a[_0xff50('0x10')]['code']===0x1f4){logger[_0xff50('0x10')](_0xff50('0xc'),_0x11e7c5,_0x2c227a['error']['message']);return _0x1f4ca3(_0x2c227a['error'][_0xff50('0x11')]);}logger[_0xff50('0x10')](_0xff50('0xc'),_0x11e7c5,_0x2c227a['error'][_0xff50('0x11')]);return _0x34ada0(_0x2c227a[_0xff50('0x10')][_0xff50('0x11')]);}else{logger[_0xff50('0x12')](_0xff50('0xc'),_0x11e7c5,_0xff50('0xd'));_0x34ada0(_0x2c227a['result'][_0xff50('0x11')]);}})[_0xff50('0x13')](function(_0x429cd8){logger[_0xff50('0x10')](_0xff50('0xc'),_0x11e7c5,_0x429cd8);_0x1f4ca3(_0x429cd8);});});}
\ No newline at end of file