Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / services / routing / server / applications / tag.js
index 7e69704..65112b2 100644 (file)
@@ -1 +1 @@
-const a1215_0x4109=['../../rpc/chatInteraction','stringify','lodash','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','number','next','../../rpc/whatsappInteraction','join','error','channel','addTags','info','catch','isObject','length','../../rpc/mailInteraction','routing','then','[%s][TAG]\x20%s','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','../../rpc/smsInteraction','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','interaction','Interaction','consequence','../../rpc/faxInteraction'];(function(_0x575b1a,_0x4109cf){const _0x4129b0=function(_0x555389){while(--_0x555389){_0x575b1a['push'](_0x575b1a['shift']());}};_0x4129b0(++_0x4109cf);}(a1215_0x4109,0x66));const a1215_0x4129=function(_0x575b1a,_0x4109cf){_0x575b1a=_0x575b1a-0x0;let _0x4129b0=a1215_0x4109[_0x575b1a];return _0x4129b0;};const _0x123871=a1215_0x4129;'use strict';const schema=require('validate'),_=require(_0x123871('0x4')),rpc={'chatInteraction':require(_0x123871('0x2')),'openchannelInteraction':require('../../rpc/openchannelInteraction'),'smsInteraction':require(_0x123871('0x16')),'mailInteraction':require(_0x123871('0x11')),'faxInteraction':require(_0x123871('0x1')),'whatsappInteraction':require(_0x123871('0x8'))},logger=require('../../../../config/logger')(_0x123871('0x12')),tag=schema({'tag':{'type':_0x123871('0x6'),'required':!![],'message':_0x123871('0x5')}});exports[_0x123871('0x0')]=function(_0x555389,_0x534a80,_0x1f2433,_0x192174){return function(_0x2f6f52){const _0x361ad8=a1215_0x4129;try{const _0x18de11={'tag':_0x534a80[0x0]},_0x1d80e1=tag['validate'](_0x18de11,{'typecast':!![]});if(_0x1d80e1[_0x361ad8('0x10')])logger['error'](_0x361ad8('0x14'),_0x555389,_['map'](_0x1d80e1,'message')[_0x361ad8('0x9')](',\x20')),logger[_0x361ad8('0xd')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x555389),_0x2f6f52[_0x361ad8('0x7')]();else{const _0x3cfd07={'ids':[_0x534a80[0x0]]};rpc[_0x192174[_0x361ad8('0xb')]+_0x361ad8('0x19')]&&rpc[_0x192174['channel']+_0x361ad8('0x19')][_0x361ad8('0xc')](_0x192174[_0x361ad8('0x18')]['id'],_0x3cfd07)[_0x361ad8('0x13')](function(){const _0x50d7cc=_0x361ad8;logger['info'](_0x50d7cc('0x15'),_0x555389,_0x534a80[0x1],_0x192174['channel'],_0x192174[_0x50d7cc('0x18')]['id']);})[_0x361ad8('0xe')](function(_0x3b806f){const _0x223dae=_0x361ad8;logger[_0x223dae('0xa')]('[%s][TAG]\x20%s',_0x555389,JSON[_0x223dae('0x3')](_0x3b806f)),logger[_0x223dae('0xd')](_0x223dae('0x17'),_0x555389);})['finally'](function(){const _0x113fef=_0x361ad8;_0x2f6f52[_0x113fef('0x7')]();});}}catch(_0x6d8918){logger[_0x361ad8('0xa')](_0x361ad8('0x14'),_0x555389,_[_0x361ad8('0xf')](_0x6d8918)?JSON['stringify'](_0x6d8918):_0x6d8918),logger[_0x361ad8('0xd')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x555389),_0x2f6f52[_0x361ad8('0x7')]();}};};
\ No newline at end of file
+const a1215_0x37f9=['TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','interaction','isObject','info','Interaction','[%s][TAG]\x20%s','validate','length','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','consequence','../../rpc/chatInteraction','next','error','join','../../rpc/smsInteraction','../../rpc/openchannelInteraction','channel','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','stringify','../../rpc/faxInteraction','addTags'];(function(_0x120a4e,_0x37f9eb){const _0x3510fa=function(_0x13b330){while(--_0x13b330){_0x120a4e['push'](_0x120a4e['shift']());}};_0x3510fa(++_0x37f9eb);}(a1215_0x37f9,0x19d));const a1215_0x3510=function(_0x120a4e,_0x37f9eb){_0x120a4e=_0x120a4e-0x0;let _0x3510fa=a1215_0x37f9[_0x120a4e];return _0x3510fa;};const _0x2f4c51=a1215_0x3510;'use strict';const schema=require(_0x2f4c51('0xd')),_=require('lodash'),rpc={'chatInteraction':require(_0x2f4c51('0x11')),'openchannelInteraction':require(_0x2f4c51('0x1')),'smsInteraction':require(_0x2f4c51('0x0')),'mailInteraction':require('../../rpc/mailInteraction'),'faxInteraction':require(_0x2f4c51('0x5')),'whatsappInteraction':require('../../rpc/whatsappInteraction')},logger=require('../../../../config/logger')('routing'),tag=schema({'tag':{'type':'number','required':!![],'message':_0x2f4c51('0x7')}});exports[_0x2f4c51('0x10')]=function(_0x13b330,_0x19fa7a,_0x28bde5,_0x4dc601){return function(_0x5c2289){const _0x125e80=a1215_0x3510;try{const _0x78081f={'tag':_0x19fa7a[0x0]},_0x36433d=tag['validate'](_0x78081f,{'typecast':!![]});if(_0x36433d[_0x125e80('0xe')])logger['error'](_0x125e80('0xc'),_0x13b330,_['map'](_0x36433d,'message')[_0x125e80('0x14')](',\x20')),logger[_0x125e80('0xa')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x13b330),_0x5c2289[_0x125e80('0x12')]();else{const _0x11ddb2={'ids':[_0x19fa7a[0x0]]};rpc[_0x4dc601[_0x125e80('0x2')]+_0x125e80('0xb')]&&rpc[_0x4dc601['channel']+_0x125e80('0xb')][_0x125e80('0x6')](_0x4dc601[_0x125e80('0x8')]['id'],_0x11ddb2)['then'](function(){const _0x42522d=_0x125e80;logger[_0x42522d('0xa')](_0x42522d('0x3'),_0x13b330,_0x19fa7a[0x1],_0x4dc601[_0x42522d('0x2')],_0x4dc601[_0x42522d('0x8')]['id']);})['catch'](function(_0x29b4be){const _0x1ae834=_0x125e80;logger[_0x1ae834('0x13')](_0x1ae834('0xc'),_0x13b330,JSON[_0x1ae834('0x4')](_0x29b4be)),logger[_0x1ae834('0xa')](_0x1ae834('0xf'),_0x13b330);})['finally'](function(){const _0x564465=_0x125e80;_0x5c2289[_0x564465('0x12')]();});}}catch(_0x5eb3f3){logger['error'](_0x125e80('0xc'),_0x13b330,_[_0x125e80('0x9')](_0x5eb3f3)?JSON[_0x125e80('0x4')](_0x5eb3f3):_0x5eb3f3),logger[_0x125e80('0xa')](_0x125e80('0xf'),_0x13b330),_0x5c2289[_0x125e80('0x12')]();}};};
\ No newline at end of file