Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.rpc.js
index 4be3f06..9527a8b 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(_0x4e0a03,_0x5eb6b0){var _0x2478fc=function(_0x59afcc){while(--_0x59afcc){_0x4e0a03['push'](_0x4e0a03['shift']());}};_0x2478fc(++_0x5eb6b0);}(_0x0b0e,0x187));var _0xe0b0=function(_0x5be8cc,_0x4a6037){_0x5be8cc=_0x5be8cc-0x0;var _0x5f1b7e=_0x0b0e[_0x5be8cc];return _0x5f1b7e;};'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 _0xd585=['SugarcrmField,\x20%s,\x20%s','message','result','catch','lodash','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','SugarcrmField,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xd585,0x19c));var _0x5d58=function(_0x53834e,_0x4cf04e){_0x53834e=_0x53834e-0x0;var _0x36f45b=_0xd585[_0x53834e];return _0x36f45b;};'use strict';var _=require(_0x5d58('0x0'));var util=require('util');var moment=require(_0x5d58('0x1'));var BPromise=require(_0x5d58('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x5d58('0x3'));var db=require(_0x5d58('0x4'))['db'];var utils=require(_0x5d58('0x5'));var logger=require(_0x5d58('0x6'))(_0x5d58('0x7'));var config=require(_0x5d58('0x8'));var jayson=require(_0x5d58('0x9'));var client=jayson[_0x5d58('0xa')][_0x5d58('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5a24ae,_0x2840ae,_0x174a94){return new BPromise(function(_0x1b4ce8,_0x4e77c5){return client[_0x5d58('0xc')](_0x5a24ae,_0x174a94)[_0x5d58('0xd')](function(_0x478d69){logger[_0x5d58('0xe')]('SugarcrmField,\x20%s,\x20%s',_0x2840ae,_0x5d58('0xf'));logger[_0x5d58('0x10')](_0x5d58('0x11'),_0x2840ae,'request\x20sent',JSON[_0x5d58('0x12')](_0x478d69));if(_0x478d69[_0x5d58('0x13')]){if(_0x478d69[_0x5d58('0x13')]['code']===0x1f4){logger['error'](_0x5d58('0x14'),_0x2840ae,_0x478d69[_0x5d58('0x13')][_0x5d58('0x15')]);return _0x4e77c5(_0x478d69[_0x5d58('0x13')]['message']);}logger['error'](_0x5d58('0x14'),_0x2840ae,_0x478d69[_0x5d58('0x13')][_0x5d58('0x15')]);return _0x1b4ce8(_0x478d69[_0x5d58('0x13')]['message']);}else{logger['info'](_0x5d58('0x14'),_0x2840ae,_0x5d58('0xf'));_0x1b4ce8(_0x478d69[_0x5d58('0x16')]['message']);}})[_0x5d58('0x17')](function(_0x598c60){logger[_0x5d58('0x13')](_0x5d58('0x14'),_0x2840ae,_0x598c60);_0x4e77c5(_0x598c60);});});}
\ No newline at end of file