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 _0xa46e=['serverUrl','Configurations','FreshsalesField','Subjects','content','variableName','Variable','key','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','apiKey'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xa46e,0x8a));var _0xea46=function(_0xc55d64,_0x133f2d){_0xc55d64=_0xc55d64-0x0;var _0x4194f6=_0xa46e[_0xc55d64];return _0x4194f6;};'use strict';var client=require(_0xea46('0x0'));exports[_0xea46('0x1')]=function(){return function(_0x5c746c){return client[_0xea46('0x2')](_0xea46('0x3'),{'options':{'raw':![],'attributes':['id',_0xea46('0x4'),'username',_0xea46('0x5'),'remoteUri',_0xea46('0x6')],'include':[{'model':'FreshsalesConfiguration','as':_0xea46('0x7'),'attributes':['id','name'],'include':[{'model':_0xea46('0x8'),'as':_0xea46('0x9'),'attributes':['id','type',_0xea46('0xa'),_0xea46('0xb')],'include':[{'model':_0xea46('0xc'),'as':_0xea46('0xc'),'attributes':['id',_0xea46('0x4')]}]},{'model':'FreshsalesField','as':'Descriptions','attributes':['id','type',_0xea46('0xa'),_0xea46('0xd'),'keyType',_0xea46('0xe'),_0xea46('0xb')],'include':[{'model':_0xea46('0xc'),'as':'Variable','attributes':['id',_0xea46('0x4')]}]}]}]},'log':_0xea46('0xf')});};};