Built motion from commit cf5ff673.|2.5.41
[motion2.git] / server / services / ami / dialer / action.js
index e87a62f..5d224ad 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xedb8=['moment','isNil','string','voiceQueue','uniqueid','Contact','firstName','lastName','number','queue','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','substring','getQueue','exports','util','lodash'];(function(_0x4ac48d,_0x171a68){var _0x7537af=function(_0x1c6ca6){while(--_0x1c6ca6){_0x4ac48d['push'](_0x4ac48d['shift']());}};_0x7537af(++_0x171a68);}(_0xedb8,0x19c));var _0x8edb=function(_0x330740,_0x58c0c0){_0x330740=_0x330740-0x0;var _0x1cb5f2=_0xedb8[_0x330740];return _0x1cb5f2;};'use strict';var util=require(_0x8edb('0x0'));var _=require(_0x8edb('0x1'));var moment=require(_0x8edb('0x2'));function checkNameSurname(_0x338306,_0x4c9d36,_0x387af8){var _0x5c8ba9='';if(!_[_0x8edb('0x3')](_0x4c9d36)&&_0x8edb('0x4')===typeof _0x4c9d36){_0x5c8ba9+=_0x4c9d36;}if(!_[_0x8edb('0x3')](_0x387af8)&&_0x8edb('0x4')===typeof _0x387af8){_0x5c8ba9+='\x20'+_0x387af8;}if(_0x5c8ba9!==''){return _0x5c8ba9;}return _0x338306;}function Action(_0x222596,_0x1dc702,_0xea9fc8){this[_0x8edb('0x5')]=_0x222596;this[_0x8edb('0x6')]=_0xea9fc8||undefined;this['name']=checkNameSurname(_0x1dc702['Contact']['phone'],_0x1dc702[_0x8edb('0x7')][_0x8edb('0x8')],_0x1dc702['Contact'][_0x8edb('0x9')]);this[_0x8edb('0xa')]=_0x1dc702['Contact']['phone'];this[_0x8edb('0xb')]=_0x222596[_0x8edb('0xc')];this[_0x8edb('0xd')]=_0x1dc702['active']||![];this[_0x8edb('0xe')]=_0x222596[_0x8edb('0xe')];this[_0x8edb('0xf')]=_0x222596[_0x8edb('0xf')]||0x3;this[_0x8edb('0x10')]=_0x1dc702['scheduledat'];this[_0x8edb('0x11')]=_0x1dc702['countbusyretry'];this[_0x8edb('0x12')]=_0x1dc702[_0x8edb('0x12')];this[_0x8edb('0x13')]=_0x1dc702[_0x8edb('0x13')];this[_0x8edb('0x14')]=_0x1dc702['countnosuchnumberretry'];this[_0x8edb('0x15')]=_0x1dc702[_0x8edb('0x15')];this['countabandonedretry']=_0x1dc702[_0x8edb('0x16')];this['countmachineretry']=_0x1dc702[_0x8edb('0x17')];this[_0x8edb('0x18')]=_0x1dc702[_0x8edb('0x18')];this[_0x8edb('0x19')]=_0x1dc702[_0x8edb('0x19')];this[_0x8edb('0x1a')]=_0x1dc702[_0x8edb('0x1a')];this[_0x8edb('0x1b')]=_0x1dc702[_0x8edb('0x1b')];this[_0x8edb('0x1c')]=_0x1dc702['VoiceQueueId'];this[_0x8edb('0x1d')]=_0x1dc702[_0x8edb('0x1d')];this[_0x8edb('0x1e')]=_0x1dc702['id'];this[_0x8edb('0x1f')]=_0x1dc702[_0x8edb('0x7')]['firstName']||'';this[_0x8edb('0x20')]=moment()[_0x8edb('0x21')](_0x8edb('0x22'));this[_0x8edb('0x23')]=_0x1dc702[_0x8edb('0x23')];this[_0x8edb('0x24')]=_0x1dc702[_0x8edb('0x24')];this['callbackat']=_0x1dc702[_0x8edb('0x25')];this[_0x8edb('0x26')]=_0x1dc702[_0x8edb('0x26')];this['originatecalleridnum']='';this['originatecalleridname']='';}Action[_0x8edb('0x27')][_0x8edb('0x28')]=function(){return util[_0x8edb('0x21')](_0x8edb('0x29'),this[_0x8edb('0xc')],this[_0x8edb('0x5')][_0x8edb('0x2a')]>0x0?this[_0x8edb('0xa')][_0x8edb('0x2b')](this[_0x8edb('0x5')][_0x8edb('0x2a')]):this[_0x8edb('0xa')]);};Action['prototype'][_0x8edb('0x2c')]=function(){return this[_0x8edb('0xb')];};module[_0x8edb('0x2d')]=Action;
\ No newline at end of file
+var _0x13ef=['countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','\x22%s\x22\x20<%s>','dialCutDigit','substring','getQueue','queue','exports','util','lodash','moment','Contact','firstName','lastName','number','phone','name','active','type','scheduledat','countbusyretry','countcongestionretry'];(function(_0xdb377,_0x252eac){var _0xd872ac=function(_0x374818){while(--_0x374818){_0xdb377['push'](_0xdb377['shift']());}};_0xd872ac(++_0x252eac);}(_0x13ef,0x70));var _0xf13e=function(_0x5c2e3e,_0x26ecd3){_0x5c2e3e=_0x5c2e3e-0x0;var _0x53f64a=_0x13ef[_0x5c2e3e];return _0x53f64a;};'use strict';var util=require(_0xf13e('0x0'));var _=require(_0xf13e('0x1'));var moment=require(_0xf13e('0x2'));function checkNameSurname(_0xebe1a8,_0x1ecf07,_0x55b145){var _0x2da19f='';if(!_['isNil'](_0x1ecf07)&&'string'===typeof _0x1ecf07){_0x2da19f+=_0x1ecf07;}if(!_['isNil'](_0x55b145)&&'string'===typeof _0x55b145){_0x2da19f+='\x20'+_0x55b145;}if(_0x2da19f!==''){return _0x2da19f;}return _0xebe1a8;}function Action(_0x4f498b,_0x49526f,_0x7e2673){this['voiceQueue']=_0x4f498b;this['uniqueid']=_0x7e2673||undefined;this['name']=checkNameSurname(_0x49526f[_0xf13e('0x3')]['phone'],_0x49526f[_0xf13e('0x3')][_0xf13e('0x4')],_0x49526f[_0xf13e('0x3')][_0xf13e('0x5')]);this[_0xf13e('0x6')]=_0x49526f[_0xf13e('0x3')][_0xf13e('0x7')];this['queue']=_0x4f498b[_0xf13e('0x8')];this[_0xf13e('0x9')]=_0x49526f[_0xf13e('0x9')]||![];this[_0xf13e('0xa')]=_0x4f498b[_0xf13e('0xa')];this['dialQueueTimeout']=_0x4f498b['dialQueueTimeout']||0x3;this[_0xf13e('0xb')]=_0x49526f[_0xf13e('0xb')];this[_0xf13e('0xc')]=_0x49526f[_0xf13e('0xc')];this[_0xf13e('0xd')]=_0x49526f['countcongestionretry'];this['countnoanswerretry']=_0x49526f[_0xf13e('0xe')];this[_0xf13e('0xf')]=_0x49526f[_0xf13e('0xf')];this[_0xf13e('0x10')]=_0x49526f[_0xf13e('0x10')];this[_0xf13e('0x11')]=_0x49526f[_0xf13e('0x11')];this[_0xf13e('0x12')]=_0x49526f[_0xf13e('0x12')];this[_0xf13e('0x13')]=_0x49526f[_0xf13e('0x13')];this[_0xf13e('0x14')]=_0x49526f[_0xf13e('0x14')];this[_0xf13e('0x15')]=_0x49526f[_0xf13e('0x15')];this[_0xf13e('0x16')]=_0x49526f[_0xf13e('0x16')];this[_0xf13e('0x17')]=_0x49526f[_0xf13e('0x17')];this[_0xf13e('0x18')]=_0x49526f[_0xf13e('0x18')];this[_0xf13e('0x19')]=_0x49526f['id'];this[_0xf13e('0x1a')]=_0x49526f[_0xf13e('0x3')][_0xf13e('0x4')]||'';this[_0xf13e('0x1b')]=moment()[_0xf13e('0x1c')](_0xf13e('0x1d'));this[_0xf13e('0x1e')]=_0x49526f['callback'];this[_0xf13e('0x1f')]=_0x49526f[_0xf13e('0x1f')];this[_0xf13e('0x20')]=_0x49526f[_0xf13e('0x20')];this[_0xf13e('0x21')]=_0x49526f['recallme'];this[_0xf13e('0x22')]='';this[_0xf13e('0x23')]='';}Action['prototype']['getCaller']=function(){return util[_0xf13e('0x1c')](_0xf13e('0x24'),this[_0xf13e('0x8')],this['voiceQueue'][_0xf13e('0x25')]>0x0?this[_0xf13e('0x6')][_0xf13e('0x26')](this['voiceQueue']['dialCutDigit']):this[_0xf13e('0x6')]);};Action['prototype'][_0xf13e('0x27')]=function(){return this[_0xf13e('0x28')];};module[_0xf13e('0x29')]=Action;
\ No newline at end of file