Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / services / ami / dialer / models / action.js
index 14202f0..885e4d7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3b79=['UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','firstName','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackat','recallme','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','dialCutDigit','substring','exports','util','moment','isNil','string','voiceQueue','uniqueid','Contact','lastName','number','queue','name','active','type','dialQueueTimeout','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','ContactId','ListId'];(function(_0x1e1b22,_0x46e58c){var _0xdb2f91=function(_0x538055){while(--_0x538055){_0x1e1b22['push'](_0x1e1b22['shift']());}};_0xdb2f91(++_0x46e58c);}(_0x3b79,0x162));var _0x93b7=function(_0x500105,_0x341501){_0x500105=_0x500105-0x0;var _0x5ed0ce=_0x3b79[_0x500105];return _0x5ed0ce;};'use strict';var util=require(_0x93b7('0x0'));var _=require('lodash');var moment=require(_0x93b7('0x1'));function checkNameSurname(_0x4a8c1a,_0x5a98ee,_0x2f9cbb){var _0x1671f6='';if(!_[_0x93b7('0x2')](_0x5a98ee)&&_0x93b7('0x3')===typeof _0x5a98ee){_0x1671f6+=_0x5a98ee;}if(!_[_0x93b7('0x2')](_0x2f9cbb)&&'string'===typeof _0x2f9cbb){_0x1671f6+='\x20'+_0x2f9cbb;}if(_0x1671f6!==''){return _0x1671f6;}return _0x4a8c1a;}function Action(_0x201280,_0x3d3a97,_0x158242){this[_0x93b7('0x4')]=_0x201280;this[_0x93b7('0x5')]=_0x158242||undefined;this['name']=checkNameSurname(_0x3d3a97[_0x93b7('0x6')]['phone'],_0x3d3a97['Contact']['firstName'],_0x3d3a97[_0x93b7('0x6')][_0x93b7('0x7')]);this[_0x93b7('0x8')]=_0x3d3a97['phone'];this[_0x93b7('0x9')]=_0x201280[_0x93b7('0xa')];this[_0x93b7('0xb')]=_0x3d3a97['active']||![];this['type']=_0x201280[_0x93b7('0xc')];this[_0x93b7('0xd')]=_0x201280[_0x93b7('0xd')]||0x3;this[_0x93b7('0xe')]=_0x3d3a97[_0x93b7('0xe')];this[_0x93b7('0xf')]=_0x3d3a97[_0x93b7('0xf')];this[_0x93b7('0x10')]=_0x3d3a97[_0x93b7('0x10')];this[_0x93b7('0x11')]=_0x3d3a97[_0x93b7('0x11')];this['countnosuchnumberretry']=_0x3d3a97[_0x93b7('0x12')];this['countdropretry']=_0x3d3a97['countdropretry'];this['countabandonedretry']=_0x3d3a97[_0x93b7('0x13')];this[_0x93b7('0x14')]=_0x3d3a97['countmachineretry'];this[_0x93b7('0x15')]=_0x3d3a97[_0x93b7('0x15')];this['ContactId']=_0x3d3a97[_0x93b7('0x16')];this['ListId']=_0x3d3a97[_0x93b7('0x17')];this[_0x93b7('0x18')]=_0x3d3a97['UserId'];this['VoiceQueueId']=_0x3d3a97[_0x93b7('0x19')];this['CampaignId']=_0x3d3a97[_0x93b7('0x1a')];this[_0x93b7('0x1b')]=_0x3d3a97['id'];this[_0x93b7('0x1c')]=_0x3d3a97[_0x93b7('0x6')][_0x93b7('0x1d')]||'';this['starttime']=moment()[_0x93b7('0x1e')](_0x93b7('0x1f'));this[_0x93b7('0x20')]=_0x3d3a97['callback'];this['callbackuniqueid']=_0x3d3a97['callbackuniqueid'];this[_0x93b7('0x21')]=_0x3d3a97[_0x93b7('0x21')];this[_0x93b7('0x22')]=_0x3d3a97[_0x93b7('0x22')];this['originatecalleridnum']='';this[_0x93b7('0x23')]='';}Action[_0x93b7('0x24')][_0x93b7('0x25')]=function(){return util[_0x93b7('0x1e')](_0x93b7('0x26'),this[_0x93b7('0xa')],this[_0x93b7('0x4')][_0x93b7('0x27')]>0x0?this['number'][_0x93b7('0x28')](this['voiceQueue'][_0x93b7('0x27')]):this['number']);};Action[_0x93b7('0x24')]['getQueue']=function(){return this['queue'];};module[_0x93b7('0x29')]=Action;
\ No newline at end of file
+var _0xf384=['scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','ContactId','ListId','UserId','VoiceQueueId','CampaignId','idHopper','ContactFirstName','starttime','format','YYYY-MM-DD\x20HH:mm:ss','callback','callbackuniqueid','callbackat','recallme','originatecalleridname','prototype','substring','dialCutDigit','getQueue','exports','util','lodash','moment','isNil','string','voiceQueue','uniqueid','name','Contact','firstName','lastName','number','phone','active','type','dialQueueTimeout'];(function(_0x4c0b4e,_0x1dd4fa){var _0x828562=function(_0x229dc7){while(--_0x229dc7){_0x4c0b4e['push'](_0x4c0b4e['shift']());}};_0x828562(++_0x1dd4fa);}(_0xf384,0x17c));var _0x4f38=function(_0x4057a5,_0x16d807){_0x4057a5=_0x4057a5-0x0;var _0x27c3dd=_0xf384[_0x4057a5];return _0x27c3dd;};'use strict';var util=require(_0x4f38('0x0'));var _=require(_0x4f38('0x1'));var moment=require(_0x4f38('0x2'));function checkNameSurname(_0x1feb09,_0x17d9fc,_0x108329){var _0x3644d8='';if(!_[_0x4f38('0x3')](_0x17d9fc)&&_0x4f38('0x4')===typeof _0x17d9fc){_0x3644d8+=_0x17d9fc;}if(!_[_0x4f38('0x3')](_0x108329)&&_0x4f38('0x4')===typeof _0x108329){_0x3644d8+='\x20'+_0x108329;}if(_0x3644d8!==''){return _0x3644d8;}return _0x1feb09;}function Action(_0x4d85d0,_0x548bd7,_0x3649f0){this[_0x4f38('0x5')]=_0x4d85d0;this[_0x4f38('0x6')]=_0x3649f0||undefined;this[_0x4f38('0x7')]=checkNameSurname(_0x548bd7[_0x4f38('0x8')]['phone'],_0x548bd7['Contact'][_0x4f38('0x9')],_0x548bd7[_0x4f38('0x8')][_0x4f38('0xa')]);this[_0x4f38('0xb')]=_0x548bd7[_0x4f38('0xc')];this['queue']=_0x4d85d0[_0x4f38('0x7')];this[_0x4f38('0xd')]=_0x548bd7[_0x4f38('0xd')]||![];this[_0x4f38('0xe')]=_0x4d85d0['type'];this['dialQueueTimeout']=_0x4d85d0[_0x4f38('0xf')]||0x3;this['scheduledat']=_0x548bd7[_0x4f38('0x10')];this['countbusyretry']=_0x548bd7[_0x4f38('0x11')];this[_0x4f38('0x12')]=_0x548bd7[_0x4f38('0x12')];this['countnoanswerretry']=_0x548bd7[_0x4f38('0x13')];this[_0x4f38('0x14')]=_0x548bd7['countnosuchnumberretry'];this['countdropretry']=_0x548bd7[_0x4f38('0x15')];this[_0x4f38('0x16')]=_0x548bd7['countabandonedretry'];this[_0x4f38('0x17')]=_0x548bd7[_0x4f38('0x17')];this['countagentrejectretry']=_0x548bd7['countagentrejectretry'];this[_0x4f38('0x18')]=_0x548bd7[_0x4f38('0x18')];this[_0x4f38('0x19')]=_0x548bd7[_0x4f38('0x19')];this[_0x4f38('0x1a')]=_0x548bd7[_0x4f38('0x1a')];this[_0x4f38('0x1b')]=_0x548bd7[_0x4f38('0x1b')];this[_0x4f38('0x1c')]=_0x548bd7[_0x4f38('0x1c')];this[_0x4f38('0x1d')]=_0x548bd7['id'];this[_0x4f38('0x1e')]=_0x548bd7[_0x4f38('0x8')][_0x4f38('0x9')]||'';this[_0x4f38('0x1f')]=moment()[_0x4f38('0x20')](_0x4f38('0x21'));this[_0x4f38('0x22')]=_0x548bd7[_0x4f38('0x22')];this[_0x4f38('0x23')]=_0x548bd7[_0x4f38('0x23')];this[_0x4f38('0x24')]=_0x548bd7['callbackat'];this[_0x4f38('0x25')]=_0x548bd7[_0x4f38('0x25')];this['originatecalleridnum']='';this[_0x4f38('0x26')]='';}Action[_0x4f38('0x27')]['getCaller']=function(){return util[_0x4f38('0x20')]('\x22%s\x22\x20<%s>',this[_0x4f38('0x7')],this[_0x4f38('0x5')]['dialCutDigit']>0x0?this[_0x4f38('0xb')][_0x4f38('0x28')](this[_0x4f38('0x5')][_0x4f38('0x29')]):this[_0x4f38('0xb')]);};Action[_0x4f38('0x27')][_0x4f38('0x2a')]=function(){return this['queue'];};module[_0x4f38('0x2b')]=Action;
\ No newline at end of file