Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / services / ami / dialer / action.js
index 268b0e4..fcd26c8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x735e=['Contact','firstName','lastName','number','queue','active','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','prototype','getCaller','format','\x22%s\x22\x20<%s>','dialCutDigit','substring','getQueue','util','lodash','moment','isNil','string','voiceQueue','uniqueid','name','phone'];(function(_0x2e233e,_0x2a9bef){var _0x5b506b=function(_0x21fd45){while(--_0x21fd45){_0x2e233e['push'](_0x2e233e['shift']());}};_0x5b506b(++_0x2a9bef);}(_0x735e,0x18c));var _0xe735=function(_0x1399d6,_0x2c1661){_0x1399d6=_0x1399d6-0x0;var _0x4a9db4=_0x735e[_0x1399d6];return _0x4a9db4;};'use strict';var util=require(_0xe735('0x0'));var _=require(_0xe735('0x1'));var moment=require(_0xe735('0x2'));function checkNameSurname(_0x1dab04,_0x1079ed,_0x1c4f98){var _0x4cd8b1='';if(!_[_0xe735('0x3')](_0x1079ed)&&_0xe735('0x4')===typeof _0x1079ed){_0x4cd8b1+=_0x1079ed;}if(!_['isNil'](_0x1c4f98)&&'string'===typeof _0x1c4f98){_0x4cd8b1+='\x20'+_0x1c4f98;}if(_0x4cd8b1!==''){return _0x4cd8b1;}return _0x1dab04;}function Action(_0x245b41,_0x14dc89,_0x594c80){this[_0xe735('0x5')]=_0x245b41;this[_0xe735('0x6')]=_0x594c80||undefined;this[_0xe735('0x7')]=checkNameSurname(_0x14dc89['Contact'][_0xe735('0x8')],_0x14dc89[_0xe735('0x9')][_0xe735('0xa')],_0x14dc89[_0xe735('0x9')][_0xe735('0xb')]);this[_0xe735('0xc')]=_0x14dc89[_0xe735('0x8')];this[_0xe735('0xd')]=_0x245b41['name'];this[_0xe735('0xe')]=_0x14dc89['active']||![];this['type']=_0x245b41['type'];this[_0xe735('0xf')]=_0x245b41[_0xe735('0xf')]||0x3;this[_0xe735('0x10')]=_0x14dc89[_0xe735('0x10')];this[_0xe735('0x11')]=_0x14dc89['countbusyretry'];this['countcongestionretry']=_0x14dc89[_0xe735('0x12')];this[_0xe735('0x13')]=_0x14dc89[_0xe735('0x13')];this[_0xe735('0x14')]=_0x14dc89[_0xe735('0x14')];this[_0xe735('0x15')]=_0x14dc89[_0xe735('0x15')];this[_0xe735('0x16')]=_0x14dc89[_0xe735('0x16')];this[_0xe735('0x17')]=_0x14dc89[_0xe735('0x17')];this['countagentrejectretry']=_0x14dc89[_0xe735('0x18')];this[_0xe735('0x19')]=_0x14dc89[_0xe735('0x19')];this['ListId']=_0x14dc89[_0xe735('0x1a')];this['UserId']=_0x14dc89[_0xe735('0x1b')];this['VoiceQueueId']=_0x14dc89[_0xe735('0x1c')];this[_0xe735('0x1d')]=_0x14dc89[_0xe735('0x1d')];this[_0xe735('0x1e')]=_0x14dc89['id'];this[_0xe735('0x1f')]=_0x14dc89[_0xe735('0x9')][_0xe735('0xa')]||'';this[_0xe735('0x20')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0xe735('0x21')]=_0x14dc89[_0xe735('0x21')];this[_0xe735('0x22')]=_0x14dc89[_0xe735('0x22')];this[_0xe735('0x23')]=_0x14dc89[_0xe735('0x23')];this[_0xe735('0x24')]=_0x14dc89[_0xe735('0x24')];this[_0xe735('0x25')]='';this['originatecalleridname']='';}Action[_0xe735('0x26')][_0xe735('0x27')]=function(){return util[_0xe735('0x28')](_0xe735('0x29'),this['name'],this['voiceQueue'][_0xe735('0x2a')]>0x0?this['number'][_0xe735('0x2b')](this[_0xe735('0x5')]['dialCutDigit']):this[_0xe735('0xc')]);};Action[_0xe735('0x26')][_0xe735('0x2c')]=function(){return this[_0xe735('0xd')];};module['exports']=Action;
\ No newline at end of file
+var _0x444d=['getCaller','format','\x22%s\x22\x20<%s>','dialCutDigit','substring','exports','util','lodash','moment','isNil','string','voiceQueue','uniqueid','name','Contact','phone','firstName','lastName','number','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype'];(function(_0x4588e4,_0x1058ae){var _0x3d43e1=function(_0x269eb8){while(--_0x269eb8){_0x4588e4['push'](_0x4588e4['shift']());}};_0x3d43e1(++_0x1058ae);}(_0x444d,0x1d2));var _0xd444=function(_0x13fabf,_0x554b3a){_0x13fabf=_0x13fabf-0x0;var _0x35e697=_0x444d[_0x13fabf];return _0x35e697;};'use strict';var util=require(_0xd444('0x0'));var _=require(_0xd444('0x1'));var moment=require(_0xd444('0x2'));function checkNameSurname(_0x579743,_0x1a4594,_0x4a4f89){var _0xc53fd='';if(!_[_0xd444('0x3')](_0x1a4594)&&_0xd444('0x4')===typeof _0x1a4594){_0xc53fd+=_0x1a4594;}if(!_['isNil'](_0x4a4f89)&&_0xd444('0x4')===typeof _0x4a4f89){_0xc53fd+='\x20'+_0x4a4f89;}if(_0xc53fd!==''){return _0xc53fd;}return _0x579743;}function Action(_0x5b6188,_0xf82dc,_0x56ed52){this[_0xd444('0x5')]=_0x5b6188;this[_0xd444('0x6')]=_0x56ed52||undefined;this[_0xd444('0x7')]=checkNameSurname(_0xf82dc[_0xd444('0x8')][_0xd444('0x9')],_0xf82dc[_0xd444('0x8')][_0xd444('0xa')],_0xf82dc['Contact'][_0xd444('0xb')]);this[_0xd444('0xc')]=_0xf82dc['phone'];this['queue']=_0x5b6188[_0xd444('0x7')];this[_0xd444('0xd')]=_0xf82dc['active']||![];this[_0xd444('0xe')]=_0x5b6188['type'];this[_0xd444('0xf')]=_0x5b6188[_0xd444('0xf')]||0x3;this[_0xd444('0x10')]=_0xf82dc[_0xd444('0x10')];this[_0xd444('0x11')]=_0xf82dc[_0xd444('0x11')];this[_0xd444('0x12')]=_0xf82dc[_0xd444('0x12')];this[_0xd444('0x13')]=_0xf82dc[_0xd444('0x13')];this[_0xd444('0x14')]=_0xf82dc[_0xd444('0x14')];this[_0xd444('0x15')]=_0xf82dc[_0xd444('0x15')];this[_0xd444('0x16')]=_0xf82dc[_0xd444('0x16')];this['countmachineretry']=_0xf82dc[_0xd444('0x17')];this[_0xd444('0x18')]=_0xf82dc[_0xd444('0x18')];this[_0xd444('0x19')]=_0xf82dc[_0xd444('0x19')];this[_0xd444('0x1a')]=_0xf82dc[_0xd444('0x1a')];this['UserId']=_0xf82dc[_0xd444('0x1b')];this[_0xd444('0x1c')]=_0xf82dc[_0xd444('0x1c')];this['CampaignId']=_0xf82dc[_0xd444('0x1d')];this[_0xd444('0x1e')]=_0xf82dc['id'];this[_0xd444('0x1f')]=_0xf82dc[_0xd444('0x8')]['firstName']||'';this['starttime']=moment()['format'](_0xd444('0x20'));this[_0xd444('0x21')]=_0xf82dc[_0xd444('0x21')];this[_0xd444('0x22')]=_0xf82dc['callbackuniqueid'];this[_0xd444('0x23')]=_0xf82dc[_0xd444('0x23')];this[_0xd444('0x24')]=_0xf82dc['recallme'];this[_0xd444('0x25')]='';this[_0xd444('0x26')]='';}Action[_0xd444('0x27')][_0xd444('0x28')]=function(){return util[_0xd444('0x29')](_0xd444('0x2a'),this['name'],this[_0xd444('0x5')][_0xd444('0x2b')]>0x0?this[_0xd444('0xc')][_0xd444('0x2c')](this[_0xd444('0x5')][_0xd444('0x2b')]):this['number']);};Action['prototype']['getQueue']=function(){return this['queue'];};module[_0xd444('0x2d')]=Action;
\ No newline at end of file