Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / services / ami / dialer / action.js
index 4707937..2dd3a78 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9827=['YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridname','prototype','getCaller','format','\x22%s\x22\x20<%s>','dialCutDigit','exports','moment','isNil','string','voiceQueue','uniqueid','Contact','lastName','number','phone','queue','name','active','type','dialQueueTimeout','scheduledat','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','ContactFirstName','firstName'];(function(_0x28ce79,_0x1cc464){var _0x2705e4=function(_0x516bab){while(--_0x516bab){_0x28ce79['push'](_0x28ce79['shift']());}};_0x2705e4(++_0x1cc464);}(_0x9827,0x12b));var _0x7982=function(_0x558e45,_0x4f5e4f){_0x558e45=_0x558e45-0x0;var _0x3e9075=_0x9827[_0x558e45];return _0x3e9075;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x7982('0x0'));function checkNameSurname(_0x38dbb5,_0x2a60fc,_0x42de5e){var _0x465e45='';if(!_[_0x7982('0x1')](_0x2a60fc)&&_0x7982('0x2')===typeof _0x2a60fc){_0x465e45+=_0x2a60fc;}if(!_[_0x7982('0x1')](_0x42de5e)&&'string'===typeof _0x42de5e){_0x465e45+='\x20'+_0x42de5e;}if(_0x465e45!==''){return _0x465e45;}return _0x38dbb5;}function Action(_0x52dc7d,_0x2ce0cf,_0x3f7fc2){this[_0x7982('0x3')]=_0x52dc7d;this[_0x7982('0x4')]=_0x3f7fc2||undefined;this['name']=checkNameSurname(_0x2ce0cf[_0x7982('0x5')]['phone'],_0x2ce0cf[_0x7982('0x5')]['firstName'],_0x2ce0cf['Contact'][_0x7982('0x6')]);this[_0x7982('0x7')]=_0x2ce0cf[_0x7982('0x8')];this[_0x7982('0x9')]=_0x52dc7d[_0x7982('0xa')];this[_0x7982('0xb')]=_0x2ce0cf[_0x7982('0xb')]||![];this['type']=_0x52dc7d[_0x7982('0xc')];this[_0x7982('0xd')]=_0x52dc7d[_0x7982('0xd')]||0x3;this[_0x7982('0xe')]=_0x2ce0cf[_0x7982('0xe')];this['countbusyretry']=_0x2ce0cf['countbusyretry'];this['countcongestionretry']=_0x2ce0cf[_0x7982('0xf')];this[_0x7982('0x10')]=_0x2ce0cf['countnoanswerretry'];this[_0x7982('0x11')]=_0x2ce0cf[_0x7982('0x11')];this[_0x7982('0x12')]=_0x2ce0cf[_0x7982('0x12')];this[_0x7982('0x13')]=_0x2ce0cf[_0x7982('0x13')];this[_0x7982('0x14')]=_0x2ce0cf[_0x7982('0x14')];this[_0x7982('0x15')]=_0x2ce0cf['countagentrejectretry'];this[_0x7982('0x16')]=_0x2ce0cf['ContactId'];this[_0x7982('0x17')]=_0x2ce0cf['ListId'];this[_0x7982('0x18')]=_0x2ce0cf[_0x7982('0x18')];this[_0x7982('0x19')]=_0x2ce0cf[_0x7982('0x19')];this['CampaignId']=_0x2ce0cf[_0x7982('0x1a')];this['idHopper']=_0x2ce0cf['id'];this[_0x7982('0x1b')]=_0x2ce0cf['Contact'][_0x7982('0x1c')]||'';this['starttime']=moment()['format'](_0x7982('0x1d'));this[_0x7982('0x1e')]=_0x2ce0cf[_0x7982('0x1e')];this['callbackuniqueid']=_0x2ce0cf[_0x7982('0x1f')];this[_0x7982('0x20')]=_0x2ce0cf[_0x7982('0x20')];this['recallme']=_0x2ce0cf[_0x7982('0x21')];this['originatecalleridnum']='';this[_0x7982('0x22')]='';}Action[_0x7982('0x23')][_0x7982('0x24')]=function(){return util[_0x7982('0x25')](_0x7982('0x26'),this[_0x7982('0xa')],this[_0x7982('0x3')]['dialCutDigit']>0x0?this[_0x7982('0x7')]['substring'](this[_0x7982('0x3')][_0x7982('0x27')]):this['number']);};Action[_0x7982('0x23')]['getQueue']=function(){return this[_0x7982('0x9')];};module[_0x7982('0x28')]=Action;
\ No newline at end of file
+var _0x61a9=['string','voiceQueue','uniqueid','Contact','phone','queue','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','firstName','starttime','format','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','number','substring','getQueue','exports','util','isNil'];(function(_0xdd1f52,_0x227e9e){var _0x368782=function(_0x480309){while(--_0x480309){_0xdd1f52['push'](_0xdd1f52['shift']());}};_0x368782(++_0x227e9e);}(_0x61a9,0x106));var _0x961a=function(_0x4d7362,_0x3a2bc5){_0x4d7362=_0x4d7362-0x0;var _0xa73eb3=_0x61a9[_0x4d7362];return _0xa73eb3;};'use strict';var util=require(_0x961a('0x0'));var _=require('lodash');var moment=require('moment');function checkNameSurname(_0x43896f,_0xad51b9,_0x1ef513){var _0x171b42='';if(!_[_0x961a('0x1')](_0xad51b9)&&_0x961a('0x2')===typeof _0xad51b9){_0x171b42+=_0xad51b9;}if(!_[_0x961a('0x1')](_0x1ef513)&&_0x961a('0x2')===typeof _0x1ef513){_0x171b42+='\x20'+_0x1ef513;}if(_0x171b42!==''){return _0x171b42;}return _0x43896f;}function Action(_0x1ce793,_0x22c2b7,_0x47a241){this[_0x961a('0x3')]=_0x1ce793;this[_0x961a('0x4')]=_0x47a241||undefined;this['name']=checkNameSurname(_0x22c2b7[_0x961a('0x5')]['phone'],_0x22c2b7[_0x961a('0x5')]['firstName'],_0x22c2b7['Contact']['lastName']);this['number']=_0x22c2b7[_0x961a('0x6')];this[_0x961a('0x7')]=_0x1ce793[_0x961a('0x8')];this['active']=_0x22c2b7[_0x961a('0x9')]||![];this[_0x961a('0xa')]=_0x1ce793[_0x961a('0xa')];this[_0x961a('0xb')]=_0x1ce793[_0x961a('0xb')]||0x3;this['scheduledat']=_0x22c2b7[_0x961a('0xc')];this[_0x961a('0xd')]=_0x22c2b7[_0x961a('0xd')];this[_0x961a('0xe')]=_0x22c2b7[_0x961a('0xe')];this[_0x961a('0xf')]=_0x22c2b7[_0x961a('0xf')];this['countnosuchnumberretry']=_0x22c2b7[_0x961a('0x10')];this[_0x961a('0x11')]=_0x22c2b7[_0x961a('0x11')];this[_0x961a('0x12')]=_0x22c2b7[_0x961a('0x12')];this[_0x961a('0x13')]=_0x22c2b7[_0x961a('0x13')];this['countagentrejectretry']=_0x22c2b7[_0x961a('0x14')];this['ContactId']=_0x22c2b7[_0x961a('0x15')];this[_0x961a('0x16')]=_0x22c2b7[_0x961a('0x16')];this[_0x961a('0x17')]=_0x22c2b7['UserId'];this[_0x961a('0x18')]=_0x22c2b7[_0x961a('0x18')];this[_0x961a('0x19')]=_0x22c2b7[_0x961a('0x19')];this[_0x961a('0x1a')]=_0x22c2b7['id'];this[_0x961a('0x1b')]=_0x22c2b7[_0x961a('0x5')][_0x961a('0x1c')]||'';this[_0x961a('0x1d')]=moment()[_0x961a('0x1e')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x961a('0x1f')]=_0x22c2b7['callback'];this['callbackuniqueid']=_0x22c2b7[_0x961a('0x20')];this[_0x961a('0x21')]=_0x22c2b7['callbackat'];this['recallme']=_0x22c2b7[_0x961a('0x22')];this[_0x961a('0x23')]='';this['originatecalleridname']='';}Action[_0x961a('0x24')][_0x961a('0x25')]=function(){return util[_0x961a('0x1e')](_0x961a('0x26'),this[_0x961a('0x8')],this[_0x961a('0x3')][_0x961a('0x27')]>0x0?this[_0x961a('0x28')][_0x961a('0x29')](this[_0x961a('0x3')]['dialCutDigit']):this[_0x961a('0x28')]);};Action[_0x961a('0x24')][_0x961a('0x2a')]=function(){return this['queue'];};module[_0x961a('0x2b')]=Action;
\ No newline at end of file