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 _0x4b49=['VtigerField','Subjects','type','variableName','Variable','Descriptions','key','keyType','content','idField','customField','GetVtigerAccount','../../client','getVtigerAccounts','Request','name','username','remoteUri','VtigerConfiguration','Configurations'];(function(_0x218913,_0xc61242){var _0xf11a2a=function(_0x2667bf){while(--_0x2667bf){_0x218913['push'](_0x218913['shift']());}};_0xf11a2a(++_0xc61242);}(_0x4b49,0x138));var _0x94b4=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x4b49[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0x94b4('0x0'));exports[_0x94b4('0x1')]=function(){return function(_0x86a648){return client[_0x94b4('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0x94b4('0x3'),'description',_0x94b4('0x4'),'accessKey',_0x94b4('0x5'),'serverUrl'],'include':[{'model':_0x94b4('0x6'),'as':_0x94b4('0x7'),'attributes':['id',_0x94b4('0x3')],'include':[{'model':_0x94b4('0x8'),'as':_0x94b4('0x9'),'attributes':['id',_0x94b4('0xa'),'content',_0x94b4('0xb')],'include':[{'model':_0x94b4('0xc'),'as':_0x94b4('0xc'),'attributes':['id',_0x94b4('0x3')]}]},{'model':'VtigerField','as':_0x94b4('0xd'),'attributes':['id','type','content',_0x94b4('0xe'),_0x94b4('0xf'),'keyContent',_0x94b4('0xb')],'include':[{'model':_0x94b4('0xc'),'as':'Variable','attributes':['id',_0x94b4('0x3')]}]},{'model':_0x94b4('0x8'),'as':'Fields','attributes':['id','type',_0x94b4('0x10'),_0x94b4('0x11'),'nameField',_0x94b4('0x12'),'variableName'],'include':[{'model':_0x94b4('0xc'),'as':_0x94b4('0xc'),'attributes':['id',_0x94b4('0x3')]}]}]}]},'log':_0x94b4('0x13')});};};