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