Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / ami / preview / action.js
index 5a9611d..ddf80ff 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4cf8=['countcongestionretry','countnoanswerretry','countglobal','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countdropretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','number','exports','util','lodash','moment','isNil','string','uniqueid','idContact','name','type','campaigntype','queue','dialAnswer','membername','Agent','format','SIP/%s','calleridname','Contact','phone','firstName','lastName','active','calleridnum','scheduledat','countbusyretry'];(function(_0x278e3c,_0x1c9cfd){var _0x3e2d9b=function(_0x34d928){while(--_0x34d928){_0x278e3c['push'](_0x278e3c['shift']());}};_0x3e2d9b(++_0x1c9cfd);}(_0x4cf8,0x1e1));var _0x84cf=function(_0x38ced4,_0x24263f){_0x38ced4=_0x38ced4-0x0;var _0x547c07=_0x4cf8[_0x38ced4];return _0x547c07;};'use strict';var util=require(_0x84cf('0x0'));var _=require(_0x84cf('0x1'));var moment=require(_0x84cf('0x2'));function checkNameSurname(_0x2125ed,_0xae953,_0x28455b){var _0x36b912='';if(!_[_0x84cf('0x3')](_0xae953)&&_0x84cf('0x4')===typeof _0xae953){_0x36b912+=_0xae953;}if(!_[_0x84cf('0x3')](_0x28455b)&&_0x84cf('0x4')===typeof _0x28455b){_0x36b912+='\x20'+_0x28455b;}if(_0x36b912!==''){return _0x36b912;}return _0x2125ed;}function Action(_0x2c613d,_0x50ade2,_0x4af3f1,_0x455345,_0x56c5cc){this[_0x84cf('0x5')]=_0x4af3f1||undefined;this[_0x84cf('0x6')]=_0x2c613d['id'];this['queue']=_0x50ade2[_0x84cf('0x7')];this[_0x84cf('0x8')]=_0x50ade2['type'];this[_0x84cf('0x9')]=_0x84cf('0xa');this[_0x84cf('0xb')]=![];this[_0x84cf('0xc')]=_['isNil'](_0x2c613d[_0x84cf('0xd')])?undefined:_0x2c613d[_0x84cf('0xd')]['name'];this['channelAgent']=this[_0x84cf('0xc')]?util[_0x84cf('0xe')](_0x84cf('0xf'),this[_0x84cf('0xc')]):_0x455345||undefined;this[_0x84cf('0x10')]=checkNameSurname(_0x2c613d[_0x84cf('0x11')][_0x84cf('0x12')],_0x2c613d[_0x84cf('0x11')][_0x84cf('0x13')],_0x2c613d[_0x84cf('0x11')][_0x84cf('0x14')]);this[_0x84cf('0x15')]=_0x2c613d[_0x84cf('0x15')]||![];this[_0x84cf('0x16')]=_0x2c613d[_0x84cf('0x12')];this[_0x84cf('0x17')]=_0x2c613d[_0x84cf('0x17')];this[_0x84cf('0x18')]=_0x2c613d[_0x84cf('0x18')]||0x0;this['countcongestionretry']=_0x2c613d[_0x84cf('0x19')]||0x0;this[_0x84cf('0x1a')]=_0x2c613d[_0x84cf('0x1a')]||0x0;this[_0x84cf('0x1b')]=(_0x2c613d[_0x84cf('0x18')]||0x0)+(_0x2c613d[_0x84cf('0x19')]||0x0)+(_0x2c613d[_0x84cf('0x1a')]||0x0)+(_0x2c613d['countnosuchnumberretry']||0x0)+(_0x2c613d['countdropretry']||0x0)+(_0x2c613d[_0x84cf('0x1c')]||0x0)+(_0x2c613d[_0x84cf('0x1d')]||0x0)+(_0x2c613d[_0x84cf('0x1e')]||0x0);this[_0x84cf('0x1f')]=_0x2c613d[_0x84cf('0x1f')]||0x0;this['countdropretry']=_0x2c613d[_0x84cf('0x20')]||0x0;this[_0x84cf('0x1c')]=_0x2c613d[_0x84cf('0x1c')]||0x0;this[_0x84cf('0x1d')]=_0x2c613d[_0x84cf('0x1d')]||0x0;this['countagentrejectretry']=_0x2c613d[_0x84cf('0x1e')]||0x0;this[_0x84cf('0x21')]=_0x2c613d[_0x84cf('0x21')];this[_0x84cf('0x22')]=_0x2c613d[_0x84cf('0x22')];this[_0x84cf('0x23')]=_0x2c613d[_0x84cf('0x23')];this['recallme']=_0x2c613d[_0x84cf('0x24')];this[_0x84cf('0x25')]=_0x2c613d[_0x84cf('0x25')];this[_0x84cf('0x26')]=_0x2c613d[_0x84cf('0x26')];this[_0x84cf('0x27')]=_[_0x84cf('0x3')](_0x2c613d[_0x84cf('0xd')])?_0x2c613d[_0x84cf('0x27')]:_0x2c613d[_0x84cf('0xd')]['id'];this['VoiceQueueId']=_0x2c613d[_0x84cf('0x28')];this[_0x84cf('0x29')]='';this[_0x84cf('0x2a')]='';}Action[_0x84cf('0x2b')]['getCaller']=function(){return util[_0x84cf('0xe')]('\x22%s\x22\x20<%s>',this[_0x84cf('0x10')],this[_0x84cf('0x2c')]);};module[_0x84cf('0x2d')]=Action;
\ No newline at end of file
+var _0xf2e3=['active','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','\x22%s\x22\x20<%s>','exports','util','moment','isNil','string','uniqueid','idContact','queue','name','type','campaigntype','dialAnswer','membername','Agent','channelAgent','format','SIP/%s','calleridname','Contact','phone','firstName','lastName'];(function(_0x34c553,_0x3e7dfc){var _0x1357d2=function(_0x3b509f){while(--_0x3b509f){_0x34c553['push'](_0x34c553['shift']());}};_0x1357d2(++_0x3e7dfc);}(_0xf2e3,0x9b));var _0x3f2e=function(_0x45d3f0,_0x4be53f){_0x45d3f0=_0x45d3f0-0x0;var _0x314b79=_0xf2e3[_0x45d3f0];return _0x314b79;};'use strict';var util=require(_0x3f2e('0x0'));var _=require('lodash');var moment=require(_0x3f2e('0x1'));function checkNameSurname(_0x231b2b,_0x3fba4b,_0x30f1bb){var _0x27d28c='';if(!_[_0x3f2e('0x2')](_0x3fba4b)&&_0x3f2e('0x3')===typeof _0x3fba4b){_0x27d28c+=_0x3fba4b;}if(!_[_0x3f2e('0x2')](_0x30f1bb)&&_0x3f2e('0x3')===typeof _0x30f1bb){_0x27d28c+='\x20'+_0x30f1bb;}if(_0x27d28c!==''){return _0x27d28c;}return _0x231b2b;}function Action(_0x5f254a,_0x33a3b7,_0xdd6b3e,_0x3c0864,_0xdf499f){this[_0x3f2e('0x4')]=_0xdd6b3e||undefined;this[_0x3f2e('0x5')]=_0x5f254a['id'];this[_0x3f2e('0x6')]=_0x33a3b7[_0x3f2e('0x7')];this[_0x3f2e('0x8')]=_0x33a3b7[_0x3f2e('0x8')];this[_0x3f2e('0x9')]=_0x3f2e('0x6');this[_0x3f2e('0xa')]=![];this[_0x3f2e('0xb')]=_[_0x3f2e('0x2')](_0x5f254a[_0x3f2e('0xc')])?undefined:_0x5f254a[_0x3f2e('0xc')][_0x3f2e('0x7')];this[_0x3f2e('0xd')]=this['membername']?util[_0x3f2e('0xe')](_0x3f2e('0xf'),this['membername']):_0x3c0864||undefined;this[_0x3f2e('0x10')]=checkNameSurname(_0x5f254a[_0x3f2e('0x11')][_0x3f2e('0x12')],_0x5f254a[_0x3f2e('0x11')][_0x3f2e('0x13')],_0x5f254a['Contact'][_0x3f2e('0x14')]);this[_0x3f2e('0x15')]=_0x5f254a[_0x3f2e('0x15')]||![];this['calleridnum']=_0x5f254a[_0x3f2e('0x12')];this[_0x3f2e('0x16')]=_0x5f254a[_0x3f2e('0x16')];this[_0x3f2e('0x17')]=_0x5f254a[_0x3f2e('0x17')]||0x0;this[_0x3f2e('0x18')]=_0x5f254a[_0x3f2e('0x18')]||0x0;this[_0x3f2e('0x19')]=_0x5f254a[_0x3f2e('0x19')]||0x0;this[_0x3f2e('0x1a')]=(_0x5f254a[_0x3f2e('0x17')]||0x0)+(_0x5f254a['countcongestionretry']||0x0)+(_0x5f254a[_0x3f2e('0x19')]||0x0)+(_0x5f254a[_0x3f2e('0x1b')]||0x0)+(_0x5f254a[_0x3f2e('0x1c')]||0x0)+(_0x5f254a[_0x3f2e('0x1d')]||0x0)+(_0x5f254a[_0x3f2e('0x1e')]||0x0)+(_0x5f254a['countagentrejectretry']||0x0);this['countnosuchnumberretry']=_0x5f254a[_0x3f2e('0x1b')]||0x0;this[_0x3f2e('0x1c')]=_0x5f254a[_0x3f2e('0x1c')]||0x0;this[_0x3f2e('0x1d')]=_0x5f254a[_0x3f2e('0x1d')]||0x0;this[_0x3f2e('0x1e')]=_0x5f254a['countmachineretry']||0x0;this['countagentrejectretry']=_0x5f254a[_0x3f2e('0x1f')]||0x0;this[_0x3f2e('0x20')]=_0x5f254a['callback'];this['callbackuniqueid']=_0x5f254a[_0x3f2e('0x21')];this['callbackat']=_0x5f254a[_0x3f2e('0x22')];this[_0x3f2e('0x23')]=_0x5f254a['recallme'];this['ContactId']=_0x5f254a['ContactId'];this[_0x3f2e('0x24')]=_0x5f254a[_0x3f2e('0x24')];this['UserId']=_[_0x3f2e('0x2')](_0x5f254a['Agent'])?_0x5f254a[_0x3f2e('0x25')]:_0x5f254a['Agent']['id'];this[_0x3f2e('0x26')]=_0x5f254a[_0x3f2e('0x26')];this[_0x3f2e('0x27')]='';this[_0x3f2e('0x28')]='';}Action[_0x3f2e('0x29')]['getCaller']=function(){return util[_0x3f2e('0xe')](_0x3f2e('0x2a'),this['calleridname'],this['number']);};module[_0x3f2e('0x2b')]=Action;
\ No newline at end of file