Built motion from commit f67b3b02.|2.6.31
[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 _0x7873=['reason','callback','callbackuniqueid','callbackat','recallme','UserId','VoiceQueueId','CampaignId','originatecalleridnum','agiafterat','state','statedesc','exports','../utils','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','number','starttime','responsetime','droptime','dropreason','endtime','holdtime','talktime','membername'];(function(_0x2692f1,_0xdfa6e){var _0x262a14=function(_0x4a3d58){while(--_0x4a3d58){_0x2692f1['push'](_0x2692f1['shift']());}};_0x262a14(++_0xdfa6e);}(_0x7873,0x163));var _0x3787=function(_0x25e514,_0x53bfc5){_0x25e514=_0x25e514-0x0;var _0x1a6492=_0x7873[_0x25e514];return _0x1a6492;};'use strict';var utils=require(_0x3787('0x0'));function QueueCallerAbandon(_0x4ff619,_0x476c88){this[_0x3787('0x1')]=_0x4ff619[_0x3787('0x1')];this[_0x3787('0x2')]=_0x4ff619[_0x3787('0x2')];this[_0x3787('0x3')]=_0x4ff619[_0x3787('0x2')]===_0x3787('0x4')?_0x3787('0x5'):_0x4ff619[_0x3787('0x2')];this[_0x3787('0x6')]=_0x4ff619['countbusyretry'];this[_0x3787('0x7')]=_0x4ff619[_0x3787('0x7')];this[_0x3787('0x8')]=_0x4ff619['countnoanswerretry'];this['countglobal']=_0x4ff619[_0x3787('0x6')]+_0x4ff619[_0x3787('0x7')]+_0x4ff619[_0x3787('0x8')]+_0x4ff619[_0x3787('0x9')]+_0x4ff619[_0x3787('0xa')]+_0x4ff619[_0x3787('0xb')]+_0x4ff619[_0x3787('0xc')]+_0x4ff619[_0x3787('0xd')];this[_0x3787('0x9')]=_0x4ff619[_0x3787('0x9')];this[_0x3787('0xa')]=_0x4ff619[_0x3787('0xa')];this[_0x3787('0xb')]=_0x4ff619[_0x3787('0xb')];this['countmachineretry']=_0x4ff619[_0x3787('0xc')];this['countagentrejectretry']=_0x4ff619[_0x3787('0xd')];this[_0x3787('0xe')]=_0x476c88[_0x3787('0xe')];this[_0x3787('0xf')]=_0x4ff619['name'];this['calleridnum']=_0x4ff619[_0x3787('0x10')];this[_0x3787('0x11')]=_0x4ff619['starttime'];this[_0x3787('0x12')]=_0x4ff619['responsetime'];this[_0x3787('0x13')]=_0x4ff619[_0x3787('0x13')];this[_0x3787('0x14')]=_0x4ff619['dropreason'];this[_0x3787('0x15')]=this[_0x3787('0x13')];this['ringtime']=utils['getSeconds'](_0x4ff619[_0x3787('0x12')],_0x4ff619[_0x3787('0x11')]);this[_0x3787('0x16')]=utils['getSeconds'](this[_0x3787('0x13')],_0x4ff619[_0x3787('0x12')]);this[_0x3787('0x17')]=0x0;this['queue']=_0x476c88['queue'];this[_0x3787('0x18')]=_0x476c88['connectedlinename'];this[_0x3787('0x19')]=_0x476c88[_0x3787('0x19')];this['callback']=_0x4ff619[_0x3787('0x1a')];this['callbackuniqueid']=_0x4ff619[_0x3787('0x1b')];this['callbackat']=_0x4ff619[_0x3787('0x1c')];this[_0x3787('0x1d')]=_0x4ff619['recallme'];this['ContactId']=_0x4ff619['ContactId'];this['ListId']=_0x4ff619['ListId'];this[_0x3787('0x1e')]=_0x4ff619['UserId'];this[_0x3787('0x1f')]=_0x4ff619['VoiceQueueId'];this[_0x3787('0x20')]=_0x4ff619[_0x3787('0x20')];this[_0x3787('0x21')]=_0x4ff619[_0x3787('0x21')]||'';this['originatecalleridname']=_0x4ff619['originatecalleridname']||'';this[_0x3787('0x22')]=_0x4ff619[_0x3787('0x22')];this[_0x3787('0x23')]=_0x4ff619['state'];this[_0x3787('0x24')]=_0x4ff619[_0x3787('0x24')];}module[_0x3787('0x25')]=QueueCallerAbandon;