52a99d7249ce504b48ceb467e13f997493807f9a
[motion2.git] / server / components / integrations / configuration.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 _0x5eb1=['starttime','***\x20Time\x20Info\x20***','Answer\x20Time','answertime','endtime','duration','Billable\x20Time','string','[xCALLY\x20Ticket]','toLowerCase','inbound','push','variable','outbound','Outbound\x20Call','destcalleridnum','getDescriptions','voice','Caller\x20Number','calleridnum','keyValue','calleridname','Call\x20To','UniqueId','uniqueid','Date','agentcalledAt','Agent\x20Name','destcalleridname','Agent\x20Number','agentconnectAt','Agent\x20Complete','agentcompleteAt','Hold\x20Time','holdtime','Talk\x20Time','talktime','***\x20Call\x20Info\x20***','Member\x20Name'];(function(_0x2642cb,_0x4b917f){var _0xe6e41=function(_0x281676){while(--_0x281676){_0x2642cb['push'](_0x2642cb['shift']());}};_0xe6e41(++_0x4b917f);}(_0x5eb1,0x7c));var _0x15eb=function(_0x32b312,_0x4e3f0f){_0x32b312=_0x32b312-0x0;var _0x313368=_0x5eb1[_0x32b312];return _0x313368;};'use strict';exports['getSubjects']=function(_0x3d1394,_0x18927a){var _0x231f58=[{'type':_0x15eb('0x0'),'content':_0x15eb('0x1'),'variableName':null}];switch(_0x3d1394[_0x15eb('0x2')]()){case'voice':switch(_0x18927a[_0x15eb('0x2')]()){case _0x15eb('0x3'):_0x231f58[_0x15eb('0x4')]({'type':_0x15eb('0x5'),'content':'','variableName':'queue'});_0x231f58[_0x15eb('0x4')]({'type':_0x15eb('0x5'),'content':'','variableName':'calleridnum'});break;case _0x15eb('0x6'):_0x231f58[_0x15eb('0x4')]({'type':_0x15eb('0x0'),'content':_0x15eb('0x7'),'variableName':null});_0x231f58[_0x15eb('0x4')]({'type':_0x15eb('0x5'),'content':'','variableName':_0x15eb('0x8')});break;}}return _0x231f58;};exports[_0x15eb('0x9')]=function(_0x295e45,_0x31e040){var _0x3f08c1=[];switch(_0x295e45[_0x15eb('0x2')]()){case _0x15eb('0xa'):switch(_0x31e040['toLowerCase']()){case _0x15eb('0x3'):_0x3f08c1=[{'type':'string','content':'***\x20Call\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':_0x15eb('0xb'),'keyType':_0x15eb('0x5'),'variableName':_0x15eb('0xc')},{'type':_0x15eb('0xd'),'content':'','key':'Caller\x20Name','keyType':_0x15eb('0x5'),'variableName':_0x15eb('0xe')},{'type':_0x15eb('0xd'),'content':'','key':_0x15eb('0xf'),'keyType':'variable','variableName':'destexten'},{'type':'keyValue','content':'','key':'Queue','keyType':_0x15eb('0x5'),'variableName':'queue'},{'type':'keyValue','content':'','key':_0x15eb('0x10'),'keyType':'variable','variableName':_0x15eb('0x11')},{'type':'keyValue','content':'','key':_0x15eb('0x12'),'keyType':'variable','variableName':_0x15eb('0x13')},{'type':_0x15eb('0x0'),'content':'***\x20Agent\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0x15eb('0xd'),'content':'','key':_0x15eb('0x14'),'keyType':'variable','variableName':_0x15eb('0x15')},{'type':_0x15eb('0xd'),'content':'','key':_0x15eb('0x16'),'keyType':_0x15eb('0x5'),'variableName':_0x15eb('0x8')},{'type':_0x15eb('0x0'),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0x15eb('0xd'),'content':'','key':'Agent\x20Ring','keyType':_0x15eb('0x5'),'variableName':'agentcalledAt'},{'type':_0x15eb('0xd'),'content':'','key':'Agent\x20Connect','keyType':_0x15eb('0x5'),'variableName':_0x15eb('0x17')},{'type':_0x15eb('0xd'),'content':'','key':_0x15eb('0x18'),'keyType':_0x15eb('0x5'),'variableName':_0x15eb('0x19')},{'type':_0x15eb('0xd'),'content':'','key':_0x15eb('0x1a'),'keyType':_0x15eb('0x5'),'variableName':_0x15eb('0x1b')},{'type':'keyValue','content':'','key':_0x15eb('0x1c'),'keyType':_0x15eb('0x5'),'variableName':_0x15eb('0x1d')}];break;case _0x15eb('0x6'):_0x3f08c1=[{'type':_0x15eb('0x0'),'content':_0x15eb('0x1e'),'variableName':null},{'type':_0x15eb('0xd'),'content':'','key':'Called\x20Number','keyType':'variable','keyContent':'','variableName':_0x15eb('0x8')},{'type':_0x15eb('0xd'),'content':'','key':_0x15eb('0x1f'),'keyType':_0x15eb('0x5'),'keyContent':'','variableName':'membername'},{'type':_0x15eb('0xd'),'content':'','key':'UniqueId','keyType':_0x15eb('0x5'),'keyContent':'','variableName':'uniqueid'},{'type':_0x15eb('0xd'),'content':'','key':_0x15eb('0x12'),'keyType':_0x15eb('0x5'),'keyContent':'','variableName':_0x15eb('0x20')},{'type':_0x15eb('0x0'),'content':_0x15eb('0x21')},{'type':'keyValue','content':'','key':_0x15eb('0x22'),'keyType':_0x15eb('0x5'),'keyContent':'','variableName':_0x15eb('0x23')},{'type':'keyValue','content':'','key':'Complete\x20Time','keyType':_0x15eb('0x5'),'keyContent':'','variableName':_0x15eb('0x24')},{'type':'keyValue','content':'','key':'Duration','keyType':'variable','keyContent':'','variableName':_0x15eb('0x25')},{'type':'keyValue','content':'','key':_0x15eb('0x26'),'keyType':_0x15eb('0x5'),'keyContent':'','variableName':'billableseconds'}];break;}}return _0x3f08c1;};