Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.rpc.js
index cbbe56b..dedb2d1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x796a=['../../config/logger','rpc','../../config/environment','client','request','info','SugarcrmConfiguration,\x20%s,\x20%s','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils'];(function(_0x34ed02,_0x3eddbb){var _0xa80fcd=function(_0x1ea952){while(--_0x1ea952){_0x34ed02['push'](_0x34ed02['shift']());}};_0xa80fcd(++_0x3eddbb);}(_0x796a,0x12d));var _0xa796=function(_0xbb4e02,_0x1cac95){_0xbb4e02=_0xbb4e02-0x0;var _0x50ac16=_0x796a[_0xbb4e02];return _0x50ac16;};'use strict';var _=require(_0xa796('0x0'));var util=require(_0xa796('0x1'));var moment=require(_0xa796('0x2'));var BPromise=require(_0xa796('0x3'));var rs=require(_0xa796('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xa796('0x5'))['db'];var utils=require(_0xa796('0x6'));var logger=require(_0xa796('0x7'))(_0xa796('0x8'));var config=require(_0xa796('0x9'));var jayson=require('jayson/promise');var client=jayson[_0xa796('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x414a6e,_0x435ccc,_0x273366){return new BPromise(function(_0x50ae90,_0x225698){return client[_0xa796('0xb')](_0x414a6e,_0x273366)['then'](function(_0x161021){logger[_0xa796('0xc')](_0xa796('0xd'),_0x435ccc,'request\x20sent');logger[_0xa796('0xe')](_0xa796('0xf'),_0x435ccc,'request\x20sent',JSON[_0xa796('0x10')](_0x161021));if(_0x161021['error']){if(_0x161021[_0xa796('0x11')][_0xa796('0x12')]===0x1f4){logger['error']('SugarcrmConfiguration,\x20%s,\x20%s',_0x435ccc,_0x161021['error'][_0xa796('0x13')]);return _0x225698(_0x161021[_0xa796('0x11')][_0xa796('0x13')]);}logger[_0xa796('0x11')](_0xa796('0xd'),_0x435ccc,_0x161021[_0xa796('0x11')][_0xa796('0x13')]);return _0x50ae90(_0x161021['error']['message']);}else{logger[_0xa796('0xc')](_0xa796('0xd'),_0x435ccc,'request\x20sent');_0x50ae90(_0x161021[_0xa796('0x14')][_0xa796('0x13')]);}})[_0xa796('0x15')](function(_0x4decf0){logger[_0xa796('0x11')](_0xa796('0xd'),_0x435ccc,_0x4decf0);_0x225698(_0x4decf0);});});}
\ No newline at end of file
+var _0xeacd=['error','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','SugarcrmConfiguration,\x20%s,\x20%s','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x199dcc,_0x13e81e){var _0x20f808=function(_0x4bfc7c){while(--_0x4bfc7c){_0x199dcc['push'](_0x199dcc['shift']());}};_0x20f808(++_0x13e81e);}(_0xeacd,0x10c));var _0xdeac=function(_0x4a8540,_0x5050f9){_0x4a8540=_0x4a8540-0x0;var _0x38ffe4=_0xeacd[_0x4a8540];return _0x38ffe4;};'use strict';var _=require(_0xdeac('0x0'));var util=require(_0xdeac('0x1'));var moment=require(_0xdeac('0x2'));var BPromise=require('bluebird');var rs=require(_0xdeac('0x3'));var fs=require('fs');var Redis=require(_0xdeac('0x4'));var db=require(_0xdeac('0x5'))['db'];var utils=require(_0xdeac('0x6'));var logger=require(_0xdeac('0x7'))(_0xdeac('0x8'));var config=require(_0xdeac('0x9'));var jayson=require(_0xdeac('0xa'));var client=jayson[_0xdeac('0xb')][_0xdeac('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x4379dd,_0x38b052,_0x363a24){return new BPromise(function(_0x3d7f0d,_0x1a7b6f){return client[_0xdeac('0xd')](_0x4379dd,_0x363a24)[_0xdeac('0xe')](function(_0x4b0101){logger[_0xdeac('0xf')](_0xdeac('0x10'),_0x38b052,'request\x20sent');logger['debug'](_0xdeac('0x11'),_0x38b052,_0xdeac('0x12'),JSON[_0xdeac('0x13')](_0x4b0101));if(_0x4b0101['error']){if(_0x4b0101['error']['code']===0x1f4){logger['error'](_0xdeac('0x10'),_0x38b052,_0x4b0101[_0xdeac('0x14')]['message']);return _0x1a7b6f(_0x4b0101[_0xdeac('0x14')][_0xdeac('0x15')]);}logger['error'](_0xdeac('0x10'),_0x38b052,_0x4b0101[_0xdeac('0x14')][_0xdeac('0x15')]);return _0x3d7f0d(_0x4b0101['error'][_0xdeac('0x15')]);}else{logger[_0xdeac('0xf')](_0xdeac('0x10'),_0x38b052,_0xdeac('0x12'));_0x3d7f0d(_0x4b0101[_0xdeac('0x16')][_0xdeac('0x15')]);}})[_0xdeac('0x17')](function(_0x4d01f8){logger[_0xdeac('0x14')](_0xdeac('0x10'),_0x38b052,_0x4d01f8);_0x1a7b6f(_0x4d01f8);});});}
\ No newline at end of file