Built motion from commit 511216ff.|2.6.34
[motion2.git] / server / services / ami / dialer / models / queueCallerAbandon.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2883=['exports','../utils','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countdropretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','dropreason','endtime','ringtime','getSeconds','talktime','queue','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','state'];(function(_0xd9b4b7,_0x288556){var _0x22445d=function(_0x1dbe57){while(--_0x1dbe57){_0xd9b4b7['push'](_0xd9b4b7['shift']());}};_0x22445d(++_0x288556);}(_0x2883,0xfd));var _0x3288=function(_0x54b59a,_0x42ed59){_0x54b59a=_0x54b59a-0x0;var _0x6c4407=_0x2883[_0x54b59a];return _0x6c4407;};'use strict';var utils=require(_0x3288('0x0'));function QueueCallerAbandon(_0x552dac,_0x47b6bf){this[_0x3288('0x1')]=_0x552dac[_0x3288('0x1')];this[_0x3288('0x2')]=_0x552dac[_0x3288('0x2')];this['campaigntype']=_0x552dac[_0x3288('0x2')]==='outbound'?'queue':_0x552dac[_0x3288('0x2')];this['countbusyretry']=_0x552dac[_0x3288('0x3')];this[_0x3288('0x4')]=_0x552dac[_0x3288('0x4')];this[_0x3288('0x5')]=_0x552dac['countnoanswerretry'];this['countglobal']=_0x552dac[_0x3288('0x3')]+_0x552dac[_0x3288('0x4')]+_0x552dac[_0x3288('0x5')]+_0x552dac[_0x3288('0x6')]+_0x552dac['countdropretry']+_0x552dac[_0x3288('0x7')]+_0x552dac[_0x3288('0x8')]+_0x552dac['countagentrejectretry'];this[_0x3288('0x6')]=_0x552dac[_0x3288('0x6')];this[_0x3288('0x9')]=_0x552dac[_0x3288('0x9')];this[_0x3288('0x7')]=_0x552dac[_0x3288('0x7')];this[_0x3288('0x8')]=_0x552dac[_0x3288('0x8')];this[_0x3288('0xa')]=_0x552dac[_0x3288('0xa')];this[_0x3288('0xb')]=_0x47b6bf[_0x3288('0xb')];this[_0x3288('0xc')]=_0x552dac[_0x3288('0xd')];this[_0x3288('0xe')]=_0x552dac[_0x3288('0xf')];this['starttime']=_0x552dac[_0x3288('0x10')];this[_0x3288('0x11')]=_0x552dac[_0x3288('0x11')];this[_0x3288('0x12')]=_0x552dac[_0x3288('0x12')];this[_0x3288('0x13')]=_0x552dac['dropreason'];this[_0x3288('0x14')]=this['droptime'];this[_0x3288('0x15')]=utils[_0x3288('0x16')](_0x552dac[_0x3288('0x11')],_0x552dac['starttime']);this['holdtime']=utils[_0x3288('0x16')](this[_0x3288('0x12')],_0x552dac['responsetime']);this[_0x3288('0x17')]=0x0;this['queue']=_0x47b6bf[_0x3288('0x18')];this[_0x3288('0x19')]=_0x47b6bf[_0x3288('0x1a')];this[_0x3288('0x1b')]=_0x47b6bf[_0x3288('0x1b')];this['callback']=_0x552dac[_0x3288('0x1c')];this[_0x3288('0x1d')]=_0x552dac[_0x3288('0x1d')];this[_0x3288('0x1e')]=_0x552dac[_0x3288('0x1e')];this[_0x3288('0x1f')]=_0x552dac[_0x3288('0x1f')];this[_0x3288('0x20')]=_0x552dac[_0x3288('0x20')];this[_0x3288('0x21')]=_0x552dac[_0x3288('0x21')];this[_0x3288('0x22')]=_0x552dac[_0x3288('0x22')];this['VoiceQueueId']=_0x552dac[_0x3288('0x23')];this[_0x3288('0x24')]=_0x552dac[_0x3288('0x24')];this[_0x3288('0x25')]=_0x552dac[_0x3288('0x25')]||'';this[_0x3288('0x26')]=_0x552dac[_0x3288('0x26')]||'';this[_0x3288('0x27')]=_0x552dac[_0x3288('0x27')];this[_0x3288('0x28')]=_0x552dac[_0x3288('0x28')];this['statedesc']=_0x552dac['statedesc'];}module[_0x3288('0x29')]=QueueCallerAbandon;