Built motion from commit 3c2ce842.|2.6.31
[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 _0xb9fd=['queue','countcongestionretry','countnoanswerretry','countglobal','countbusyretry','countnosuchnumberretry','countmachineretry','countagentrejectretry','countdropretry','countabandonedretry','calleridname','name','calleridnum','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','../utils','uniqueid','scheduledat','type','campaigntype','outbound'];(function(_0x49e80d,_0x523385){var _0x391939=function(_0x589a94){while(--_0x589a94){_0x49e80d['push'](_0x49e80d['shift']());}};_0x391939(++_0x523385);}(_0xb9fd,0x104));var _0xdb9f=function(_0x58a4ac,_0x43fd42){_0x58a4ac=_0x58a4ac-0x0;var _0x545810=_0xb9fd[_0x58a4ac];return _0x545810;};'use strict';var utils=require(_0xdb9f('0x0'));function History(_0x29974b){this['uniqueid']=_0x29974b[_0xdb9f('0x1')];this[_0xdb9f('0x2')]=_0x29974b[_0xdb9f('0x2')]||undefined;this[_0xdb9f('0x3')]=_0x29974b[_0xdb9f('0x3')];this[_0xdb9f('0x4')]=_0x29974b[_0xdb9f('0x3')]===_0xdb9f('0x5')?_0xdb9f('0x6'):_0x29974b[_0xdb9f('0x3')];this['countbusyretry']=_0x29974b['countbusyretry'];this[_0xdb9f('0x7')]=_0x29974b[_0xdb9f('0x7')];this[_0xdb9f('0x8')]=_0x29974b['countnoanswerretry'];this[_0xdb9f('0x9')]=_0x29974b[_0xdb9f('0xa')]+_0x29974b[_0xdb9f('0x7')]+_0x29974b[_0xdb9f('0x8')]+_0x29974b[_0xdb9f('0xb')]+_0x29974b['countdropretry']+_0x29974b['countabandonedretry']+_0x29974b[_0xdb9f('0xc')]+_0x29974b[_0xdb9f('0xd')];this[_0xdb9f('0xb')]=_0x29974b[_0xdb9f('0xb')];this[_0xdb9f('0xe')]=_0x29974b['countdropretry'];this[_0xdb9f('0xf')]=_0x29974b['countabandonedretry'];this[_0xdb9f('0xc')]=_0x29974b[_0xdb9f('0xc')];this['countagentrejectretry']=_0x29974b['countagentrejectretry'];this[_0xdb9f('0x6')]=_0x29974b[_0xdb9f('0x6')];this[_0xdb9f('0x10')]=_0x29974b[_0xdb9f('0x11')];this[_0xdb9f('0x12')]=_0x29974b['number'];this[_0xdb9f('0x13')]=_0x29974b['starttime'];this['responsetime']=_0x29974b[_0xdb9f('0x14')];this[_0xdb9f('0x15')]=_0x29974b[_0xdb9f('0x14')];this[_0xdb9f('0x16')]=utils['getSeconds'](_0x29974b[_0xdb9f('0x14')],_0x29974b[_0xdb9f('0x13')]);this[_0xdb9f('0x17')]=0x0;this[_0xdb9f('0x18')]=0x0;this[_0xdb9f('0x19')]=_0x29974b[_0xdb9f('0x19')];this['callbackuniqueid']=_0x29974b[_0xdb9f('0x1a')];this['callbackat']=_0x29974b[_0xdb9f('0x1b')];this[_0xdb9f('0x1c')]=_0x29974b[_0xdb9f('0x1c')];this[_0xdb9f('0x1d')]=_0x29974b[_0xdb9f('0x1d')];this[_0xdb9f('0x1e')]=_0x29974b['ListId'];this['UserId']=_0x29974b['UserId'];this[_0xdb9f('0x1f')]=_0x29974b['VoiceQueueId'];this['CampaignId']=_0x29974b[_0xdb9f('0x20')];this[_0xdb9f('0x21')]=_0x29974b[_0xdb9f('0x21')]||'';this[_0xdb9f('0x22')]=_0x29974b[_0xdb9f('0x22')]||'';this[_0xdb9f('0x23')]=_0x29974b[_0xdb9f('0x23')];this[_0xdb9f('0x24')]=_0x29974b[_0xdb9f('0x24')];}module[_0xdb9f('0x25')]=History;