Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / ami / preview / action.js
index 6abaecd..92d87df 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(_0x3f2228,_0x3b27d5){var _0x285ae4=function(_0x5e1f23){while(--_0x5e1f23){_0x3f2228['push'](_0x3f2228['shift']());}};_0x285ae4(++_0x3b27d5);}(_0x4cf8,0x1e1));var _0x84cf=function(_0x59e862,_0x477bf2){_0x59e862=_0x59e862-0x0;var _0x1a25ee=_0x4cf8[_0x59e862];return _0x1a25ee;};'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 _0x236c=['recallme','ContactId','ListId','UserId','originatecalleridnum','prototype','calleridname','number','util','moment','string','isNil','uniqueid','type','campaigntype','queue','dialAnswer','membername','Agent','name','format','phone','Contact','firstName','active','scheduledat','countbusyretry','countnoanswerretry','countglobal','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countdropretry','callback','callbackuniqueid','callbackat'];(function(_0x393712,_0x23fdf5){var _0x42e3c9=function(_0x39986b){while(--_0x39986b){_0x393712['push'](_0x393712['shift']());}};_0x42e3c9(++_0x23fdf5);}(_0x236c,0x155));var _0xc236=function(_0x24abb3,_0x5dfed2){_0x24abb3=_0x24abb3-0x0;var _0x336000=_0x236c[_0x24abb3];return _0x336000;};'use strict';var util=require(_0xc236('0x0'));var _=require('lodash');var moment=require(_0xc236('0x1'));function checkNameSurname(_0x404d50,_0x39c024,_0x8072){var _0x2bf2d3='';if(!_['isNil'](_0x39c024)&&_0xc236('0x2')===typeof _0x39c024){_0x2bf2d3+=_0x39c024;}if(!_[_0xc236('0x3')](_0x8072)&&_0xc236('0x2')===typeof _0x8072){_0x2bf2d3+='\x20'+_0x8072;}if(_0x2bf2d3!==''){return _0x2bf2d3;}return _0x404d50;}function Action(_0xd582f6,_0x23d3cc,_0x461c3a,_0x5abd65,_0xd612c6){this[_0xc236('0x4')]=_0x461c3a||undefined;this['idContact']=_0xd582f6['id'];this['queue']=_0x23d3cc['name'];this[_0xc236('0x5')]=_0x23d3cc['type'];this[_0xc236('0x6')]=_0xc236('0x7');this[_0xc236('0x8')]=![];this[_0xc236('0x9')]=_[_0xc236('0x3')](_0xd582f6['Agent'])?undefined:_0xd582f6[_0xc236('0xa')][_0xc236('0xb')];this['channelAgent']=this[_0xc236('0x9')]?util[_0xc236('0xc')]('SIP/%s',this[_0xc236('0x9')]):_0x5abd65||undefined;this['calleridname']=checkNameSurname(_0xd582f6['Contact'][_0xc236('0xd')],_0xd582f6[_0xc236('0xe')][_0xc236('0xf')],_0xd582f6[_0xc236('0xe')]['lastName']);this[_0xc236('0x10')]=_0xd582f6['active']||![];this['calleridnum']=_0xd582f6[_0xc236('0xd')];this[_0xc236('0x11')]=_0xd582f6[_0xc236('0x11')];this[_0xc236('0x12')]=_0xd582f6[_0xc236('0x12')]||0x0;this['countcongestionretry']=_0xd582f6['countcongestionretry']||0x0;this['countnoanswerretry']=_0xd582f6[_0xc236('0x13')]||0x0;this[_0xc236('0x14')]=(_0xd582f6[_0xc236('0x12')]||0x0)+(_0xd582f6['countcongestionretry']||0x0)+(_0xd582f6[_0xc236('0x13')]||0x0)+(_0xd582f6['countnosuchnumberretry']||0x0)+(_0xd582f6['countdropretry']||0x0)+(_0xd582f6[_0xc236('0x15')]||0x0)+(_0xd582f6[_0xc236('0x16')]||0x0)+(_0xd582f6[_0xc236('0x17')]||0x0);this[_0xc236('0x18')]=_0xd582f6[_0xc236('0x18')]||0x0;this[_0xc236('0x19')]=_0xd582f6[_0xc236('0x19')]||0x0;this[_0xc236('0x15')]=_0xd582f6[_0xc236('0x15')]||0x0;this[_0xc236('0x16')]=_0xd582f6[_0xc236('0x16')]||0x0;this['countagentrejectretry']=_0xd582f6[_0xc236('0x17')]||0x0;this[_0xc236('0x1a')]=_0xd582f6[_0xc236('0x1a')];this[_0xc236('0x1b')]=_0xd582f6[_0xc236('0x1b')];this[_0xc236('0x1c')]=_0xd582f6[_0xc236('0x1c')];this[_0xc236('0x1d')]=_0xd582f6[_0xc236('0x1d')];this[_0xc236('0x1e')]=_0xd582f6[_0xc236('0x1e')];this['ListId']=_0xd582f6[_0xc236('0x1f')];this[_0xc236('0x20')]=_[_0xc236('0x3')](_0xd582f6[_0xc236('0xa')])?_0xd582f6['UserId']:_0xd582f6[_0xc236('0xa')]['id'];this['VoiceQueueId']=_0xd582f6['VoiceQueueId'];this[_0xc236('0x21')]='';this['originatecalleridname']='';}Action[_0xc236('0x22')]['getCaller']=function(){return util[_0xc236('0xc')]('\x22%s\x22\x20<%s>',this[_0xc236('0x23')],this[_0xc236('0x24')]);};module['exports']=Action;
\ No newline at end of file