1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x1021=['variableName','Variable','keyType','idField','GetFreshdeskAccount','getFreshdeskAccounts','Request','name','apiKey','Configurations','FreshdeskField','Subjects','type','content'];(function(_0x3406c1,_0x228e3a){var _0x5a30ab=function(_0x3d8363){while(--_0x3d8363){_0x3406c1['push'](_0x3406c1['shift']());}};_0x5a30ab(++_0x228e3a);}(_0x1021,0x163));var _0x1102=function(_0x150854,_0x21e916){_0x150854=_0x150854-0x0;var _0x1a617e=_0x1021[_0x150854];return _0x1a617e;};'use strict';var client=require('../../client');exports[_0x1102('0x0')]=function(){return function(_0x1dce33){return client[_0x1102('0x1')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x1102('0x2'),'username',_0x1102('0x3'),'remoteUri','serverUrl'],'include':[{'model':'FreshdeskConfiguration','as':_0x1102('0x4'),'attributes':['id',_0x1102('0x2')],'include':[{'model':'Tag','attributes':['id',_0x1102('0x2')]},{'model':_0x1102('0x5'),'as':_0x1102('0x6'),'attributes':['id',_0x1102('0x7'),_0x1102('0x8'),_0x1102('0x9')],'include':[{'model':'Variable','as':_0x1102('0xa'),'attributes':['id',_0x1102('0x2')]}]},{'model':_0x1102('0x5'),'as':'Descriptions','attributes':['id',_0x1102('0x7'),'content','key',_0x1102('0xb'),'keyContent',_0x1102('0x9')],'include':[{'model':_0x1102('0xa'),'as':_0x1102('0xa'),'attributes':['id',_0x1102('0x2')]}]},{'model':_0x1102('0x5'),'as':'Fields','attributes':['id',_0x1102('0x7'),_0x1102('0x8'),_0x1102('0xc'),'nameField','customField',_0x1102('0x9')],'include':[{'model':_0x1102('0xa'),'as':_0x1102('0xa'),'attributes':['id','name']}]}]}]},'log':_0x1102('0xd')});};};