Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.rpc.js
index 19a5d3b..ed2ca65 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf6d0=['../../config/utils','jayson/promise','client','defaults','redis','localhost','./userVoiceQueueRt.socket','register','request','then','info','request\x20sent','UserVoiceQueueRt,\x20%s,\x20%s,\x20%s','error','UserVoiceQueueRt,\x20%s,\x20%s','message','result','GetVoiceQueueRtPauses','UserVoiceQueueRt','findAll','options','where','sequelize','literal','`paused`\x20=\x201,\x201,\x20null','outboundQueuePauses','debug','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x2c5e0c,_0x82257a){var _0x5009ec=function(_0x20fa81){while(--_0x20fa81){_0x2c5e0c['push'](_0x2c5e0c['shift']());}};_0x5009ec(++_0x82257a);}(_0xf6d0,0x165));var _0x0f6d=function(_0x2b2adc,_0xd169ae){_0x2b2adc=_0x2b2adc-0x0;var _0x21eb99=_0xf6d0[_0x2b2adc];return _0x21eb99;};'use strict';var _=require(_0x0f6d('0x0'));var util=require('util');var moment=require(_0x0f6d('0x1'));var BPromise=require(_0x0f6d('0x2'));var rs=require(_0x0f6d('0x3'));var fs=require('fs');var Redis=require(_0x0f6d('0x4'));var db=require(_0x0f6d('0x5'))['db'];var utils=require(_0x0f6d('0x6'));var logger=require('../../config/logger')('rpc');var config=require('../../config/environment');var jayson=require(_0x0f6d('0x7'));var client=jayson[_0x0f6d('0x8')]['http']({'port':0x232a});config['redis']=_[_0x0f6d('0x9')](config[_0x0f6d('0xa')],{'host':_0x0f6d('0xb'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0x0f6d('0xa')]));require(_0x0f6d('0xc'))[_0x0f6d('0xd')](socket);function respondWithRpcPromise(_0x12cf96,_0x2bb482,_0x8d705d){return new BPromise(function(_0x82e7fc,_0x19f2bd){return client[_0x0f6d('0xe')](_0x12cf96,_0x8d705d)[_0x0f6d('0xf')](function(_0x177289){logger[_0x0f6d('0x10')]('UserVoiceQueueRt,\x20%s,\x20%s',_0x2bb482,_0x0f6d('0x11'));logger['debug'](_0x0f6d('0x12'),_0x2bb482,_0x0f6d('0x11'),JSON['stringify'](_0x177289));if(_0x177289[_0x0f6d('0x13')]){if(_0x177289[_0x0f6d('0x13')]['code']===0x1f4){logger[_0x0f6d('0x13')](_0x0f6d('0x14'),_0x2bb482,_0x177289[_0x0f6d('0x13')]['message']);return _0x19f2bd(_0x177289[_0x0f6d('0x13')][_0x0f6d('0x15')]);}logger[_0x0f6d('0x13')]('UserVoiceQueueRt,\x20%s,\x20%s',_0x2bb482,_0x177289[_0x0f6d('0x13')][_0x0f6d('0x15')]);return _0x82e7fc(_0x177289[_0x0f6d('0x13')]['message']);}else{logger['info'](_0x0f6d('0x14'),_0x2bb482,'request\x20sent');_0x82e7fc(_0x177289[_0x0f6d('0x16')][_0x0f6d('0x15')]);}})['catch'](function(_0x355af6){logger[_0x0f6d('0x13')]('UserVoiceQueueRt,\x20%s,\x20%s',_0x2bb482,_0x355af6);_0x19f2bd(_0x355af6);});});}exports[_0x0f6d('0x17')]=function(_0x50e12b){var _0x48fb2f=this;return new Promise(function(_0x51571e,_0x5149ca){return db[_0x0f6d('0x18')][_0x0f6d('0x19')]({'raw':_0x50e12b[_0x0f6d('0x1a')]?_0x50e12b[_0x0f6d('0x1a')]['raw']===undefined?!![]:![]:!![],'where':_0x50e12b['options']?_0x50e12b[_0x0f6d('0x1a')][_0x0f6d('0x1b')]||null:null,'attributes':[[db[_0x0f6d('0x1c')]['fn']('COUNT',db[_0x0f6d('0x1c')]['fn']('IF',db[_0x0f6d('0x1c')][_0x0f6d('0x1d')](_0x0f6d('0x1e')))),_0x0f6d('0x1f')]]})['then'](function(_0x68758a){logger[_0x0f6d('0x10')]('GetVoiceQueueRtPauses',_0x50e12b);logger[_0x0f6d('0x20')](_0x0f6d('0x17'),_0x50e12b,JSON['stringify'](_0x68758a));_0x51571e(_0x68758a);})['catch'](function(_0x324b9e){logger[_0x0f6d('0x13')](_0x0f6d('0x17'),_0x324b9e[_0x0f6d('0x15')],_0x50e12b);_0x5149ca(_0x48fb2f[_0x0f6d('0x13')](0x1f4,_0x324b9e[_0x0f6d('0x15')]));});});};
\ No newline at end of file
+var _0xec49=['../../mysqldb','../../config/utils','../../config/environment','client','http','redis','defaults','localhost','socket.io-emitter','register','then','UserVoiceQueueRt,\x20%s,\x20%s','request\x20sent','debug','error','code','message','info','result','catch','GetVoiceQueueRtPauses','UserVoiceQueueRt','findAll','options','sequelize','COUNT','`paused`\x20=\x201,\x201,\x20null','outboundQueuePauses','stringify','lodash','util','bluebird','randomstring','ioredis'];(function(_0x20bfda,_0x570743){var _0x5bf60c=function(_0x1c0fa6){while(--_0x1c0fa6){_0x20bfda['push'](_0x20bfda['shift']());}};_0x5bf60c(++_0x570743);}(_0xec49,0x83));var _0x9ec4=function(_0x1cbab4,_0x318598){_0x1cbab4=_0x1cbab4-0x0;var _0x2e9ea7=_0xec49[_0x1cbab4];return _0x2e9ea7;};'use strict';var _=require(_0x9ec4('0x0'));var util=require(_0x9ec4('0x1'));var moment=require('moment');var BPromise=require(_0x9ec4('0x2'));var rs=require(_0x9ec4('0x3'));var fs=require('fs');var Redis=require(_0x9ec4('0x4'));var db=require(_0x9ec4('0x5'))['db'];var utils=require(_0x9ec4('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0x9ec4('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x9ec4('0x8')][_0x9ec4('0x9')]({'port':0x232a});config[_0x9ec4('0xa')]=_[_0x9ec4('0xb')](config[_0x9ec4('0xa')],{'host':_0x9ec4('0xc'),'port':0x18eb});var socket=require(_0x9ec4('0xd'))(new Redis(config[_0x9ec4('0xa')]));require('./userVoiceQueueRt.socket')[_0x9ec4('0xe')](socket);function respondWithRpcPromise(_0x2e62fd,_0x1c00cf,_0x2c50b3){return new BPromise(function(_0x50b6c0,_0xd65fd2){return client['request'](_0x2e62fd,_0x2c50b3)[_0x9ec4('0xf')](function(_0x1097bb){logger['info'](_0x9ec4('0x10'),_0x1c00cf,_0x9ec4('0x11'));logger[_0x9ec4('0x12')]('UserVoiceQueueRt,\x20%s,\x20%s,\x20%s',_0x1c00cf,_0x9ec4('0x11'),JSON['stringify'](_0x1097bb));if(_0x1097bb[_0x9ec4('0x13')]){if(_0x1097bb[_0x9ec4('0x13')][_0x9ec4('0x14')]===0x1f4){logger[_0x9ec4('0x13')](_0x9ec4('0x10'),_0x1c00cf,_0x1097bb[_0x9ec4('0x13')][_0x9ec4('0x15')]);return _0xd65fd2(_0x1097bb[_0x9ec4('0x13')]['message']);}logger[_0x9ec4('0x13')]('UserVoiceQueueRt,\x20%s,\x20%s',_0x1c00cf,_0x1097bb[_0x9ec4('0x13')][_0x9ec4('0x15')]);return _0x50b6c0(_0x1097bb['error'][_0x9ec4('0x15')]);}else{logger[_0x9ec4('0x16')](_0x9ec4('0x10'),_0x1c00cf,_0x9ec4('0x11'));_0x50b6c0(_0x1097bb[_0x9ec4('0x17')][_0x9ec4('0x15')]);}})[_0x9ec4('0x18')](function(_0x14790e){logger[_0x9ec4('0x13')](_0x9ec4('0x10'),_0x1c00cf,_0x14790e);_0xd65fd2(_0x14790e);});});}exports[_0x9ec4('0x19')]=function(_0x4bed52){var _0x229756=this;return new Promise(function(_0x429cae,_0x10ba55){return db[_0x9ec4('0x1a')][_0x9ec4('0x1b')]({'raw':_0x4bed52[_0x9ec4('0x1c')]?_0x4bed52[_0x9ec4('0x1c')]['raw']===undefined?!![]:![]:!![],'where':_0x4bed52[_0x9ec4('0x1c')]?_0x4bed52[_0x9ec4('0x1c')]['where']||null:null,'attributes':[[db[_0x9ec4('0x1d')]['fn'](_0x9ec4('0x1e'),db[_0x9ec4('0x1d')]['fn']('IF',db[_0x9ec4('0x1d')]['literal'](_0x9ec4('0x1f')))),_0x9ec4('0x20')]]})[_0x9ec4('0xf')](function(_0xf05a90){logger[_0x9ec4('0x16')](_0x9ec4('0x19'),_0x4bed52);logger[_0x9ec4('0x12')](_0x9ec4('0x19'),_0x4bed52,JSON[_0x9ec4('0x21')](_0xf05a90));_0x429cae(_0xf05a90);})[_0x9ec4('0x18')](function(_0x49ecfc){logger[_0x9ec4('0x13')](_0x9ec4('0x19'),_0x49ecfc[_0x9ec4('0x15')],_0x4bed52);_0x10ba55(_0x229756[_0x9ec4('0x13')](0x1f4,_0x49ecfc[_0x9ec4('0x15')]));});});};
\ No newline at end of file