0c90f8671306069b1eab583a2bb728c76de7708c
[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 _0xa4f8=['calleridnum','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','uniqueid','scheduledat','type','campaigntype','countbusyretry','countcongestionretry','countnoanswerretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','queue','calleridname'];(function(_0x585283,_0x52ea2a){var _0x2ba206=function(_0x5a7bc5){while(--_0x5a7bc5){_0x585283['push'](_0x585283['shift']());}};_0x2ba206(++_0x52ea2a);}(_0xa4f8,0x11c));var _0x8a4f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa4f8[_0x3dd15e];return _0x231fd0;};'use strict';function Final(_0x260d70){this[_0x8a4f('0x0')]=_0x260d70[_0x8a4f('0x0')];this[_0x8a4f('0x1')]=_0x260d70[_0x8a4f('0x1')];this[_0x8a4f('0x2')]=_0x260d70[_0x8a4f('0x2')];this[_0x8a4f('0x3')]=_0x260d70[_0x8a4f('0x2')]==='outbound'?'queue':_0x260d70['type'];this[_0x8a4f('0x4')]=_0x260d70[_0x8a4f('0x4')];this[_0x8a4f('0x5')]=_0x260d70['countcongestionretry'];this[_0x8a4f('0x6')]=_0x260d70['countnoanswerretry'];this['countglobal']=_0x260d70[_0x8a4f('0x4')]+_0x260d70[_0x8a4f('0x5')]+_0x260d70[_0x8a4f('0x6')]+_0x260d70['countnosuchnumberretry']+_0x260d70[_0x8a4f('0x7')]+_0x260d70[_0x8a4f('0x8')]+_0x260d70[_0x8a4f('0x9')]+_0x260d70['countagentrejectretry'];this['countnosuchnumberretry']=_0x260d70['countnosuchnumberretry'];this[_0x8a4f('0x7')]=_0x260d70[_0x8a4f('0x7')];this[_0x8a4f('0x8')]=_0x260d70['countabandonedretry'];this[_0x8a4f('0x9')]=_0x260d70['countmachineretry'];this['countagentrejectretry']=_0x260d70[_0x8a4f('0xa')];this[_0x8a4f('0xb')]=_0x260d70[_0x8a4f('0xb')];this[_0x8a4f('0xc')]=_0x260d70[_0x8a4f('0xc')];this[_0x8a4f('0xd')]=_0x260d70['calleridnum'];this[_0x8a4f('0xe')]=_0x260d70[_0x8a4f('0xe')];this[_0x8a4f('0xf')]=_0x260d70[_0x8a4f('0xf')];this[_0x8a4f('0x10')]=_0x260d70[_0x8a4f('0xf')];this[_0x8a4f('0x11')]=_0x260d70[_0x8a4f('0x11')]||0x0;this['holdtime']=_0x260d70[_0x8a4f('0x12')]||0x0;this[_0x8a4f('0x13')]=_0x260d70[_0x8a4f('0x13')]||0x0;this['callback']=_0x260d70[_0x8a4f('0x14')];this[_0x8a4f('0x15')]=_0x260d70[_0x8a4f('0x15')];this[_0x8a4f('0x16')]=_0x260d70['callbackat'];this['recallme']=_0x260d70[_0x8a4f('0x17')];this['ContactId']=_0x260d70[_0x8a4f('0x18')];this['ListId']=_0x260d70[_0x8a4f('0x19')];this['UserId']=_0x260d70['UserId'];this['VoiceQueueId']=_0x260d70[_0x8a4f('0x1a')];this[_0x8a4f('0x1b')]=_0x260d70[_0x8a4f('0x1b')];this['originatecalleridnum']=_0x260d70[_0x8a4f('0x1c')]||'';this[_0x8a4f('0x1d')]=_0x260d70[_0x8a4f('0x1d')]||'';this[_0x8a4f('0x1e')]=_0x260d70['state'];this[_0x8a4f('0x1f')]=_0x260d70['statedesc'];}module[_0x8a4f('0x20')]=Final;