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 _0x83e1=['name','remoteUri','serverUrl','Tag','FreshdeskField','type','content','variableName','Variable','key','keyType','keyContent','idField','nameField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request'];(function(_0x30a5b6,_0x47bf65){var _0x516e4e=function(_0x348561){while(--_0x348561){_0x30a5b6['push'](_0x30a5b6['shift']());}};_0x516e4e(++_0x47bf65);}(_0x83e1,0x1ad));var _0x183e=function(_0x460290,_0x1f6fcb){_0x460290=_0x460290-0x0;var _0x431b71=_0x83e1[_0x460290];return _0x431b71;};'use strict';var client=require(_0x183e('0x0'));exports[_0x183e('0x1')]=function(){return function(_0x5f5222){return client[_0x183e('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x183e('0x3'),'username','apiKey',_0x183e('0x4'),_0x183e('0x5')],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0x183e('0x6'),'attributes':['id',_0x183e('0x3')]},{'model':_0x183e('0x7'),'as':'Subjects','attributes':['id',_0x183e('0x8'),_0x183e('0x9'),_0x183e('0xa')],'include':[{'model':'Variable','as':_0x183e('0xb'),'attributes':['id',_0x183e('0x3')]}]},{'model':_0x183e('0x7'),'as':'Descriptions','attributes':['id',_0x183e('0x8'),'content',_0x183e('0xc'),_0x183e('0xd'),_0x183e('0xe'),_0x183e('0xa')],'include':[{'model':_0x183e('0xb'),'as':_0x183e('0xb'),'attributes':['id',_0x183e('0x3')]}]},{'model':'FreshdeskField','as':'Fields','attributes':['id','type',_0x183e('0x9'),_0x183e('0xf'),_0x183e('0x10'),'customField',_0x183e('0xa')],'include':[{'model':_0x183e('0xb'),'as':_0x183e('0xb'),'attributes':['id','name']}]}]}]},'log':_0x183e('0x11')});};};