Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / mailApplication / mailApplication.rpc.js
index ac949e6..cac71d0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb7ae=['http','request','then','info','MailApplication,\x20%s,\x20%s','request\x20sent','debug','MailApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','UpdateMailApplication','MailApplication','body','options','raw','attributes','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise'];(function(_0x17f630,_0x282ece){var _0x575c81=function(_0x3fc382){while(--_0x3fc382){_0x17f630['push'](_0x17f630['shift']());}};_0x575c81(++_0x282ece);}(_0xb7ae,0x19a));var _0xeb7a=function(_0xe4f0a0,_0x1e51ea){_0xe4f0a0=_0xe4f0a0-0x0;var _0x390425=_0xb7ae[_0xe4f0a0];return _0x390425;};'use strict';var _=require(_0xeb7a('0x0'));var util=require(_0xeb7a('0x1'));var moment=require(_0xeb7a('0x2'));var BPromise=require(_0xeb7a('0x3'));var rs=require(_0xeb7a('0x4'));var fs=require('fs');var Redis=require(_0xeb7a('0x5'));var db=require(_0xeb7a('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0xeb7a('0x7'))(_0xeb7a('0x8'));var config=require('../../config/environment');var jayson=require(_0xeb7a('0x9'));var client=jayson['client'][_0xeb7a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x226cf2,_0xe90b4c,_0x524700){return new BPromise(function(_0x5aeff1,_0x330493){return client[_0xeb7a('0xb')](_0x226cf2,_0x524700)[_0xeb7a('0xc')](function(_0x44abf8){logger[_0xeb7a('0xd')](_0xeb7a('0xe'),_0xe90b4c,_0xeb7a('0xf'));logger[_0xeb7a('0x10')](_0xeb7a('0x11'),_0xe90b4c,_0xeb7a('0xf'),JSON[_0xeb7a('0x12')](_0x44abf8));if(_0x44abf8[_0xeb7a('0x13')]){if(_0x44abf8[_0xeb7a('0x13')][_0xeb7a('0x14')]===0x1f4){logger[_0xeb7a('0x13')](_0xeb7a('0xe'),_0xe90b4c,_0x44abf8[_0xeb7a('0x13')][_0xeb7a('0x15')]);return _0x330493(_0x44abf8[_0xeb7a('0x13')]['message']);}logger[_0xeb7a('0x13')]('MailApplication,\x20%s,\x20%s',_0xe90b4c,_0x44abf8['error']['message']);return _0x5aeff1(_0x44abf8[_0xeb7a('0x13')][_0xeb7a('0x15')]);}else{logger[_0xeb7a('0xd')](_0xeb7a('0xe'),_0xe90b4c,_0xeb7a('0xf'));_0x5aeff1(_0x44abf8[_0xeb7a('0x16')][_0xeb7a('0x15')]);}})[_0xeb7a('0x17')](function(_0x775cdc){logger[_0xeb7a('0x13')]('MailApplication,\x20%s,\x20%s',_0xe90b4c,_0x775cdc);_0x330493(_0x775cdc);});});}exports[_0xeb7a('0x18')]=function(_0xa11b69){var _0x4e447f=this;return new Promise(function(_0x190389,_0x2f4b62){return db[_0xeb7a('0x19')]['update'](_0xa11b69[_0xeb7a('0x1a')],{'raw':_0xa11b69[_0xeb7a('0x1b')]?_0xa11b69[_0xeb7a('0x1b')][_0xeb7a('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xa11b69['options']?_0xa11b69['options']['where']||null:null,'attributes':_0xa11b69['options']?_0xa11b69[_0xeb7a('0x1b')][_0xeb7a('0x1d')]||null:null,'limit':_0xa11b69[_0xeb7a('0x1b')]?_0xa11b69[_0xeb7a('0x1b')]['limit']||null:null})[_0xeb7a('0xc')](function(_0x12d9bb){logger[_0xeb7a('0xd')](_0xeb7a('0x18'),_0xa11b69);logger[_0xeb7a('0x10')]('UpdateMailApplication',_0xa11b69,JSON[_0xeb7a('0x12')](_0x12d9bb));_0x190389(_0x12d9bb);})['catch'](function(_0x514e10){logger[_0xeb7a('0x13')](_0xeb7a('0x18'),_0x514e10[_0xeb7a('0x15')],_0xa11b69);_0x2f4b62(_0x4e447f[_0xeb7a('0x13')](0x1f4,_0x514e10[_0xeb7a('0x15')]));});});};
\ No newline at end of file
+var _0x05cb=['moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request','request\x20sent','debug','MailApplication,\x20%s,\x20%s,\x20%s','stringify','error','MailApplication,\x20%s,\x20%s','message','info','result','catch','UpdateMailApplication','MailApplication','body','options','raw','limit','then','util'];(function(_0x38390d,_0x484541){var _0x12e8f5=function(_0x42999c){while(--_0x42999c){_0x38390d['push'](_0x38390d['shift']());}};_0x12e8f5(++_0x484541);}(_0x05cb,0x15b));var _0xb05c=function(_0x320fcc,_0x103c3a){_0x320fcc=_0x320fcc-0x0;var _0x16c97c=_0x05cb[_0x320fcc];return _0x16c97c;};'use strict';var _=require('lodash');var util=require(_0xb05c('0x0'));var moment=require(_0xb05c('0x1'));var BPromise=require('bluebird');var rs=require(_0xb05c('0x2'));var fs=require('fs');var Redis=require(_0xb05c('0x3'));var db=require(_0xb05c('0x4'))['db'];var utils=require(_0xb05c('0x5'));var logger=require(_0xb05c('0x6'))(_0xb05c('0x7'));var config=require('../../config/environment');var jayson=require(_0xb05c('0x8'));var client=jayson[_0xb05c('0x9')][_0xb05c('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5884e9,_0xb0100a,_0x5c4f70){return new BPromise(function(_0x2e3fd5,_0xa6935){return client[_0xb05c('0xb')](_0x5884e9,_0x5c4f70)['then'](function(_0x16e229){logger['info']('MailApplication,\x20%s,\x20%s',_0xb0100a,_0xb05c('0xc'));logger[_0xb05c('0xd')](_0xb05c('0xe'),_0xb0100a,'request\x20sent',JSON[_0xb05c('0xf')](_0x16e229));if(_0x16e229[_0xb05c('0x10')]){if(_0x16e229['error']['code']===0x1f4){logger['error'](_0xb05c('0x11'),_0xb0100a,_0x16e229[_0xb05c('0x10')]['message']);return _0xa6935(_0x16e229['error'][_0xb05c('0x12')]);}logger[_0xb05c('0x10')](_0xb05c('0x11'),_0xb0100a,_0x16e229[_0xb05c('0x10')][_0xb05c('0x12')]);return _0x2e3fd5(_0x16e229[_0xb05c('0x10')][_0xb05c('0x12')]);}else{logger[_0xb05c('0x13')](_0xb05c('0x11'),_0xb0100a,'request\x20sent');_0x2e3fd5(_0x16e229[_0xb05c('0x14')]['message']);}})[_0xb05c('0x15')](function(_0x492b5b){logger['error'](_0xb05c('0x11'),_0xb0100a,_0x492b5b);_0xa6935(_0x492b5b);});});}exports[_0xb05c('0x16')]=function(_0x1f65ed){var _0x81cf2=this;return new Promise(function(_0x5d7858,_0x5e96d1){return db[_0xb05c('0x17')]['update'](_0x1f65ed[_0xb05c('0x18')],{'raw':_0x1f65ed[_0xb05c('0x19')]?_0x1f65ed[_0xb05c('0x19')][_0xb05c('0x1a')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1f65ed[_0xb05c('0x19')]?_0x1f65ed[_0xb05c('0x19')]['where']||null:null,'attributes':_0x1f65ed['options']?_0x1f65ed[_0xb05c('0x19')]['attributes']||null:null,'limit':_0x1f65ed[_0xb05c('0x19')]?_0x1f65ed[_0xb05c('0x19')][_0xb05c('0x1b')]||null:null})[_0xb05c('0x1c')](function(_0x50a6ed){logger['info'](_0xb05c('0x16'),_0x1f65ed);logger[_0xb05c('0xd')](_0xb05c('0x16'),_0x1f65ed,JSON[_0xb05c('0xf')](_0x50a6ed));_0x5d7858(_0x50a6ed);})[_0xb05c('0x15')](function(_0x63d638){logger[_0xb05c('0x10')](_0xb05c('0x16'),_0x63d638[_0xb05c('0x12')],_0x1f65ed);_0x5e96d1(_0x81cf2[_0xb05c('0x10')](0x1f4,_0x63d638[_0xb05c('0x12')]));});});};
\ No newline at end of file