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 _0x8ca9=['key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','serverUrl','Configurations','FreshsalesField','Subjects','type','content','variableName','Variable','Descriptions'];(function(_0x113dd2,_0xcf5a46){var _0x3bdbcf=function(_0x2c0e7e){while(--_0x2c0e7e){_0x113dd2['push'](_0x113dd2['shift']());}};_0x3bdbcf(++_0xcf5a46);}(_0x8ca9,0x9c));var _0x98ca=function(_0x58ae9f,_0xcaa7d7){_0x58ae9f=_0x58ae9f-0x0;var _0x4c966d=_0x8ca9[_0x58ae9f];return _0x4c966d;};'use strict';var client=require(_0x98ca('0x0'));exports[_0x98ca('0x1')]=function(){return function(_0x3acd03){return client[_0x98ca('0x2')](_0x98ca('0x3'),{'options':{'raw':![],'attributes':['id',_0x98ca('0x4'),_0x98ca('0x5'),'apiKey','remoteUri',_0x98ca('0x6')],'include':[{'model':'FreshsalesConfiguration','as':_0x98ca('0x7'),'attributes':['id','name'],'include':[{'model':_0x98ca('0x8'),'as':_0x98ca('0x9'),'attributes':['id',_0x98ca('0xa'),_0x98ca('0xb'),_0x98ca('0xc')],'include':[{'model':_0x98ca('0xd'),'as':_0x98ca('0xd'),'attributes':['id',_0x98ca('0x4')]}]},{'model':_0x98ca('0x8'),'as':_0x98ca('0xe'),'attributes':['id',_0x98ca('0xa'),_0x98ca('0xb'),_0x98ca('0xf'),_0x98ca('0x10'),_0x98ca('0x11'),_0x98ca('0xc')],'include':[{'model':_0x98ca('0xd'),'as':_0x98ca('0xd'),'attributes':['id','name']}]}]}]},'log':_0x98ca('0x12')});};};