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