Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / services / ami / preview / action.js
index 2a46e7b..9457db9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4325=['type','membername','Agent','format','calleridname','Contact','phone','firstName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','prototype','getCaller','util','lodash','string','isNil','idContact','queue','name'];(function(_0x46c000,_0xa3638a){var _0x218834=function(_0x5735f3){while(--_0x5735f3){_0x46c000['push'](_0x46c000['shift']());}};_0x218834(++_0xa3638a);}(_0x4325,0x1da));var _0x5432=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x4325[_0x3bf83f];return _0x22c4a9;};'use strict';var util=require(_0x5432('0x0'));var _=require(_0x5432('0x1'));var moment=require('moment');function checkNameSurname(_0x3f491f,_0x533c92,_0x12c8d8){var _0x480fb7='';if(!_['isNil'](_0x533c92)&&_0x5432('0x2')===typeof _0x533c92){_0x480fb7+=_0x533c92;}if(!_[_0x5432('0x3')](_0x12c8d8)&&_0x5432('0x2')===typeof _0x12c8d8){_0x480fb7+='\x20'+_0x12c8d8;}if(_0x480fb7!==''){return _0x480fb7;}return _0x3f491f;}function Action(_0x4acbe4,_0x209e2e,_0xbb0075,_0x4a6e76,_0x106ec9){this['uniqueid']=_0xbb0075||undefined;this[_0x5432('0x4')]=_0x4acbe4['id'];this[_0x5432('0x5')]=_0x209e2e[_0x5432('0x6')];this[_0x5432('0x7')]=_0x209e2e[_0x5432('0x7')];this['campaigntype']=_0x5432('0x5');this['dialAnswer']=![];this[_0x5432('0x8')]=_[_0x5432('0x3')](_0x4acbe4[_0x5432('0x9')])?undefined:_0x4acbe4[_0x5432('0x9')]['name'];this['channelAgent']=this[_0x5432('0x8')]?util[_0x5432('0xa')]('SIP/%s',this[_0x5432('0x8')]):_0x4a6e76||undefined;this[_0x5432('0xb')]=checkNameSurname(_0x4acbe4[_0x5432('0xc')][_0x5432('0xd')],_0x4acbe4[_0x5432('0xc')][_0x5432('0xe')],_0x4acbe4['Contact']['lastName']);this[_0x5432('0xf')]=_0x4acbe4[_0x5432('0xf')]||![];this[_0x5432('0x10')]=_0x4acbe4[_0x5432('0xd')];this[_0x5432('0x11')]=_0x4acbe4[_0x5432('0x11')];this['countbusyretry']=_0x4acbe4[_0x5432('0x12')]||0x0;this['countcongestionretry']=_0x4acbe4[_0x5432('0x13')]||0x0;this[_0x5432('0x14')]=_0x4acbe4[_0x5432('0x14')]||0x0;this[_0x5432('0x15')]=(_0x4acbe4[_0x5432('0x12')]||0x0)+(_0x4acbe4['countcongestionretry']||0x0)+(_0x4acbe4[_0x5432('0x14')]||0x0)+(_0x4acbe4[_0x5432('0x16')]||0x0)+(_0x4acbe4[_0x5432('0x17')]||0x0)+(_0x4acbe4[_0x5432('0x18')]||0x0)+(_0x4acbe4[_0x5432('0x19')]||0x0)+(_0x4acbe4[_0x5432('0x1a')]||0x0);this[_0x5432('0x16')]=_0x4acbe4['countnosuchnumberretry']||0x0;this[_0x5432('0x17')]=_0x4acbe4[_0x5432('0x17')]||0x0;this[_0x5432('0x18')]=_0x4acbe4[_0x5432('0x18')]||0x0;this[_0x5432('0x19')]=_0x4acbe4['countmachineretry']||0x0;this['countagentrejectretry']=_0x4acbe4['countagentrejectretry']||0x0;this[_0x5432('0x1b')]=_0x4acbe4[_0x5432('0x1b')];this[_0x5432('0x1c')]=_0x4acbe4[_0x5432('0x1c')];this['callbackat']=_0x4acbe4['callbackat'];this[_0x5432('0x1d')]=_0x4acbe4[_0x5432('0x1d')];this['ContactId']=_0x4acbe4[_0x5432('0x1e')];this[_0x5432('0x1f')]=_0x4acbe4[_0x5432('0x1f')];this['UserId']=_[_0x5432('0x3')](_0x4acbe4[_0x5432('0x9')])?_0x4acbe4[_0x5432('0x20')]:_0x4acbe4['Agent']['id'];this['VoiceQueueId']=_0x4acbe4[_0x5432('0x21')];this[_0x5432('0x22')]='';this['originatecalleridname']='';}Action[_0x5432('0x23')][_0x5432('0x24')]=function(){return util[_0x5432('0xa')]('\x22%s\x22\x20<%s>',this[_0x5432('0xb')],this['number']);};module['exports']=Action;
\ No newline at end of file
+var _0x1c7c=['prototype','\x22%s\x22\x20<%s>','number','exports','util','lodash','moment','isNil','string','uniqueid','idContact','queue','name','type','campaigntype','membername','Agent','channelAgent','format','SIP/%s','calleridname','Contact','phone','firstName','lastName','active','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId'];(function(_0x2d9535,_0x4bc592){var _0xb4e710=function(_0x50b9a9){while(--_0x50b9a9){_0x2d9535['push'](_0x2d9535['shift']());}};_0xb4e710(++_0x4bc592);}(_0x1c7c,0x164));var _0xc1c7=function(_0x57fcb3,_0x368e90){_0x57fcb3=_0x57fcb3-0x0;var _0xc5c7fc=_0x1c7c[_0x57fcb3];return _0xc5c7fc;};'use strict';var util=require(_0xc1c7('0x0'));var _=require(_0xc1c7('0x1'));var moment=require(_0xc1c7('0x2'));function checkNameSurname(_0x3a93f0,_0x4a232c,_0x3620e9){var _0x59ac62='';if(!_[_0xc1c7('0x3')](_0x4a232c)&&_0xc1c7('0x4')===typeof _0x4a232c){_0x59ac62+=_0x4a232c;}if(!_[_0xc1c7('0x3')](_0x3620e9)&&_0xc1c7('0x4')===typeof _0x3620e9){_0x59ac62+='\x20'+_0x3620e9;}if(_0x59ac62!==''){return _0x59ac62;}return _0x3a93f0;}function Action(_0x42e930,_0x364dde,_0x1f3e21,_0x419138,_0xce5bcd){this[_0xc1c7('0x5')]=_0x1f3e21||undefined;this[_0xc1c7('0x6')]=_0x42e930['id'];this[_0xc1c7('0x7')]=_0x364dde[_0xc1c7('0x8')];this[_0xc1c7('0x9')]=_0x364dde[_0xc1c7('0x9')];this[_0xc1c7('0xa')]=_0xc1c7('0x7');this['dialAnswer']=![];this[_0xc1c7('0xb')]=_[_0xc1c7('0x3')](_0x42e930['Agent'])?undefined:_0x42e930[_0xc1c7('0xc')][_0xc1c7('0x8')];this[_0xc1c7('0xd')]=this['membername']?util[_0xc1c7('0xe')](_0xc1c7('0xf'),this[_0xc1c7('0xb')]):_0x419138||undefined;this[_0xc1c7('0x10')]=checkNameSurname(_0x42e930[_0xc1c7('0x11')][_0xc1c7('0x12')],_0x42e930[_0xc1c7('0x11')][_0xc1c7('0x13')],_0x42e930[_0xc1c7('0x11')][_0xc1c7('0x14')]);this[_0xc1c7('0x15')]=_0x42e930[_0xc1c7('0x15')]||![];this['calleridnum']=_0x42e930[_0xc1c7('0x12')];this[_0xc1c7('0x16')]=_0x42e930[_0xc1c7('0x16')];this['countbusyretry']=_0x42e930[_0xc1c7('0x17')]||0x0;this[_0xc1c7('0x18')]=_0x42e930[_0xc1c7('0x18')]||0x0;this[_0xc1c7('0x19')]=_0x42e930[_0xc1c7('0x19')]||0x0;this[_0xc1c7('0x1a')]=(_0x42e930[_0xc1c7('0x17')]||0x0)+(_0x42e930[_0xc1c7('0x18')]||0x0)+(_0x42e930['countnoanswerretry']||0x0)+(_0x42e930[_0xc1c7('0x1b')]||0x0)+(_0x42e930[_0xc1c7('0x1c')]||0x0)+(_0x42e930[_0xc1c7('0x1d')]||0x0)+(_0x42e930[_0xc1c7('0x1e')]||0x0)+(_0x42e930['countagentrejectretry']||0x0);this[_0xc1c7('0x1b')]=_0x42e930['countnosuchnumberretry']||0x0;this[_0xc1c7('0x1c')]=_0x42e930[_0xc1c7('0x1c')]||0x0;this['countabandonedretry']=_0x42e930['countabandonedretry']||0x0;this[_0xc1c7('0x1e')]=_0x42e930[_0xc1c7('0x1e')]||0x0;this[_0xc1c7('0x1f')]=_0x42e930['countagentrejectretry']||0x0;this[_0xc1c7('0x20')]=_0x42e930[_0xc1c7('0x20')];this[_0xc1c7('0x21')]=_0x42e930[_0xc1c7('0x21')];this[_0xc1c7('0x22')]=_0x42e930[_0xc1c7('0x22')];this[_0xc1c7('0x23')]=_0x42e930[_0xc1c7('0x23')];this[_0xc1c7('0x24')]=_0x42e930[_0xc1c7('0x24')];this[_0xc1c7('0x25')]=_0x42e930[_0xc1c7('0x25')];this[_0xc1c7('0x26')]=_[_0xc1c7('0x3')](_0x42e930[_0xc1c7('0xc')])?_0x42e930[_0xc1c7('0x26')]:_0x42e930['Agent']['id'];this[_0xc1c7('0x27')]=_0x42e930[_0xc1c7('0x27')];this['originatecalleridnum']='';this['originatecalleridname']='';}Action[_0xc1c7('0x28')]['getCaller']=function(){return util['format'](_0xc1c7('0x29'),this[_0xc1c7('0x10')],this[_0xc1c7('0x2a')]);};module[_0xc1c7('0x2b')]=Action;
\ No newline at end of file