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