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 _0xe626=['name','username','apiKey','remoteUri','serverUrl','FreshsalesField','Subjects','content','variableName','Variable','Descriptions','keyType','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request'];(function(_0x385c76,_0xb97335){var _0x5c8367=function(_0xdfcd3){while(--_0xdfcd3){_0x385c76['push'](_0x385c76['shift']());}};_0x5c8367(++_0xb97335);}(_0xe626,0x9d));var _0x6e62=function(_0x5cfd7d,_0x48813e){_0x5cfd7d=_0x5cfd7d-0x0;var _0x53a82a=_0xe626[_0x5cfd7d];return _0x53a82a;};'use strict';var client=require(_0x6e62('0x0'));exports[_0x6e62('0x1')]=function(){return function(_0x14eb81){return client[_0x6e62('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x6e62('0x3'),_0x6e62('0x4'),_0x6e62('0x5'),_0x6e62('0x6'),_0x6e62('0x7')],'include':[{'model':'FreshsalesConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0x6e62('0x8'),'as':_0x6e62('0x9'),'attributes':['id','type',_0x6e62('0xa'),_0x6e62('0xb')],'include':[{'model':_0x6e62('0xc'),'as':_0x6e62('0xc'),'attributes':['id','name']}]},{'model':_0x6e62('0x8'),'as':_0x6e62('0xd'),'attributes':['id','type',_0x6e62('0xa'),'key',_0x6e62('0xe'),'keyContent',_0x6e62('0xb')],'include':[{'model':'Variable','as':_0x6e62('0xc'),'attributes':['id',_0x6e62('0x3')]}]}]}]},'log':_0x6e62('0xf')});};};