Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / services / ami / dialer / models / action.js
index 7dfab50..3afe03d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe620=['CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','prototype','getCaller','dialCutDigit','number','substring','getQueue','queue','exports','util','lodash','moment','isNil','string','voiceQueue','uniqueid','name','Contact','phone','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId','UserId','VoiceQueueId'];(function(_0x254515,_0x5a37a0){var _0x24f335=function(_0x2c1851){while(--_0x2c1851){_0x254515['push'](_0x254515['shift']());}};_0x24f335(++_0x5a37a0);}(_0xe620,0x1d5));var _0x0e62=function(_0xd527bd,_0x41ebec){_0xd527bd=_0xd527bd-0x0;var _0x1ed3f3=_0xe620[_0xd527bd];return _0x1ed3f3;};'use strict';var util=require(_0x0e62('0x0'));var _=require(_0x0e62('0x1'));var moment=require(_0x0e62('0x2'));function checkNameSurname(_0x3bada7,_0x1da2e8,_0x4e686e){var _0x5e990d='';if(!_[_0x0e62('0x3')](_0x1da2e8)&&_0x0e62('0x4')===typeof _0x1da2e8){_0x5e990d+=_0x1da2e8;}if(!_[_0x0e62('0x3')](_0x4e686e)&&'string'===typeof _0x4e686e){_0x5e990d+='\x20'+_0x4e686e;}if(_0x5e990d!==''){return _0x5e990d;}return _0x3bada7;}function Action(_0x54fa22,_0x176b08,_0x4fa954){this[_0x0e62('0x5')]=_0x54fa22;this[_0x0e62('0x6')]=_0x4fa954||undefined;this[_0x0e62('0x7')]=checkNameSurname(_0x176b08[_0x0e62('0x8')][_0x0e62('0x9')],_0x176b08[_0x0e62('0x8')]['firstName'],_0x176b08[_0x0e62('0x8')]['lastName']);this['number']=_0x176b08['phone'];this['queue']=_0x54fa22[_0x0e62('0x7')];this[_0x0e62('0xa')]=_0x176b08[_0x0e62('0xa')]||![];this[_0x0e62('0xb')]=_0x54fa22[_0x0e62('0xb')];this[_0x0e62('0xc')]=_0x54fa22[_0x0e62('0xc')]||0x3;this[_0x0e62('0xd')]=_0x176b08['scheduledat'];this[_0x0e62('0xe')]=_0x176b08[_0x0e62('0xe')];this[_0x0e62('0xf')]=_0x176b08[_0x0e62('0xf')];this[_0x0e62('0x10')]=_0x176b08[_0x0e62('0x10')];this[_0x0e62('0x11')]=_0x176b08[_0x0e62('0x11')];this[_0x0e62('0x12')]=_0x176b08[_0x0e62('0x12')];this[_0x0e62('0x13')]=_0x176b08[_0x0e62('0x13')];this[_0x0e62('0x14')]=_0x176b08[_0x0e62('0x14')];this[_0x0e62('0x15')]=_0x176b08[_0x0e62('0x15')];this['ContactId']=_0x176b08[_0x0e62('0x16')];this[_0x0e62('0x17')]=_0x176b08[_0x0e62('0x17')];this['UserId']=_0x176b08[_0x0e62('0x18')];this['VoiceQueueId']=_0x176b08[_0x0e62('0x19')];this[_0x0e62('0x1a')]=_0x176b08[_0x0e62('0x1a')];this[_0x0e62('0x1b')]=_0x176b08['id'];this[_0x0e62('0x1c')]=_0x176b08[_0x0e62('0x8')]['firstName']||'';this[_0x0e62('0x1d')]=moment()[_0x0e62('0x1e')](_0x0e62('0x1f'));this['callback']=_0x176b08[_0x0e62('0x20')];this[_0x0e62('0x21')]=_0x176b08['callbackuniqueid'];this['callbackat']=_0x176b08[_0x0e62('0x22')];this[_0x0e62('0x23')]=_0x176b08[_0x0e62('0x23')];this[_0x0e62('0x24')]='';this['originatecalleridname']='';}Action[_0x0e62('0x25')][_0x0e62('0x26')]=function(){return util[_0x0e62('0x1e')]('\x22%s\x22\x20<%s>',this[_0x0e62('0x7')],this[_0x0e62('0x5')][_0x0e62('0x27')]>0x0?this[_0x0e62('0x28')][_0x0e62('0x29')](this['voiceQueue']['dialCutDigit']):this[_0x0e62('0x28')]);};Action['prototype'][_0x0e62('0x2a')]=function(){return this[_0x0e62('0x2b')];};module[_0x0e62('0x2c')]=Action;
\ No newline at end of file
+var _0x2805=['\x22%s\x22\x20<%s>','voiceQueue','dialCutDigit','substring','getQueue','exports','moment','isNil','string','uniqueid','name','Contact','phone','firstName','lastName','number','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridnum','prototype','getCaller'];(function(_0x3b90ab,_0x174a22){var _0x206e92=function(_0x21fbd3){while(--_0x21fbd3){_0x3b90ab['push'](_0x3b90ab['shift']());}};_0x206e92(++_0x174a22);}(_0x2805,0x1ea));var _0x5280=function(_0x4ae829,_0x2c842c){_0x4ae829=_0x4ae829-0x0;var _0x256b31=_0x2805[_0x4ae829];return _0x256b31;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x5280('0x0'));function checkNameSurname(_0x5a1151,_0x365111,_0x67ee86){var _0x466840='';if(!_[_0x5280('0x1')](_0x365111)&&_0x5280('0x2')===typeof _0x365111){_0x466840+=_0x365111;}if(!_['isNil'](_0x67ee86)&&_0x5280('0x2')===typeof _0x67ee86){_0x466840+='\x20'+_0x67ee86;}if(_0x466840!==''){return _0x466840;}return _0x5a1151;}function Action(_0x20fa26,_0x43aa51,_0x223185){this['voiceQueue']=_0x20fa26;this[_0x5280('0x3')]=_0x223185||undefined;this[_0x5280('0x4')]=checkNameSurname(_0x43aa51[_0x5280('0x5')][_0x5280('0x6')],_0x43aa51[_0x5280('0x5')][_0x5280('0x7')],_0x43aa51['Contact'][_0x5280('0x8')]);this[_0x5280('0x9')]=_0x43aa51[_0x5280('0x6')];this['queue']=_0x20fa26[_0x5280('0x4')];this[_0x5280('0xa')]=_0x43aa51[_0x5280('0xa')]||![];this[_0x5280('0xb')]=_0x20fa26['type'];this[_0x5280('0xc')]=_0x20fa26[_0x5280('0xc')]||0x3;this[_0x5280('0xd')]=_0x43aa51[_0x5280('0xd')];this['countbusyretry']=_0x43aa51[_0x5280('0xe')];this[_0x5280('0xf')]=_0x43aa51['countcongestionretry'];this[_0x5280('0x10')]=_0x43aa51[_0x5280('0x10')];this[_0x5280('0x11')]=_0x43aa51[_0x5280('0x11')];this[_0x5280('0x12')]=_0x43aa51[_0x5280('0x12')];this[_0x5280('0x13')]=_0x43aa51[_0x5280('0x13')];this[_0x5280('0x14')]=_0x43aa51['countmachineretry'];this['countagentrejectretry']=_0x43aa51[_0x5280('0x15')];this['ContactId']=_0x43aa51['ContactId'];this[_0x5280('0x16')]=_0x43aa51['ListId'];this[_0x5280('0x17')]=_0x43aa51['UserId'];this[_0x5280('0x18')]=_0x43aa51[_0x5280('0x18')];this['CampaignId']=_0x43aa51[_0x5280('0x19')];this[_0x5280('0x1a')]=_0x43aa51['id'];this[_0x5280('0x1b')]=_0x43aa51['Contact'][_0x5280('0x7')]||'';this[_0x5280('0x1c')]=moment()[_0x5280('0x1d')](_0x5280('0x1e'));this[_0x5280('0x1f')]=_0x43aa51[_0x5280('0x1f')];this[_0x5280('0x20')]=_0x43aa51[_0x5280('0x20')];this['callbackat']=_0x43aa51[_0x5280('0x21')];this['recallme']=_0x43aa51[_0x5280('0x22')];this[_0x5280('0x23')]='';this['originatecalleridname']='';}Action[_0x5280('0x24')][_0x5280('0x25')]=function(){return util[_0x5280('0x1d')](_0x5280('0x26'),this[_0x5280('0x4')],this[_0x5280('0x27')][_0x5280('0x28')]>0x0?this[_0x5280('0x9')][_0x5280('0x29')](this['voiceQueue'][_0x5280('0x28')]):this[_0x5280('0x9')]);};Action['prototype'][_0x5280('0x2a')]=function(){return this['queue'];};module[_0x5280('0x2b')]=Action;
\ No newline at end of file