a407129808328b77ada04051c06dc3f81e7c6b8f
[motion2.git] / server / services / ami / dialer / models / final.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 _0x3cb6=['ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','state','statedesc','exports','uniqueid','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','calleridname','calleridnum','starttime','responsetime'];(function(_0x4bf0be,_0x498260){var _0x422324=function(_0x419b93){while(--_0x419b93){_0x4bf0be['push'](_0x4bf0be['shift']());}};_0x422324(++_0x498260);}(_0x3cb6,0x1b5));var _0x63cb=function(_0x15fab7,_0x1eb124){_0x15fab7=_0x15fab7-0x0;var _0x23f693=_0x3cb6[_0x15fab7];return _0x23f693;};'use strict';function Final(_0xff84df){this[_0x63cb('0x0')]=_0xff84df[_0x63cb('0x0')];this[_0x63cb('0x1')]=_0xff84df[_0x63cb('0x1')];this[_0x63cb('0x2')]=_0xff84df[_0x63cb('0x2')];this[_0x63cb('0x3')]=_0xff84df[_0x63cb('0x2')]==='outbound'?_0x63cb('0x4'):_0xff84df[_0x63cb('0x2')];this[_0x63cb('0x5')]=_0xff84df['countbusyretry'];this['countcongestionretry']=_0xff84df[_0x63cb('0x6')];this['countnoanswerretry']=_0xff84df[_0x63cb('0x7')];this[_0x63cb('0x8')]=_0xff84df[_0x63cb('0x5')]+_0xff84df[_0x63cb('0x6')]+_0xff84df[_0x63cb('0x7')]+_0xff84df[_0x63cb('0x9')]+_0xff84df[_0x63cb('0xa')]+_0xff84df['countabandonedretry']+_0xff84df[_0x63cb('0xb')]+_0xff84df[_0x63cb('0xc')];this[_0x63cb('0x9')]=_0xff84df[_0x63cb('0x9')];this['countdropretry']=_0xff84df[_0x63cb('0xa')];this[_0x63cb('0xd')]=_0xff84df['countabandonedretry'];this['countmachineretry']=_0xff84df[_0x63cb('0xb')];this[_0x63cb('0xc')]=_0xff84df[_0x63cb('0xc')];this[_0x63cb('0x4')]=_0xff84df[_0x63cb('0x4')];this[_0x63cb('0xe')]=_0xff84df['calleridname'];this[_0x63cb('0xf')]=_0xff84df['calleridnum'];this['starttime']=_0xff84df[_0x63cb('0x10')];this['responsetime']=_0xff84df[_0x63cb('0x11')];this['endtime']=_0xff84df[_0x63cb('0x11')];this[_0x63cb('0x12')]=_0xff84df[_0x63cb('0x12')]||0x0;this[_0x63cb('0x13')]=_0xff84df[_0x63cb('0x13')]||0x0;this[_0x63cb('0x14')]=_0xff84df[_0x63cb('0x14')]||0x0;this[_0x63cb('0x15')]=_0xff84df[_0x63cb('0x15')];this[_0x63cb('0x16')]=_0xff84df['callbackuniqueid'];this[_0x63cb('0x17')]=_0xff84df[_0x63cb('0x17')];this[_0x63cb('0x18')]=_0xff84df[_0x63cb('0x18')];this[_0x63cb('0x19')]=_0xff84df['ContactId'];this[_0x63cb('0x1a')]=_0xff84df[_0x63cb('0x1a')];this[_0x63cb('0x1b')]=_0xff84df['UserId'];this[_0x63cb('0x1c')]=_0xff84df[_0x63cb('0x1c')];this[_0x63cb('0x1d')]=_0xff84df[_0x63cb('0x1d')];this[_0x63cb('0x1e')]=_0xff84df[_0x63cb('0x1e')]||'';this[_0x63cb('0x1f')]=_0xff84df['originatecalleridname']||'';this['state']=_0xff84df[_0x63cb('0x20')];this['statedesc']=_0xff84df[_0x63cb('0x21')];}module[_0x63cb('0x22')]=Final;