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 _0x2fa3=['name','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','GetSugarcrmAccount','Request','username','password','remoteUri','serverUrl','SugarcrmConfiguration','Configurations','SugarcrmField','Subjects','type','content','variableName','Variable'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x2fa3,0x135));var _0x32fa=function(_0x413704,_0x3cd840){_0x413704=_0x413704-0x0;var _0x19695a=_0x2fa3[_0x413704];return _0x19695a;};'use strict';var client=require('../../client');exports['getSugarcrmAccounts']=function(){return function(_0x1e697f){return client[_0x32fa('0x0')]('GetSugarcrmAccount',{'options':{'raw':![],'attributes':['id','name',_0x32fa('0x1'),_0x32fa('0x2'),_0x32fa('0x3'),_0x32fa('0x4')],'include':[{'model':_0x32fa('0x5'),'as':_0x32fa('0x6'),'attributes':['id','name'],'include':[{'model':_0x32fa('0x7'),'as':_0x32fa('0x8'),'attributes':['id',_0x32fa('0x9'),_0x32fa('0xa'),_0x32fa('0xb')],'include':[{'model':'Variable','as':_0x32fa('0xc'),'attributes':['id',_0x32fa('0xd')]}]},{'model':'SugarcrmField','as':_0x32fa('0xe'),'attributes':['id','type',_0x32fa('0xa'),_0x32fa('0xf'),_0x32fa('0x10'),_0x32fa('0x11'),_0x32fa('0xb')],'include':[{'model':_0x32fa('0xc'),'as':_0x32fa('0xc'),'attributes':['id',_0x32fa('0xd')]}]},{'model':_0x32fa('0x7'),'as':_0x32fa('0x12'),'attributes':['id',_0x32fa('0x9'),_0x32fa('0xa'),_0x32fa('0x13'),_0x32fa('0x14'),_0x32fa('0x15'),_0x32fa('0xb')],'include':[{'model':_0x32fa('0xc'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x32fa('0x16')});};};