2667bb783265b3d0f19bc51b79c1c6bc3b281eb8
[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 _0x9c9b=['agentconnectAt','Agent\x20Complete','agentcompleteAt','Hold\x20Time','***\x20Call\x20Info\x20***','Called\x20Number','Member\x20Name','membername','UniqueId','Date','starttime','answertime','endtime','Duration','duration','Billable\x20Time','billableseconds','string','[xCALLY\x20Ticket]','voice','toLowerCase','queue','push','variable','calleridnum','outbound','Outbound\x20Call','destcalleridnum','getDescriptions','inbound','keyValue','Caller\x20Name','Call\x20To','Queue','uniqueid','***\x20Agent\x20Info\x20***','Agent\x20Name','destcalleridname','Agent\x20Number','***\x20Time\x20Info\x20***','Agent\x20Ring','agentcalledAt','Agent\x20Connect'];(function(_0x2a55f8,_0x540ac4){var _0x245efd=function(_0x4dbc19){while(--_0x4dbc19){_0x2a55f8['push'](_0x2a55f8['shift']());}};_0x245efd(++_0x540ac4);}(_0x9c9b,0x194));var _0xb9c9=function(_0x2bc739,_0x32d840){_0x2bc739=_0x2bc739-0x0;var _0xba6c40=_0x9c9b[_0x2bc739];return _0xba6c40;};'use strict';exports['getSubjects']=function(_0x96199b,_0xe1be75){var _0x3d06a3=[{'type':_0xb9c9('0x0'),'content':_0xb9c9('0x1'),'variableName':null}];switch(_0x96199b['toLowerCase']()){case _0xb9c9('0x2'):switch(_0xe1be75[_0xb9c9('0x3')]()){case'inbound':_0x3d06a3['push']({'type':'variable','content':'','variableName':_0xb9c9('0x4')});_0x3d06a3[_0xb9c9('0x5')]({'type':_0xb9c9('0x6'),'content':'','variableName':_0xb9c9('0x7')});break;case _0xb9c9('0x8'):_0x3d06a3[_0xb9c9('0x5')]({'type':_0xb9c9('0x0'),'content':_0xb9c9('0x9'),'variableName':null});_0x3d06a3[_0xb9c9('0x5')]({'type':_0xb9c9('0x6'),'content':'','variableName':_0xb9c9('0xa')});break;}}return _0x3d06a3;};exports[_0xb9c9('0xb')]=function(_0xfe2780,_0x5a2fb6){var _0x490d67=[];switch(_0xfe2780[_0xb9c9('0x3')]()){case _0xb9c9('0x2'):switch(_0x5a2fb6[_0xb9c9('0x3')]()){case _0xb9c9('0xc'):_0x490d67=[{'type':_0xb9c9('0x0'),'content':'***\x20Call\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':'Caller\x20Number','keyType':_0xb9c9('0x6'),'variableName':'calleridnum'},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0xe'),'keyType':'variable','variableName':'calleridname'},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0xf'),'keyType':_0xb9c9('0x6'),'variableName':'destexten'},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x10'),'keyType':_0xb9c9('0x6'),'variableName':_0xb9c9('0x4')},{'type':_0xb9c9('0xd'),'content':'','key':'UniqueId','keyType':_0xb9c9('0x6'),'variableName':_0xb9c9('0x11')},{'type':_0xb9c9('0xd'),'content':'','key':'Date','keyType':'variable','variableName':'agentcalledAt'},{'type':'string','content':_0xb9c9('0x12'),'key':null,'keyType':null,'variableName':null},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x13'),'keyType':_0xb9c9('0x6'),'variableName':_0xb9c9('0x14')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x15'),'keyType':_0xb9c9('0x6'),'variableName':_0xb9c9('0xa')},{'type':_0xb9c9('0x0'),'content':_0xb9c9('0x16'),'key':null,'keyType':null,'variableName':null},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x17'),'keyType':'variable','variableName':_0xb9c9('0x18')},{'type':'keyValue','content':'','key':_0xb9c9('0x19'),'keyType':_0xb9c9('0x6'),'variableName':_0xb9c9('0x1a')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x1b'),'keyType':'variable','variableName':_0xb9c9('0x1c')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x1d'),'keyType':_0xb9c9('0x6'),'variableName':'holdtime'},{'type':_0xb9c9('0xd'),'content':'','key':'Talk\x20Time','keyType':'variable','variableName':'talktime'}];break;case _0xb9c9('0x8'):_0x490d67=[{'type':_0xb9c9('0x0'),'content':_0xb9c9('0x1e'),'variableName':null},{'type':'keyValue','content':'','key':_0xb9c9('0x1f'),'keyType':_0xb9c9('0x6'),'keyContent':'','variableName':_0xb9c9('0xa')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x20'),'keyType':_0xb9c9('0x6'),'keyContent':'','variableName':_0xb9c9('0x21')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x22'),'keyType':'variable','keyContent':'','variableName':_0xb9c9('0x11')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x23'),'keyType':'variable','keyContent':'','variableName':_0xb9c9('0x24')},{'type':_0xb9c9('0x0'),'content':_0xb9c9('0x16')},{'type':_0xb9c9('0xd'),'content':'','key':'Answer\x20Time','keyType':_0xb9c9('0x6'),'keyContent':'','variableName':_0xb9c9('0x25')},{'type':_0xb9c9('0xd'),'content':'','key':'Complete\x20Time','keyType':_0xb9c9('0x6'),'keyContent':'','variableName':_0xb9c9('0x26')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x27'),'keyType':_0xb9c9('0x6'),'keyContent':'','variableName':_0xb9c9('0x28')},{'type':_0xb9c9('0xd'),'content':'','key':_0xb9c9('0x29'),'keyType':_0xb9c9('0x6'),'keyContent':'','variableName':_0xb9c9('0x2a')}];break;}}return _0x490d67;};