Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / services / ami / dialer / models / final.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 _0xc44b=['VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','uniqueid','scheduledat','type','campaigntype','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','queue','calleridname','calleridnum','starttime','responsetime','endtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId'];(function(_0x576170,_0x1712ae){var _0x397c70=function(_0x2eb9de){while(--_0x2eb9de){_0x576170['push'](_0x576170['shift']());}};_0x397c70(++_0x1712ae);}(_0xc44b,0x1e2));var _0xbc44=function(_0x1589dd,_0x2b9d22){_0x1589dd=_0x1589dd-0x0;var _0x1bddd1=_0xc44b[_0x1589dd];return _0x1bddd1;};'use strict';function Final(_0x10cff7){this[_0xbc44('0x0')]=_0x10cff7[_0xbc44('0x0')];this[_0xbc44('0x1')]=_0x10cff7[_0xbc44('0x1')];this[_0xbc44('0x2')]=_0x10cff7[_0xbc44('0x2')];this[_0xbc44('0x3')]=_0x10cff7[_0xbc44('0x2')]==='outbound'?'queue':_0x10cff7[_0xbc44('0x2')];this['countbusyretry']=_0x10cff7[_0xbc44('0x4')];this['countcongestionretry']=_0x10cff7[_0xbc44('0x5')];this[_0xbc44('0x6')]=_0x10cff7[_0xbc44('0x6')];this[_0xbc44('0x7')]=_0x10cff7['countbusyretry']+_0x10cff7[_0xbc44('0x5')]+_0x10cff7['countnoanswerretry']+_0x10cff7[_0xbc44('0x8')]+_0x10cff7[_0xbc44('0x9')]+_0x10cff7['countabandonedretry']+_0x10cff7[_0xbc44('0xa')]+_0x10cff7[_0xbc44('0xb')];this[_0xbc44('0x8')]=_0x10cff7[_0xbc44('0x8')];this[_0xbc44('0x9')]=_0x10cff7['countdropretry'];this[_0xbc44('0xc')]=_0x10cff7[_0xbc44('0xc')];this['countmachineretry']=_0x10cff7[_0xbc44('0xa')];this[_0xbc44('0xb')]=_0x10cff7[_0xbc44('0xb')];this[_0xbc44('0xd')]=_0x10cff7[_0xbc44('0xd')];this['calleridname']=_0x10cff7[_0xbc44('0xe')];this[_0xbc44('0xf')]=_0x10cff7[_0xbc44('0xf')];this['starttime']=_0x10cff7[_0xbc44('0x10')];this[_0xbc44('0x11')]=_0x10cff7[_0xbc44('0x11')];this[_0xbc44('0x12')]=_0x10cff7[_0xbc44('0x11')];this['ringtime']=_0x10cff7['ringtime']||0x0;this['holdtime']=_0x10cff7[_0xbc44('0x13')]||0x0;this[_0xbc44('0x14')]=_0x10cff7['talktime']||0x0;this[_0xbc44('0x15')]=_0x10cff7[_0xbc44('0x15')];this[_0xbc44('0x16')]=_0x10cff7['callbackuniqueid'];this[_0xbc44('0x17')]=_0x10cff7[_0xbc44('0x17')];this[_0xbc44('0x18')]=_0x10cff7[_0xbc44('0x18')];this[_0xbc44('0x19')]=_0x10cff7[_0xbc44('0x19')];this[_0xbc44('0x1a')]=_0x10cff7[_0xbc44('0x1a')];this[_0xbc44('0x1b')]=_0x10cff7[_0xbc44('0x1b')];this['VoiceQueueId']=_0x10cff7[_0xbc44('0x1c')];this[_0xbc44('0x1d')]=_0x10cff7[_0xbc44('0x1d')];this['originatecalleridnum']=_0x10cff7[_0xbc44('0x1e')]||'';this[_0xbc44('0x1f')]=_0x10cff7[_0xbc44('0x1f')]||'';this[_0xbc44('0x20')]=_0x10cff7[_0xbc44('0x20')];this[_0xbc44('0x21')]=_0x10cff7[_0xbc44('0x21')];}module['exports']=Final;