778a1fa076054be970e8cb77fc6975190e979007
[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 _0x0cdb=['Billable\x20Time','string','[xCALLY\x20Ticket]','toLowerCase','inbound','push','variable','queue','outbound','getDescriptions','voice','***\x20Call\x20Info\x20***','keyValue','Caller\x20Number','Caller\x20Name','calleridname','destexten','Queue','UniqueId','uniqueid','agentcalledAt','***\x20Agent\x20Info\x20***','destcalleridname','Agent\x20Number','destcalleridnum','***\x20Time\x20Info\x20***','Agent\x20Ring','Agent\x20Connect','Agent\x20Complete','agentcompleteAt','holdtime','Talk\x20Time','talktime','Member\x20Name','Date','answertime','Complete\x20Time','endtime','Duration','duration'];(function(_0x3d11be,_0x1b9a8c){var _0x4b657b=function(_0x4a96f2){while(--_0x4a96f2){_0x3d11be['push'](_0x3d11be['shift']());}};_0x4b657b(++_0x1b9a8c);}(_0x0cdb,0x119));var _0xb0cd=function(_0x582d0b,_0x28f609){_0x582d0b=_0x582d0b-0x0;var _0x2e93e1=_0x0cdb[_0x582d0b];return _0x2e93e1;};'use strict';exports['getSubjects']=function(_0x189f96,_0x5bd135){var _0xec954=[{'type':_0xb0cd('0x0'),'content':_0xb0cd('0x1'),'variableName':null}];switch(_0x189f96[_0xb0cd('0x2')]()){case'voice':switch(_0x5bd135[_0xb0cd('0x2')]()){case _0xb0cd('0x3'):_0xec954[_0xb0cd('0x4')]({'type':_0xb0cd('0x5'),'content':'','variableName':_0xb0cd('0x6')});_0xec954[_0xb0cd('0x4')]({'type':_0xb0cd('0x5'),'content':'','variableName':'calleridnum'});break;case _0xb0cd('0x7'):_0xec954[_0xb0cd('0x4')]({'type':'string','content':'Outbound\x20Call','variableName':null});_0xec954[_0xb0cd('0x4')]({'type':'variable','content':'','variableName':'destcalleridnum'});break;}}return _0xec954;};exports[_0xb0cd('0x8')]=function(_0x3f99aa,_0x165795){var _0x55c8fb=[];switch(_0x3f99aa[_0xb0cd('0x2')]()){case _0xb0cd('0x9'):switch(_0x165795['toLowerCase']()){case'inbound':_0x55c8fb=[{'type':_0xb0cd('0x0'),'content':_0xb0cd('0xa'),'key':null,'keyType':null,'variableName':null},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0xc'),'keyType':_0xb0cd('0x5'),'variableName':'calleridnum'},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0xd'),'keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0xe')},{'type':_0xb0cd('0xb'),'content':'','key':'Call\x20To','keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0xf')},{'type':'keyValue','content':'','key':_0xb0cd('0x10'),'keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x6')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x11'),'keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x12')},{'type':_0xb0cd('0xb'),'content':'','key':'Date','keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x13')},{'type':_0xb0cd('0x0'),'content':_0xb0cd('0x14'),'key':null,'keyType':null,'variableName':null},{'type':_0xb0cd('0xb'),'content':'','key':'Agent\x20Name','keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x15')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x16'),'keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x17')},{'type':_0xb0cd('0x0'),'content':_0xb0cd('0x18'),'key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':_0xb0cd('0x19'),'keyType':'variable','variableName':_0xb0cd('0x13')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x1a'),'keyType':_0xb0cd('0x5'),'variableName':'agentconnectAt'},{'type':'keyValue','content':'','key':_0xb0cd('0x1b'),'keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x1c')},{'type':_0xb0cd('0xb'),'content':'','key':'Hold\x20Time','keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x1d')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x1e'),'keyType':_0xb0cd('0x5'),'variableName':_0xb0cd('0x1f')}];break;case _0xb0cd('0x7'):_0x55c8fb=[{'type':_0xb0cd('0x0'),'content':_0xb0cd('0xa'),'variableName':null},{'type':_0xb0cd('0xb'),'content':'','key':'Called\x20Number','keyType':'variable','keyContent':'','variableName':_0xb0cd('0x17')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x20'),'keyType':_0xb0cd('0x5'),'keyContent':'','variableName':'membername'},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x11'),'keyType':_0xb0cd('0x5'),'keyContent':'','variableName':_0xb0cd('0x12')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x21'),'keyType':'variable','keyContent':'','variableName':'starttime'},{'type':_0xb0cd('0x0'),'content':_0xb0cd('0x18')},{'type':_0xb0cd('0xb'),'content':'','key':'Answer\x20Time','keyType':_0xb0cd('0x5'),'keyContent':'','variableName':_0xb0cd('0x22')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x23'),'keyType':_0xb0cd('0x5'),'keyContent':'','variableName':_0xb0cd('0x24')},{'type':'keyValue','content':'','key':_0xb0cd('0x25'),'keyType':'variable','keyContent':'','variableName':_0xb0cd('0x26')},{'type':_0xb0cd('0xb'),'content':'','key':_0xb0cd('0x27'),'keyType':'variable','keyContent':'','variableName':'billableseconds'}];break;}}return _0x55c8fb;};