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 _0xc36d=['getFreshsalesAccounts','Request','GetFreshsalesAccount','name','apiKey','remoteUri','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','content','variableName','Variable','Descriptions','key','keyType','GetFreshsalesccount','../../client'];(function(_0x748b4f,_0x2c6066){var _0x3845f2=function(_0x202e44){while(--_0x202e44){_0x748b4f['push'](_0x748b4f['shift']());}};_0x3845f2(++_0x2c6066);}(_0xc36d,0x7d));var _0xdc36=function(_0xc0921a,_0x1f107f){_0xc0921a=_0xc0921a-0x0;var _0x3f6189=_0xc36d[_0xc0921a];return _0x3f6189;};'use strict';var client=require(_0xdc36('0x0'));exports[_0xdc36('0x1')]=function(){return function(_0x2d50af){return client[_0xdc36('0x2')](_0xdc36('0x3'),{'options':{'raw':![],'attributes':['id',_0xdc36('0x4'),'username',_0xdc36('0x5'),_0xdc36('0x6'),'serverUrl'],'include':[{'model':_0xdc36('0x7'),'as':_0xdc36('0x8'),'attributes':['id',_0xdc36('0x4')],'include':[{'model':_0xdc36('0x9'),'as':_0xdc36('0xa'),'attributes':['id','type',_0xdc36('0xb'),_0xdc36('0xc')],'include':[{'model':_0xdc36('0xd'),'as':_0xdc36('0xd'),'attributes':['id','name']}]},{'model':_0xdc36('0x9'),'as':_0xdc36('0xe'),'attributes':['id','type',_0xdc36('0xb'),_0xdc36('0xf'),_0xdc36('0x10'),'keyContent',_0xdc36('0xc')],'include':[{'model':_0xdc36('0xd'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xdc36('0x11')});};};