Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / action.js
index 86b006e..8561d19 100644 (file)
@@ -1 +1 @@
-const a1051_0x4840=['CampaignId','getQueue','countagentrejectretry','callbackat','moment','queue','countdropretry','Contact','lastName','ListId','countnoanswerretry','util','callback','uniqueid','VoiceQueueId','countcongestionretry','callbackuniqueid','getCaller','countnosuchnumberretry','YYYY-MM-DD\x20HH:mm:ss','string','firstName','number','voiceQueue','phone','starttime','active','format','recallme','countmachineretry','ContactFirstName','substring','exports','UserId','prototype','dialQueueTimeout','idHopper','ContactId','scheduledat','originatecalleridname','isNil','name','dialCutDigit','type','lodash','countabandonedretry','countbusyretry'];(function(_0x3bf894,_0x4840a0){const _0x4e9592=function(_0x184301){while(--_0x184301){_0x3bf894['push'](_0x3bf894['shift']());}};_0x4e9592(++_0x4840a0);}(a1051_0x4840,0x1e8));const a1051_0x4e95=function(_0x3bf894,_0x4840a0){_0x3bf894=_0x3bf894-0x0;let _0x4e9592=a1051_0x4840[_0x3bf894];return _0x4e9592;};const _0x14b1d6=a1051_0x4e95;'use strict';const util=require(_0x14b1d6('0x28')),_=require(_0x14b1d6('0x1a')),moment=require(_0x14b1d6('0x21'));function checkNameSurname(_0x184301,_0xa3f5db,_0x1b9054){const _0x5683bd=_0x14b1d6;let _0x2c200f='';!_[_0x5683bd('0x16')](_0xa3f5db)&&_0x5683bd('0x2')===typeof _0xa3f5db&&(_0x2c200f+=_0xa3f5db);!_['isNil'](_0x1b9054)&&'string'===typeof _0x1b9054&&(_0x2c200f+='\x20'+_0x1b9054);if(_0x2c200f!=='')return _0x2c200f;return _0x184301;}function Action(_0x303e04,_0x96d04f,_0x46c2fd){const _0x326eaf=_0x14b1d6;this[_0x326eaf('0x5')]=_0x303e04,this[_0x326eaf('0x2a')]=_0x46c2fd||undefined,this[_0x326eaf('0x17')]=checkNameSurname(_0x96d04f[_0x326eaf('0x24')][_0x326eaf('0x6')],_0x96d04f['Contact']['firstName'],_0x96d04f[_0x326eaf('0x24')][_0x326eaf('0x25')]),this[_0x326eaf('0x4')]=_0x96d04f['Contact'][_0x326eaf('0x6')],this[_0x326eaf('0x22')]=_0x303e04[_0x326eaf('0x17')],this['active']=_0x96d04f[_0x326eaf('0x8')]||![],this['type']=_0x303e04[_0x326eaf('0x19')],this[_0x326eaf('0x11')]=_0x303e04['dialQueueTimeout']||0x3,this['scheduledat']=_0x96d04f[_0x326eaf('0x14')],this[_0x326eaf('0x1c')]=_0x96d04f[_0x326eaf('0x1c')],this['countcongestionretry']=_0x96d04f[_0x326eaf('0x2c')],this[_0x326eaf('0x27')]=_0x96d04f[_0x326eaf('0x27')],this[_0x326eaf('0x0')]=_0x96d04f['countnosuchnumberretry'],this[_0x326eaf('0x23')]=_0x96d04f[_0x326eaf('0x23')],this['countabandonedretry']=_0x96d04f[_0x326eaf('0x1b')],this['countmachineretry']=_0x96d04f[_0x326eaf('0xb')],this[_0x326eaf('0x1f')]=_0x96d04f[_0x326eaf('0x1f')],this['ContactId']=_0x96d04f[_0x326eaf('0x13')],this[_0x326eaf('0x26')]=_0x96d04f[_0x326eaf('0x26')],this[_0x326eaf('0xf')]=_0x96d04f['UserId'],this[_0x326eaf('0x2b')]=_0x96d04f[_0x326eaf('0x2b')],this[_0x326eaf('0x1d')]=_0x96d04f[_0x326eaf('0x1d')],this[_0x326eaf('0x12')]=_0x96d04f['id'],this[_0x326eaf('0xc')]=_0x96d04f[_0x326eaf('0x24')][_0x326eaf('0x3')]||'',this[_0x326eaf('0x7')]=moment()[_0x326eaf('0x9')](_0x326eaf('0x1')),this['callback']=_0x96d04f[_0x326eaf('0x29')],this[_0x326eaf('0x2d')]=_0x96d04f[_0x326eaf('0x2d')],this[_0x326eaf('0x20')]=_0x96d04f[_0x326eaf('0x20')],this[_0x326eaf('0xa')]=_0x96d04f[_0x326eaf('0xa')],this['originatecalleridnum']='',this[_0x326eaf('0x15')]='';}Action[_0x14b1d6('0x10')][_0x14b1d6('0x2e')]=function(){const _0x12f66e=_0x14b1d6;return util['format']('\x22%s\x22\x20<%s>',this[_0x12f66e('0x17')],this[_0x12f66e('0x5')][_0x12f66e('0x18')]>0x0?this['number'][_0x12f66e('0xd')](this[_0x12f66e('0x5')][_0x12f66e('0x18')]):this['number']);},Action[_0x14b1d6('0x10')][_0x14b1d6('0x1e')]=function(){const _0xf00d03=_0x14b1d6;return this[_0xf00d03('0x22')];},module[_0x14b1d6('0xe')]=Action;
\ No newline at end of file
+const a1051_0x3023=['active','countmachineretry','countabandonedretry','type','countnoanswerretry','VoiceQueueId','firstName','\x22%s\x22\x20<%s>','originatecalleridnum','scheduledat','originatecalleridname','callback','prototype','countbusyretry','phone','voiceQueue','exports','util','ListId','YYYY-MM-DD\x20HH:mm:ss','callbackuniqueid','CampaignId','Contact','countdropretry','queue','countnosuchnumberretry','dialQueueTimeout','name','lastName','idHopper','number','substring','ContactFirstName','format','countagentrejectretry','isNil','moment','string','callbackat','starttime','countcongestionretry','dialCutDigit','UserId'];(function(_0x480b1a,_0x302313){const _0x3ea288=function(_0x411e4){while(--_0x411e4){_0x480b1a['push'](_0x480b1a['shift']());}};_0x3ea288(++_0x302313);}(a1051_0x3023,0x187));const a1051_0x3ea2=function(_0x480b1a,_0x302313){_0x480b1a=_0x480b1a-0x0;let _0x3ea288=a1051_0x3023[_0x480b1a];return _0x3ea288;};const _0x49513e=a1051_0x3ea2;'use strict';const util=require(_0x49513e('0xd')),_=require('lodash'),moment=require(_0x49513e('0x20'));function checkNameSurname(_0x411e4,_0x222443,_0x3a4012){const _0x1fbeb4=_0x49513e;let _0x51b5eb='';!_[_0x1fbeb4('0x1f')](_0x222443)&&_0x1fbeb4('0x21')===typeof _0x222443&&(_0x51b5eb+=_0x222443);!_[_0x1fbeb4('0x1f')](_0x3a4012)&&_0x1fbeb4('0x21')===typeof _0x3a4012&&(_0x51b5eb+='\x20'+_0x3a4012);if(_0x51b5eb!=='')return _0x51b5eb;return _0x411e4;}function Action(_0x55a036,_0x15df79,_0x4882e9){const _0x2eaa8c=_0x49513e;this[_0x2eaa8c('0xb')]=_0x55a036,this['uniqueid']=_0x4882e9||undefined,this[_0x2eaa8c('0x17')]=checkNameSurname(_0x15df79[_0x2eaa8c('0x12')][_0x2eaa8c('0xa')],_0x15df79[_0x2eaa8c('0x12')][_0x2eaa8c('0x2')],_0x15df79[_0x2eaa8c('0x12')][_0x2eaa8c('0x18')]),this['number']=_0x15df79[_0x2eaa8c('0x12')][_0x2eaa8c('0xa')],this[_0x2eaa8c('0x14')]=_0x55a036[_0x2eaa8c('0x17')],this[_0x2eaa8c('0x27')]=_0x15df79[_0x2eaa8c('0x27')]||![],this['type']=_0x55a036[_0x2eaa8c('0x2a')],this['dialQueueTimeout']=_0x55a036[_0x2eaa8c('0x16')]||0x3,this[_0x2eaa8c('0x5')]=_0x15df79[_0x2eaa8c('0x5')],this[_0x2eaa8c('0x9')]=_0x15df79[_0x2eaa8c('0x9')],this['countcongestionretry']=_0x15df79[_0x2eaa8c('0x24')],this['countnoanswerretry']=_0x15df79[_0x2eaa8c('0x0')],this['countnosuchnumberretry']=_0x15df79[_0x2eaa8c('0x15')],this[_0x2eaa8c('0x13')]=_0x15df79[_0x2eaa8c('0x13')],this[_0x2eaa8c('0x29')]=_0x15df79['countabandonedretry'],this['countmachineretry']=_0x15df79[_0x2eaa8c('0x28')],this[_0x2eaa8c('0x1e')]=_0x15df79[_0x2eaa8c('0x1e')],this['ContactId']=_0x15df79['ContactId'],this['ListId']=_0x15df79[_0x2eaa8c('0xe')],this[_0x2eaa8c('0x26')]=_0x15df79['UserId'],this['VoiceQueueId']=_0x15df79[_0x2eaa8c('0x1')],this[_0x2eaa8c('0x11')]=_0x15df79[_0x2eaa8c('0x11')],this[_0x2eaa8c('0x19')]=_0x15df79['id'],this[_0x2eaa8c('0x1c')]=_0x15df79[_0x2eaa8c('0x12')][_0x2eaa8c('0x2')]||'',this[_0x2eaa8c('0x23')]=moment()[_0x2eaa8c('0x1d')](_0x2eaa8c('0xf')),this[_0x2eaa8c('0x7')]=_0x15df79[_0x2eaa8c('0x7')],this[_0x2eaa8c('0x10')]=_0x15df79[_0x2eaa8c('0x10')],this[_0x2eaa8c('0x22')]=_0x15df79[_0x2eaa8c('0x22')],this['recallme']=_0x15df79['recallme'],this[_0x2eaa8c('0x4')]='',this[_0x2eaa8c('0x6')]='';}Action[_0x49513e('0x8')]['getCaller']=function(){const _0x22c617=_0x49513e;return util['format'](_0x22c617('0x3'),this[_0x22c617('0x17')],this[_0x22c617('0xb')][_0x22c617('0x25')]>0x0?this[_0x22c617('0x1a')][_0x22c617('0x1b')](this[_0x22c617('0xb')][_0x22c617('0x25')]):this[_0x22c617('0x1a')]);},Action[_0x49513e('0x8')]['getQueue']=function(){return this['queue'];},module[_0x49513e('0xc')]=Action;
\ No newline at end of file