Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / services / routing / server / applications / tag.js
index 402e501..e946a5b 100644 (file)
@@ -1 +1 @@
-const a1217_0x2353=['map','info','[%s][TAG]\x20%s','../../rpc/whatsappInteraction','error','../../rpc/faxInteraction','channel','../../rpc/mailInteraction','join','catch','addTags','message','../../../../config/logger','Interaction','../../rpc/openchannelInteraction','routing','finally','consequence','interaction','../../rpc/chatInteraction','next','validate','length','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','../../rpc/smsInteraction','number','isObject','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','lodash'];(function(_0x3ae83f,_0x23539c){const _0x1bc0f8=function(_0x57c4bb){while(--_0x57c4bb){_0x3ae83f['push'](_0x3ae83f['shift']());}};_0x1bc0f8(++_0x23539c);}(a1217_0x2353,0x1eb));const a1217_0x1bc0=function(_0x3ae83f,_0x23539c){_0x3ae83f=_0x3ae83f-0x0;let _0x1bc0f8=a1217_0x2353[_0x3ae83f];return _0x1bc0f8;};const _0x2e4c64=a1217_0x1bc0;'use strict';const schema=require('validate'),_=require(_0x2e4c64('0x1')),rpc={'chatInteraction':require(_0x2e4c64('0x15')),'openchannelInteraction':require(_0x2e4c64('0x10')),'smsInteraction':require(_0x2e4c64('0x1a')),'mailInteraction':require(_0x2e4c64('0x9')),'faxInteraction':require(_0x2e4c64('0x7')),'whatsappInteraction':require(_0x2e4c64('0x5'))},logger=require(_0x2e4c64('0xe'))(_0x2e4c64('0x11')),tag=schema({'tag':{'type':_0x2e4c64('0x1b'),'required':!![],'message':_0x2e4c64('0x0')}});exports[_0x2e4c64('0x13')]=function(_0x57c4bb,_0x184119,_0x412339,_0xf9764d){return function(_0x6fbe5){const _0x4e54a9=a1217_0x1bc0;try{const _0x34dca1={'tag':_0x184119[0x0]},_0x3e3e5f=tag[_0x4e54a9('0x17')](_0x34dca1,{'typecast':!![]});if(_0x3e3e5f[_0x4e54a9('0x18')])logger[_0x4e54a9('0x6')](_0x4e54a9('0x4'),_0x57c4bb,_[_0x4e54a9('0x2')](_0x3e3e5f,_0x4e54a9('0xd'))[_0x4e54a9('0xa')](',\x20')),logger['info'](_0x4e54a9('0x19'),_0x57c4bb),_0x6fbe5[_0x4e54a9('0x16')]();else{const _0x434e8d={'ids':[_0x184119[0x0]]};rpc[_0xf9764d[_0x4e54a9('0x8')]+_0x4e54a9('0xf')]&&rpc[_0xf9764d[_0x4e54a9('0x8')]+_0x4e54a9('0xf')][_0x4e54a9('0xc')](_0xf9764d[_0x4e54a9('0x14')]['id'],_0x434e8d)['then'](function(){const _0x3c2799=_0x4e54a9;logger['info']('[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s',_0x57c4bb,_0x184119[0x1],_0xf9764d[_0x3c2799('0x8')],_0xf9764d[_0x3c2799('0x14')]['id']);})[_0x4e54a9('0xb')](function(_0x415525){const _0x34d4d3=_0x4e54a9;logger[_0x34d4d3('0x6')](_0x34d4d3('0x4'),_0x57c4bb,JSON['stringify'](_0x415525)),logger['info']('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x57c4bb);})[_0x4e54a9('0x12')](function(){const _0x441f37=_0x4e54a9;_0x6fbe5[_0x441f37('0x16')]();});}}catch(_0x5d87cc){logger[_0x4e54a9('0x6')]('[%s][TAG]\x20%s',_0x57c4bb,_[_0x4e54a9('0x1c')](_0x5d87cc)?JSON['stringify'](_0x5d87cc):_0x5d87cc),logger[_0x4e54a9('0x3')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x57c4bb),_0x6fbe5[_0x4e54a9('0x16')]();}};};
\ No newline at end of file
+const a1217_0x433d=['[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','error','catch','../../rpc/whatsappInteraction','validate','next','message','../../rpc/chatInteraction','finally','../../rpc/mailInteraction','isObject','../../rpc/smsInteraction','join','lodash','info','channel','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','consequence','interaction','addTags','Interaction','stringify','map','then'];(function(_0x171b14,_0x433d04){const _0x16cc36=function(_0x3f5e29){while(--_0x3f5e29){_0x171b14['push'](_0x171b14['shift']());}};_0x16cc36(++_0x433d04);}(a1217_0x433d,0xb5));const a1217_0x16cc=function(_0x171b14,_0x433d04){_0x171b14=_0x171b14-0x0;let _0x16cc36=a1217_0x433d[_0x171b14];return _0x16cc36;};const _0xea837f=a1217_0x16cc;'use strict';const schema=require('validate'),_=require(_0xea837f('0x7')),rpc={'chatInteraction':require(_0xea837f('0x1')),'openchannelInteraction':require('../../rpc/openchannelInteraction'),'smsInteraction':require(_0xea837f('0x5')),'mailInteraction':require(_0xea837f('0x3')),'faxInteraction':require('../../rpc/faxInteraction'),'whatsappInteraction':require(_0xea837f('0x16'))},logger=require('../../../../config/logger')('routing'),tag=schema({'tag':{'type':'number','required':!![],'message':_0xea837f('0xb')}});exports[_0xea837f('0xc')]=function(_0x3f5e29,_0xaec7d4,_0x334afc,_0x585a71){return function(_0x25f32b){const _0xe747ea=a1217_0x16cc;try{const _0x118f9b={'tag':_0xaec7d4[0x0]},_0x5c1fcc=tag[_0xe747ea('0x17')](_0x118f9b,{'typecast':!![]});if(_0x5c1fcc['length'])logger[_0xe747ea('0x14')]('[%s][TAG]\x20%s',_0x3f5e29,_[_0xe747ea('0x11')](_0x5c1fcc,_0xe747ea('0x0'))[_0xe747ea('0x6')](',\x20')),logger['info']('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x3f5e29),_0x25f32b[_0xe747ea('0x18')]();else{const _0x2c655f={'ids':[_0xaec7d4[0x0]]};rpc[_0x585a71['channel']+_0xe747ea('0xf')]&&rpc[_0x585a71[_0xe747ea('0x9')]+'Interaction'][_0xe747ea('0xe')](_0x585a71[_0xe747ea('0xd')]['id'],_0x2c655f)[_0xe747ea('0x12')](function(){const _0x4c75be=_0xe747ea;logger[_0x4c75be('0x8')](_0x4c75be('0x13'),_0x3f5e29,_0xaec7d4[0x1],_0x585a71[_0x4c75be('0x9')],_0x585a71[_0x4c75be('0xd')]['id']);})[_0xe747ea('0x15')](function(_0x5dbc44){const _0x27c71e=_0xe747ea;logger[_0x27c71e('0x14')]('[%s][TAG]\x20%s',_0x3f5e29,JSON[_0x27c71e('0x10')](_0x5dbc44)),logger[_0x27c71e('0x8')](_0x27c71e('0xa'),_0x3f5e29);})[_0xe747ea('0x2')](function(){const _0x58b77d=_0xe747ea;_0x25f32b[_0x58b77d('0x18')]();});}}catch(_0x3be3d3){logger[_0xe747ea('0x14')]('[%s][TAG]\x20%s',_0x3f5e29,_[_0xe747ea('0x4')](_0x3be3d3)?JSON[_0xe747ea('0x10')](_0x3be3d3):_0x3be3d3),logger[_0xe747ea('0x8')](_0xe747ea('0xa'),_0x3f5e29),_0x25f32b[_0xe747ea('0x18')]();}};};
\ No newline at end of file