Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / pause / pause.rpc.js
index 5719613..21244dc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f40=['request','then','info','Pause,\x20%s,\x20%s','debug','Pause,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','Pause','find','options','raw','where','include','model','attributes','map','ShowPause','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http'];(function(_0x95d239,_0x3cc0d3){var _0x29d267=function(_0x48bef2){while(--_0x48bef2){_0x95d239['push'](_0x95d239['shift']());}};_0x29d267(++_0x3cc0d3);}(_0x5f40,0x148));var _0x05f4=function(_0x54b957,_0x567494){_0x54b957=_0x54b957-0x0;var _0x5a9b98=_0x5f40[_0x54b957];return _0x5a9b98;};'use strict';var _=require(_0x05f4('0x0'));var util=require(_0x05f4('0x1'));var moment=require(_0x05f4('0x2'));var BPromise=require(_0x05f4('0x3'));var rs=require(_0x05f4('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x05f4('0x5'))['db'];var utils=require(_0x05f4('0x6'));var logger=require(_0x05f4('0x7'))('rpc');var config=require(_0x05f4('0x8'));var jayson=require(_0x05f4('0x9'));var client=jayson[_0x05f4('0xa')][_0x05f4('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x274112,_0x7abac,_0x26b9dd){return new BPromise(function(_0x499464,_0x3022af){return client[_0x05f4('0xc')](_0x274112,_0x26b9dd)[_0x05f4('0xd')](function(_0x394b45){logger[_0x05f4('0xe')](_0x05f4('0xf'),_0x7abac,'request\x20sent');logger[_0x05f4('0x10')](_0x05f4('0x11'),_0x7abac,_0x05f4('0x12'),JSON[_0x05f4('0x13')](_0x394b45));if(_0x394b45[_0x05f4('0x14')]){if(_0x394b45['error'][_0x05f4('0x15')]===0x1f4){logger['error'](_0x05f4('0xf'),_0x7abac,_0x394b45[_0x05f4('0x14')]['message']);return _0x3022af(_0x394b45[_0x05f4('0x14')][_0x05f4('0x16')]);}logger['error']('Pause,\x20%s,\x20%s',_0x7abac,_0x394b45[_0x05f4('0x14')][_0x05f4('0x16')]);return _0x499464(_0x394b45[_0x05f4('0x14')][_0x05f4('0x16')]);}else{logger[_0x05f4('0xe')](_0x05f4('0xf'),_0x7abac,'request\x20sent');_0x499464(_0x394b45['result'][_0x05f4('0x16')]);}})['catch'](function(_0x2359fb){logger[_0x05f4('0x14')]('Pause,\x20%s,\x20%s',_0x7abac,_0x2359fb);_0x3022af(_0x2359fb);});});}exports['ShowPause']=function(_0x194683){var _0x377559=this;return new Promise(function(_0x475c0b,_0xd9b550){return db[_0x05f4('0x17')][_0x05f4('0x18')]({'raw':_0x194683['options']?_0x194683[_0x05f4('0x19')][_0x05f4('0x1a')]===undefined?!![]:![]:!![],'where':_0x194683[_0x05f4('0x19')]?_0x194683[_0x05f4('0x19')][_0x05f4('0x1b')]||null:null,'attributes':_0x194683[_0x05f4('0x19')]?_0x194683[_0x05f4('0x19')]['attributes']||null:null,'include':_0x194683[_0x05f4('0x19')]?_0x194683[_0x05f4('0x19')]['include']?_['map'](_0x194683['options'][_0x05f4('0x1c')],function(_0x602e98){return{'model':db[_0x602e98[_0x05f4('0x1d')]],'as':_0x602e98['as'],'attributes':_0x602e98[_0x05f4('0x1e')],'include':_0x602e98[_0x05f4('0x1c')]?_[_0x05f4('0x1f')](_0x602e98[_0x05f4('0x1c')],function(_0x2d6657){return{'model':db[_0x2d6657['model']],'as':_0x2d6657['as'],'attributes':_0x2d6657[_0x05f4('0x1e')],'include':_0x2d6657[_0x05f4('0x1c')]?_[_0x05f4('0x1f')](_0x2d6657['include'],function(_0x5c9be8){return{'model':db[_0x5c9be8[_0x05f4('0x1d')]],'as':_0x5c9be8['as'],'attributes':_0x5c9be8['attributes']};}):[]};}):[]};}):[]:[]})[_0x05f4('0xd')](function(_0xa45c5){logger[_0x05f4('0xe')](_0x05f4('0x20'),_0x194683);logger[_0x05f4('0x10')](_0x05f4('0x20'),_0x194683,JSON[_0x05f4('0x13')](_0xa45c5));_0x475c0b(_0xa45c5);})[_0x05f4('0x21')](function(_0x1633cc){logger[_0x05f4('0x14')](_0x05f4('0x20'),_0x1633cc[_0x05f4('0x16')],_0x194683);_0xd9b550(_0x377559[_0x05f4('0x14')](0x1f4,_0x1633cc['message']));});});};
\ No newline at end of file
+var _0x572a=['code','message','request\x20sent','catch','Pause','find','options','include','map','model','attributes','ShowPause','stringify','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','request','then','info','Pause,\x20%s,\x20%s','debug','error'];(function(_0x59b348,_0x57b1b6){var _0x5471a3=function(_0x342f3e){while(--_0x342f3e){_0x59b348['push'](_0x59b348['shift']());}};_0x5471a3(++_0x57b1b6);}(_0x572a,0x12f));var _0xa572=function(_0x2b19d5,_0x3f0901){_0x2b19d5=_0x2b19d5-0x0;var _0x5882bc=_0x572a[_0x2b19d5];return _0x5882bc;};'use strict';var _=require(_0xa572('0x0'));var util=require('util');var moment=require(_0xa572('0x1'));var BPromise=require(_0xa572('0x2'));var rs=require(_0xa572('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xa572('0x4'))['db'];var utils=require(_0xa572('0x5'));var logger=require(_0xa572('0x6'))(_0xa572('0x7'));var config=require('../../config/environment');var jayson=require(_0xa572('0x8'));var client=jayson['client'][_0xa572('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x3fb86f,_0x4858e5,_0x232edd){return new BPromise(function(_0x30702b,_0x20699b){return client[_0xa572('0xa')](_0x3fb86f,_0x232edd)[_0xa572('0xb')](function(_0x22b5aa){logger[_0xa572('0xc')](_0xa572('0xd'),_0x4858e5,'request\x20sent');logger[_0xa572('0xe')]('Pause,\x20%s,\x20%s,\x20%s',_0x4858e5,'request\x20sent',JSON['stringify'](_0x22b5aa));if(_0x22b5aa[_0xa572('0xf')]){if(_0x22b5aa['error'][_0xa572('0x10')]===0x1f4){logger['error'](_0xa572('0xd'),_0x4858e5,_0x22b5aa[_0xa572('0xf')][_0xa572('0x11')]);return _0x20699b(_0x22b5aa[_0xa572('0xf')]['message']);}logger['error'](_0xa572('0xd'),_0x4858e5,_0x22b5aa[_0xa572('0xf')][_0xa572('0x11')]);return _0x30702b(_0x22b5aa[_0xa572('0xf')]['message']);}else{logger[_0xa572('0xc')](_0xa572('0xd'),_0x4858e5,_0xa572('0x12'));_0x30702b(_0x22b5aa['result'][_0xa572('0x11')]);}})[_0xa572('0x13')](function(_0x259db6){logger[_0xa572('0xf')](_0xa572('0xd'),_0x4858e5,_0x259db6);_0x20699b(_0x259db6);});});}exports['ShowPause']=function(_0x391625){var _0xd61272=this;return new Promise(function(_0x328111,_0x3331c5){return db[_0xa572('0x14')][_0xa572('0x15')]({'raw':_0x391625[_0xa572('0x16')]?_0x391625[_0xa572('0x16')]['raw']===undefined?!![]:![]:!![],'where':_0x391625[_0xa572('0x16')]?_0x391625[_0xa572('0x16')]['where']||null:null,'attributes':_0x391625[_0xa572('0x16')]?_0x391625[_0xa572('0x16')]['attributes']||null:null,'include':_0x391625[_0xa572('0x16')]?_0x391625[_0xa572('0x16')][_0xa572('0x17')]?_[_0xa572('0x18')](_0x391625['options'][_0xa572('0x17')],function(_0x363d09){return{'model':db[_0x363d09[_0xa572('0x19')]],'as':_0x363d09['as'],'attributes':_0x363d09[_0xa572('0x1a')],'include':_0x363d09['include']?_['map'](_0x363d09[_0xa572('0x17')],function(_0x31eb9e){return{'model':db[_0x31eb9e['model']],'as':_0x31eb9e['as'],'attributes':_0x31eb9e[_0xa572('0x1a')],'include':_0x31eb9e[_0xa572('0x17')]?_['map'](_0x31eb9e[_0xa572('0x17')],function(_0x10d635){return{'model':db[_0x10d635['model']],'as':_0x10d635['as'],'attributes':_0x10d635[_0xa572('0x1a')]};}):[]};}):[]};}):[]:[]})[_0xa572('0xb')](function(_0x1832e2){logger[_0xa572('0xc')](_0xa572('0x1b'),_0x391625);logger[_0xa572('0xe')](_0xa572('0x1b'),_0x391625,JSON[_0xa572('0x1c')](_0x1832e2));_0x328111(_0x1832e2);})[_0xa572('0x13')](function(_0x294cc8){logger[_0xa572('0xf')]('ShowPause',_0x294cc8['message'],_0x391625);_0x3331c5(_0xd61272[_0xa572('0xf')](0x1f4,_0x294cc8['message']));});});};
\ No newline at end of file