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 _0x0384=['GetSugarcrmAccount','name','remoteUri','serverUrl','SugarcrmConfiguration','Configurations','Subjects','type','variableName','Variable','SugarcrmField','Descriptions','content','key','keyType','keyContent','nameField','customField','../../client','Request'];(function(_0x592fe4,_0xa3d75d){var _0x48b30c=function(_0x4a29da){while(--_0x4a29da){_0x592fe4['push'](_0x592fe4['shift']());}};_0x48b30c(++_0xa3d75d);}(_0x0384,0xb2));var _0x4038=function(_0x4da349,_0x3c9a1f){_0x4da349=_0x4da349-0x0;var _0x5e7a14=_0x0384[_0x4da349];return _0x5e7a14;};'use strict';var client=require(_0x4038('0x0'));exports['getSugarcrmAccounts']=function(){return function(_0x50d22c){return client[_0x4038('0x1')](_0x4038('0x2'),{'options':{'raw':![],'attributes':['id',_0x4038('0x3'),'username','password',_0x4038('0x4'),_0x4038('0x5')],'include':[{'model':_0x4038('0x6'),'as':_0x4038('0x7'),'attributes':['id',_0x4038('0x3')],'include':[{'model':'SugarcrmField','as':_0x4038('0x8'),'attributes':['id',_0x4038('0x9'),'content',_0x4038('0xa')],'include':[{'model':_0x4038('0xb'),'as':_0x4038('0xb'),'attributes':['id',_0x4038('0x3')]}]},{'model':_0x4038('0xc'),'as':_0x4038('0xd'),'attributes':['id',_0x4038('0x9'),_0x4038('0xe'),_0x4038('0xf'),_0x4038('0x10'),_0x4038('0x11'),'variableName'],'include':[{'model':'Variable','as':_0x4038('0xb'),'attributes':['id',_0x4038('0x3')]}]},{'model':_0x4038('0xc'),'as':'Fields','attributes':['id',_0x4038('0x9'),'content','idField',_0x4038('0x12'),_0x4038('0x13'),_0x4038('0xa')],'include':[{'model':'Variable','as':_0x4038('0xb'),'attributes':['id',_0x4038('0x3')]}]}]}]},'log':_0x4038('0x2')});};};