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 _0x2500=['getVtigerAccounts','Request','GetVtigerAccount','name','description','remoteUri','VtigerField','Subjects','type','Variable','Descriptions','content','keyType','keyContent','variableName','Fields','idField','customField','../../client'];(function(_0x5708ec,_0x24c825){var _0x27a5e9=function(_0x338836){while(--_0x338836){_0x5708ec['push'](_0x5708ec['shift']());}};_0x27a5e9(++_0x24c825);}(_0x2500,0x11c));var _0x0250=function(_0x36625f,_0x727bd6){_0x36625f=_0x36625f-0x0;var _0x135981=_0x2500[_0x36625f];return _0x135981;};'use strict';var client=require(_0x0250('0x0'));exports[_0x0250('0x1')]=function(){return function(_0x3c6272){return client[_0x0250('0x2')](_0x0250('0x3'),{'options':{'raw':![],'attributes':['id',_0x0250('0x4'),_0x0250('0x5'),'username','accessKey',_0x0250('0x6'),'serverUrl'],'include':[{'model':'VtigerConfiguration','as':'Configurations','attributes':['id',_0x0250('0x4')],'include':[{'model':_0x0250('0x7'),'as':_0x0250('0x8'),'attributes':['id',_0x0250('0x9'),'content','variableName'],'include':[{'model':_0x0250('0xa'),'as':_0x0250('0xa'),'attributes':['id',_0x0250('0x4')]}]},{'model':_0x0250('0x7'),'as':_0x0250('0xb'),'attributes':['id',_0x0250('0x9'),_0x0250('0xc'),'key',_0x0250('0xd'),_0x0250('0xe'),_0x0250('0xf')],'include':[{'model':_0x0250('0xa'),'as':'Variable','attributes':['id',_0x0250('0x4')]}]},{'model':_0x0250('0x7'),'as':_0x0250('0x10'),'attributes':['id','type','content',_0x0250('0x11'),'nameField',_0x0250('0x12'),_0x0250('0xf')],'include':[{'model':'Variable','as':_0x0250('0xa'),'attributes':['id',_0x0250('0x4')]}]}]}]},'log':_0x0250('0x3')});};};