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 _0xbf5c=['name','username','remoteUri','serverUrl','Configurations','FreshsalesField','type','content','Variable','key','keyType','keyContent','variableName','GetFreshsalesccount','../../client','getFreshsalesAccounts','GetFreshsalesAccount'];(function(_0x39df91,_0x985952){var _0x3f721c=function(_0x4c2164){while(--_0x4c2164){_0x39df91['push'](_0x39df91['shift']());}};_0x3f721c(++_0x985952);}(_0xbf5c,0xb8));var _0xcbf5=function(_0x3240bd,_0x2e4dea){_0x3240bd=_0x3240bd-0x0;var _0x2b950d=_0xbf5c[_0x3240bd];return _0x2b950d;};'use strict';var client=require(_0xcbf5('0x0'));exports[_0xcbf5('0x1')]=function(){return function(_0x20db36){return client['Request'](_0xcbf5('0x2'),{'options':{'raw':![],'attributes':['id',_0xcbf5('0x3'),_0xcbf5('0x4'),'apiKey',_0xcbf5('0x5'),_0xcbf5('0x6')],'include':[{'model':'FreshsalesConfiguration','as':_0xcbf5('0x7'),'attributes':['id',_0xcbf5('0x3')],'include':[{'model':_0xcbf5('0x8'),'as':'Subjects','attributes':['id',_0xcbf5('0x9'),_0xcbf5('0xa'),'variableName'],'include':[{'model':'Variable','as':_0xcbf5('0xb'),'attributes':['id',_0xcbf5('0x3')]}]},{'model':_0xcbf5('0x8'),'as':'Descriptions','attributes':['id',_0xcbf5('0x9'),_0xcbf5('0xa'),_0xcbf5('0xc'),_0xcbf5('0xd'),_0xcbf5('0xe'),_0xcbf5('0xf')],'include':[{'model':'Variable','as':_0xcbf5('0xb'),'attributes':['id',_0xcbf5('0x3')]}]}]}]},'log':_0xcbf5('0x10')});};};