Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / services / ami / dialer / action.js
index 68a694d..f6337ec 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe706=['lodash','moment','isNil','string','voiceQueue','uniqueid','name','Contact','phone','firstName','lastName','number','queue','type','dialQueueTimeout','scheduledat','countbusyretry','countnoanswerretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridname','\x22%s\x22\x20<%s>','dialCutDigit','exports','util'];(function(_0xd0f4a5,_0xc6209d){var _0x2ba320=function(_0x142b88){while(--_0x142b88){_0xd0f4a5['push'](_0xd0f4a5['shift']());}};_0x2ba320(++_0xc6209d);}(_0xe706,0xa3));var _0x6e70=function(_0x468ac5,_0x2edfd5){_0x468ac5=_0x468ac5-0x0;var _0x33a807=_0xe706[_0x468ac5];return _0x33a807;};'use strict';var util=require(_0x6e70('0x0'));var _=require(_0x6e70('0x1'));var moment=require(_0x6e70('0x2'));function checkNameSurname(_0x5e8446,_0x2cae77,_0x315629){var _0x2ca810='';if(!_[_0x6e70('0x3')](_0x2cae77)&&_0x6e70('0x4')===typeof _0x2cae77){_0x2ca810+=_0x2cae77;}if(!_[_0x6e70('0x3')](_0x315629)&&_0x6e70('0x4')===typeof _0x315629){_0x2ca810+='\x20'+_0x315629;}if(_0x2ca810!==''){return _0x2ca810;}return _0x5e8446;}function Action(_0x506db9,_0x1b0389,_0x4381d1){this[_0x6e70('0x5')]=_0x506db9;this[_0x6e70('0x6')]=_0x4381d1||undefined;this[_0x6e70('0x7')]=checkNameSurname(_0x1b0389[_0x6e70('0x8')][_0x6e70('0x9')],_0x1b0389[_0x6e70('0x8')][_0x6e70('0xa')],_0x1b0389[_0x6e70('0x8')][_0x6e70('0xb')]);this[_0x6e70('0xc')]=_0x1b0389[_0x6e70('0x8')][_0x6e70('0x9')];this[_0x6e70('0xd')]=_0x506db9[_0x6e70('0x7')];this['active']=_0x1b0389['active']||![];this[_0x6e70('0xe')]=_0x506db9[_0x6e70('0xe')];this[_0x6e70('0xf')]=_0x506db9[_0x6e70('0xf')]||0x3;this[_0x6e70('0x10')]=_0x1b0389[_0x6e70('0x10')];this[_0x6e70('0x11')]=_0x1b0389[_0x6e70('0x11')];this['countcongestionretry']=_0x1b0389['countcongestionretry'];this['countnoanswerretry']=_0x1b0389[_0x6e70('0x12')];this['countnosuchnumberretry']=_0x1b0389['countnosuchnumberretry'];this[_0x6e70('0x13')]=_0x1b0389[_0x6e70('0x13')];this['countabandonedretry']=_0x1b0389[_0x6e70('0x14')];this['countmachineretry']=_0x1b0389[_0x6e70('0x15')];this[_0x6e70('0x16')]=_0x1b0389['countagentrejectretry'];this['ContactId']=_0x1b0389[_0x6e70('0x17')];this['ListId']=_0x1b0389[_0x6e70('0x18')];this[_0x6e70('0x19')]=_0x1b0389['UserId'];this['VoiceQueueId']=_0x1b0389[_0x6e70('0x1a')];this[_0x6e70('0x1b')]=_0x1b0389[_0x6e70('0x1b')];this[_0x6e70('0x1c')]=_0x1b0389['id'];this[_0x6e70('0x1d')]=_0x1b0389[_0x6e70('0x8')][_0x6e70('0xa')]||'';this[_0x6e70('0x1e')]=moment()[_0x6e70('0x1f')](_0x6e70('0x20'));this['callback']=_0x1b0389[_0x6e70('0x21')];this[_0x6e70('0x22')]=_0x1b0389[_0x6e70('0x22')];this['callbackat']=_0x1b0389[_0x6e70('0x23')];this[_0x6e70('0x24')]=_0x1b0389[_0x6e70('0x24')];this['originatecalleridnum']='';this[_0x6e70('0x25')]='';}Action['prototype']['getCaller']=function(){return util['format'](_0x6e70('0x26'),this[_0x6e70('0x7')],this['voiceQueue'][_0x6e70('0x27')]>0x0?this[_0x6e70('0xc')]['substring'](this[_0x6e70('0x5')][_0x6e70('0x27')]):this[_0x6e70('0xc')]);};Action['prototype']['getQueue']=function(){return this[_0x6e70('0xd')];};module[_0x6e70('0x28')]=Action;
\ No newline at end of file
+var _0x688a=['ListId','UserId','VoiceQueueId','CampaignId','idHopper','firstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','getCaller','number','substring','dialCutDigit','prototype','getQueue','exports','util','lodash','moment','isNil','string','voiceQueue','Contact','phone','lastName','queue','name','active','type','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId'];(function(_0x4b60ae,_0x4ea45c){var _0x11ddbe=function(_0x196985){while(--_0x196985){_0x4b60ae['push'](_0x4b60ae['shift']());}};_0x11ddbe(++_0x4ea45c);}(_0x688a,0x124));var _0xa688=function(_0x546868,_0xb60cc5){_0x546868=_0x546868-0x0;var _0x4afa6b=_0x688a[_0x546868];return _0x4afa6b;};'use strict';var util=require(_0xa688('0x0'));var _=require(_0xa688('0x1'));var moment=require(_0xa688('0x2'));function checkNameSurname(_0x4bb45e,_0x43356d,_0x53646f){var _0x27bb04='';if(!_[_0xa688('0x3')](_0x43356d)&&'string'===typeof _0x43356d){_0x27bb04+=_0x43356d;}if(!_[_0xa688('0x3')](_0x53646f)&&_0xa688('0x4')===typeof _0x53646f){_0x27bb04+='\x20'+_0x53646f;}if(_0x27bb04!==''){return _0x27bb04;}return _0x4bb45e;}function Action(_0x27e6c4,_0x45b3ca,_0x211d2b){this[_0xa688('0x5')]=_0x27e6c4;this['uniqueid']=_0x211d2b||undefined;this['name']=checkNameSurname(_0x45b3ca[_0xa688('0x6')][_0xa688('0x7')],_0x45b3ca[_0xa688('0x6')]['firstName'],_0x45b3ca['Contact'][_0xa688('0x8')]);this['number']=_0x45b3ca['Contact'][_0xa688('0x7')];this[_0xa688('0x9')]=_0x27e6c4[_0xa688('0xa')];this[_0xa688('0xb')]=_0x45b3ca[_0xa688('0xb')]||![];this[_0xa688('0xc')]=_0x27e6c4['type'];this['dialQueueTimeout']=_0x27e6c4['dialQueueTimeout']||0x3;this[_0xa688('0xd')]=_0x45b3ca[_0xa688('0xd')];this['countbusyretry']=_0x45b3ca[_0xa688('0xe')];this['countcongestionretry']=_0x45b3ca[_0xa688('0xf')];this[_0xa688('0x10')]=_0x45b3ca['countnoanswerretry'];this['countnosuchnumberretry']=_0x45b3ca[_0xa688('0x11')];this['countdropretry']=_0x45b3ca[_0xa688('0x12')];this['countabandonedretry']=_0x45b3ca[_0xa688('0x13')];this[_0xa688('0x14')]=_0x45b3ca[_0xa688('0x14')];this[_0xa688('0x15')]=_0x45b3ca[_0xa688('0x15')];this[_0xa688('0x16')]=_0x45b3ca['ContactId'];this['ListId']=_0x45b3ca[_0xa688('0x17')];this[_0xa688('0x18')]=_0x45b3ca['UserId'];this['VoiceQueueId']=_0x45b3ca[_0xa688('0x19')];this[_0xa688('0x1a')]=_0x45b3ca['CampaignId'];this[_0xa688('0x1b')]=_0x45b3ca['id'];this['ContactFirstName']=_0x45b3ca['Contact'][_0xa688('0x1c')]||'';this[_0xa688('0x1d')]=moment()[_0xa688('0x1e')](_0xa688('0x1f'));this[_0xa688('0x20')]=_0x45b3ca[_0xa688('0x20')];this[_0xa688('0x21')]=_0x45b3ca[_0xa688('0x21')];this[_0xa688('0x22')]=_0x45b3ca[_0xa688('0x22')];this[_0xa688('0x23')]=_0x45b3ca[_0xa688('0x23')];this[_0xa688('0x24')]='';this[_0xa688('0x25')]='';}Action['prototype'][_0xa688('0x26')]=function(){return util[_0xa688('0x1e')]('\x22%s\x22\x20<%s>',this[_0xa688('0xa')],this[_0xa688('0x5')]['dialCutDigit']>0x0?this[_0xa688('0x27')][_0xa688('0x28')](this[_0xa688('0x5')][_0xa688('0x29')]):this[_0xa688('0x27')]);};Action[_0xa688('0x2a')][_0xa688('0x2b')]=function(){return this[_0xa688('0x9')];};module[_0xa688('0x2c')]=Action;
\ No newline at end of file