Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.rpc.js
index da402fc..d549e5d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2efb=['bluebird','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','FreshsalesField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','FreshsalesField,\x20%s,\x20%s','result','catch','lodash','util','moment'];(function(_0x5e51b7,_0x310082){var _0x48f62b=function(_0x2928b9){while(--_0x2928b9){_0x5e51b7['push'](_0x5e51b7['shift']());}};_0x48f62b(++_0x310082);}(_0x2efb,0x1c5));var _0xb2ef=function(_0x10b48a,_0x1a0a3f){_0x10b48a=_0x10b48a-0x0;var _0x2c4533=_0x2efb[_0x10b48a];return _0x2c4533;};'use strict';var _=require(_0xb2ef('0x0'));var util=require(_0xb2ef('0x1'));var moment=require(_0xb2ef('0x2'));var BPromise=require(_0xb2ef('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb2ef('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xb2ef('0x5'))(_0xb2ef('0x6'));var config=require(_0xb2ef('0x7'));var jayson=require(_0xb2ef('0x8'));var client=jayson[_0xb2ef('0x9')][_0xb2ef('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x45f93a,_0x23d8bd,_0x561175){return new BPromise(function(_0x250b9f,_0xd438ae){return client[_0xb2ef('0xb')](_0x45f93a,_0x561175)[_0xb2ef('0xc')](function(_0x27ce9d){logger[_0xb2ef('0xd')]('FreshsalesField,\x20%s,\x20%s',_0x23d8bd,_0xb2ef('0xe'));logger[_0xb2ef('0xf')](_0xb2ef('0x10'),_0x23d8bd,_0xb2ef('0xe'),JSON[_0xb2ef('0x11')](_0x27ce9d));if(_0x27ce9d[_0xb2ef('0x12')]){if(_0x27ce9d[_0xb2ef('0x12')][_0xb2ef('0x13')]===0x1f4){logger[_0xb2ef('0x12')]('FreshsalesField,\x20%s,\x20%s',_0x23d8bd,_0x27ce9d['error'][_0xb2ef('0x14')]);return _0xd438ae(_0x27ce9d['error'][_0xb2ef('0x14')]);}logger[_0xb2ef('0x12')](_0xb2ef('0x15'),_0x23d8bd,_0x27ce9d[_0xb2ef('0x12')][_0xb2ef('0x14')]);return _0x250b9f(_0x27ce9d[_0xb2ef('0x12')][_0xb2ef('0x14')]);}else{logger['info']('FreshsalesField,\x20%s,\x20%s',_0x23d8bd,_0xb2ef('0xe'));_0x250b9f(_0x27ce9d[_0xb2ef('0x16')][_0xb2ef('0x14')]);}})[_0xb2ef('0x17')](function(_0x104e54){logger[_0xb2ef('0x12')](_0xb2ef('0x15'),_0x23d8bd,_0x104e54);_0xd438ae(_0x104e54);});});}
\ No newline at end of file
+var _0x0c6a=['message','result','catch','util','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','http','request','info','request\x20sent','debug','FreshsalesField,\x20%s,\x20%s,\x20%s','stringify','error','code','FreshsalesField,\x20%s,\x20%s'];(function(_0x287401,_0x4c29be){var _0x166ec0=function(_0x2dc253){while(--_0x2dc253){_0x287401['push'](_0x287401['shift']());}};_0x166ec0(++_0x4c29be);}(_0x0c6a,0x157));var _0xa0c6=function(_0x4a5760,_0x134c15){_0x4a5760=_0x4a5760-0x0;var _0x2994b=_0x0c6a[_0x4a5760];return _0x2994b;};'use strict';var _=require('lodash');var util=require(_0xa0c6('0x0'));var moment=require('moment');var BPromise=require(_0xa0c6('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa0c6('0x2'));var db=require(_0xa0c6('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xa0c6('0x4'))(_0xa0c6('0x5'));var config=require(_0xa0c6('0x6'));var jayson=require('jayson/promise');var client=jayson['client'][_0xa0c6('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x5cd359,_0x4e26f5,_0x3f7f8d){return new BPromise(function(_0x2e8c38,_0x4ba898){return client[_0xa0c6('0x8')](_0x5cd359,_0x3f7f8d)['then'](function(_0x1046d4){logger[_0xa0c6('0x9')]('FreshsalesField,\x20%s,\x20%s',_0x4e26f5,_0xa0c6('0xa'));logger[_0xa0c6('0xb')](_0xa0c6('0xc'),_0x4e26f5,_0xa0c6('0xa'),JSON[_0xa0c6('0xd')](_0x1046d4));if(_0x1046d4[_0xa0c6('0xe')]){if(_0x1046d4[_0xa0c6('0xe')][_0xa0c6('0xf')]===0x1f4){logger[_0xa0c6('0xe')](_0xa0c6('0x10'),_0x4e26f5,_0x1046d4[_0xa0c6('0xe')][_0xa0c6('0x11')]);return _0x4ba898(_0x1046d4[_0xa0c6('0xe')][_0xa0c6('0x11')]);}logger['error']('FreshsalesField,\x20%s,\x20%s',_0x4e26f5,_0x1046d4[_0xa0c6('0xe')][_0xa0c6('0x11')]);return _0x2e8c38(_0x1046d4[_0xa0c6('0xe')][_0xa0c6('0x11')]);}else{logger['info'](_0xa0c6('0x10'),_0x4e26f5,_0xa0c6('0xa'));_0x2e8c38(_0x1046d4[_0xa0c6('0x12')][_0xa0c6('0x11')]);}})[_0xa0c6('0x13')](function(_0xfac9dc){logger[_0xa0c6('0xe')](_0xa0c6('0x10'),_0x4e26f5,_0xfac9dc);_0x4ba898(_0xfac9dc);});});}
\ No newline at end of file