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 _0x0e35=['key','keyType','keyContent','variableName','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','Configurations','type','content','Variable','FreshsalesField','Descriptions'];(function(_0x3e14e1,_0x34969e){var _0x3ac9ec=function(_0x57bd22){while(--_0x57bd22){_0x3e14e1['push'](_0x3e14e1['shift']());}};_0x3ac9ec(++_0x34969e);}(_0x0e35,0xc2));var _0x50e3=function(_0x277650,_0x258347){_0x277650=_0x277650-0x0;var _0x1dd51c=_0x0e35[_0x277650];return _0x1dd51c;};'use strict';var client=require(_0x50e3('0x0'));exports[_0x50e3('0x1')]=function(){return function(_0x792482){return client[_0x50e3('0x2')](_0x50e3('0x3'),{'options':{'raw':![],'attributes':['id',_0x50e3('0x4'),_0x50e3('0x5'),_0x50e3('0x6'),_0x50e3('0x7'),_0x50e3('0x8')],'include':[{'model':'FreshsalesConfiguration','as':_0x50e3('0x9'),'attributes':['id',_0x50e3('0x4')],'include':[{'model':'FreshsalesField','as':'Subjects','attributes':['id',_0x50e3('0xa'),_0x50e3('0xb'),'variableName'],'include':[{'model':'Variable','as':_0x50e3('0xc'),'attributes':['id',_0x50e3('0x4')]}]},{'model':_0x50e3('0xd'),'as':_0x50e3('0xe'),'attributes':['id',_0x50e3('0xa'),_0x50e3('0xb'),_0x50e3('0xf'),_0x50e3('0x10'),_0x50e3('0x11'),_0x50e3('0x12')],'include':[{'model':_0x50e3('0xc'),'as':_0x50e3('0xc'),'attributes':['id',_0x50e3('0x4')]}]}]}]},'log':'GetFreshsalesccount'});};};