Built motion from commit (unavailable).|2.5.5
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.rpc.js
index b80d992..725c5ca 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8335=['ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','VoiceTransferReport,\x20%s,\x20%s','request\x20sent','VoiceTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','VoiceTransferReport','create','body','options','raw','CreateVoiceTransferReport','debug','lodash','moment','bluebird','randomstring'];(function(_0x2f468c,_0x419c9a){var _0xe3f56f=function(_0x1da842){while(--_0x1da842){_0x2f468c['push'](_0x2f468c['shift']());}};_0xe3f56f(++_0x419c9a);}(_0x8335,0x132));var _0x5833=function(_0x5bac89,_0x3d1253){_0x5bac89=_0x5bac89-0x0;var _0xf079aa=_0x8335[_0x5bac89];return _0xf079aa;};'use strict';var _=require(_0x5833('0x0'));var util=require('util');var moment=require(_0x5833('0x1'));var BPromise=require(_0x5833('0x2'));var rs=require(_0x5833('0x3'));var fs=require('fs');var Redis=require(_0x5833('0x4'));var db=require(_0x5833('0x5'))['db'];var utils=require(_0x5833('0x6'));var logger=require(_0x5833('0x7'))(_0x5833('0x8'));var config=require(_0x5833('0x9'));var jayson=require(_0x5833('0xa'));var client=jayson[_0x5833('0xb')][_0x5833('0xc')]({'port':0x232a});function respondWithRpcPromise(_0xe47b17,_0x5f462b,_0x5dab9d){return new BPromise(function(_0x3d83d3,_0x373788){return client['request'](_0xe47b17,_0x5dab9d)[_0x5833('0xd')](function(_0x3a388f){logger[_0x5833('0xe')](_0x5833('0xf'),_0x5f462b,_0x5833('0x10'));logger['debug'](_0x5833('0x11'),_0x5f462b,_0x5833('0x10'),JSON[_0x5833('0x12')](_0x3a388f));if(_0x3a388f[_0x5833('0x13')]){if(_0x3a388f['error'][_0x5833('0x14')]===0x1f4){logger[_0x5833('0x13')](_0x5833('0xf'),_0x5f462b,_0x3a388f[_0x5833('0x13')][_0x5833('0x15')]);return _0x373788(_0x3a388f[_0x5833('0x13')][_0x5833('0x15')]);}logger[_0x5833('0x13')](_0x5833('0xf'),_0x5f462b,_0x3a388f[_0x5833('0x13')][_0x5833('0x15')]);return _0x3d83d3(_0x3a388f['error'][_0x5833('0x15')]);}else{logger[_0x5833('0xe')](_0x5833('0xf'),_0x5f462b,_0x5833('0x10'));_0x3d83d3(_0x3a388f[_0x5833('0x16')]['message']);}})[_0x5833('0x17')](function(_0x5d8231){logger[_0x5833('0x13')]('VoiceTransferReport,\x20%s,\x20%s',_0x5f462b,_0x5d8231);_0x373788(_0x5d8231);});});}exports['CreateVoiceTransferReport']=function(_0x4c6ec1){var _0x206a5e=this;return new Promise(function(_0x123178,_0x1bbd67){return db[_0x5833('0x18')][_0x5833('0x19')](_0x4c6ec1[_0x5833('0x1a')],{'raw':_0x4c6ec1[_0x5833('0x1b')]?_0x4c6ec1[_0x5833('0x1b')][_0x5833('0x1c')]===undefined?!![]:![]:!![]})[_0x5833('0xd')](function(_0x1ee954){logger[_0x5833('0xe')](_0x5833('0x1d'),_0x4c6ec1);logger[_0x5833('0x1e')](_0x5833('0x1d'),_0x4c6ec1,JSON[_0x5833('0x12')](_0x1ee954));_0x123178(_0x1ee954);})[_0x5833('0x17')](function(_0x5f5174){logger[_0x5833('0x13')](_0x5833('0x1d'),_0x5f5174[_0x5833('0x15')],_0x4c6ec1);_0x1bbd67(_0x206a5e[_0x5833('0x13')](0x1f4,_0x5f5174[_0x5833('0x15')]));});});};
\ No newline at end of file
+var _0x466f=['CreateVoiceTransferReport','VoiceTransferReport','create','body','options','raw','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/logger','../../config/environment','jayson/promise','client','request','then','info','VoiceTransferReport,\x20%s,\x20%s','debug','VoiceTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch'];(function(_0x3726fc,_0x541e17){var _0x21b4d0=function(_0x10745a){while(--_0x10745a){_0x3726fc['push'](_0x3726fc['shift']());}};_0x21b4d0(++_0x541e17);}(_0x466f,0x76));var _0xf466=function(_0x5963a1,_0x5cad23){_0x5963a1=_0x5963a1-0x0;var _0x3832ef=_0x466f[_0x5963a1];return _0x3832ef;};'use strict';var _=require(_0xf466('0x0'));var util=require('util');var moment=require(_0xf466('0x1'));var BPromise=require(_0xf466('0x2'));var rs=require(_0xf466('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xf466('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xf466('0x5'))('rpc');var config=require(_0xf466('0x6'));var jayson=require(_0xf466('0x7'));var client=jayson[_0xf466('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x374f9c,_0x4b7ae1,_0x3b6ea6){return new BPromise(function(_0x93baf8,_0x19a387){return client[_0xf466('0x9')](_0x374f9c,_0x3b6ea6)[_0xf466('0xa')](function(_0x10d47c){logger[_0xf466('0xb')](_0xf466('0xc'),_0x4b7ae1,'request\x20sent');logger[_0xf466('0xd')](_0xf466('0xe'),_0x4b7ae1,_0xf466('0xf'),JSON[_0xf466('0x10')](_0x10d47c));if(_0x10d47c['error']){if(_0x10d47c[_0xf466('0x11')][_0xf466('0x12')]===0x1f4){logger['error'](_0xf466('0xc'),_0x4b7ae1,_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);return _0x19a387(_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);}logger[_0xf466('0x11')](_0xf466('0xc'),_0x4b7ae1,_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);return _0x93baf8(_0x10d47c[_0xf466('0x11')][_0xf466('0x13')]);}else{logger[_0xf466('0xb')]('VoiceTransferReport,\x20%s,\x20%s',_0x4b7ae1,'request\x20sent');_0x93baf8(_0x10d47c[_0xf466('0x14')][_0xf466('0x13')]);}})[_0xf466('0x15')](function(_0x30a625){logger['error']('VoiceTransferReport,\x20%s,\x20%s',_0x4b7ae1,_0x30a625);_0x19a387(_0x30a625);});});}exports[_0xf466('0x16')]=function(_0xc7fd38){var _0x24c932=this;return new Promise(function(_0x46e1ad,_0x2f6a19){return db[_0xf466('0x17')][_0xf466('0x18')](_0xc7fd38[_0xf466('0x19')],{'raw':_0xc7fd38[_0xf466('0x1a')]?_0xc7fd38[_0xf466('0x1a')][_0xf466('0x1b')]===undefined?!![]:![]:!![]})[_0xf466('0xa')](function(_0x52b6d4){logger['info'](_0xf466('0x16'),_0xc7fd38);logger['debug'](_0xf466('0x16'),_0xc7fd38,JSON[_0xf466('0x10')](_0x52b6d4));_0x46e1ad(_0x52b6d4);})[_0xf466('0x15')](function(_0x414564){logger[_0xf466('0x11')](_0xf466('0x16'),_0x414564[_0xf466('0x13')],_0xc7fd38);_0x2f6a19(_0x24c932[_0xf466('0x11')](0x1f4,_0x414564[_0xf466('0x13')]));});});};
\ No newline at end of file