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