Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / chatQueueReport / chatQueueReport.rpc.js
index 7da8b25..f5f70d7 100644 (file)
@@ -1 +1 @@
-const a104_0x383d=['error','create','update','catch','ChatQueueReport','UpdateChatQueueReport','then','../../config/logger','options','raw','where','stringify','rpc','message','../../mysqldb','CreateChatQueueReport','info','debug'];(function(_0x224f94,_0x383def){const _0x26aa71=function(_0x28eb0c){while(--_0x28eb0c){_0x224f94['push'](_0x224f94['shift']());}};_0x26aa71(++_0x383def);}(a104_0x383d,0xc9));const a104_0x26aa=function(_0x224f94,_0x383def){_0x224f94=_0x224f94-0x0;let _0x26aa71=a104_0x383d[_0x224f94];return _0x26aa71;};const _0x2e81dc=a104_0x26aa;'use strict';const db=require(_0x2e81dc('0xb'))['db'],logger=require(_0x2e81dc('0x4'))(_0x2e81dc('0x9'));exports[_0x2e81dc('0xc')]=function(_0x28eb0c){const _0x38431c=this;return new Promise(function(_0x2e881e,_0x9f4885){const _0x2c4d0a=a104_0x26aa;return db[_0x2c4d0a('0x1')][_0x2c4d0a('0x10')](_0x28eb0c['body'],{'raw':_0x28eb0c[_0x2c4d0a('0x5')]?_0x28eb0c[_0x2c4d0a('0x5')]['raw']===undefined?!![]:![]:!![]})[_0x2c4d0a('0x3')](function(_0x28c763){const _0x2bdf25=_0x2c4d0a;logger[_0x2bdf25('0xd')](_0x2bdf25('0xc'),_0x28eb0c),logger[_0x2bdf25('0xe')](_0x2bdf25('0xc'),_0x28eb0c,JSON[_0x2bdf25('0x8')](_0x28c763)),_0x2e881e(_0x28c763);})[_0x2c4d0a('0x0')](function(_0x383a00){const _0x4c1f27=_0x2c4d0a;logger[_0x4c1f27('0xf')](_0x4c1f27('0xc'),_0x383a00['message'],_0x28eb0c),_0x9f4885(_0x38431c[_0x4c1f27('0xf')](0x1f4,_0x383a00[_0x4c1f27('0xa')]));});});},exports[_0x2e81dc('0x2')]=function(_0x25f71b){const _0x33e612=this;return new Promise(function(_0xc7f63e,_0x270664){const _0x32c8a6=a104_0x26aa;return db[_0x32c8a6('0x1')][_0x32c8a6('0x11')](_0x25f71b['body'],{'raw':_0x25f71b[_0x32c8a6('0x5')]?_0x25f71b[_0x32c8a6('0x5')][_0x32c8a6('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x25f71b[_0x32c8a6('0x5')]?_0x25f71b[_0x32c8a6('0x5')][_0x32c8a6('0x7')]||null:null,'attributes':_0x25f71b['options']?_0x25f71b['options']['attributes']||null:null,'limit':_0x25f71b[_0x32c8a6('0x5')]?_0x25f71b[_0x32c8a6('0x5')]['limit']||null:null})[_0x32c8a6('0x3')](function(_0x43016e){const _0x5be125=_0x32c8a6;logger['info'](_0x5be125('0x2'),_0x25f71b),logger[_0x5be125('0xe')](_0x5be125('0x2'),_0x25f71b,JSON[_0x5be125('0x8')](_0x43016e)),_0xc7f63e(_0x43016e);})[_0x32c8a6('0x0')](function(_0x593914){const _0x4ac22d=_0x32c8a6;logger[_0x4ac22d('0xf')](_0x4ac22d('0x2'),_0x593914[_0x4ac22d('0xa')],_0x25f71b),_0x270664(_0x33e612[_0x4ac22d('0xf')](0x1f4,_0x593914['message']));});});};
\ No newline at end of file
+const a104_0x59fc=['message','then','catch','where','info','rpc','options','body','UpdateChatQueueReport','raw','create','update','stringify','../../mysqldb','error','debug','ChatQueueReport','CreateChatQueueReport'];(function(_0x556236,_0x59fc45){const _0x701429=function(_0x246967){while(--_0x246967){_0x556236['push'](_0x556236['shift']());}};_0x701429(++_0x59fc45);}(a104_0x59fc,0xca));const a104_0x7014=function(_0x556236,_0x59fc45){_0x556236=_0x556236-0x0;let _0x701429=a104_0x59fc[_0x556236];return _0x701429;};const _0xe26431=a104_0x7014;'use strict';const db=require(_0xe26431('0x9'))['db'],logger=require('../../config/logger')(_0xe26431('0x1'));exports[_0xe26431('0xd')]=function(_0x246967){const _0x2c1b46=this;return new Promise(function(_0x479813,_0x557d87){const _0x144f30=a104_0x7014;return db['ChatQueueReport'][_0x144f30('0x6')](_0x246967['body'],{'raw':_0x246967[_0x144f30('0x2')]?_0x246967['options'][_0x144f30('0x5')]===undefined?!![]:![]:!![]})[_0x144f30('0xf')](function(_0x3c7982){const _0x4f1494=_0x144f30;logger[_0x4f1494('0x0')](_0x4f1494('0xd'),_0x246967),logger[_0x4f1494('0xb')](_0x4f1494('0xd'),_0x246967,JSON[_0x4f1494('0x8')](_0x3c7982)),_0x479813(_0x3c7982);})[_0x144f30('0x10')](function(_0x49beb5){const _0x4284b4=_0x144f30;logger['error'](_0x4284b4('0xd'),_0x49beb5[_0x4284b4('0xe')],_0x246967),_0x557d87(_0x2c1b46[_0x4284b4('0xa')](0x1f4,_0x49beb5[_0x4284b4('0xe')]));});});},exports['UpdateChatQueueReport']=function(_0x1f905c){const _0xb64b64=this;return new Promise(function(_0x537b0f,_0xbc1c61){const _0x143b75=a104_0x7014;return db[_0x143b75('0xc')][_0x143b75('0x7')](_0x1f905c[_0x143b75('0x3')],{'raw':_0x1f905c[_0x143b75('0x2')]?_0x1f905c[_0x143b75('0x2')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1f905c['options']?_0x1f905c[_0x143b75('0x2')][_0x143b75('0x11')]||null:null,'attributes':_0x1f905c[_0x143b75('0x2')]?_0x1f905c[_0x143b75('0x2')]['attributes']||null:null,'limit':_0x1f905c[_0x143b75('0x2')]?_0x1f905c['options']['limit']||null:null})[_0x143b75('0xf')](function(_0x36b127){const _0x12edc7=_0x143b75;logger[_0x12edc7('0x0')](_0x12edc7('0x4'),_0x1f905c),logger[_0x12edc7('0xb')](_0x12edc7('0x4'),_0x1f905c,JSON[_0x12edc7('0x8')](_0x36b127)),_0x537b0f(_0x36b127);})[_0x143b75('0x10')](function(_0x263378){const _0x348801=_0x143b75;logger['error'](_0x348801('0x4'),_0x263378[_0x348801('0xe')],_0x1f905c),_0xbc1c61(_0xb64b64[_0x348801('0xa')](0x1f4,_0x263378[_0x348801('0xe')]));});});};
\ No newline at end of file