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 _0xdf42=['getFreshdeskAccounts','Request','GetFreshdeskAccount','username','apiKey','serverUrl','FreshdeskConfiguration','name','FreshdeskField','content','variableName','Variable','Descriptions','type','key','Fields','idField','nameField','customField'];(function(_0x1d9d12,_0x2c7d98){var _0x4f680e=function(_0x4e1bbb){while(--_0x4e1bbb){_0x1d9d12['push'](_0x1d9d12['shift']());}};_0x4f680e(++_0x2c7d98);}(_0xdf42,0x1ee));var _0x2df4=function(_0xaa0309,_0x1c8008){_0xaa0309=_0xaa0309-0x0;var _0x5de7ce=_0xdf42[_0xaa0309];return _0x5de7ce;};'use strict';var client=require('../../client');exports[_0x2df4('0x0')]=function(){return function(_0x3dd49b){return client[_0x2df4('0x1')](_0x2df4('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x2df4('0x3'),_0x2df4('0x4'),'remoteUri',_0x2df4('0x5')],'include':[{'model':_0x2df4('0x6'),'as':'Configurations','attributes':['id',_0x2df4('0x7')],'include':[{'model':'Tag','attributes':['id',_0x2df4('0x7')]},{'model':_0x2df4('0x8'),'as':'Subjects','attributes':['id','type',_0x2df4('0x9'),_0x2df4('0xa')],'include':[{'model':'Variable','as':_0x2df4('0xb'),'attributes':['id',_0x2df4('0x7')]}]},{'model':'FreshdeskField','as':_0x2df4('0xc'),'attributes':['id',_0x2df4('0xd'),_0x2df4('0x9'),_0x2df4('0xe'),'keyType','keyContent',_0x2df4('0xa')],'include':[{'model':_0x2df4('0xb'),'as':'Variable','attributes':['id',_0x2df4('0x7')]}]},{'model':_0x2df4('0x8'),'as':_0x2df4('0xf'),'attributes':['id','type',_0x2df4('0x9'),_0x2df4('0x10'),_0x2df4('0x11'),_0x2df4('0x12'),'variableName'],'include':[{'model':_0x2df4('0xb'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x2df4('0x2')});};};