Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / services / ami / dialer / action.js
index 313d9ab..278b7b0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdb2b=['callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','voiceQueue','util','moment','isNil','string','name','Contact','phone','firstName','number','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','VoiceQueueId','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x46445b,_0x3e21ca){var _0x135d13=function(_0x22f3a3){while(--_0x22f3a3){_0x46445b['push'](_0x46445b['shift']());}};_0x135d13(++_0x3e21ca);}(_0xdb2b,0xa2));var _0xbdb2=function(_0x2cb3eb,_0x4d83aa){_0x2cb3eb=_0x2cb3eb-0x0;var _0x2759ee=_0xdb2b[_0x2cb3eb];return _0x2759ee;};'use strict';var util=require(_0xbdb2('0x0'));var _=require('lodash');var moment=require(_0xbdb2('0x1'));function checkNameSurname(_0x828eeb,_0x2df0d0,_0x20026f){var _0x1d47c6='';if(!_[_0xbdb2('0x2')](_0x2df0d0)&&_0xbdb2('0x3')===typeof _0x2df0d0){_0x1d47c6+=_0x2df0d0;}if(!_[_0xbdb2('0x2')](_0x20026f)&&_0xbdb2('0x3')===typeof _0x20026f){_0x1d47c6+='\x20'+_0x20026f;}if(_0x1d47c6!==''){return _0x1d47c6;}return _0x828eeb;}function Action(_0x28fa31,_0x267ef3,_0xdabd3c){this['voiceQueue']=_0x28fa31;this['uniqueid']=_0xdabd3c||undefined;this[_0xbdb2('0x4')]=checkNameSurname(_0x267ef3[_0xbdb2('0x5')][_0xbdb2('0x6')],_0x267ef3[_0xbdb2('0x5')][_0xbdb2('0x7')],_0x267ef3[_0xbdb2('0x5')]['lastName']);this[_0xbdb2('0x8')]=_0x267ef3[_0xbdb2('0x5')]['phone'];this[_0xbdb2('0x9')]=_0x28fa31[_0xbdb2('0x4')];this['active']=_0x267ef3[_0xbdb2('0xa')]||![];this[_0xbdb2('0xb')]=_0x28fa31[_0xbdb2('0xb')];this['dialQueueTimeout']=_0x28fa31[_0xbdb2('0xc')]||0x3;this[_0xbdb2('0xd')]=_0x267ef3[_0xbdb2('0xd')];this[_0xbdb2('0xe')]=_0x267ef3['countbusyretry'];this[_0xbdb2('0xf')]=_0x267ef3[_0xbdb2('0xf')];this['countnoanswerretry']=_0x267ef3['countnoanswerretry'];this[_0xbdb2('0x10')]=_0x267ef3[_0xbdb2('0x10')];this[_0xbdb2('0x11')]=_0x267ef3[_0xbdb2('0x11')];this[_0xbdb2('0x12')]=_0x267ef3[_0xbdb2('0x12')];this[_0xbdb2('0x13')]=_0x267ef3[_0xbdb2('0x13')];this['countagentrejectretry']=_0x267ef3[_0xbdb2('0x14')];this['ContactId']=_0x267ef3[_0xbdb2('0x15')];this[_0xbdb2('0x16')]=_0x267ef3[_0xbdb2('0x16')];this['UserId']=_0x267ef3['UserId'];this[_0xbdb2('0x17')]=_0x267ef3[_0xbdb2('0x17')];this['CampaignId']=_0x267ef3['CampaignId'];this['idHopper']=_0x267ef3['id'];this[_0xbdb2('0x18')]=_0x267ef3[_0xbdb2('0x5')][_0xbdb2('0x7')]||'';this[_0xbdb2('0x19')]=moment()[_0xbdb2('0x1a')](_0xbdb2('0x1b'));this['callback']=_0x267ef3[_0xbdb2('0x1c')];this['callbackuniqueid']=_0x267ef3[_0xbdb2('0x1d')];this['callbackat']=_0x267ef3[_0xbdb2('0x1e')];this[_0xbdb2('0x1f')]=_0x267ef3['recallme'];this[_0xbdb2('0x20')]='';this[_0xbdb2('0x21')]='';}Action['prototype'][_0xbdb2('0x22')]=function(){return util[_0xbdb2('0x1a')](_0xbdb2('0x23'),this['name'],this['voiceQueue'][_0xbdb2('0x24')]>0x0?this[_0xbdb2('0x8')]['substring'](this[_0xbdb2('0x25')][_0xbdb2('0x24')]):this['number']);};Action['prototype']['getQueue']=function(){return this['queue'];};module['exports']=Action;
\ No newline at end of file
+var _0xa9f0=['active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','ContactFirstName','starttime','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','getCaller','\x22%s\x22\x20<%s>','voiceQueue','getQueue','exports','util','moment','isNil','string','uniqueid','name','Contact','phone','firstName','lastName','number','queue'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa9f0,0x153));var _0x0a9f=function(_0x3ce21f,_0xeed7d9){_0x3ce21f=_0x3ce21f-0x0;var _0x48b1e3=_0xa9f0[_0x3ce21f];return _0x48b1e3;};'use strict';var util=require(_0x0a9f('0x0'));var _=require('lodash');var moment=require(_0x0a9f('0x1'));function checkNameSurname(_0x3bf639,_0x3968f4,_0x2c544b){var _0x170ee8='';if(!_[_0x0a9f('0x2')](_0x3968f4)&&_0x0a9f('0x3')===typeof _0x3968f4){_0x170ee8+=_0x3968f4;}if(!_[_0x0a9f('0x2')](_0x2c544b)&&'string'===typeof _0x2c544b){_0x170ee8+='\x20'+_0x2c544b;}if(_0x170ee8!==''){return _0x170ee8;}return _0x3bf639;}function Action(_0x881644,_0x54579c,_0x19b209){this['voiceQueue']=_0x881644;this[_0x0a9f('0x4')]=_0x19b209||undefined;this[_0x0a9f('0x5')]=checkNameSurname(_0x54579c[_0x0a9f('0x6')][_0x0a9f('0x7')],_0x54579c['Contact'][_0x0a9f('0x8')],_0x54579c[_0x0a9f('0x6')][_0x0a9f('0x9')]);this[_0x0a9f('0xa')]=_0x54579c['Contact']['phone'];this[_0x0a9f('0xb')]=_0x881644[_0x0a9f('0x5')];this[_0x0a9f('0xc')]=_0x54579c[_0x0a9f('0xc')]||![];this[_0x0a9f('0xd')]=_0x881644[_0x0a9f('0xd')];this[_0x0a9f('0xe')]=_0x881644[_0x0a9f('0xe')]||0x3;this[_0x0a9f('0xf')]=_0x54579c[_0x0a9f('0xf')];this[_0x0a9f('0x10')]=_0x54579c[_0x0a9f('0x10')];this[_0x0a9f('0x11')]=_0x54579c['countcongestionretry'];this[_0x0a9f('0x12')]=_0x54579c[_0x0a9f('0x12')];this[_0x0a9f('0x13')]=_0x54579c[_0x0a9f('0x13')];this[_0x0a9f('0x14')]=_0x54579c[_0x0a9f('0x14')];this['countabandonedretry']=_0x54579c['countabandonedretry'];this['countmachineretry']=_0x54579c['countmachineretry'];this[_0x0a9f('0x15')]=_0x54579c[_0x0a9f('0x15')];this['ContactId']=_0x54579c[_0x0a9f('0x16')];this[_0x0a9f('0x17')]=_0x54579c[_0x0a9f('0x17')];this['UserId']=_0x54579c[_0x0a9f('0x18')];this[_0x0a9f('0x19')]=_0x54579c[_0x0a9f('0x19')];this['CampaignId']=_0x54579c[_0x0a9f('0x1a')];this['idHopper']=_0x54579c['id'];this[_0x0a9f('0x1b')]=_0x54579c[_0x0a9f('0x6')][_0x0a9f('0x8')]||'';this[_0x0a9f('0x1c')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0x0a9f('0x1d')]=_0x54579c[_0x0a9f('0x1d')];this[_0x0a9f('0x1e')]=_0x54579c[_0x0a9f('0x1e')];this[_0x0a9f('0x1f')]=_0x54579c[_0x0a9f('0x1f')];this[_0x0a9f('0x20')]=_0x54579c[_0x0a9f('0x20')];this[_0x0a9f('0x21')]='';this['originatecalleridname']='';}Action['prototype'][_0x0a9f('0x22')]=function(){return util['format'](_0x0a9f('0x23'),this[_0x0a9f('0x5')],this[_0x0a9f('0x24')]['dialCutDigit']>0x0?this[_0x0a9f('0xa')]['substring'](this[_0x0a9f('0x24')]['dialCutDigit']):this['number']);};Action['prototype'][_0x0a9f('0x25')]=function(){return this[_0x0a9f('0xb')];};module[_0x0a9f('0x26')]=Action;
\ No newline at end of file