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 _0xdd4b=['GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','username','apiKey','remoteUri','serverUrl','Configurations','content','variableName','Variable','Descriptions','type','key','keyType','FreshdeskField','idField','nameField','customField'];(function(_0x1ff58e,_0x59883f){var _0x365452=function(_0x4c1f95){while(--_0x4c1f95){_0x1ff58e['push'](_0x1ff58e['shift']());}};_0x365452(++_0x59883f);}(_0xdd4b,0x17b));var _0xbdd4=function(_0x53ccf2,_0x13cb67){_0x53ccf2=_0x53ccf2-0x0;var _0x5a2964=_0xdd4b[_0x53ccf2];return _0x5a2964;};'use strict';var client=require(_0xbdd4('0x0'));exports[_0xbdd4('0x1')]=function(){return function(_0x5d21c9){return client[_0xbdd4('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xbdd4('0x3'),_0xbdd4('0x4'),_0xbdd4('0x5'),_0xbdd4('0x6'),_0xbdd4('0x7')],'include':[{'model':'FreshdeskConfiguration','as':_0xbdd4('0x8'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0xbdd4('0x3')]},{'model':'FreshdeskField','as':'Subjects','attributes':['id','type',_0xbdd4('0x9'),_0xbdd4('0xa')],'include':[{'model':_0xbdd4('0xb'),'as':_0xbdd4('0xb'),'attributes':['id',_0xbdd4('0x3')]}]},{'model':'FreshdeskField','as':_0xbdd4('0xc'),'attributes':['id',_0xbdd4('0xd'),_0xbdd4('0x9'),_0xbdd4('0xe'),_0xbdd4('0xf'),'keyContent',_0xbdd4('0xa')],'include':[{'model':_0xbdd4('0xb'),'as':_0xbdd4('0xb'),'attributes':['id','name']}]},{'model':_0xbdd4('0x10'),'as':'Fields','attributes':['id',_0xbdd4('0xd'),'content',_0xbdd4('0x11'),_0xbdd4('0x12'),_0xbdd4('0x13'),'variableName'],'include':[{'model':_0xbdd4('0xb'),'as':_0xbdd4('0xb'),'attributes':['id',_0xbdd4('0x3')]}]}]}]},'log':_0xbdd4('0x14')});};};