Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / ami / dialer / models / history.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 _0x46f2=['countglobal','countbusyretry','countdropretry','countagentrejectretry','countnosuchnumberretry','countabandonedretry','countmachineretry','calleridname','calleridnum','number','starttime','responsetime','endtime','ringtime','getSeconds','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','scheduledat','campaigntype','type','queue','countcongestionretry','countnoanswerretry'];(function(_0x149d1e,_0x353a03){var _0x3125c6=function(_0x2349e3){while(--_0x2349e3){_0x149d1e['push'](_0x149d1e['shift']());}};_0x3125c6(++_0x353a03);}(_0x46f2,0x1b6));var _0x246f=function(_0x143b9a,_0x23a500){_0x143b9a=_0x143b9a-0x0;var _0x204b8d=_0x46f2[_0x143b9a];return _0x204b8d;};'use strict';var utils=require('../utils');function History(_0x2590f1){this['uniqueid']=_0x2590f1['uniqueid'];this['scheduledat']=_0x2590f1[_0x246f('0x0')]||undefined;this['type']=_0x2590f1['type'];this[_0x246f('0x1')]=_0x2590f1[_0x246f('0x2')]==='outbound'?_0x246f('0x3'):_0x2590f1['type'];this['countbusyretry']=_0x2590f1['countbusyretry'];this['countcongestionretry']=_0x2590f1[_0x246f('0x4')];this[_0x246f('0x5')]=_0x2590f1[_0x246f('0x5')];this[_0x246f('0x6')]=_0x2590f1[_0x246f('0x7')]+_0x2590f1[_0x246f('0x4')]+_0x2590f1[_0x246f('0x5')]+_0x2590f1['countnosuchnumberretry']+_0x2590f1[_0x246f('0x8')]+_0x2590f1['countabandonedretry']+_0x2590f1['countmachineretry']+_0x2590f1[_0x246f('0x9')];this[_0x246f('0xa')]=_0x2590f1['countnosuchnumberretry'];this[_0x246f('0x8')]=_0x2590f1[_0x246f('0x8')];this['countabandonedretry']=_0x2590f1[_0x246f('0xb')];this[_0x246f('0xc')]=_0x2590f1['countmachineretry'];this[_0x246f('0x9')]=_0x2590f1[_0x246f('0x9')];this[_0x246f('0x3')]=_0x2590f1[_0x246f('0x3')];this[_0x246f('0xd')]=_0x2590f1['name'];this[_0x246f('0xe')]=_0x2590f1[_0x246f('0xf')];this[_0x246f('0x10')]=_0x2590f1[_0x246f('0x10')];this[_0x246f('0x11')]=_0x2590f1['responsetime'];this[_0x246f('0x12')]=_0x2590f1[_0x246f('0x11')];this[_0x246f('0x13')]=utils[_0x246f('0x14')](_0x2590f1[_0x246f('0x11')],_0x2590f1['starttime']);this[_0x246f('0x15')]=0x0;this[_0x246f('0x16')]=0x0;this[_0x246f('0x17')]=_0x2590f1['callback'];this[_0x246f('0x18')]=_0x2590f1[_0x246f('0x18')];this[_0x246f('0x19')]=_0x2590f1[_0x246f('0x19')];this[_0x246f('0x1a')]=_0x2590f1['recallme'];this[_0x246f('0x1b')]=_0x2590f1[_0x246f('0x1b')];this[_0x246f('0x1c')]=_0x2590f1[_0x246f('0x1c')];this[_0x246f('0x1d')]=_0x2590f1[_0x246f('0x1d')];this[_0x246f('0x1e')]=_0x2590f1['VoiceQueueId'];this[_0x246f('0x1f')]=_0x2590f1[_0x246f('0x1f')];this[_0x246f('0x20')]=_0x2590f1[_0x246f('0x20')]||'';this[_0x246f('0x21')]=_0x2590f1[_0x246f('0x21')]||'';this[_0x246f('0x22')]=_0x2590f1[_0x246f('0x22')];this['statedesc']=_0x2590f1[_0x246f('0x23')];}module[_0x246f('0x24')]=History;