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