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 _0x7276=['description','username','remoteUri','serverUrl','VtigerConfiguration','Subjects','type','content','variableName','Variable','VtigerField','key','keyType','Fields','idField','nameField','GetVtigerAccount','../../client','getVtigerAccounts','Request','name'];(function(_0x305ba9,_0x5aec3a){var _0x52a89f=function(_0x1b72ac){while(--_0x1b72ac){_0x305ba9['push'](_0x305ba9['shift']());}};_0x52a89f(++_0x5aec3a);}(_0x7276,0xa4));var _0x6727=function(_0x480215,_0x173278){_0x480215=_0x480215-0x0;var _0x23bc17=_0x7276[_0x480215];return _0x23bc17;};'use strict';var client=require(_0x6727('0x0'));exports[_0x6727('0x1')]=function(){return function(_0x570cee){return client[_0x6727('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0x6727('0x3'),_0x6727('0x4'),_0x6727('0x5'),'accessKey',_0x6727('0x6'),_0x6727('0x7')],'include':[{'model':_0x6727('0x8'),'as':'Configurations','attributes':['id',_0x6727('0x3')],'include':[{'model':'VtigerField','as':_0x6727('0x9'),'attributes':['id',_0x6727('0xa'),_0x6727('0xb'),_0x6727('0xc')],'include':[{'model':'Variable','as':_0x6727('0xd'),'attributes':['id',_0x6727('0x3')]}]},{'model':_0x6727('0xe'),'as':'Descriptions','attributes':['id','type',_0x6727('0xb'),_0x6727('0xf'),_0x6727('0x10'),'keyContent','variableName'],'include':[{'model':_0x6727('0xd'),'as':_0x6727('0xd'),'attributes':['id','name']}]},{'model':_0x6727('0xe'),'as':_0x6727('0x11'),'attributes':['id',_0x6727('0xa'),_0x6727('0xb'),_0x6727('0x12'),_0x6727('0x13'),'customField',_0x6727('0xc')],'include':[{'model':'Variable','as':_0x6727('0xd'),'attributes':['id',_0x6727('0x3')]}]}]}]},'log':_0x6727('0x14')});};};