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