Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
index 5b69ab3..8ab6585 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1220=['client','http','then','info','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','catch','CreateVoiceTransferReport','create','body','options','raw','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise'];(function(_0x33fac5,_0xdd796a){var _0x4e5d6a=function(_0x9fda77){while(--_0x9fda77){_0x33fac5['push'](_0x33fac5['shift']());}};_0x4e5d6a(++_0xdd796a);}(_0x1220,0x149));var _0x0122=function(_0x2d7f0e,_0x3e6fbd){_0x2d7f0e=_0x2d7f0e-0x0;var _0x110b07=_0x1220[_0x2d7f0e];return _0x110b07;};'use strict';var _=require(_0x0122('0x0'));var util=require('util');var moment=require(_0x0122('0x1'));var BPromise=require(_0x0122('0x2'));var rs=require(_0x0122('0x3'));var fs=require('fs');var Redis=require(_0x0122('0x4'));var db=require(_0x0122('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x0122('0x6'))(_0x0122('0x7'));var config=require('../../config/environment');var jayson=require(_0x0122('0x8'));var client=jayson[_0x0122('0x9')][_0x0122('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4d5329,_0x575b6c,_0x404192){return new BPromise(function(_0x3b851b,_0x31085e){return client['request'](_0x4d5329,_0x404192)[_0x0122('0xb')](function(_0x3bef96){logger[_0x0122('0xc')](_0x0122('0xd'),_0x575b6c,_0x0122('0xe'));logger[_0x0122('0xf')]('VoiceTransferReport,\x20%s,\x20%s,\x20%s',_0x575b6c,'request\x20sent',JSON[_0x0122('0x10')](_0x3bef96));if(_0x3bef96[_0x0122('0x11')]){if(_0x3bef96[_0x0122('0x11')][_0x0122('0x12')]===0x1f4){logger['error'](_0x0122('0xd'),_0x575b6c,_0x3bef96[_0x0122('0x11')][_0x0122('0x13')]);return _0x31085e(_0x3bef96[_0x0122('0x11')][_0x0122('0x13')]);}logger[_0x0122('0x11')](_0x0122('0xd'),_0x575b6c,_0x3bef96[_0x0122('0x11')][_0x0122('0x13')]);return _0x3b851b(_0x3bef96[_0x0122('0x11')]['message']);}else{logger['info'](_0x0122('0xd'),_0x575b6c,_0x0122('0xe'));_0x3b851b(_0x3bef96['result'][_0x0122('0x13')]);}})[_0x0122('0x14')](function(_0x4b7a9d){logger[_0x0122('0x11')](_0x0122('0xd'),_0x575b6c,_0x4b7a9d);_0x31085e(_0x4b7a9d);});});}exports[_0x0122('0x15')]=function(_0x3d9c51){var _0xb47aaa=this;return new Promise(function(_0xe38d5,_0x3e4e1f){return db['VoiceTransferReport'][_0x0122('0x16')](_0x3d9c51[_0x0122('0x17')],{'raw':_0x3d9c51['options']?_0x3d9c51[_0x0122('0x18')][_0x0122('0x19')]===undefined?!![]:![]:!![]})[_0x0122('0xb')](function(_0x3c4440){logger[_0x0122('0xc')](_0x0122('0x15'),_0x3d9c51);logger[_0x0122('0xf')](_0x0122('0x15'),_0x3d9c51,JSON[_0x0122('0x10')](_0x3c4440));_0xe38d5(_0x3c4440);})[_0x0122('0x14')](function(_0x3364a3){logger['error']('CreateVoiceTransferReport',_0x3364a3['message'],_0x3d9c51);_0x3e4e1f(_0xb47aaa[_0x0122('0x11')](0x1f4,_0x3364a3[_0x0122('0x13')]));});});};
\ No newline at end of file
+var _0x08f9=['message','info','catch','VoiceTransferReport','create','body','options','raw','CreateVoiceTransferReport','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise','client','request','then','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x278b11,_0xf762a5){var _0x14235c=function(_0x3bc57e){while(--_0x3bc57e){_0x278b11['push'](_0x278b11['shift']());}};_0x14235c(++_0xf762a5);}(_0x08f9,0x191));var _0x908f=function(_0x5caa38,_0x7c4a6c){_0x5caa38=_0x5caa38-0x0;var _0x5b3b8d=_0x08f9[_0x5caa38];return _0x5b3b8d;};'use strict';var _=require(_0x908f('0x0'));var util=require(_0x908f('0x1'));var moment=require('moment');var BPromise=require(_0x908f('0x2'));var rs=require(_0x908f('0x3'));var fs=require('fs');var Redis=require(_0x908f('0x4'));var db=require(_0x908f('0x5'))['db'];var utils=require(_0x908f('0x6'));var logger=require('../../config/logger')(_0x908f('0x7'));var config=require('../../config/environment');var jayson=require(_0x908f('0x8'));var client=jayson[_0x908f('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5cd744,_0x32aa99,_0x47e8d8){return new BPromise(function(_0x31f11c,_0x20185e){return client[_0x908f('0xa')](_0x5cd744,_0x47e8d8)[_0x908f('0xb')](function(_0x1b9913){logger['info'](_0x908f('0xc'),_0x32aa99,_0x908f('0xd'));logger[_0x908f('0xe')](_0x908f('0xf'),_0x32aa99,_0x908f('0xd'),JSON[_0x908f('0x10')](_0x1b9913));if(_0x1b9913[_0x908f('0x11')]){if(_0x1b9913[_0x908f('0x11')][_0x908f('0x12')]===0x1f4){logger[_0x908f('0x11')](_0x908f('0xc'),_0x32aa99,_0x1b9913[_0x908f('0x11')]['message']);return _0x20185e(_0x1b9913[_0x908f('0x11')][_0x908f('0x13')]);}logger[_0x908f('0x11')](_0x908f('0xc'),_0x32aa99,_0x1b9913[_0x908f('0x11')]['message']);return _0x31f11c(_0x1b9913[_0x908f('0x11')]['message']);}else{logger[_0x908f('0x14')]('VoiceTransferReport,\x20%s,\x20%s',_0x32aa99,_0x908f('0xd'));_0x31f11c(_0x1b9913['result'][_0x908f('0x13')]);}})[_0x908f('0x15')](function(_0x32f7ca){logger[_0x908f('0x11')]('VoiceTransferReport,\x20%s,\x20%s',_0x32aa99,_0x32f7ca);_0x20185e(_0x32f7ca);});});}exports['CreateVoiceTransferReport']=function(_0x61a4b4){var _0x12e51d=this;return new Promise(function(_0x278127,_0xd04871){return db[_0x908f('0x16')][_0x908f('0x17')](_0x61a4b4[_0x908f('0x18')],{'raw':_0x61a4b4[_0x908f('0x19')]?_0x61a4b4[_0x908f('0x19')][_0x908f('0x1a')]===undefined?!![]:![]:!![]})['then'](function(_0x1797cd){logger['info']('CreateVoiceTransferReport',_0x61a4b4);logger[_0x908f('0xe')]('CreateVoiceTransferReport',_0x61a4b4,JSON[_0x908f('0x10')](_0x1797cd));_0x278127(_0x1797cd);})[_0x908f('0x15')](function(_0x59c436){logger[_0x908f('0x11')](_0x908f('0x1b'),_0x59c436[_0x908f('0x13')],_0x61a4b4);_0xd04871(_0x12e51d[_0x908f('0x11')](0x1f4,_0x59c436[_0x908f('0x13')]));});});};
\ No newline at end of file