Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / dialer / action.js
index 9244eb5..4f33565 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xebe6=['lodash','moment','isNil','string','voiceQueue','uniqueid','name','phone','firstName','Contact','lastName','number','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','substring','queue','exports','util'];(function(_0x28889c,_0xfff211){var _0x326188=function(_0x4c69b5){while(--_0x4c69b5){_0x28889c['push'](_0x28889c['shift']());}};_0x326188(++_0xfff211);}(_0xebe6,0x13a));var _0x6ebe=function(_0x5abc1e,_0x8715e7){_0x5abc1e=_0x5abc1e-0x0;var _0x3423d1=_0xebe6[_0x5abc1e];return _0x3423d1;};'use strict';var util=require(_0x6ebe('0x0'));var _=require(_0x6ebe('0x1'));var moment=require(_0x6ebe('0x2'));function checkNameSurname(_0x3ed4da,_0x229b70,_0x12699e){var _0x80db7b='';if(!_[_0x6ebe('0x3')](_0x229b70)&&_0x6ebe('0x4')===typeof _0x229b70){_0x80db7b+=_0x229b70;}if(!_[_0x6ebe('0x3')](_0x12699e)&&'string'===typeof _0x12699e){_0x80db7b+='\x20'+_0x12699e;}if(_0x80db7b!==''){return _0x80db7b;}return _0x3ed4da;}function Action(_0x59ebe9,_0x1c3c2c,_0x2a63a5){this[_0x6ebe('0x5')]=_0x59ebe9;this[_0x6ebe('0x6')]=_0x2a63a5||undefined;this[_0x6ebe('0x7')]=checkNameSurname(_0x1c3c2c['Contact'][_0x6ebe('0x8')],_0x1c3c2c['Contact'][_0x6ebe('0x9')],_0x1c3c2c[_0x6ebe('0xa')][_0x6ebe('0xb')]);this[_0x6ebe('0xc')]=_0x1c3c2c[_0x6ebe('0xa')][_0x6ebe('0x8')];this['queue']=_0x59ebe9[_0x6ebe('0x7')];this[_0x6ebe('0xd')]=_0x1c3c2c[_0x6ebe('0xd')]||![];this[_0x6ebe('0xe')]=_0x59ebe9[_0x6ebe('0xe')];this[_0x6ebe('0xf')]=_0x59ebe9[_0x6ebe('0xf')]||0x3;this[_0x6ebe('0x10')]=_0x1c3c2c['scheduledat'];this[_0x6ebe('0x11')]=_0x1c3c2c['countbusyretry'];this[_0x6ebe('0x12')]=_0x1c3c2c[_0x6ebe('0x12')];this['countnoanswerretry']=_0x1c3c2c[_0x6ebe('0x13')];this[_0x6ebe('0x14')]=_0x1c3c2c[_0x6ebe('0x14')];this[_0x6ebe('0x15')]=_0x1c3c2c[_0x6ebe('0x15')];this[_0x6ebe('0x16')]=_0x1c3c2c[_0x6ebe('0x16')];this[_0x6ebe('0x17')]=_0x1c3c2c[_0x6ebe('0x17')];this['countagentrejectretry']=_0x1c3c2c['countagentrejectretry'];this[_0x6ebe('0x18')]=_0x1c3c2c['ContactId'];this['ListId']=_0x1c3c2c[_0x6ebe('0x19')];this[_0x6ebe('0x1a')]=_0x1c3c2c[_0x6ebe('0x1a')];this['VoiceQueueId']=_0x1c3c2c[_0x6ebe('0x1b')];this[_0x6ebe('0x1c')]=_0x1c3c2c['CampaignId'];this[_0x6ebe('0x1d')]=_0x1c3c2c['id'];this[_0x6ebe('0x1e')]=_0x1c3c2c[_0x6ebe('0xa')][_0x6ebe('0x9')]||'';this['starttime']=moment()[_0x6ebe('0x1f')](_0x6ebe('0x20'));this[_0x6ebe('0x21')]=_0x1c3c2c[_0x6ebe('0x21')];this[_0x6ebe('0x22')]=_0x1c3c2c[_0x6ebe('0x22')];this[_0x6ebe('0x23')]=_0x1c3c2c[_0x6ebe('0x23')];this[_0x6ebe('0x24')]=_0x1c3c2c['recallme'];this[_0x6ebe('0x25')]='';this['originatecalleridname']='';}Action[_0x6ebe('0x26')][_0x6ebe('0x27')]=function(){return util['format'](_0x6ebe('0x28'),this[_0x6ebe('0x7')],this['voiceQueue'][_0x6ebe('0x29')]>0x0?this[_0x6ebe('0xc')][_0x6ebe('0x2a')](this['voiceQueue'][_0x6ebe('0x29')]):this['number']);};Action[_0x6ebe('0x26')]['getQueue']=function(){return this[_0x6ebe('0x2b')];};module[_0x6ebe('0x2c')]=Action;
\ No newline at end of file
+var _0x9090=['getCaller','\x22%s\x22\x20<%s>','dialCutDigit','number','substring','prototype','exports','util','lodash','moment','isNil','string','voiceQueue','uniqueid','name','Contact','firstName','lastName','phone','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9090,0x17f));var _0x0909=function(_0x3bdec8,_0x2202f5){_0x3bdec8=_0x3bdec8-0x0;var _0xe633f8=_0x9090[_0x3bdec8];return _0xe633f8;};'use strict';var util=require(_0x0909('0x0'));var _=require(_0x0909('0x1'));var moment=require(_0x0909('0x2'));function checkNameSurname(_0x2ab396,_0x27eba2,_0x5466c8){var _0x51923f='';if(!_[_0x0909('0x3')](_0x27eba2)&&_0x0909('0x4')===typeof _0x27eba2){_0x51923f+=_0x27eba2;}if(!_[_0x0909('0x3')](_0x5466c8)&&'string'===typeof _0x5466c8){_0x51923f+='\x20'+_0x5466c8;}if(_0x51923f!==''){return _0x51923f;}return _0x2ab396;}function Action(_0x1a5cff,_0x42af40,_0x5317db){this[_0x0909('0x5')]=_0x1a5cff;this[_0x0909('0x6')]=_0x5317db||undefined;this[_0x0909('0x7')]=checkNameSurname(_0x42af40[_0x0909('0x8')]['phone'],_0x42af40[_0x0909('0x8')][_0x0909('0x9')],_0x42af40['Contact'][_0x0909('0xa')]);this['number']=_0x42af40[_0x0909('0x8')][_0x0909('0xb')];this[_0x0909('0xc')]=_0x1a5cff[_0x0909('0x7')];this['active']=_0x42af40[_0x0909('0xd')]||![];this[_0x0909('0xe')]=_0x1a5cff[_0x0909('0xe')];this[_0x0909('0xf')]=_0x1a5cff['dialQueueTimeout']||0x3;this[_0x0909('0x10')]=_0x42af40[_0x0909('0x10')];this[_0x0909('0x11')]=_0x42af40[_0x0909('0x11')];this[_0x0909('0x12')]=_0x42af40[_0x0909('0x12')];this[_0x0909('0x13')]=_0x42af40[_0x0909('0x13')];this[_0x0909('0x14')]=_0x42af40[_0x0909('0x14')];this['countdropretry']=_0x42af40[_0x0909('0x15')];this[_0x0909('0x16')]=_0x42af40[_0x0909('0x16')];this[_0x0909('0x17')]=_0x42af40[_0x0909('0x17')];this[_0x0909('0x18')]=_0x42af40[_0x0909('0x18')];this[_0x0909('0x19')]=_0x42af40['ContactId'];this[_0x0909('0x1a')]=_0x42af40[_0x0909('0x1a')];this[_0x0909('0x1b')]=_0x42af40['UserId'];this[_0x0909('0x1c')]=_0x42af40[_0x0909('0x1c')];this[_0x0909('0x1d')]=_0x42af40['CampaignId'];this['idHopper']=_0x42af40['id'];this[_0x0909('0x1e')]=_0x42af40['Contact'][_0x0909('0x9')]||'';this[_0x0909('0x1f')]=moment()[_0x0909('0x20')](_0x0909('0x21'));this[_0x0909('0x22')]=_0x42af40[_0x0909('0x22')];this['callbackuniqueid']=_0x42af40[_0x0909('0x23')];this['callbackat']=_0x42af40[_0x0909('0x24')];this[_0x0909('0x25')]=_0x42af40[_0x0909('0x25')];this[_0x0909('0x26')]='';this[_0x0909('0x27')]='';}Action['prototype'][_0x0909('0x28')]=function(){return util[_0x0909('0x20')](_0x0909('0x29'),this[_0x0909('0x7')],this[_0x0909('0x5')][_0x0909('0x2a')]>0x0?this[_0x0909('0x2b')][_0x0909('0x2c')](this[_0x0909('0x5')][_0x0909('0x2a')]):this['number']);};Action[_0x0909('0x2d')]['getQueue']=function(){return this['queue'];};module[_0x0909('0x2e')]=Action;
\ No newline at end of file