Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / dialer / action.js
index edc84e2..8ce9292 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc68=['countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','UserId','VoiceQueueId','CampaignId','idHopper','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','number','getQueue','queue','exports','string','voiceQueue','uniqueid','name','phone','Contact','firstName','lastName','active','type','dialQueueTimeout','scheduledat','countbusyretry'];(function(_0x2a6809,_0x44edde){var _0x11c371=function(_0x1a4888){while(--_0x1a4888){_0x2a6809['push'](_0x2a6809['shift']());}};_0x11c371(++_0x44edde);}(_0xbc68,0x18d));var _0x8bc6=function(_0x4a964a,_0x2c7e8f){_0x4a964a=_0x4a964a-0x0;var _0x45b531=_0xbc68[_0x4a964a];return _0x45b531;};'use strict';var util=require('util');var _=require('lodash');var moment=require('moment');function checkNameSurname(_0x262264,_0x1b7607,_0x424d3b){var _0x3a04df='';if(!_['isNil'](_0x1b7607)&&_0x8bc6('0x0')===typeof _0x1b7607){_0x3a04df+=_0x1b7607;}if(!_['isNil'](_0x424d3b)&&_0x8bc6('0x0')===typeof _0x424d3b){_0x3a04df+='\x20'+_0x424d3b;}if(_0x3a04df!==''){return _0x3a04df;}return _0x262264;}function Action(_0x2d2cba,_0x3cf49a,_0x5449ff){this[_0x8bc6('0x1')]=_0x2d2cba;this[_0x8bc6('0x2')]=_0x5449ff||undefined;this[_0x8bc6('0x3')]=checkNameSurname(_0x3cf49a['Contact'][_0x8bc6('0x4')],_0x3cf49a[_0x8bc6('0x5')][_0x8bc6('0x6')],_0x3cf49a['Contact'][_0x8bc6('0x7')]);this['number']=_0x3cf49a['phone'];this['queue']=_0x2d2cba['name'];this[_0x8bc6('0x8')]=_0x3cf49a['active']||![];this[_0x8bc6('0x9')]=_0x2d2cba['type'];this[_0x8bc6('0xa')]=_0x2d2cba[_0x8bc6('0xa')]||0x3;this[_0x8bc6('0xb')]=_0x3cf49a[_0x8bc6('0xb')];this[_0x8bc6('0xc')]=_0x3cf49a[_0x8bc6('0xc')];this[_0x8bc6('0xd')]=_0x3cf49a[_0x8bc6('0xd')];this[_0x8bc6('0xe')]=_0x3cf49a[_0x8bc6('0xe')];this[_0x8bc6('0xf')]=_0x3cf49a[_0x8bc6('0xf')];this[_0x8bc6('0x10')]=_0x3cf49a['countdropretry'];this[_0x8bc6('0x11')]=_0x3cf49a['countabandonedretry'];this[_0x8bc6('0x12')]=_0x3cf49a[_0x8bc6('0x12')];this[_0x8bc6('0x13')]=_0x3cf49a[_0x8bc6('0x13')];this[_0x8bc6('0x14')]=_0x3cf49a[_0x8bc6('0x14')];this['ListId']=_0x3cf49a['ListId'];this[_0x8bc6('0x15')]=_0x3cf49a[_0x8bc6('0x15')];this['VoiceQueueId']=_0x3cf49a[_0x8bc6('0x16')];this[_0x8bc6('0x17')]=_0x3cf49a['CampaignId'];this[_0x8bc6('0x18')]=_0x3cf49a['id'];this['ContactFirstName']=_0x3cf49a[_0x8bc6('0x5')][_0x8bc6('0x6')]||'';this[_0x8bc6('0x19')]=moment()[_0x8bc6('0x1a')](_0x8bc6('0x1b'));this['callback']=_0x3cf49a['callback'];this['callbackuniqueid']=_0x3cf49a[_0x8bc6('0x1c')];this[_0x8bc6('0x1d')]=_0x3cf49a['callbackat'];this['recallme']=_0x3cf49a[_0x8bc6('0x1e')];this[_0x8bc6('0x1f')]='';this[_0x8bc6('0x20')]='';}Action[_0x8bc6('0x21')][_0x8bc6('0x22')]=function(){return util[_0x8bc6('0x1a')](_0x8bc6('0x23'),this[_0x8bc6('0x3')],this['voiceQueue'][_0x8bc6('0x24')]>0x0?this[_0x8bc6('0x25')]['substring'](this[_0x8bc6('0x1')][_0x8bc6('0x24')]):this[_0x8bc6('0x25')]);};Action[_0x8bc6('0x21')][_0x8bc6('0x26')]=function(){return this[_0x8bc6('0x27')];};module[_0x8bc6('0x28')]=Action;
\ No newline at end of file
+var _0xbc2b=['countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','firstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','substring','number','getQueue','exports','moment','isNil','string','voiceQueue','uniqueid','name','Contact','lastName','phone','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry'];(function(_0x401381,_0x66b5d4){var _0x4a8fac=function(_0x5c45d8){while(--_0x5c45d8){_0x401381['push'](_0x401381['shift']());}};_0x4a8fac(++_0x66b5d4);}(_0xbc2b,0x1ba));var _0xbbc2=function(_0x525c42,_0x486cc5){_0x525c42=_0x525c42-0x0;var _0x2c2999=_0xbc2b[_0x525c42];return _0x2c2999;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0xbbc2('0x0'));function checkNameSurname(_0x426de6,_0x5360cc,_0x5d48a6){var _0x160279='';if(!_[_0xbbc2('0x1')](_0x5360cc)&&_0xbbc2('0x2')===typeof _0x5360cc){_0x160279+=_0x5360cc;}if(!_[_0xbbc2('0x1')](_0x5d48a6)&&_0xbbc2('0x2')===typeof _0x5d48a6){_0x160279+='\x20'+_0x5d48a6;}if(_0x160279!==''){return _0x160279;}return _0x426de6;}function Action(_0x61b6e,_0x5f3a6c,_0x10dbec){this[_0xbbc2('0x3')]=_0x61b6e;this[_0xbbc2('0x4')]=_0x10dbec||undefined;this[_0xbbc2('0x5')]=checkNameSurname(_0x5f3a6c[_0xbbc2('0x6')]['phone'],_0x5f3a6c['Contact']['firstName'],_0x5f3a6c[_0xbbc2('0x6')][_0xbbc2('0x7')]);this['number']=_0x5f3a6c[_0xbbc2('0x8')];this[_0xbbc2('0x9')]=_0x61b6e[_0xbbc2('0x5')];this[_0xbbc2('0xa')]=_0x5f3a6c[_0xbbc2('0xa')]||![];this['type']=_0x61b6e[_0xbbc2('0xb')];this[_0xbbc2('0xc')]=_0x61b6e['dialQueueTimeout']||0x3;this[_0xbbc2('0xd')]=_0x5f3a6c[_0xbbc2('0xd')];this[_0xbbc2('0xe')]=_0x5f3a6c['countbusyretry'];this[_0xbbc2('0xf')]=_0x5f3a6c['countcongestionretry'];this['countnoanswerretry']=_0x5f3a6c[_0xbbc2('0x10')];this[_0xbbc2('0x11')]=_0x5f3a6c[_0xbbc2('0x11')];this[_0xbbc2('0x12')]=_0x5f3a6c[_0xbbc2('0x12')];this[_0xbbc2('0x13')]=_0x5f3a6c['countabandonedretry'];this[_0xbbc2('0x14')]=_0x5f3a6c['countmachineretry'];this[_0xbbc2('0x15')]=_0x5f3a6c[_0xbbc2('0x15')];this[_0xbbc2('0x16')]=_0x5f3a6c[_0xbbc2('0x16')];this[_0xbbc2('0x17')]=_0x5f3a6c[_0xbbc2('0x17')];this[_0xbbc2('0x18')]=_0x5f3a6c['UserId'];this[_0xbbc2('0x19')]=_0x5f3a6c[_0xbbc2('0x19')];this[_0xbbc2('0x1a')]=_0x5f3a6c[_0xbbc2('0x1a')];this[_0xbbc2('0x1b')]=_0x5f3a6c['id'];this['ContactFirstName']=_0x5f3a6c[_0xbbc2('0x6')][_0xbbc2('0x1c')]||'';this[_0xbbc2('0x1d')]=moment()[_0xbbc2('0x1e')](_0xbbc2('0x1f'));this[_0xbbc2('0x20')]=_0x5f3a6c[_0xbbc2('0x20')];this[_0xbbc2('0x21')]=_0x5f3a6c[_0xbbc2('0x21')];this[_0xbbc2('0x22')]=_0x5f3a6c[_0xbbc2('0x22')];this[_0xbbc2('0x23')]=_0x5f3a6c[_0xbbc2('0x23')];this[_0xbbc2('0x24')]='';this[_0xbbc2('0x25')]='';}Action[_0xbbc2('0x26')][_0xbbc2('0x27')]=function(){return util[_0xbbc2('0x1e')](_0xbbc2('0x28'),this[_0xbbc2('0x5')],this[_0xbbc2('0x3')][_0xbbc2('0x29')]>0x0?this['number'][_0xbbc2('0x2a')](this['voiceQueue']['dialCutDigit']):this[_0xbbc2('0x2b')]);};Action[_0xbbc2('0x26')][_0xbbc2('0x2c')]=function(){return this['queue'];};module[_0xbbc2('0x2d')]=Action;
\ No newline at end of file