Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / services / ami / dialer / action.js
index a09dff8..133ee96 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb50d=['countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ListId','UserId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','prototype','getCaller','\x22%s\x22\x20<%s>','number','substring','dialCutDigit','getQueue','exports','moment','isNil','string','voiceQueue','uniqueid','name','Contact','firstName','lastName','phone','queue','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0xb50d,0xf5));var _0xdb50=function(_0x3fc774,_0x3de456){_0x3fc774=_0x3fc774-0x0;var _0x3252ad=_0xb50d[_0x3fc774];return _0x3252ad;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0xdb50('0x0'));function checkNameSurname(_0xa37b5a,_0x5042f7,_0x404c57){var _0x12d72e='';if(!_[_0xdb50('0x1')](_0x5042f7)&&_0xdb50('0x2')===typeof _0x5042f7){_0x12d72e+=_0x5042f7;}if(!_[_0xdb50('0x1')](_0x404c57)&&'string'===typeof _0x404c57){_0x12d72e+='\x20'+_0x404c57;}if(_0x12d72e!==''){return _0x12d72e;}return _0xa37b5a;}function Action(_0x48ed37,_0x44bfbc,_0xe3c447){this[_0xdb50('0x3')]=_0x48ed37;this[_0xdb50('0x4')]=_0xe3c447||undefined;this[_0xdb50('0x5')]=checkNameSurname(_0x44bfbc[_0xdb50('0x6')]['phone'],_0x44bfbc[_0xdb50('0x6')][_0xdb50('0x7')],_0x44bfbc[_0xdb50('0x6')][_0xdb50('0x8')]);this['number']=_0x44bfbc[_0xdb50('0x6')][_0xdb50('0x9')];this[_0xdb50('0xa')]=_0x48ed37[_0xdb50('0x5')];this[_0xdb50('0xb')]=_0x44bfbc[_0xdb50('0xb')]||![];this[_0xdb50('0xc')]=_0x48ed37['type'];this[_0xdb50('0xd')]=_0x48ed37[_0xdb50('0xd')]||0x3;this[_0xdb50('0xe')]=_0x44bfbc[_0xdb50('0xe')];this[_0xdb50('0xf')]=_0x44bfbc['countbusyretry'];this[_0xdb50('0x10')]=_0x44bfbc[_0xdb50('0x10')];this[_0xdb50('0x11')]=_0x44bfbc[_0xdb50('0x11')];this['countnosuchnumberretry']=_0x44bfbc[_0xdb50('0x12')];this[_0xdb50('0x13')]=_0x44bfbc[_0xdb50('0x13')];this[_0xdb50('0x14')]=_0x44bfbc[_0xdb50('0x14')];this[_0xdb50('0x15')]=_0x44bfbc['countmachineretry'];this[_0xdb50('0x16')]=_0x44bfbc[_0xdb50('0x16')];this['ContactId']=_0x44bfbc['ContactId'];this[_0xdb50('0x17')]=_0x44bfbc[_0xdb50('0x17')];this[_0xdb50('0x18')]=_0x44bfbc[_0xdb50('0x18')];this['VoiceQueueId']=_0x44bfbc['VoiceQueueId'];this[_0xdb50('0x19')]=_0x44bfbc['CampaignId'];this[_0xdb50('0x1a')]=_0x44bfbc['id'];this[_0xdb50('0x1b')]=_0x44bfbc['Contact'][_0xdb50('0x7')]||'';this[_0xdb50('0x1c')]=moment()[_0xdb50('0x1d')](_0xdb50('0x1e'));this[_0xdb50('0x1f')]=_0x44bfbc['callback'];this[_0xdb50('0x20')]=_0x44bfbc[_0xdb50('0x20')];this[_0xdb50('0x21')]=_0x44bfbc[_0xdb50('0x21')];this[_0xdb50('0x22')]=_0x44bfbc[_0xdb50('0x22')];this[_0xdb50('0x23')]='';this['originatecalleridname']='';}Action[_0xdb50('0x24')][_0xdb50('0x25')]=function(){return util[_0xdb50('0x1d')](_0xdb50('0x26'),this[_0xdb50('0x5')],this['voiceQueue']['dialCutDigit']>0x0?this[_0xdb50('0x27')][_0xdb50('0x28')](this[_0xdb50('0x3')][_0xdb50('0x29')]):this[_0xdb50('0x27')]);};Action['prototype'][_0xdb50('0x2a')]=function(){return this[_0xdb50('0xa')];};module[_0xdb50('0x2b')]=Action;
\ No newline at end of file
+var _0xe6f1=['ContactFirstName','starttime','format','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','originatecalleridname','prototype','\x22%s\x22\x20<%s>','substring','voiceQueue','dialCutDigit','getQueue','queue','util','moment','string','isNil','Contact','phone','firstName','lastName','number','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper'];(function(_0x49e584,_0x2886f8){var _0x58b1be=function(_0x40397c){while(--_0x40397c){_0x49e584['push'](_0x49e584['shift']());}};_0x58b1be(++_0x2886f8);}(_0xe6f1,0x19c));var _0x1e6f=function(_0x5124d2,_0x3400cb){_0x5124d2=_0x5124d2-0x0;var _0x361478=_0xe6f1[_0x5124d2];return _0x361478;};'use strict';var util=require(_0x1e6f('0x0'));var _=require('lodash');var moment=require(_0x1e6f('0x1'));function checkNameSurname(_0x5bc0b0,_0x3d42b3,_0x56bb81){var _0x34fcdd='';if(!_['isNil'](_0x3d42b3)&&_0x1e6f('0x2')===typeof _0x3d42b3){_0x34fcdd+=_0x3d42b3;}if(!_[_0x1e6f('0x3')](_0x56bb81)&&_0x1e6f('0x2')===typeof _0x56bb81){_0x34fcdd+='\x20'+_0x56bb81;}if(_0x34fcdd!==''){return _0x34fcdd;}return _0x5bc0b0;}function Action(_0x1d0119,_0x289772,_0x4cecf5){this['voiceQueue']=_0x1d0119;this['uniqueid']=_0x4cecf5||undefined;this['name']=checkNameSurname(_0x289772[_0x1e6f('0x4')][_0x1e6f('0x5')],_0x289772['Contact'][_0x1e6f('0x6')],_0x289772[_0x1e6f('0x4')][_0x1e6f('0x7')]);this[_0x1e6f('0x8')]=_0x289772['Contact'][_0x1e6f('0x5')];this['queue']=_0x1d0119[_0x1e6f('0x9')];this[_0x1e6f('0xa')]=_0x289772[_0x1e6f('0xa')]||![];this[_0x1e6f('0xb')]=_0x1d0119['type'];this[_0x1e6f('0xc')]=_0x1d0119['dialQueueTimeout']||0x3;this[_0x1e6f('0xd')]=_0x289772[_0x1e6f('0xd')];this[_0x1e6f('0xe')]=_0x289772[_0x1e6f('0xe')];this[_0x1e6f('0xf')]=_0x289772['countcongestionretry'];this[_0x1e6f('0x10')]=_0x289772[_0x1e6f('0x10')];this[_0x1e6f('0x11')]=_0x289772[_0x1e6f('0x11')];this[_0x1e6f('0x12')]=_0x289772[_0x1e6f('0x12')];this[_0x1e6f('0x13')]=_0x289772[_0x1e6f('0x13')];this[_0x1e6f('0x14')]=_0x289772[_0x1e6f('0x14')];this['countagentrejectretry']=_0x289772[_0x1e6f('0x15')];this[_0x1e6f('0x16')]=_0x289772[_0x1e6f('0x16')];this[_0x1e6f('0x17')]=_0x289772[_0x1e6f('0x17')];this['UserId']=_0x289772[_0x1e6f('0x18')];this[_0x1e6f('0x19')]=_0x289772[_0x1e6f('0x19')];this[_0x1e6f('0x1a')]=_0x289772[_0x1e6f('0x1a')];this[_0x1e6f('0x1b')]=_0x289772['id'];this[_0x1e6f('0x1c')]=_0x289772[_0x1e6f('0x4')][_0x1e6f('0x6')]||'';this[_0x1e6f('0x1d')]=moment()[_0x1e6f('0x1e')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x1e6f('0x1f')]=_0x289772[_0x1e6f('0x1f')];this[_0x1e6f('0x20')]=_0x289772['callbackuniqueid'];this[_0x1e6f('0x21')]=_0x289772[_0x1e6f('0x21')];this['recallme']=_0x289772[_0x1e6f('0x22')];this[_0x1e6f('0x23')]='';this[_0x1e6f('0x24')]='';}Action[_0x1e6f('0x25')]['getCaller']=function(){return util[_0x1e6f('0x1e')](_0x1e6f('0x26'),this[_0x1e6f('0x9')],this['voiceQueue']['dialCutDigit']>0x0?this[_0x1e6f('0x8')][_0x1e6f('0x27')](this[_0x1e6f('0x28')][_0x1e6f('0x29')]):this[_0x1e6f('0x8')]);};Action[_0x1e6f('0x25')][_0x1e6f('0x2a')]=function(){return this[_0x1e6f('0x2b')];};module['exports']=Action;
\ No newline at end of file