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 _0x33ec=['name','username','password','serverUrl','SugarcrmConfiguration','SugarcrmField','Subjects','type','variableName','Variable','Descriptions','keyType','keyContent','Fields','content','customField','GetSugarcrmAccount','../../client','Request'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0x33ec,0x70));var _0xc33e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x33ec[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xc33e('0x0'));exports['getSugarcrmAccounts']=function(){return function(_0x407f35){return client[_0xc33e('0x1')]('GetSugarcrmAccount',{'options':{'raw':![],'attributes':['id',_0xc33e('0x2'),_0xc33e('0x3'),_0xc33e('0x4'),'remoteUri',_0xc33e('0x5')],'include':[{'model':_0xc33e('0x6'),'as':'Configurations','attributes':['id',_0xc33e('0x2')],'include':[{'model':_0xc33e('0x7'),'as':_0xc33e('0x8'),'attributes':['id',_0xc33e('0x9'),'content',_0xc33e('0xa')],'include':[{'model':_0xc33e('0xb'),'as':_0xc33e('0xb'),'attributes':['id','name']}]},{'model':'SugarcrmField','as':_0xc33e('0xc'),'attributes':['id',_0xc33e('0x9'),'content','key',_0xc33e('0xd'),_0xc33e('0xe'),_0xc33e('0xa')],'include':[{'model':_0xc33e('0xb'),'as':_0xc33e('0xb'),'attributes':['id',_0xc33e('0x2')]}]},{'model':_0xc33e('0x7'),'as':_0xc33e('0xf'),'attributes':['id',_0xc33e('0x9'),_0xc33e('0x10'),'idField','nameField',_0xc33e('0x11'),_0xc33e('0xa')],'include':[{'model':'Variable','as':_0xc33e('0xb'),'attributes':['id','name']}]}]}]},'log':_0xc33e('0x12')});};};