Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / services / routing / server / applications / tag.js
index 8c600e5..ea1d1ab 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x01de=['../../rpc/whatsappInteraction','../../../../config/logger','routing','number','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','consequence','error','join','info','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','next','Interaction','channel','addTags','interaction','then','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','catch','[%s][TAG]\x20%s','stringify','isObject','validate','lodash','../../rpc/chatInteraction','../../rpc/openchannelInteraction','../../rpc/smsInteraction','../../rpc/mailInteraction','../../rpc/faxInteraction'];(function(_0x19b9de,_0x4e54c6){var _0x1cd9ec=function(_0x48678c){while(--_0x48678c){_0x19b9de['push'](_0x19b9de['shift']());}};_0x1cd9ec(++_0x4e54c6);}(_0x01de,0x19d));var _0xe01d=function(_0x24a79c,_0x5da1d9){_0x24a79c=_0x24a79c-0x0;var _0x3a7c58=_0x01de[_0x24a79c];return _0x3a7c58;};'use strict';var schema=require(_0xe01d('0x0'));var _=require(_0xe01d('0x1'));var rpc={'chatInteraction':require(_0xe01d('0x2')),'openchannelInteraction':require(_0xe01d('0x3')),'smsInteraction':require(_0xe01d('0x4')),'mailInteraction':require(_0xe01d('0x5')),'faxInteraction':require(_0xe01d('0x6')),'whatsappInteraction':require(_0xe01d('0x7'))};var logger=require(_0xe01d('0x8'))(_0xe01d('0x9'));var tag=schema({'tag':{'type':_0xe01d('0xa'),'required':!![],'message':_0xe01d('0xb')}});exports[_0xe01d('0xc')]=function(_0x470cd3,_0x50a7bd,_0x355bdf,_0x46ea30){return function(_0x3b00f2){try{var _0x2fe769={'tag':_0x50a7bd[0x0]};var _0x4c2f76=tag['validate'](_0x2fe769,{'typecast':!![]});if(_0x4c2f76['length']){logger[_0xe01d('0xd')]('[%s][TAG]\x20%s',_0x470cd3,_['map'](_0x4c2f76,'message')[_0xe01d('0xe')](',\x20'));logger[_0xe01d('0xf')](_0xe01d('0x10'),_0x470cd3);_0x3b00f2[_0xe01d('0x11')]();}else{var _0x234986={'ids':[_0x50a7bd[0x0]]};if(rpc[_0x46ea30['channel']+_0xe01d('0x12')]){rpc[_0x46ea30[_0xe01d('0x13')]+_0xe01d('0x12')][_0xe01d('0x14')](_0x46ea30[_0xe01d('0x15')]['id'],_0x234986)[_0xe01d('0x16')](function(_0xedaa94){logger[_0xe01d('0xf')](_0xe01d('0x17'),_0x470cd3,_0x50a7bd[0x1],_0x46ea30[_0xe01d('0x13')],_0x46ea30[_0xe01d('0x15')]['id']);})[_0xe01d('0x18')](function(_0x5c5755){logger[_0xe01d('0xd')](_0xe01d('0x19'),_0x470cd3,JSON[_0xe01d('0x1a')](_0x5c5755));logger[_0xe01d('0xf')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x470cd3);})['finally'](function(){_0x3b00f2['next']();});}}}catch(_0xb3bdce){logger[_0xe01d('0xd')](_0xe01d('0x19'),_0x470cd3,_[_0xe01d('0x1b')](_0xb3bdce)?JSON[_0xe01d('0x1a')](_0xb3bdce):_0xb3bdce);logger[_0xe01d('0xf')](_0xe01d('0x10'),_0x470cd3);_0x3b00f2[_0xe01d('0x11')]();}};};
\ No newline at end of file
+var _0xcc59=['../../rpc/whatsappInteraction','../../../../config/logger','routing','number','consequence','validate','length','error','[%s][TAG]\x20%s','map','join','info','next','channel','Interaction','addTags','interaction','then','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','catch','stringify','finally','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','lodash','../../rpc/chatInteraction','../../rpc/smsInteraction','../../rpc/mailInteraction'];(function(_0x15f66e,_0x267053){var _0x39f667=function(_0x9e8877){while(--_0x9e8877){_0x15f66e['push'](_0x15f66e['shift']());}};_0x39f667(++_0x267053);}(_0xcc59,0xef));var _0x9cc5=function(_0x1477ef,_0x54a5d6){_0x1477ef=_0x1477ef-0x0;var _0x164acd=_0xcc59[_0x1477ef];return _0x164acd;};'use strict';var schema=require('validate');var _=require(_0x9cc5('0x0'));var rpc={'chatInteraction':require(_0x9cc5('0x1')),'openchannelInteraction':require('../../rpc/openchannelInteraction'),'smsInteraction':require(_0x9cc5('0x2')),'mailInteraction':require(_0x9cc5('0x3')),'faxInteraction':require('../../rpc/faxInteraction'),'whatsappInteraction':require(_0x9cc5('0x4'))};var logger=require(_0x9cc5('0x5'))(_0x9cc5('0x6'));var tag=schema({'tag':{'type':_0x9cc5('0x7'),'required':!![],'message':'TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0x9cc5('0x8')]=function(_0x4ad50e,_0x54bb99,_0x25800c,_0x46bf69){return function(_0x1c0ff5){try{var _0x2bda8b={'tag':_0x54bb99[0x0]};var _0x241c33=tag[_0x9cc5('0x9')](_0x2bda8b,{'typecast':!![]});if(_0x241c33[_0x9cc5('0xa')]){logger[_0x9cc5('0xb')](_0x9cc5('0xc'),_0x4ad50e,_[_0x9cc5('0xd')](_0x241c33,'message')[_0x9cc5('0xe')](',\x20'));logger[_0x9cc5('0xf')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x4ad50e);_0x1c0ff5[_0x9cc5('0x10')]();}else{var _0x3d3bb3={'ids':[_0x54bb99[0x0]]};if(rpc[_0x46bf69[_0x9cc5('0x11')]+_0x9cc5('0x12')]){rpc[_0x46bf69[_0x9cc5('0x11')]+_0x9cc5('0x12')][_0x9cc5('0x13')](_0x46bf69[_0x9cc5('0x14')]['id'],_0x3d3bb3)[_0x9cc5('0x15')](function(_0x341c9f){logger['info'](_0x9cc5('0x16'),_0x4ad50e,_0x54bb99[0x1],_0x46bf69[_0x9cc5('0x11')],_0x46bf69['interaction']['id']);})[_0x9cc5('0x17')](function(_0x97fe5e){logger[_0x9cc5('0xb')](_0x9cc5('0xc'),_0x4ad50e,JSON[_0x9cc5('0x18')](_0x97fe5e));logger[_0x9cc5('0xf')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x4ad50e);})[_0x9cc5('0x19')](function(){_0x1c0ff5['next']();});}}}catch(_0x14f1a9){logger['error'](_0x9cc5('0xc'),_0x4ad50e,_['isObject'](_0x14f1a9)?JSON[_0x9cc5('0x18')](_0x14f1a9):_0x14f1a9);logger[_0x9cc5('0xf')](_0x9cc5('0x1a'),_0x4ad50e);_0x1c0ff5[_0x9cc5('0x10')]();}};};
\ No newline at end of file