Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / action.js
index a51aa30..d55ca7e 100644 (file)
@@ -1 +1 @@
-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
+const a1052_0x4580=['active','isNil','countmachineretry','dialQueueTimeout','voiceQueue','lodash','starttime','callbackat','countnoanswerretry','countbusyretry','moment','format','exports','VoiceQueueId','originatecalleridname','getQueue','callbackuniqueid','phone','YYYY-MM-DD\x20HH:mm:ss','queue','UserId','countagentrejectretry','countcongestionretry','dialCutDigit','recallme','\x22%s\x22\x20<%s>','string','firstName','scheduledat','countabandonedretry','type','ContactId','getCaller','lastName','Contact','callback','CampaignId','ListId','countnosuchnumberretry','name','countdropretry','number'];(function(_0x58e4b9,_0x4580fe){const _0x5d7865=function(_0x4f34d2){while(--_0x4f34d2){_0x58e4b9['push'](_0x58e4b9['shift']());}};_0x5d7865(++_0x4580fe);}(a1052_0x4580,0x1e8));const a1052_0x5d78=function(_0x58e4b9,_0x4580fe){_0x58e4b9=_0x58e4b9-0x0;let _0x5d7865=a1052_0x4580[_0x58e4b9];return _0x5d7865;};const _0x37fdd4=a1052_0x5d78;'use strict';const util=require('util'),_=require(_0x37fdd4('0x15')),moment=require(_0x37fdd4('0x1a'));function checkNameSurname(_0x4f34d2,_0x44fbca,_0x141159){const _0x38f512=_0x37fdd4;let _0x288cba='';!_['isNil'](_0x44fbca)&&_0x38f512('0x0')===typeof _0x44fbca&&(_0x288cba+=_0x44fbca);!_[_0x38f512('0x11')](_0x141159)&&_0x38f512('0x0')===typeof _0x141159&&(_0x288cba+='\x20'+_0x141159);if(_0x288cba!=='')return _0x288cba;return _0x4f34d2;}function Action(_0x4caec0,_0x196568,_0x865229){const _0x205e00=_0x37fdd4;this['voiceQueue']=_0x4caec0,this['uniqueid']=_0x865229||undefined,this[_0x205e00('0xd')]=checkNameSurname(_0x196568[_0x205e00('0x8')][_0x205e00('0x21')],_0x196568[_0x205e00('0x8')][_0x205e00('0x1')],_0x196568[_0x205e00('0x8')][_0x205e00('0x7')]),this[_0x205e00('0xf')]=_0x196568['Contact'][_0x205e00('0x21')],this[_0x205e00('0x23')]=_0x4caec0[_0x205e00('0xd')],this[_0x205e00('0x10')]=_0x196568[_0x205e00('0x10')]||![],this[_0x205e00('0x4')]=_0x4caec0['type'],this[_0x205e00('0x13')]=_0x4caec0[_0x205e00('0x13')]||0x3,this[_0x205e00('0x2')]=_0x196568[_0x205e00('0x2')],this[_0x205e00('0x19')]=_0x196568[_0x205e00('0x19')],this[_0x205e00('0x26')]=_0x196568['countcongestionretry'],this[_0x205e00('0x18')]=_0x196568[_0x205e00('0x18')],this[_0x205e00('0xc')]=_0x196568[_0x205e00('0xc')],this[_0x205e00('0xe')]=_0x196568[_0x205e00('0xe')],this[_0x205e00('0x3')]=_0x196568[_0x205e00('0x3')],this[_0x205e00('0x12')]=_0x196568[_0x205e00('0x12')],this[_0x205e00('0x25')]=_0x196568[_0x205e00('0x25')],this[_0x205e00('0x5')]=_0x196568[_0x205e00('0x5')],this[_0x205e00('0xb')]=_0x196568[_0x205e00('0xb')],this[_0x205e00('0x24')]=_0x196568['UserId'],this[_0x205e00('0x1d')]=_0x196568[_0x205e00('0x1d')],this[_0x205e00('0xa')]=_0x196568['CampaignId'],this['idHopper']=_0x196568['id'],this['ContactFirstName']=_0x196568['Contact'][_0x205e00('0x1')]||'',this[_0x205e00('0x16')]=moment()['format'](_0x205e00('0x22')),this[_0x205e00('0x9')]=_0x196568[_0x205e00('0x9')],this[_0x205e00('0x20')]=_0x196568[_0x205e00('0x20')],this[_0x205e00('0x17')]=_0x196568['callbackat'],this[_0x205e00('0x28')]=_0x196568[_0x205e00('0x28')],this['originatecalleridnum']='',this[_0x205e00('0x1e')]='';}Action['prototype'][_0x37fdd4('0x6')]=function(){const _0x26c2f4=_0x37fdd4;return util[_0x26c2f4('0x1b')](_0x26c2f4('0x29'),this['name'],this[_0x26c2f4('0x14')]['dialCutDigit']>0x0?this['number']['substring'](this[_0x26c2f4('0x14')][_0x26c2f4('0x27')]):this[_0x26c2f4('0xf')]);},Action['prototype'][_0x37fdd4('0x1f')]=function(){const _0x2b7f13=_0x37fdd4;return this[_0x2b7f13('0x23')];},module[_0x37fdd4('0x1c')]=Action;
\ No newline at end of file