Built motion from commit 1cfc41f6.|2.5.41
[motion2.git] / server / api / cmCustomField / cmCustomField.rpc.js
index 104d4f8..bfd8935 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5ac7=['info','CmCustomField,\x20%s,\x20%s','request\x20sent','debug','error','code','message','result','lodash','moment','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment'];(function(_0x26ec1c,_0x274d1b){var _0x3759c0=function(_0x27f626){while(--_0x27f626){_0x26ec1c['push'](_0x26ec1c['shift']());}};_0x3759c0(++_0x274d1b);}(_0x5ac7,0xf8));var _0x75ac=function(_0x1d819e,_0x14c4d0){_0x1d819e=_0x1d819e-0x0;var _0x43bd3f=_0x5ac7[_0x1d819e];return _0x43bd3f;};'use strict';var _=require(_0x75ac('0x0'));var util=require('util');var moment=require(_0x75ac('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x75ac('0x2'));var db=require(_0x75ac('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x75ac('0x4'))(_0x75ac('0x5'));var config=require(_0x75ac('0x6'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x19f748,_0x50be57,_0x41af65){return new BPromise(function(_0x3ef321,_0x15363b){return client['request'](_0x19f748,_0x41af65)['then'](function(_0x567b69){logger[_0x75ac('0x7')](_0x75ac('0x8'),_0x50be57,_0x75ac('0x9'));logger[_0x75ac('0xa')]('CmCustomField,\x20%s,\x20%s,\x20%s',_0x50be57,_0x75ac('0x9'),JSON['stringify'](_0x567b69));if(_0x567b69[_0x75ac('0xb')]){if(_0x567b69[_0x75ac('0xb')][_0x75ac('0xc')]===0x1f4){logger[_0x75ac('0xb')]('CmCustomField,\x20%s,\x20%s',_0x50be57,_0x567b69['error'][_0x75ac('0xd')]);return _0x15363b(_0x567b69[_0x75ac('0xb')][_0x75ac('0xd')]);}logger['error'](_0x75ac('0x8'),_0x50be57,_0x567b69[_0x75ac('0xb')][_0x75ac('0xd')]);return _0x3ef321(_0x567b69[_0x75ac('0xb')]['message']);}else{logger['info']('CmCustomField,\x20%s,\x20%s',_0x50be57,_0x75ac('0x9'));_0x3ef321(_0x567b69[_0x75ac('0xe')][_0x75ac('0xd')]);}})['catch'](function(_0x32978c){logger[_0x75ac('0xb')](_0x75ac('0x8'),_0x50be57,_0x32978c);_0x15363b(_0x32978c);});});}
\ No newline at end of file
+var _0xac32=['request','then','CmCustomField,\x20%s,\x20%s','request\x20sent','debug','CmCustomField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http'];(function(_0x7f6983,_0x339537){var _0x47d520=function(_0x4faf2f){while(--_0x4faf2f){_0x7f6983['push'](_0x7f6983['shift']());}};_0x47d520(++_0x339537);}(_0xac32,0x15f));var _0x2ac3=function(_0xc6c878,_0x58a874){_0xc6c878=_0xc6c878-0x0;var _0x1b7156=_0xac32[_0xc6c878];return _0x1b7156;};'use strict';var _=require(_0x2ac3('0x0'));var util=require(_0x2ac3('0x1'));var moment=require(_0x2ac3('0x2'));var BPromise=require(_0x2ac3('0x3'));var rs=require(_0x2ac3('0x4'));var fs=require('fs');var Redis=require(_0x2ac3('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x2ac3('0x6'));var logger=require(_0x2ac3('0x7'))(_0x2ac3('0x8'));var config=require(_0x2ac3('0x9'));var jayson=require(_0x2ac3('0xa'));var client=jayson[_0x2ac3('0xb')][_0x2ac3('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x75379f,_0x1be30,_0x10834f){return new BPromise(function(_0x1f6cf5,_0x274e6d){return client[_0x2ac3('0xd')](_0x75379f,_0x10834f)[_0x2ac3('0xe')](function(_0x526a3e){logger['info'](_0x2ac3('0xf'),_0x1be30,_0x2ac3('0x10'));logger[_0x2ac3('0x11')](_0x2ac3('0x12'),_0x1be30,_0x2ac3('0x10'),JSON[_0x2ac3('0x13')](_0x526a3e));if(_0x526a3e[_0x2ac3('0x14')]){if(_0x526a3e[_0x2ac3('0x14')][_0x2ac3('0x15')]===0x1f4){logger[_0x2ac3('0x14')](_0x2ac3('0xf'),_0x1be30,_0x526a3e[_0x2ac3('0x14')][_0x2ac3('0x16')]);return _0x274e6d(_0x526a3e['error'][_0x2ac3('0x16')]);}logger[_0x2ac3('0x14')]('CmCustomField,\x20%s,\x20%s',_0x1be30,_0x526a3e[_0x2ac3('0x14')]['message']);return _0x1f6cf5(_0x526a3e[_0x2ac3('0x14')][_0x2ac3('0x16')]);}else{logger[_0x2ac3('0x17')](_0x2ac3('0xf'),_0x1be30,_0x2ac3('0x10'));_0x1f6cf5(_0x526a3e[_0x2ac3('0x18')]['message']);}})[_0x2ac3('0x19')](function(_0x231c86){logger[_0x2ac3('0x14')](_0x2ac3('0xf'),_0x1be30,_0x231c86);_0x274e6d(_0x231c86);});});}
\ No newline at end of file