2cb13a040c38ec81feda300db87f83051d17ffce
[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 _0x55e5=['responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','state','statedesc','exports','../utils','uniqueid','scheduledat','type','campaigntype','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','calleridnum','number','starttime'];(function(_0x3b71fc,_0x214d48){var _0x5ee9cf=function(_0x323185){while(--_0x323185){_0x3b71fc['push'](_0x3b71fc['shift']());}};_0x5ee9cf(++_0x214d48);}(_0x55e5,0xa2));var _0x555e=function(_0x30f45a,_0x3502b2){_0x30f45a=_0x30f45a-0x0;var _0x9998d9=_0x55e5[_0x30f45a];return _0x9998d9;};'use strict';var utils=require(_0x555e('0x0'));function History(_0x5c5c8e){this[_0x555e('0x1')]=_0x5c5c8e[_0x555e('0x1')];this[_0x555e('0x2')]=_0x5c5c8e[_0x555e('0x2')]||undefined;this[_0x555e('0x3')]=_0x5c5c8e[_0x555e('0x3')];this[_0x555e('0x4')]=_0x5c5c8e['type']==='outbound'?'queue':_0x5c5c8e[_0x555e('0x3')];this[_0x555e('0x5')]=_0x5c5c8e[_0x555e('0x5')];this[_0x555e('0x6')]=_0x5c5c8e[_0x555e('0x6')];this[_0x555e('0x7')]=_0x5c5c8e[_0x555e('0x7')];this[_0x555e('0x8')]=_0x5c5c8e['countbusyretry']+_0x5c5c8e[_0x555e('0x6')]+_0x5c5c8e[_0x555e('0x7')]+_0x5c5c8e[_0x555e('0x9')]+_0x5c5c8e[_0x555e('0xa')]+_0x5c5c8e[_0x555e('0xb')]+_0x5c5c8e[_0x555e('0xc')]+_0x5c5c8e[_0x555e('0xd')];this[_0x555e('0x9')]=_0x5c5c8e[_0x555e('0x9')];this[_0x555e('0xa')]=_0x5c5c8e['countdropretry'];this[_0x555e('0xb')]=_0x5c5c8e['countabandonedretry'];this['countmachineretry']=_0x5c5c8e[_0x555e('0xc')];this['countagentrejectretry']=_0x5c5c8e[_0x555e('0xd')];this['queue']=_0x5c5c8e['queue'];this[_0x555e('0xe')]=_0x5c5c8e['name'];this[_0x555e('0xf')]=_0x5c5c8e[_0x555e('0x10')];this[_0x555e('0x11')]=_0x5c5c8e[_0x555e('0x11')];this[_0x555e('0x12')]=_0x5c5c8e[_0x555e('0x12')];this[_0x555e('0x13')]=_0x5c5c8e[_0x555e('0x12')];this[_0x555e('0x14')]=utils['getSeconds'](_0x5c5c8e[_0x555e('0x12')],_0x5c5c8e[_0x555e('0x11')]);this[_0x555e('0x15')]=0x0;this[_0x555e('0x16')]=0x0;this['callback']=_0x5c5c8e[_0x555e('0x17')];this[_0x555e('0x18')]=_0x5c5c8e[_0x555e('0x18')];this[_0x555e('0x19')]=_0x5c5c8e[_0x555e('0x19')];this[_0x555e('0x1a')]=_0x5c5c8e[_0x555e('0x1a')];this['ContactId']=_0x5c5c8e[_0x555e('0x1b')];this['ListId']=_0x5c5c8e[_0x555e('0x1c')];this[_0x555e('0x1d')]=_0x5c5c8e[_0x555e('0x1d')];this[_0x555e('0x1e')]=_0x5c5c8e[_0x555e('0x1e')];this['CampaignId']=_0x5c5c8e['CampaignId'];this[_0x555e('0x1f')]=_0x5c5c8e[_0x555e('0x1f')]||'';this[_0x555e('0x20')]=_0x5c5c8e[_0x555e('0x20')]||'';this[_0x555e('0x21')]=_0x5c5c8e['state'];this[_0x555e('0x22')]=_0x5c5c8e[_0x555e('0x22')];}module[_0x555e('0x23')]=History;