1cd5ce2d19b94bb3ccadbe04dd86d524aaf34e57
[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 _0xe817=['answertime','Complete\x20Time','endtime','Duration','duration','string','[xCALLY\x20Ticket]','toLowerCase','voice','inbound','queue','push','variable','calleridnum','Outbound\x20Call','getDescriptions','keyValue','Caller\x20Name','calleridname','Call\x20To','destexten','Queue','UniqueId','uniqueid','***\x20Agent\x20Info\x20***','Agent\x20Name','destcalleridname','Agent\x20Number','destcalleridnum','***\x20Time\x20Info\x20***','Agent\x20Ring','agentcalledAt','Agent\x20Connect','agentconnectAt','agentcompleteAt','Hold\x20Time','Talk\x20Time','talktime','***\x20Call\x20Info\x20***','Member\x20Name','membername','Date','starttime','Answer\x20Time'];(function(_0x3dbb7e,_0xd687cb){var _0x1b18c8=function(_0x4834fb){while(--_0x4834fb){_0x3dbb7e['push'](_0x3dbb7e['shift']());}};_0x1b18c8(++_0xd687cb);}(_0xe817,0x89));var _0x7e81=function(_0x1c1329,_0x478321){_0x1c1329=_0x1c1329-0x0;var _0x5a96f7=_0xe817[_0x1c1329];return _0x5a96f7;};'use strict';exports['getSubjects']=function(_0x450cc0,_0x3bc9bb){var _0xd162e4=[{'type':_0x7e81('0x0'),'content':_0x7e81('0x1'),'variableName':null}];switch(_0x450cc0[_0x7e81('0x2')]()){case _0x7e81('0x3'):switch(_0x3bc9bb[_0x7e81('0x2')]()){case _0x7e81('0x4'):_0xd162e4['push']({'type':'variable','content':'','variableName':_0x7e81('0x5')});_0xd162e4[_0x7e81('0x6')]({'type':_0x7e81('0x7'),'content':'','variableName':_0x7e81('0x8')});break;case'outbound':_0xd162e4[_0x7e81('0x6')]({'type':_0x7e81('0x0'),'content':_0x7e81('0x9'),'variableName':null});_0xd162e4[_0x7e81('0x6')]({'type':_0x7e81('0x7'),'content':'','variableName':'destcalleridnum'});break;}}return _0xd162e4;};exports[_0x7e81('0xa')]=function(_0x30fee3,_0x398d2f){var _0x246c4c=[];switch(_0x30fee3['toLowerCase']()){case'voice':switch(_0x398d2f[_0x7e81('0x2')]()){case _0x7e81('0x4'):_0x246c4c=[{'type':_0x7e81('0x0'),'content':'***\x20Call\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':'Caller\x20Number','keyType':_0x7e81('0x7'),'variableName':_0x7e81('0x8')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0xc'),'keyType':'variable','variableName':_0x7e81('0xd')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0xe'),'keyType':_0x7e81('0x7'),'variableName':_0x7e81('0xf')},{'type':'keyValue','content':'','key':_0x7e81('0x10'),'keyType':_0x7e81('0x7'),'variableName':'queue'},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x11'),'keyType':_0x7e81('0x7'),'variableName':_0x7e81('0x12')},{'type':_0x7e81('0xb'),'content':'','key':'Date','keyType':_0x7e81('0x7'),'variableName':'agentcalledAt'},{'type':_0x7e81('0x0'),'content':_0x7e81('0x13'),'key':null,'keyType':null,'variableName':null},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x14'),'keyType':'variable','variableName':_0x7e81('0x15')},{'type':'keyValue','content':'','key':_0x7e81('0x16'),'keyType':_0x7e81('0x7'),'variableName':_0x7e81('0x17')},{'type':_0x7e81('0x0'),'content':_0x7e81('0x18'),'key':null,'keyType':null,'variableName':null},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x19'),'keyType':_0x7e81('0x7'),'variableName':_0x7e81('0x1a')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x1b'),'keyType':'variable','variableName':_0x7e81('0x1c')},{'type':_0x7e81('0xb'),'content':'','key':'Agent\x20Complete','keyType':'variable','variableName':_0x7e81('0x1d')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x1e'),'keyType':_0x7e81('0x7'),'variableName':'holdtime'},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x1f'),'keyType':_0x7e81('0x7'),'variableName':_0x7e81('0x20')}];break;case'outbound':_0x246c4c=[{'type':_0x7e81('0x0'),'content':_0x7e81('0x21'),'variableName':null},{'type':_0x7e81('0xb'),'content':'','key':'Called\x20Number','keyType':_0x7e81('0x7'),'keyContent':'','variableName':_0x7e81('0x17')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x22'),'keyType':'variable','keyContent':'','variableName':_0x7e81('0x23')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x11'),'keyType':'variable','keyContent':'','variableName':_0x7e81('0x12')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x24'),'keyType':_0x7e81('0x7'),'keyContent':'','variableName':_0x7e81('0x25')},{'type':_0x7e81('0x0'),'content':'***\x20Time\x20Info\x20***'},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x26'),'keyType':_0x7e81('0x7'),'keyContent':'','variableName':_0x7e81('0x27')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x28'),'keyType':_0x7e81('0x7'),'keyContent':'','variableName':_0x7e81('0x29')},{'type':_0x7e81('0xb'),'content':'','key':_0x7e81('0x2a'),'keyType':_0x7e81('0x7'),'keyContent':'','variableName':_0x7e81('0x2b')},{'type':_0x7e81('0xb'),'content':'','key':'Billable\x20Time','keyType':'variable','keyContent':'','variableName':'billableseconds'}];break;}}return _0x246c4c;};