Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / openchannelQueueReport / openchannelQueueReport.rpc.js
index 74c998a..a1b70af 100644 (file)
@@ -1 +1 @@
-const a503_0x3bfc=['where','body','stringify','OpenchannelQueueReport','error','then','raw','catch','message','update','debug','create','attributes','options','info','UpdateOpenchannelQueueReport','../../config/logger','CreateOpenchannelQueueReport'];(function(_0x189270,_0x3bfc68){const _0x28694e=function(_0x2acaad){while(--_0x2acaad){_0x189270['push'](_0x189270['shift']());}};_0x28694e(++_0x3bfc68);}(a503_0x3bfc,0xe7));const a503_0x2869=function(_0x189270,_0x3bfc68){_0x189270=_0x189270-0x0;let _0x28694e=a503_0x3bfc[_0x189270];return _0x28694e;};const _0x4daf71=a503_0x2869;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4daf71('0x1'))('rpc');exports[_0x4daf71('0x2')]=function(_0x2acaad){const _0x5f334f=this;return new Promise(function(_0xe615dd,_0x39feda){const _0xfb2080=a503_0x2869;return db['OpenchannelQueueReport'][_0xfb2080('0xe')](_0x2acaad[_0xfb2080('0x4')],{'raw':_0x2acaad[_0xfb2080('0x10')]?_0x2acaad['options']['raw']===undefined?!![]:![]:!![]})[_0xfb2080('0x8')](function(_0x97dcc0){const _0x219afb=_0xfb2080;logger[_0x219afb('0x11')](_0x219afb('0x2'),_0x2acaad),logger['debug']('CreateOpenchannelQueueReport',_0x2acaad,JSON[_0x219afb('0x5')](_0x97dcc0)),_0xe615dd(_0x97dcc0);})[_0xfb2080('0xa')](function(_0x577e07){const _0x52561c=_0xfb2080;logger[_0x52561c('0x7')]('CreateOpenchannelQueueReport',_0x577e07[_0x52561c('0xb')],_0x2acaad),_0x39feda(_0x5f334f['error'](0x1f4,_0x577e07['message']));});});},exports['UpdateOpenchannelQueueReport']=function(_0x5c7aff){const _0x4deb17=this;return new Promise(function(_0x28f528,_0x6b9c6b){const _0xe393fd=a503_0x2869;return db[_0xe393fd('0x6')][_0xe393fd('0xc')](_0x5c7aff['body'],{'raw':_0x5c7aff[_0xe393fd('0x10')]?_0x5c7aff['options'][_0xe393fd('0x9')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5c7aff[_0xe393fd('0x10')]?_0x5c7aff['options'][_0xe393fd('0x3')]||null:null,'attributes':_0x5c7aff[_0xe393fd('0x10')]?_0x5c7aff[_0xe393fd('0x10')][_0xe393fd('0xf')]||null:null,'limit':_0x5c7aff[_0xe393fd('0x10')]?_0x5c7aff[_0xe393fd('0x10')]['limit']||null:null})['then'](function(_0x5e5db2){const _0x2dc81a=_0xe393fd;logger['info']('UpdateOpenchannelQueueReport',_0x5c7aff),logger[_0x2dc81a('0xd')]('UpdateOpenchannelQueueReport',_0x5c7aff,JSON['stringify'](_0x5e5db2)),_0x28f528(_0x5e5db2);})['catch'](function(_0x4a0313){const _0xc2dec9=_0xe393fd;logger[_0xc2dec9('0x7')](_0xc2dec9('0x0'),_0x4a0313[_0xc2dec9('0xb')],_0x5c7aff),_0x6b9c6b(_0x4deb17['error'](0x1f4,_0x4a0313[_0xc2dec9('0xb')]));});});};
\ No newline at end of file
+const a503_0x3fdd=['stringify','catch','../../mysqldb','body','attributes','info','where','CreateOpenchannelQueueReport','debug','rpc','options','message','raw','UpdateOpenchannelQueueReport','../../config/logger','create','limit','then','error'];(function(_0x3f8093,_0x3fdd0f){const _0x349330=function(_0x531f1c){while(--_0x531f1c){_0x3f8093['push'](_0x3f8093['shift']());}};_0x349330(++_0x3fdd0f);}(a503_0x3fdd,0x195));const a503_0x3493=function(_0x3f8093,_0x3fdd0f){_0x3f8093=_0x3f8093-0x0;let _0x349330=a503_0x3fdd[_0x3f8093];return _0x349330;};const _0x2578fd=a503_0x3493;'use strict';const db=require(_0x2578fd('0xf'))['db'],logger=require(_0x2578fd('0x8'))(_0x2578fd('0x3'));exports[_0x2578fd('0x1')]=function(_0x531f1c){const _0x17fd0a=this;return new Promise(function(_0x1a7209,_0x4ecf8b){const _0x1ab073=a503_0x3493;return db['OpenchannelQueueReport'][_0x1ab073('0x9')](_0x531f1c[_0x1ab073('0x10')],{'raw':_0x531f1c[_0x1ab073('0x4')]?_0x531f1c[_0x1ab073('0x4')][_0x1ab073('0x6')]===undefined?!![]:![]:!![]})[_0x1ab073('0xb')](function(_0x3e8b3a){const _0x33de82=_0x1ab073;logger[_0x33de82('0x12')](_0x33de82('0x1'),_0x531f1c),logger[_0x33de82('0x2')](_0x33de82('0x1'),_0x531f1c,JSON['stringify'](_0x3e8b3a)),_0x1a7209(_0x3e8b3a);})[_0x1ab073('0xe')](function(_0xc6bd4a){const _0x38856a=_0x1ab073;logger['error'](_0x38856a('0x1'),_0xc6bd4a[_0x38856a('0x5')],_0x531f1c),_0x4ecf8b(_0x17fd0a[_0x38856a('0xc')](0x1f4,_0xc6bd4a[_0x38856a('0x5')]));});});},exports[_0x2578fd('0x7')]=function(_0x35b0b9){const _0x3ba7cd=this;return new Promise(function(_0x259882,_0x1804f2){const _0x181407=a503_0x3493;return db['OpenchannelQueueReport']['update'](_0x35b0b9['body'],{'raw':_0x35b0b9[_0x181407('0x4')]?_0x35b0b9[_0x181407('0x4')][_0x181407('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x35b0b9[_0x181407('0x4')]?_0x35b0b9['options'][_0x181407('0x0')]||null:null,'attributes':_0x35b0b9[_0x181407('0x4')]?_0x35b0b9['options'][_0x181407('0x11')]||null:null,'limit':_0x35b0b9[_0x181407('0x4')]?_0x35b0b9['options'][_0x181407('0xa')]||null:null})[_0x181407('0xb')](function(_0x1d868f){const _0xa98d1a=_0x181407;logger[_0xa98d1a('0x12')](_0xa98d1a('0x7'),_0x35b0b9),logger[_0xa98d1a('0x2')](_0xa98d1a('0x7'),_0x35b0b9,JSON[_0xa98d1a('0xd')](_0x1d868f)),_0x259882(_0x1d868f);})[_0x181407('0xe')](function(_0x25e372){const _0x17736d=_0x181407;logger[_0x17736d('0xc')](_0x17736d('0x7'),_0x25e372[_0x17736d('0x5')],_0x35b0b9),_0x1804f2(_0x3ba7cd['error'](0x1f4,_0x25e372[_0x17736d('0x5')]));});});};
\ No newline at end of file