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 _0xb98f=['remoteUri','serverUrl','SugarcrmConfiguration','Configurations','SugarcrmField','Subjects','content','Descriptions','type','keyType','variableName','Variable','name','Fields','idField','nameField','customField','../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount'];(function(_0x3171e7,_0x269bba){var _0x3a3da8=function(_0x4ca5ca){while(--_0x4ca5ca){_0x3171e7['push'](_0x3171e7['shift']());}};_0x3a3da8(++_0x269bba);}(_0xb98f,0xce));var _0xfb98=function(_0x1b8692,_0x3edbae){_0x1b8692=_0x1b8692-0x0;var _0x2b16df=_0xb98f[_0x1b8692];return _0x2b16df;};'use strict';var client=require(_0xfb98('0x0'));exports[_0xfb98('0x1')]=function(){return function(_0x41d01a){return client[_0xfb98('0x2')](_0xfb98('0x3'),{'options':{'raw':![],'attributes':['id','name','username','password',_0xfb98('0x4'),_0xfb98('0x5')],'include':[{'model':_0xfb98('0x6'),'as':_0xfb98('0x7'),'attributes':['id','name'],'include':[{'model':_0xfb98('0x8'),'as':_0xfb98('0x9'),'attributes':['id','type',_0xfb98('0xa'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':'SugarcrmField','as':_0xfb98('0xb'),'attributes':['id',_0xfb98('0xc'),'content','key',_0xfb98('0xd'),'keyContent',_0xfb98('0xe')],'include':[{'model':_0xfb98('0xf'),'as':_0xfb98('0xf'),'attributes':['id',_0xfb98('0x10')]}]},{'model':_0xfb98('0x8'),'as':_0xfb98('0x11'),'attributes':['id',_0xfb98('0xc'),_0xfb98('0xa'),_0xfb98('0x12'),_0xfb98('0x13'),_0xfb98('0x14'),_0xfb98('0xe')],'include':[{'model':_0xfb98('0xf'),'as':_0xfb98('0xf'),'attributes':['id','name']}]}]}]},'log':_0xfb98('0x3')});};};