Built motion from commit d5e4af8c.|2.6.23
[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 _0x3150=['talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','uniqueid','scheduledat','type','campaigntype','queue','countcongestionretry','countnoanswerretry','countglobal','countbusyretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','calleridname','calleridnum','responsetime','endtime','ringtime','holdtime'];(function(_0x7b544a,_0x33c45a){var _0x33dcb4=function(_0x5ebc7f){while(--_0x5ebc7f){_0x7b544a['push'](_0x7b544a['shift']());}};_0x33dcb4(++_0x33c45a);}(_0x3150,0x75));var _0x0315=function(_0x43e11f,_0x196da0){_0x43e11f=_0x43e11f-0x0;var _0x3c9208=_0x3150[_0x43e11f];return _0x3c9208;};'use strict';function Final(_0x4a111e){this[_0x0315('0x0')]=_0x4a111e[_0x0315('0x0')];this[_0x0315('0x1')]=_0x4a111e[_0x0315('0x1')];this[_0x0315('0x2')]=_0x4a111e['type'];this[_0x0315('0x3')]=_0x4a111e[_0x0315('0x2')]==='outbound'?_0x0315('0x4'):_0x4a111e[_0x0315('0x2')];this['countbusyretry']=_0x4a111e['countbusyretry'];this['countcongestionretry']=_0x4a111e[_0x0315('0x5')];this['countnoanswerretry']=_0x4a111e[_0x0315('0x6')];this[_0x0315('0x7')]=_0x4a111e[_0x0315('0x8')]+_0x4a111e[_0x0315('0x5')]+_0x4a111e[_0x0315('0x6')]+_0x4a111e['countnosuchnumberretry']+_0x4a111e[_0x0315('0x9')]+_0x4a111e[_0x0315('0xa')]+_0x4a111e['countmachineretry']+_0x4a111e[_0x0315('0xb')];this['countnosuchnumberretry']=_0x4a111e['countnosuchnumberretry'];this['countdropretry']=_0x4a111e['countdropretry'];this[_0x0315('0xa')]=_0x4a111e[_0x0315('0xa')];this[_0x0315('0xc')]=_0x4a111e['countmachineretry'];this[_0x0315('0xb')]=_0x4a111e[_0x0315('0xb')];this['queue']=_0x4a111e['queue'];this['calleridname']=_0x4a111e[_0x0315('0xd')];this[_0x0315('0xe')]=_0x4a111e[_0x0315('0xe')];this['starttime']=_0x4a111e['starttime'];this[_0x0315('0xf')]=_0x4a111e[_0x0315('0xf')];this[_0x0315('0x10')]=_0x4a111e['responsetime'];this[_0x0315('0x11')]=_0x4a111e[_0x0315('0x11')]||0x0;this[_0x0315('0x12')]=_0x4a111e[_0x0315('0x12')]||0x0;this[_0x0315('0x13')]=_0x4a111e[_0x0315('0x13')]||0x0;this[_0x0315('0x14')]=_0x4a111e[_0x0315('0x14')];this[_0x0315('0x15')]=_0x4a111e[_0x0315('0x15')];this[_0x0315('0x16')]=_0x4a111e['callbackat'];this[_0x0315('0x17')]=_0x4a111e[_0x0315('0x17')];this[_0x0315('0x18')]=_0x4a111e[_0x0315('0x18')];this[_0x0315('0x19')]=_0x4a111e[_0x0315('0x19')];this[_0x0315('0x1a')]=_0x4a111e[_0x0315('0x1a')];this[_0x0315('0x1b')]=_0x4a111e[_0x0315('0x1b')];this[_0x0315('0x1c')]=_0x4a111e[_0x0315('0x1c')];this['originatecalleridnum']=_0x4a111e[_0x0315('0x1d')]||'';this[_0x0315('0x1e')]=_0x4a111e[_0x0315('0x1e')]||'';this[_0x0315('0x1f')]=_0x4a111e['state'];this[_0x0315('0x20')]=_0x4a111e[_0x0315('0x20')];}module[_0x0315('0x21')]=Final;