Built motion from commit dbf3a7e2.|2.6.30
[motion2.git] / server / services / ami / dialer / models / action.js
index eb90d41..c9059af 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xae80=['lodash','moment','string','voiceQueue','uniqueid','Contact','phone','firstName','number','queue','name','active','type','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','ContactFirstName','starttime','callback','callbackuniqueid','recallme','originatecalleridnum','originatecalleridname','getCaller','format','\x22%s\x22\x20<%s>','dialCutDigit','prototype','getQueue','exports','util'];(function(_0x3fa69b,_0x174056){var _0x548616=function(_0x3346db){while(--_0x3346db){_0x3fa69b['push'](_0x3fa69b['shift']());}};_0x548616(++_0x174056);}(_0xae80,0xd1));var _0x0ae8=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xae80[_0x14add3];return _0x4a174f;};'use strict';var util=require(_0x0ae8('0x0'));var _=require(_0x0ae8('0x1'));var moment=require(_0x0ae8('0x2'));function checkNameSurname(_0x2bdea0,_0xd69a89,_0x58df9e){var _0x4d360c='';if(!_['isNil'](_0xd69a89)&&_0x0ae8('0x3')===typeof _0xd69a89){_0x4d360c+=_0xd69a89;}if(!_['isNil'](_0x58df9e)&&_0x0ae8('0x3')===typeof _0x58df9e){_0x4d360c+='\x20'+_0x58df9e;}if(_0x4d360c!==''){return _0x4d360c;}return _0x2bdea0;}function Action(_0x3c94bf,_0xee2cfd,_0x37bb09){this[_0x0ae8('0x4')]=_0x3c94bf;this[_0x0ae8('0x5')]=_0x37bb09||undefined;this['name']=checkNameSurname(_0xee2cfd[_0x0ae8('0x6')][_0x0ae8('0x7')],_0xee2cfd[_0x0ae8('0x6')][_0x0ae8('0x8')],_0xee2cfd[_0x0ae8('0x6')]['lastName']);this[_0x0ae8('0x9')]=_0xee2cfd[_0x0ae8('0x7')];this[_0x0ae8('0xa')]=_0x3c94bf[_0x0ae8('0xb')];this['active']=_0xee2cfd[_0x0ae8('0xc')]||![];this[_0x0ae8('0xd')]=_0x3c94bf[_0x0ae8('0xd')];this['dialQueueTimeout']=_0x3c94bf['dialQueueTimeout']||0x3;this[_0x0ae8('0xe')]=_0xee2cfd[_0x0ae8('0xe')];this[_0x0ae8('0xf')]=_0xee2cfd[_0x0ae8('0xf')];this[_0x0ae8('0x10')]=_0xee2cfd[_0x0ae8('0x10')];this['countnoanswerretry']=_0xee2cfd[_0x0ae8('0x11')];this[_0x0ae8('0x12')]=_0xee2cfd['countnosuchnumberretry'];this[_0x0ae8('0x13')]=_0xee2cfd[_0x0ae8('0x13')];this[_0x0ae8('0x14')]=_0xee2cfd['countabandonedretry'];this[_0x0ae8('0x15')]=_0xee2cfd[_0x0ae8('0x15')];this[_0x0ae8('0x16')]=_0xee2cfd[_0x0ae8('0x16')];this[_0x0ae8('0x17')]=_0xee2cfd['ContactId'];this[_0x0ae8('0x18')]=_0xee2cfd[_0x0ae8('0x18')];this[_0x0ae8('0x19')]=_0xee2cfd[_0x0ae8('0x19')];this[_0x0ae8('0x1a')]=_0xee2cfd['VoiceQueueId'];this['CampaignId']=_0xee2cfd[_0x0ae8('0x1b')];this['idHopper']=_0xee2cfd['id'];this[_0x0ae8('0x1c')]=_0xee2cfd[_0x0ae8('0x6')][_0x0ae8('0x8')]||'';this[_0x0ae8('0x1d')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0x0ae8('0x1e')]=_0xee2cfd['callback'];this[_0x0ae8('0x1f')]=_0xee2cfd[_0x0ae8('0x1f')];this['callbackat']=_0xee2cfd['callbackat'];this[_0x0ae8('0x20')]=_0xee2cfd['recallme'];this[_0x0ae8('0x21')]='';this[_0x0ae8('0x22')]='';}Action['prototype'][_0x0ae8('0x23')]=function(){return util[_0x0ae8('0x24')](_0x0ae8('0x25'),this[_0x0ae8('0xb')],this['voiceQueue'][_0x0ae8('0x26')]>0x0?this[_0x0ae8('0x9')]['substring'](this[_0x0ae8('0x4')][_0x0ae8('0x26')]):this[_0x0ae8('0x9')]);};Action[_0x0ae8('0x27')][_0x0ae8('0x28')]=function(){return this[_0x0ae8('0xa')];};module[_0x0ae8('0x29')]=Action;
\ No newline at end of file
+var _0x7372=['callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','dialCutDigit','substring','exports','util','lodash','moment','isNil','string','voiceQueue','uniqueid','name','Contact','firstName','number','phone','queue','active','type','dialQueueTimeout','scheduledat','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid'];(function(_0x238469,_0x314ffc){var _0x5bdb4e=function(_0x48a93f){while(--_0x48a93f){_0x238469['push'](_0x238469['shift']());}};_0x5bdb4e(++_0x314ffc);}(_0x7372,0x1c0));var _0x2737=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7372[_0x3dd15e];return _0x231fd0;};'use strict';var util=require(_0x2737('0x0'));var _=require(_0x2737('0x1'));var moment=require(_0x2737('0x2'));function checkNameSurname(_0x5c0771,_0x50bc02,_0x25c187){var _0x24802e='';if(!_[_0x2737('0x3')](_0x50bc02)&&'string'===typeof _0x50bc02){_0x24802e+=_0x50bc02;}if(!_[_0x2737('0x3')](_0x25c187)&&_0x2737('0x4')===typeof _0x25c187){_0x24802e+='\x20'+_0x25c187;}if(_0x24802e!==''){return _0x24802e;}return _0x5c0771;}function Action(_0x490d82,_0x5ddc30,_0x2bf90b){this[_0x2737('0x5')]=_0x490d82;this[_0x2737('0x6')]=_0x2bf90b||undefined;this[_0x2737('0x7')]=checkNameSurname(_0x5ddc30['Contact']['phone'],_0x5ddc30[_0x2737('0x8')][_0x2737('0x9')],_0x5ddc30[_0x2737('0x8')]['lastName']);this[_0x2737('0xa')]=_0x5ddc30[_0x2737('0xb')];this[_0x2737('0xc')]=_0x490d82[_0x2737('0x7')];this[_0x2737('0xd')]=_0x5ddc30[_0x2737('0xd')]||![];this[_0x2737('0xe')]=_0x490d82[_0x2737('0xe')];this[_0x2737('0xf')]=_0x490d82[_0x2737('0xf')]||0x3;this[_0x2737('0x10')]=_0x5ddc30[_0x2737('0x10')];this['countbusyretry']=_0x5ddc30['countbusyretry'];this[_0x2737('0x11')]=_0x5ddc30['countcongestionretry'];this[_0x2737('0x12')]=_0x5ddc30[_0x2737('0x12')];this[_0x2737('0x13')]=_0x5ddc30['countnosuchnumberretry'];this[_0x2737('0x14')]=_0x5ddc30[_0x2737('0x14')];this[_0x2737('0x15')]=_0x5ddc30[_0x2737('0x15')];this['countmachineretry']=_0x5ddc30[_0x2737('0x16')];this[_0x2737('0x17')]=_0x5ddc30['countagentrejectretry'];this['ContactId']=_0x5ddc30[_0x2737('0x18')];this['ListId']=_0x5ddc30[_0x2737('0x19')];this[_0x2737('0x1a')]=_0x5ddc30[_0x2737('0x1a')];this[_0x2737('0x1b')]=_0x5ddc30[_0x2737('0x1b')];this[_0x2737('0x1c')]=_0x5ddc30[_0x2737('0x1c')];this[_0x2737('0x1d')]=_0x5ddc30['id'];this[_0x2737('0x1e')]=_0x5ddc30[_0x2737('0x8')][_0x2737('0x9')]||'';this[_0x2737('0x1f')]=moment()[_0x2737('0x20')](_0x2737('0x21'));this[_0x2737('0x22')]=_0x5ddc30[_0x2737('0x22')];this[_0x2737('0x23')]=_0x5ddc30[_0x2737('0x23')];this[_0x2737('0x24')]=_0x5ddc30[_0x2737('0x24')];this[_0x2737('0x25')]=_0x5ddc30[_0x2737('0x25')];this[_0x2737('0x26')]='';this[_0x2737('0x27')]='';}Action[_0x2737('0x28')]['getCaller']=function(){return util[_0x2737('0x20')]('\x22%s\x22\x20<%s>',this['name'],this['voiceQueue'][_0x2737('0x29')]>0x0?this['number'][_0x2737('0x2a')](this[_0x2737('0x5')][_0x2737('0x29')]):this['number']);};Action['prototype']['getQueue']=function(){return this[_0x2737('0xc')];};module[_0x2737('0x2b')]=Action;
\ No newline at end of file