Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / chatTransferReport / chatTransferReport.rpc.js
index 462d753..91ba630 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x02a2=['client','http','request','then','info','ChatTransferReport,\x20%s,\x20%s','request\x20sent','debug','ChatTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x02a2,0x116));var _0x202a=function(_0x1c6b91,_0x399c82){_0x1c6b91=_0x1c6b91-0x0;var _0x522c9a=_0x02a2[_0x1c6b91];return _0x522c9a;};'use strict';var _=require(_0x202a('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x202a('0x1'));var rs=require(_0x202a('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x202a('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x202a('0x4'))(_0x202a('0x5'));var config=require(_0x202a('0x6'));var jayson=require(_0x202a('0x7'));var client=jayson[_0x202a('0x8')][_0x202a('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x31ea05,_0x5b95ed,_0x31fa3f){return new BPromise(function(_0x2b3cae,_0x33c7e9){return client[_0x202a('0xa')](_0x31ea05,_0x31fa3f)[_0x202a('0xb')](function(_0x26efd7){logger[_0x202a('0xc')](_0x202a('0xd'),_0x5b95ed,_0x202a('0xe'));logger[_0x202a('0xf')](_0x202a('0x10'),_0x5b95ed,_0x202a('0xe'),JSON[_0x202a('0x11')](_0x26efd7));if(_0x26efd7['error']){if(_0x26efd7[_0x202a('0x12')]['code']===0x1f4){logger[_0x202a('0x12')](_0x202a('0xd'),_0x5b95ed,_0x26efd7['error']['message']);return _0x33c7e9(_0x26efd7[_0x202a('0x12')][_0x202a('0x13')]);}logger[_0x202a('0x12')](_0x202a('0xd'),_0x5b95ed,_0x26efd7[_0x202a('0x12')][_0x202a('0x13')]);return _0x2b3cae(_0x26efd7[_0x202a('0x12')][_0x202a('0x13')]);}else{logger[_0x202a('0xc')](_0x202a('0xd'),_0x5b95ed,_0x202a('0xe'));_0x2b3cae(_0x26efd7[_0x202a('0x14')][_0x202a('0x13')]);}})[_0x202a('0x15')](function(_0x46c458){logger[_0x202a('0x12')](_0x202a('0xd'),_0x5b95ed,_0x46c458);_0x33c7e9(_0x46c458);});});}
\ No newline at end of file
+var _0x74a4=['moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','ChatTransferReport,\x20%s,\x20%s','request\x20sent','debug','ChatTransferReport,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','util'];(function(_0x3edc8b,_0x1996cb){var _0xbf74e5=function(_0x2fcc27){while(--_0x2fcc27){_0x3edc8b['push'](_0x3edc8b['shift']());}};_0xbf74e5(++_0x1996cb);}(_0x74a4,0x166));var _0x474a=function(_0x38fcef,_0x3fcfc2){_0x38fcef=_0x38fcef-0x0;var _0x4b4377=_0x74a4[_0x38fcef];return _0x4b4377;};'use strict';var _=require(_0x474a('0x0'));var util=require(_0x474a('0x1'));var moment=require(_0x474a('0x2'));var BPromise=require(_0x474a('0x3'));var rs=require(_0x474a('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x474a('0x5'))['db'];var utils=require(_0x474a('0x6'));var logger=require(_0x474a('0x7'))(_0x474a('0x8'));var config=require(_0x474a('0x9'));var jayson=require(_0x474a('0xa'));var client=jayson[_0x474a('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5c3606,_0x197680,_0x46ac4f){return new BPromise(function(_0x488c51,_0x1118e1){return client[_0x474a('0xc')](_0x5c3606,_0x46ac4f)[_0x474a('0xd')](function(_0x306e7c){logger[_0x474a('0xe')](_0x474a('0xf'),_0x197680,_0x474a('0x10'));logger[_0x474a('0x11')](_0x474a('0x12'),_0x197680,_0x474a('0x10'),JSON['stringify'](_0x306e7c));if(_0x306e7c['error']){if(_0x306e7c[_0x474a('0x13')][_0x474a('0x14')]===0x1f4){logger[_0x474a('0x13')](_0x474a('0xf'),_0x197680,_0x306e7c[_0x474a('0x13')][_0x474a('0x15')]);return _0x1118e1(_0x306e7c[_0x474a('0x13')][_0x474a('0x15')]);}logger[_0x474a('0x13')](_0x474a('0xf'),_0x197680,_0x306e7c[_0x474a('0x13')][_0x474a('0x15')]);return _0x488c51(_0x306e7c['error']['message']);}else{logger[_0x474a('0xe')]('ChatTransferReport,\x20%s,\x20%s',_0x197680,_0x474a('0x10'));_0x488c51(_0x306e7c[_0x474a('0x16')]['message']);}})[_0x474a('0x17')](function(_0x16f9f9){logger[_0x474a('0x13')]('ChatTransferReport,\x20%s,\x20%s',_0x197680,_0x16f9f9);_0x1118e1(_0x16f9f9);});});}
\ No newline at end of file