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