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