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 _0xbf62=['Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','Tag','FreshdeskField','Subjects','type','variableName','Variable','Descriptions','content','keyType','idField','nameField','customField'];(function(_0x3a3f0c,_0x174f79){var _0x184722=function(_0x4fb5c3){while(--_0x4fb5c3){_0x3a3f0c['push'](_0x3a3f0c['shift']());}};_0x184722(++_0x174f79);}(_0xbf62,0xbe));var _0x2bf6=function(_0x28fa6f,_0x1b22ac){_0x28fa6f=_0x28fa6f-0x0;var _0x1ae01b=_0xbf62[_0x28fa6f];return _0x1ae01b;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x4b484b){return client[_0x2bf6('0x0')](_0x2bf6('0x1'),{'options':{'raw':![],'attributes':['id',_0x2bf6('0x2'),_0x2bf6('0x3'),_0x2bf6('0x4'),_0x2bf6('0x5'),_0x2bf6('0x6')],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id',_0x2bf6('0x2')],'include':[{'model':_0x2bf6('0x7'),'attributes':['id',_0x2bf6('0x2')]},{'model':_0x2bf6('0x8'),'as':_0x2bf6('0x9'),'attributes':['id',_0x2bf6('0xa'),'content',_0x2bf6('0xb')],'include':[{'model':_0x2bf6('0xc'),'as':_0x2bf6('0xc'),'attributes':['id','name']}]},{'model':_0x2bf6('0x8'),'as':_0x2bf6('0xd'),'attributes':['id','type',_0x2bf6('0xe'),'key',_0x2bf6('0xf'),'keyContent',_0x2bf6('0xb')],'include':[{'model':_0x2bf6('0xc'),'as':'Variable','attributes':['id',_0x2bf6('0x2')]}]},{'model':'FreshdeskField','as':'Fields','attributes':['id',_0x2bf6('0xa'),'content',_0x2bf6('0x10'),_0x2bf6('0x11'),_0x2bf6('0x12'),_0x2bf6('0xb')],'include':[{'model':_0x2bf6('0xc'),'as':'Variable','attributes':['id',_0x2bf6('0x2')]}]}]}]},'log':_0x2bf6('0x1')});};};