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 _0x90b5=['FreshsalesField','type','content','variableName','Variable','Descriptions','key','keyType','GetFreshsalesccount','../../client','Request','GetFreshsalesAccount','name','remoteUri','serverUrl','Configurations'];(function(_0x52be26,_0x1ca77c){var _0xf5d1a8=function(_0x5426a3){while(--_0x5426a3){_0x52be26['push'](_0x52be26['shift']());}};_0xf5d1a8(++_0x1ca77c);}(_0x90b5,0x139));var _0x590b=function(_0x37557d,_0x5004bf){_0x37557d=_0x37557d-0x0;var _0x1c7ddc=_0x90b5[_0x37557d];return _0x1c7ddc;};'use strict';var client=require(_0x590b('0x0'));exports['getFreshsalesAccounts']=function(){return function(_0x3f8e11){return client[_0x590b('0x1')](_0x590b('0x2'),{'options':{'raw':![],'attributes':['id',_0x590b('0x3'),'username','apiKey',_0x590b('0x4'),_0x590b('0x5')],'include':[{'model':'FreshsalesConfiguration','as':_0x590b('0x6'),'attributes':['id',_0x590b('0x3')],'include':[{'model':_0x590b('0x7'),'as':'Subjects','attributes':['id',_0x590b('0x8'),_0x590b('0x9'),_0x590b('0xa')],'include':[{'model':_0x590b('0xb'),'as':_0x590b('0xb'),'attributes':['id',_0x590b('0x3')]}]},{'model':_0x590b('0x7'),'as':_0x590b('0xc'),'attributes':['id',_0x590b('0x8'),'content',_0x590b('0xd'),_0x590b('0xe'),'keyContent',_0x590b('0xa')],'include':[{'model':'Variable','as':_0x590b('0xb'),'attributes':['id',_0x590b('0x3')]}]}]}]},'log':_0x590b('0xf')});};};