Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / intDeskField / intDeskField.rpc.js
index 2f725a7..21cce52 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6d04=['moment','ioredis','../../config/utils','../../config/logger','rpc','client','http','request','then','info','debug','DeskField,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','DeskField,\x20%s,\x20%s','message','result','lodash','util'];(function(_0x37bd26,_0x5ad346){var _0xe83dc4=function(_0x1ac229){while(--_0x1ac229){_0x37bd26['push'](_0x37bd26['shift']());}};_0xe83dc4(++_0x5ad346);}(_0x6d04,0x12a));var _0x46d0=function(_0x5bd072,_0x3f02d6){_0x5bd072=_0x5bd072-0x0;var _0x17c868=_0x6d04[_0x5bd072];return _0x17c868;};'use strict';var _=require(_0x46d0('0x0'));var util=require(_0x46d0('0x1'));var moment=require(_0x46d0('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x46d0('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x46d0('0x4'));var logger=require(_0x46d0('0x5'))(_0x46d0('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x46d0('0x7')][_0x46d0('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x1ddc36,_0x1289c7,_0x5c8dc4){return new BPromise(function(_0x258507,_0x5900e8){return client[_0x46d0('0x9')](_0x1ddc36,_0x5c8dc4)[_0x46d0('0xa')](function(_0x23ea0b){logger[_0x46d0('0xb')]('DeskField,\x20%s,\x20%s',_0x1289c7,'request\x20sent');logger[_0x46d0('0xc')](_0x46d0('0xd'),_0x1289c7,_0x46d0('0xe'),JSON['stringify'](_0x23ea0b));if(_0x23ea0b[_0x46d0('0xf')]){if(_0x23ea0b[_0x46d0('0xf')][_0x46d0('0x10')]===0x1f4){logger[_0x46d0('0xf')](_0x46d0('0x11'),_0x1289c7,_0x23ea0b[_0x46d0('0xf')][_0x46d0('0x12')]);return _0x5900e8(_0x23ea0b['error'][_0x46d0('0x12')]);}logger[_0x46d0('0xf')]('DeskField,\x20%s,\x20%s',_0x1289c7,_0x23ea0b['error'][_0x46d0('0x12')]);return _0x258507(_0x23ea0b[_0x46d0('0xf')][_0x46d0('0x12')]);}else{logger[_0x46d0('0xb')](_0x46d0('0x11'),_0x1289c7,_0x46d0('0xe'));_0x258507(_0x23ea0b[_0x46d0('0x13')][_0x46d0('0x12')]);}})['catch'](function(_0x2f8504){logger[_0x46d0('0xf')](_0x46d0('0x11'),_0x1289c7,_0x2f8504);_0x5900e8(_0x2f8504);});});}
\ No newline at end of file
+var _0x9fe6=['code','message','result','catch','util','moment','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','then','info','DeskField,\x20%s,\x20%s','DeskField,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error'];(function(_0x26f1b2,_0x33d843){var _0x1624a4=function(_0x58dfb7){while(--_0x58dfb7){_0x26f1b2['push'](_0x26f1b2['shift']());}};_0x1624a4(++_0x33d843);}(_0x9fe6,0x1bc));var _0x69fe=function(_0x3ad850,_0x4d8004){_0x3ad850=_0x3ad850-0x0;var _0x5326ab=_0x9fe6[_0x3ad850];return _0x5326ab;};'use strict';var _=require('lodash');var util=require(_0x69fe('0x0'));var moment=require(_0x69fe('0x1'));var BPromise=require(_0x69fe('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x69fe('0x3'));var db=require(_0x69fe('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x69fe('0x5'))(_0x69fe('0x6'));var config=require('../../config/environment');var jayson=require(_0x69fe('0x7'));var client=jayson[_0x69fe('0x8')][_0x69fe('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xd2e696,_0x1c1f2f,_0xf22e83){return new BPromise(function(_0xb7312c,_0x1e90af){return client[_0x69fe('0xa')](_0xd2e696,_0xf22e83)[_0x69fe('0xb')](function(_0x3a83de){logger[_0x69fe('0xc')](_0x69fe('0xd'),_0x1c1f2f,'request\x20sent');logger['debug'](_0x69fe('0xe'),_0x1c1f2f,_0x69fe('0xf'),JSON[_0x69fe('0x10')](_0x3a83de));if(_0x3a83de[_0x69fe('0x11')]){if(_0x3a83de[_0x69fe('0x11')][_0x69fe('0x12')]===0x1f4){logger[_0x69fe('0x11')](_0x69fe('0xd'),_0x1c1f2f,_0x3a83de['error']['message']);return _0x1e90af(_0x3a83de[_0x69fe('0x11')][_0x69fe('0x13')]);}logger[_0x69fe('0x11')](_0x69fe('0xd'),_0x1c1f2f,_0x3a83de['error'][_0x69fe('0x13')]);return _0xb7312c(_0x3a83de[_0x69fe('0x11')]['message']);}else{logger['info'](_0x69fe('0xd'),_0x1c1f2f,_0x69fe('0xf'));_0xb7312c(_0x3a83de[_0x69fe('0x14')][_0x69fe('0x13')]);}})[_0x69fe('0x15')](function(_0x3440c7){logger['error'](_0x69fe('0xd'),_0x1c1f2f,_0x3440c7);_0x1e90af(_0x3440c7);});});}
\ No newline at end of file