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 _0x4e5c=['Descriptions','keyType','keyContent','nameField','customField','../../client','GetFreshdeskAccount','name','username','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','content','variableName','Variable'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x4e5c,0x149));var _0xc4e5=function(_0x2d34d6,_0x397ff9){_0x2d34d6=_0x2d34d6-0x0;var _0x1d3d12=_0x4e5c[_0x2d34d6];return _0x1d3d12;};'use strict';var client=require(_0xc4e5('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x1cf8d8){return client['Request'](_0xc4e5('0x1'),{'options':{'raw':![],'attributes':['id',_0xc4e5('0x2'),_0xc4e5('0x3'),'apiKey','remoteUri','serverUrl'],'include':[{'model':_0xc4e5('0x4'),'as':_0xc4e5('0x5'),'attributes':['id',_0xc4e5('0x2')],'include':[{'model':_0xc4e5('0x6'),'attributes':['id',_0xc4e5('0x2')]},{'model':_0xc4e5('0x7'),'as':_0xc4e5('0x8'),'attributes':['id',_0xc4e5('0x9'),_0xc4e5('0xa'),_0xc4e5('0xb')],'include':[{'model':_0xc4e5('0xc'),'as':_0xc4e5('0xc'),'attributes':['id','name']}]},{'model':_0xc4e5('0x7'),'as':_0xc4e5('0xd'),'attributes':['id',_0xc4e5('0x9'),_0xc4e5('0xa'),'key',_0xc4e5('0xe'),_0xc4e5('0xf'),_0xc4e5('0xb')],'include':[{'model':_0xc4e5('0xc'),'as':_0xc4e5('0xc'),'attributes':['id',_0xc4e5('0x2')]}]},{'model':_0xc4e5('0x7'),'as':'Fields','attributes':['id','type',_0xc4e5('0xa'),'idField',_0xc4e5('0x10'),_0xc4e5('0x11'),_0xc4e5('0xb')],'include':[{'model':_0xc4e5('0xc'),'as':'Variable','attributes':['id',_0xc4e5('0x2')]}]}]}]},'log':'GetFreshdeskAccount'});};};