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 _0x1619=['Subjects','type','variableName','Variable','FreshdeskField','Descriptions','content','key','keyType','keyContent','idField','nameField','customField','GetFreshdeskAccount','name','username','remoteUri','FreshdeskConfiguration','Tag'];(function(_0x38e870,_0x3d2e6a){var _0x2dabbe=function(_0x3ddea3){while(--_0x3ddea3){_0x38e870['push'](_0x38e870['shift']());}};_0x2dabbe(++_0x3d2e6a);}(_0x1619,0x189));var _0x9161=function(_0x1f1526,_0x689173){_0x1f1526=_0x1f1526-0x0;var _0x386d27=_0x1619[_0x1f1526];return _0x386d27;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x84b42c){return client['Request'](_0x9161('0x0'),{'options':{'raw':![],'attributes':['id',_0x9161('0x1'),_0x9161('0x2'),'apiKey',_0x9161('0x3'),'serverUrl'],'include':[{'model':_0x9161('0x4'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x9161('0x5'),'attributes':['id',_0x9161('0x1')]},{'model':'FreshdeskField','as':_0x9161('0x6'),'attributes':['id',_0x9161('0x7'),'content',_0x9161('0x8')],'include':[{'model':'Variable','as':_0x9161('0x9'),'attributes':['id','name']}]},{'model':_0x9161('0xa'),'as':_0x9161('0xb'),'attributes':['id',_0x9161('0x7'),_0x9161('0xc'),_0x9161('0xd'),_0x9161('0xe'),_0x9161('0xf'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x9161('0xa'),'as':'Fields','attributes':['id',_0x9161('0x7'),_0x9161('0xc'),_0x9161('0x10'),_0x9161('0x11'),_0x9161('0x12'),_0x9161('0x8')],'include':[{'model':_0x9161('0x9'),'as':_0x9161('0x9'),'attributes':['id','name']}]}]}]},'log':_0x9161('0x0')});};};