Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / action.js
index cb11b9b..a51aa30 100644 (file)
@@ -1 +1 @@
-const a1052_0x2ea3=['moment','number','countagentrejectretry','idHopper','string','firstName','originatecalleridnum','\x22%s\x22\x20<%s>','type','countdropretry','callbackuniqueid','voiceQueue','countmachineretry','ListId','starttime','isNil','ContactFirstName','phone','getQueue','active','getCaller','countbusyretry','VoiceQueueId','queue','countcongestionretry','scheduledat','Contact','lastName','util','callback','countabandonedretry','format','CampaignId','YYYY-MM-DD\x20HH:mm:ss','name','countnosuchnumberretry','originatecalleridname','recallme','uniqueid','callbackat','UserId','countnoanswerretry','ContactId','prototype','dialCutDigit'];(function(_0x3fd304,_0x2ea300){const _0x194f71=function(_0x421b15){while(--_0x421b15){_0x3fd304['push'](_0x3fd304['shift']());}};_0x194f71(++_0x2ea300);}(a1052_0x2ea3,0x7f));const a1052_0x194f=function(_0x3fd304,_0x2ea300){_0x3fd304=_0x3fd304-0x0;let _0x194f71=a1052_0x2ea3[_0x3fd304];return _0x194f71;};const _0x3da241=a1052_0x194f;'use strict';const util=require(_0x3da241('0x24')),_=require('lodash'),moment=require(_0x3da241('0x8'));function checkNameSurname(_0x421b15,_0x7846a1,_0x25c650){const _0x593c83=_0x3da241;let _0x1cec48='';!_[_0x593c83('0x17')](_0x7846a1)&&_0x593c83('0xc')===typeof _0x7846a1&&(_0x1cec48+=_0x7846a1);!_[_0x593c83('0x17')](_0x25c650)&&'string'===typeof _0x25c650&&(_0x1cec48+='\x20'+_0x25c650);if(_0x1cec48!=='')return _0x1cec48;return _0x421b15;}function Action(_0x9c39c2,_0x3b249e,_0xf7d91){const _0x38e922=_0x3da241;this[_0x38e922('0x13')]=_0x9c39c2,this[_0x38e922('0x1')]=_0xf7d91||undefined,this['name']=checkNameSurname(_0x3b249e[_0x38e922('0x22')]['phone'],_0x3b249e[_0x38e922('0x22')][_0x38e922('0xd')],_0x3b249e[_0x38e922('0x22')][_0x38e922('0x23')]),this[_0x38e922('0x9')]=_0x3b249e[_0x38e922('0x22')][_0x38e922('0x19')],this[_0x38e922('0x1f')]=_0x9c39c2[_0x38e922('0x2a')],this['active']=_0x3b249e[_0x38e922('0x1b')]||![],this[_0x38e922('0x10')]=_0x9c39c2[_0x38e922('0x10')],this['dialQueueTimeout']=_0x9c39c2['dialQueueTimeout']||0x3,this['scheduledat']=_0x3b249e[_0x38e922('0x21')],this['countbusyretry']=_0x3b249e[_0x38e922('0x1d')],this[_0x38e922('0x20')]=_0x3b249e[_0x38e922('0x20')],this['countnoanswerretry']=_0x3b249e[_0x38e922('0x4')],this[_0x38e922('0x2b')]=_0x3b249e[_0x38e922('0x2b')],this['countdropretry']=_0x3b249e[_0x38e922('0x11')],this[_0x38e922('0x26')]=_0x3b249e[_0x38e922('0x26')],this[_0x38e922('0x14')]=_0x3b249e[_0x38e922('0x14')],this[_0x38e922('0xa')]=_0x3b249e[_0x38e922('0xa')],this[_0x38e922('0x5')]=_0x3b249e[_0x38e922('0x5')],this[_0x38e922('0x15')]=_0x3b249e[_0x38e922('0x15')],this[_0x38e922('0x3')]=_0x3b249e[_0x38e922('0x3')],this['VoiceQueueId']=_0x3b249e[_0x38e922('0x1e')],this[_0x38e922('0x28')]=_0x3b249e['CampaignId'],this[_0x38e922('0xb')]=_0x3b249e['id'],this[_0x38e922('0x18')]=_0x3b249e[_0x38e922('0x22')][_0x38e922('0xd')]||'',this[_0x38e922('0x16')]=moment()[_0x38e922('0x27')](_0x38e922('0x29')),this['callback']=_0x3b249e[_0x38e922('0x25')],this[_0x38e922('0x12')]=_0x3b249e[_0x38e922('0x12')],this[_0x38e922('0x2')]=_0x3b249e[_0x38e922('0x2')],this[_0x38e922('0x0')]=_0x3b249e['recallme'],this[_0x38e922('0xe')]='',this[_0x38e922('0x2c')]='';}Action[_0x3da241('0x6')][_0x3da241('0x1c')]=function(){const _0x268398=_0x3da241;return util[_0x268398('0x27')](_0x268398('0xf'),this[_0x268398('0x2a')],this[_0x268398('0x13')][_0x268398('0x7')]>0x0?this[_0x268398('0x9')]['substring'](this[_0x268398('0x13')][_0x268398('0x7')]):this[_0x268398('0x9')]);},Action['prototype'][_0x3da241('0x1a')]=function(){return this['queue'];},module['exports']=Action;
\ No newline at end of file
+const a1052_0x5df1=['string','countdropretry','Contact','dialCutDigit','\x22%s\x22\x20<%s>','getQueue','callback','ListId','lastName','countbusyretry','UserId','firstName','originatecalleridname','exports','name','moment','CampaignId','active','util','countmachineretry','countagentrejectretry','VoiceQueueId','getCaller','dialQueueTimeout','ContactId','isNil','type','callbackuniqueid','queue','phone','prototype','lodash','recallme','voiceQueue','countcongestionretry','countnosuchnumberretry','idHopper','uniqueid','number','countnoanswerretry','format','YYYY-MM-DD\x20HH:mm:ss','substring','callbackat','scheduledat'];(function(_0x5d6be0,_0x5df18e){const _0x1536d5=function(_0x3a117d){while(--_0x3a117d){_0x5d6be0['push'](_0x5d6be0['shift']());}};_0x1536d5(++_0x5df18e);}(a1052_0x5df1,0x19d));const a1052_0x1536=function(_0x5d6be0,_0x5df18e){_0x5d6be0=_0x5d6be0-0x0;let _0x1536d5=a1052_0x5df1[_0x5d6be0];return _0x1536d5;};const _0x3b0125=a1052_0x1536;'use strict';const util=require(_0x3b0125('0xa')),_=require(_0x3b0125('0x17')),moment=require(_0x3b0125('0x7'));function checkNameSurname(_0x3a117d,_0x8e19d5,_0x3389ef){const _0x7c9d4d=_0x3b0125;let _0x231c6c='';!_[_0x7c9d4d('0x11')](_0x8e19d5)&&_0x7c9d4d('0x25')===typeof _0x8e19d5&&(_0x231c6c+=_0x8e19d5);!_[_0x7c9d4d('0x11')](_0x3389ef)&&_0x7c9d4d('0x25')===typeof _0x3389ef&&(_0x231c6c+='\x20'+_0x3389ef);if(_0x231c6c!=='')return _0x231c6c;return _0x3a117d;}function Action(_0x21e84f,_0x5bb2a2,_0x159999){const _0x473add=_0x3b0125;this[_0x473add('0x19')]=_0x21e84f,this[_0x473add('0x1d')]=_0x159999||undefined,this['name']=checkNameSurname(_0x5bb2a2['Contact']['phone'],_0x5bb2a2[_0x473add('0x27')][_0x473add('0x3')],_0x5bb2a2[_0x473add('0x27')][_0x473add('0x0')]),this[_0x473add('0x1e')]=_0x5bb2a2[_0x473add('0x27')][_0x473add('0x15')],this['queue']=_0x21e84f[_0x473add('0x6')],this[_0x473add('0x9')]=_0x5bb2a2[_0x473add('0x9')]||![],this[_0x473add('0x12')]=_0x21e84f[_0x473add('0x12')],this[_0x473add('0xf')]=_0x21e84f[_0x473add('0xf')]||0x3,this[_0x473add('0x24')]=_0x5bb2a2[_0x473add('0x24')],this[_0x473add('0x1')]=_0x5bb2a2[_0x473add('0x1')],this[_0x473add('0x1a')]=_0x5bb2a2[_0x473add('0x1a')],this[_0x473add('0x1f')]=_0x5bb2a2[_0x473add('0x1f')],this[_0x473add('0x1b')]=_0x5bb2a2[_0x473add('0x1b')],this[_0x473add('0x26')]=_0x5bb2a2[_0x473add('0x26')],this['countabandonedretry']=_0x5bb2a2['countabandonedretry'],this[_0x473add('0xb')]=_0x5bb2a2['countmachineretry'],this['countagentrejectretry']=_0x5bb2a2[_0x473add('0xc')],this[_0x473add('0x10')]=_0x5bb2a2[_0x473add('0x10')],this['ListId']=_0x5bb2a2[_0x473add('0x2c')],this[_0x473add('0x2')]=_0x5bb2a2[_0x473add('0x2')],this[_0x473add('0xd')]=_0x5bb2a2[_0x473add('0xd')],this[_0x473add('0x8')]=_0x5bb2a2[_0x473add('0x8')],this[_0x473add('0x1c')]=_0x5bb2a2['id'],this['ContactFirstName']=_0x5bb2a2[_0x473add('0x27')]['firstName']||'',this['starttime']=moment()[_0x473add('0x20')](_0x473add('0x21')),this[_0x473add('0x2b')]=_0x5bb2a2[_0x473add('0x2b')],this[_0x473add('0x13')]=_0x5bb2a2['callbackuniqueid'],this[_0x473add('0x23')]=_0x5bb2a2['callbackat'],this[_0x473add('0x18')]=_0x5bb2a2[_0x473add('0x18')],this['originatecalleridnum']='',this[_0x473add('0x4')]='';}Action[_0x3b0125('0x16')][_0x3b0125('0xe')]=function(){const _0x245e07=_0x3b0125;return util[_0x245e07('0x20')](_0x245e07('0x29'),this['name'],this[_0x245e07('0x19')][_0x245e07('0x28')]>0x0?this[_0x245e07('0x1e')][_0x245e07('0x22')](this[_0x245e07('0x19')][_0x245e07('0x28')]):this[_0x245e07('0x1e')]);},Action[_0x3b0125('0x16')][_0x3b0125('0x2a')]=function(){const _0x228d1a=_0x3b0125;return this[_0x228d1a('0x14')];},module[_0x3b0125('0x5')]=Action;
\ No newline at end of file