Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / api / faxInteraction / faxInteraction.rpc.js
index 25f61b2..7637d85 100644 (file)
@@ -1 +1 @@
-const a201_0x55a3=['ids','AddTags','error','register','lodash','UpdateFaxInteraction','then','rpc','catch','../../mysqldb','info','update','FaxInteraction','where','message','debug','../../config/logger','raw','stringify','body','options','limit','omit','../../rediscache','AddTagsToFaxInteraction'];(function(_0x767045,_0x55a35c){const _0xcb25f9=function(_0x3922f4){while(--_0x3922f4){_0x767045['push'](_0x767045['shift']());}};_0xcb25f9(++_0x55a35c);}(a201_0x55a3,0x14a));const a201_0xcb25=function(_0x767045,_0x55a35c){_0x767045=_0x767045-0x0;let _0xcb25f9=a201_0x55a3[_0x767045];return _0xcb25f9;};const _0x14979b=a201_0xcb25;'use strict';const _=require(_0x14979b('0x18')),db=require(_0x14979b('0x4'))['db'],logger=require(_0x14979b('0xb'))(_0x14979b('0x2')),{getSocket}=require(_0x14979b('0x12')),socket=getSocket();require('./faxInteraction.socket')[_0x14979b('0x17')](socket),exports[_0x14979b('0x0')]=function(_0x3922f4){const _0x441403=this;return new Promise(function(_0x569841,_0x489761){const _0x1f10d2=a201_0xcb25;return db[_0x1f10d2('0x7')][_0x1f10d2('0x6')](_0x3922f4[_0x1f10d2('0xe')],{'raw':_0x3922f4[_0x1f10d2('0xf')]?_0x3922f4['options'][_0x1f10d2('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3922f4['options']?_0x3922f4['options'][_0x1f10d2('0x8')]||null:null,'attributes':_0x3922f4[_0x1f10d2('0xf')]?_0x3922f4[_0x1f10d2('0xf')]['attributes']||null:null,'limit':_0x3922f4[_0x1f10d2('0xf')]?_0x3922f4[_0x1f10d2('0xf')][_0x1f10d2('0x10')]||null:null})[_0x1f10d2('0x1')](function(_0x5317b8){const _0x1c2f62=_0x1f10d2;logger['info'](_0x1c2f62('0x0'),_0x3922f4),logger[_0x1c2f62('0xa')]('UpdateFaxInteraction',_0x3922f4,JSON['stringify'](_0x5317b8)),_0x569841(_0x5317b8);})['catch'](function(_0x6c271c){const _0x177ec1=_0x1f10d2;logger[_0x177ec1('0x16')](_0x177ec1('0x0'),_0x6c271c[_0x177ec1('0x9')],_0x3922f4),_0x489761(_0x441403[_0x177ec1('0x16')](0x1f4,_0x6c271c['message']));});});},exports[_0x14979b('0x13')]=function(_0xb2339e){const _0x5a1530=this;return new Promise(function(_0x4b67e7,_0x59488e){const _0x4987ba=a201_0xcb25;return db[_0x4987ba('0x7')]['findOne']({'where':_0xb2339e[_0x4987ba('0xf')]?_0xb2339e[_0x4987ba('0xf')]['where']||null:null})['then'](function(_0x5a6fb4){const _0x308d65=_0x4987ba;if(_0x5a6fb4)return _0x5a6fb4['addTags'](_0xb2339e[_0x308d65('0xe')]['ids'],{'through':_[_0x308d65('0x11')](_0xb2339e[_0x308d65('0xe')],[_0x308d65('0x14'),'id'])});})[_0x4987ba('0x1')](function([_0x1069c9]){const _0x35b08f=_0x4987ba;logger[_0x35b08f('0x5')]('AddTags',_0xb2339e),logger[_0x35b08f('0xa')]('AddTags',_0xb2339e,JSON[_0x35b08f('0xd')](_0x1069c9)),_0x4b67e7(_0x1069c9);})[_0x4987ba('0x3')](function(_0x62e128){const _0x44fd11=_0x4987ba;logger[_0x44fd11('0x16')](_0x44fd11('0x15'),_0x62e128[_0x44fd11('0x9')],_0xb2339e),_0x59488e(_0x5a1530[_0x44fd11('0x16')](0x1f4,_0x62e128[_0x44fd11('0x9')]));});});};
\ No newline at end of file
+const a201_0x181a=['then','lodash','UpdateFaxInteraction','FaxInteraction','addTags','error','../../mysqldb','stringify','omit','./faxInteraction.socket','rpc','findOne','catch','limit','AddTagsToFaxInteraction','../../rediscache','debug','info','body','message','../../config/logger','AddTags','register','where','raw','options','ids'];(function(_0x3ed897,_0x181aba){const _0x476758=function(_0x13fd7b){while(--_0x13fd7b){_0x3ed897['push'](_0x3ed897['shift']());}};_0x476758(++_0x181aba);}(a201_0x181a,0xbf));const a201_0x4767=function(_0x3ed897,_0x181aba){_0x3ed897=_0x3ed897-0x0;let _0x476758=a201_0x181a[_0x3ed897];return _0x476758;};const _0x3bb05f=a201_0x4767;'use strict';const _=require(_0x3bb05f('0x1a')),db=require(_0x3bb05f('0x4'))['db'],logger=require(_0x3bb05f('0x12'))(_0x3bb05f('0x8')),{getSocket}=require(_0x3bb05f('0xd')),socket=getSocket();require(_0x3bb05f('0x7'))[_0x3bb05f('0x14')](socket),exports[_0x3bb05f('0x0')]=function(_0x13fd7b){const _0x33adef=this;return new Promise(function(_0x18902a,_0x467c91){const _0x39f834=a201_0x4767;return db[_0x39f834('0x1')]['update'](_0x13fd7b[_0x39f834('0x10')],{'raw':_0x13fd7b[_0x39f834('0x17')]?_0x13fd7b[_0x39f834('0x17')][_0x39f834('0x16')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x13fd7b['options']?_0x13fd7b[_0x39f834('0x17')][_0x39f834('0x15')]||null:null,'attributes':_0x13fd7b[_0x39f834('0x17')]?_0x13fd7b[_0x39f834('0x17')]['attributes']||null:null,'limit':_0x13fd7b[_0x39f834('0x17')]?_0x13fd7b[_0x39f834('0x17')][_0x39f834('0xb')]||null:null})[_0x39f834('0x19')](function(_0x3953ca){const _0x1a48a9=_0x39f834;logger[_0x1a48a9('0xf')]('UpdateFaxInteraction',_0x13fd7b),logger['debug']('UpdateFaxInteraction',_0x13fd7b,JSON[_0x1a48a9('0x5')](_0x3953ca)),_0x18902a(_0x3953ca);})[_0x39f834('0xa')](function(_0x23ec3b){const _0x343079=_0x39f834;logger[_0x343079('0x3')](_0x343079('0x0'),_0x23ec3b[_0x343079('0x11')],_0x13fd7b),_0x467c91(_0x33adef[_0x343079('0x3')](0x1f4,_0x23ec3b[_0x343079('0x11')]));});});},exports[_0x3bb05f('0xc')]=function(_0x3b62cf){const _0x1c0d3a=this;return new Promise(function(_0x3d2a35,_0x5ae143){const _0x32069d=a201_0x4767;return db[_0x32069d('0x1')][_0x32069d('0x9')]({'where':_0x3b62cf[_0x32069d('0x17')]?_0x3b62cf[_0x32069d('0x17')][_0x32069d('0x15')]||null:null})[_0x32069d('0x19')](function(_0x4ee520){const _0x2ac288=_0x32069d;if(_0x4ee520)return _0x4ee520[_0x2ac288('0x2')](_0x3b62cf[_0x2ac288('0x10')][_0x2ac288('0x18')],{'through':_[_0x2ac288('0x6')](_0x3b62cf[_0x2ac288('0x10')],[_0x2ac288('0x18'),'id'])});})[_0x32069d('0x19')](function([_0xb09fd]){const _0x14c0b1=_0x32069d;logger['info']('AddTags',_0x3b62cf),logger[_0x14c0b1('0xe')]('AddTags',_0x3b62cf,JSON[_0x14c0b1('0x5')](_0xb09fd)),_0x3d2a35(_0xb09fd);})['catch'](function(_0x3aead4){const _0x18f307=_0x32069d;logger[_0x18f307('0x3')](_0x18f307('0x13'),_0x3aead4['message'],_0x3b62cf),_0x5ae143(_0x1c0d3a[_0x18f307('0x3')](0x1f4,_0x3aead4[_0x18f307('0x11')]));});});};
\ No newline at end of file