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 _0xb071=['nameField','customField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','name','username','remoteUri','serverUrl','FreshdeskConfiguration','type','variableName','Variable','FreshdeskField','Descriptions','content','key','keyContent','Fields','idField'];(function(_0x146499,_0x20bc0d){var _0x3289bc=function(_0x17e483){while(--_0x17e483){_0x146499['push'](_0x146499['shift']());}};_0x3289bc(++_0x20bc0d);}(_0xb071,0x1bb));var _0x1b07=function(_0x49713b,_0x1c6f09){_0x49713b=_0x49713b-0x0;var _0x370fde=_0xb071[_0x49713b];return _0x370fde;};'use strict';var client=require(_0x1b07('0x0'));exports[_0x1b07('0x1')]=function(){return function(_0x464080){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x1b07('0x2'),_0x1b07('0x3'),'apiKey',_0x1b07('0x4'),_0x1b07('0x5')],'include':[{'model':_0x1b07('0x6'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x1b07('0x2')]},{'model':'FreshdeskField','as':'Subjects','attributes':['id',_0x1b07('0x7'),'content',_0x1b07('0x8')],'include':[{'model':_0x1b07('0x9'),'as':_0x1b07('0x9'),'attributes':['id',_0x1b07('0x2')]}]},{'model':_0x1b07('0xa'),'as':_0x1b07('0xb'),'attributes':['id',_0x1b07('0x7'),_0x1b07('0xc'),_0x1b07('0xd'),'keyType',_0x1b07('0xe'),_0x1b07('0x8')],'include':[{'model':_0x1b07('0x9'),'as':_0x1b07('0x9'),'attributes':['id',_0x1b07('0x2')]}]},{'model':'FreshdeskField','as':_0x1b07('0xf'),'attributes':['id',_0x1b07('0x7'),_0x1b07('0xc'),_0x1b07('0x10'),_0x1b07('0x11'),_0x1b07('0x12'),_0x1b07('0x8')],'include':[{'model':_0x1b07('0x9'),'as':_0x1b07('0x9'),'attributes':['id',_0x1b07('0x2')]}]}]}]},'log':_0x1b07('0x13')});};};