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 _0x39e6=['username','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type','content','variableName','Variable','Descriptions','key','GetFreshsalesccount','../../client','name'];(function(_0x1fc0f2,_0x557517){var _0x5a3eef=function(_0x3e301d){while(--_0x3e301d){_0x1fc0f2['push'](_0x1fc0f2['shift']());}};_0x5a3eef(++_0x557517);}(_0x39e6,0x9e));var _0x639e=function(_0x2a502c,_0x67f79){_0x2a502c=_0x2a502c-0x0;var _0x33cc8a=_0x39e6[_0x2a502c];return _0x33cc8a;};'use strict';var client=require(_0x639e('0x0'));exports['getFreshsalesAccounts']=function(){return function(_0x2b265a){return client['Request']('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x639e('0x1'),_0x639e('0x2'),'apiKey',_0x639e('0x3'),_0x639e('0x4')],'include':[{'model':_0x639e('0x5'),'as':_0x639e('0x6'),'attributes':['id',_0x639e('0x1')],'include':[{'model':_0x639e('0x7'),'as':_0x639e('0x8'),'attributes':['id',_0x639e('0x9'),_0x639e('0xa'),_0x639e('0xb')],'include':[{'model':_0x639e('0xc'),'as':_0x639e('0xc'),'attributes':['id',_0x639e('0x1')]}]},{'model':_0x639e('0x7'),'as':_0x639e('0xd'),'attributes':['id',_0x639e('0x9'),_0x639e('0xa'),_0x639e('0xe'),'keyType','keyContent',_0x639e('0xb')],'include':[{'model':_0x639e('0xc'),'as':_0x639e('0xc'),'attributes':['id',_0x639e('0x1')]}]}]}]},'log':_0x639e('0xf')});};};