Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / cmContactHasPhone / cmContactHasPhone.rpc.js
index d73aea0..ea66ced 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf156=['info','result','catch','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','request','then','CmContactHasPhone,\x20%s,\x20%s','request\x20sent','debug','CmContactHasPhone,\x20%s,\x20%s,\x20%s','stringify','error','code','message'];(function(_0x58e504,_0x8ec848){var _0x31917f=function(_0xdbc479){while(--_0xdbc479){_0x58e504['push'](_0x58e504['shift']());}};_0x31917f(++_0x8ec848);}(_0xf156,0x137));var _0x6f15=function(_0xc3c37f,_0x32a091){_0xc3c37f=_0xc3c37f-0x0;var _0x34eee2=_0xf156[_0xc3c37f];return _0x34eee2;};'use strict';var _=require('lodash');var util=require(_0x6f15('0x0'));var moment=require(_0x6f15('0x1'));var BPromise=require('bluebird');var rs=require(_0x6f15('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x6f15('0x3'))['db'];var utils=require(_0x6f15('0x4'));var logger=require(_0x6f15('0x5'))(_0x6f15('0x6'));var config=require(_0x6f15('0x7'));var jayson=require(_0x6f15('0x8'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x423cb5,_0x13d1ad,_0x4f60ee){return new BPromise(function(_0x3d1ca9,_0x30a0a5){return client[_0x6f15('0x9')](_0x423cb5,_0x4f60ee)[_0x6f15('0xa')](function(_0x497520){logger['info'](_0x6f15('0xb'),_0x13d1ad,_0x6f15('0xc'));logger[_0x6f15('0xd')](_0x6f15('0xe'),_0x13d1ad,_0x6f15('0xc'),JSON[_0x6f15('0xf')](_0x497520));if(_0x497520[_0x6f15('0x10')]){if(_0x497520[_0x6f15('0x10')][_0x6f15('0x11')]===0x1f4){logger[_0x6f15('0x10')]('CmContactHasPhone,\x20%s,\x20%s',_0x13d1ad,_0x497520[_0x6f15('0x10')]['message']);return _0x30a0a5(_0x497520[_0x6f15('0x10')][_0x6f15('0x12')]);}logger[_0x6f15('0x10')](_0x6f15('0xb'),_0x13d1ad,_0x497520[_0x6f15('0x10')][_0x6f15('0x12')]);return _0x3d1ca9(_0x497520[_0x6f15('0x10')][_0x6f15('0x12')]);}else{logger[_0x6f15('0x13')](_0x6f15('0xb'),_0x13d1ad,'request\x20sent');_0x3d1ca9(_0x497520[_0x6f15('0x14')]['message']);}})[_0x6f15('0x15')](function(_0x5e1620){logger[_0x6f15('0x10')]('CmContactHasPhone,\x20%s,\x20%s',_0x13d1ad,_0x5e1620);_0x30a0a5(_0x5e1620);});});}
\ No newline at end of file
+var _0x9fc3=['../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','stringify','error','message','CmContactHasPhone,\x20%s,\x20%s','result','lodash','util','moment','bluebird','randomstring','../../config/utils','../../config/logger'];(function(_0x2b57fc,_0x4b3658){var _0x5bf238=function(_0x21661a){while(--_0x21661a){_0x2b57fc['push'](_0x2b57fc['shift']());}};_0x5bf238(++_0x4b3658);}(_0x9fc3,0xcb));var _0x39fc=function(_0x49718d,_0x560049){_0x49718d=_0x49718d-0x0;var _0x55e136=_0x9fc3[_0x49718d];return _0x55e136;};'use strict';var _=require(_0x39fc('0x0'));var util=require(_0x39fc('0x1'));var moment=require(_0x39fc('0x2'));var BPromise=require(_0x39fc('0x3'));var rs=require(_0x39fc('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x39fc('0x5'));var logger=require(_0x39fc('0x6'))('rpc');var config=require(_0x39fc('0x7'));var jayson=require(_0x39fc('0x8'));var client=jayson[_0x39fc('0x9')][_0x39fc('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x39d163,_0x3d017c,_0x4e70fa){return new BPromise(function(_0x108460,_0x55652d){return client[_0x39fc('0xb')](_0x39d163,_0x4e70fa)[_0x39fc('0xc')](function(_0x372503){logger[_0x39fc('0xd')]('CmContactHasPhone,\x20%s,\x20%s',_0x3d017c,_0x39fc('0xe'));logger[_0x39fc('0xf')]('CmContactHasPhone,\x20%s,\x20%s,\x20%s',_0x3d017c,_0x39fc('0xe'),JSON[_0x39fc('0x10')](_0x372503));if(_0x372503[_0x39fc('0x11')]){if(_0x372503['error']['code']===0x1f4){logger[_0x39fc('0x11')]('CmContactHasPhone,\x20%s,\x20%s',_0x3d017c,_0x372503[_0x39fc('0x11')][_0x39fc('0x12')]);return _0x55652d(_0x372503[_0x39fc('0x11')]['message']);}logger[_0x39fc('0x11')](_0x39fc('0x13'),_0x3d017c,_0x372503[_0x39fc('0x11')]['message']);return _0x108460(_0x372503[_0x39fc('0x11')][_0x39fc('0x12')]);}else{logger['info']('CmContactHasPhone,\x20%s,\x20%s',_0x3d017c,'request\x20sent');_0x108460(_0x372503[_0x39fc('0x14')][_0x39fc('0x12')]);}})['catch'](function(_0x2d1d2f){logger[_0x39fc('0x11')](_0x39fc('0x13'),_0x3d017c,_0x2d1d2f);_0x55652d(_0x2d1d2f);});});}
\ No newline at end of file