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 _0x8e63=['serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type','content','Variable','Descriptions','keyType','variableName','GetFreshsalesccount','getFreshsalesAccounts','GetFreshsalesAccount','name','username'];(function(_0x7e2eb0,_0x17cd58){var _0xd92de4=function(_0x5d005b){while(--_0x5d005b){_0x7e2eb0['push'](_0x7e2eb0['shift']());}};_0xd92de4(++_0x17cd58);}(_0x8e63,0x7c));var _0x38e6=function(_0x3dcefe,_0x39b070){_0x3dcefe=_0x3dcefe-0x0;var _0x2880aa=_0x8e63[_0x3dcefe];return _0x2880aa;};'use strict';var client=require('../../client');exports[_0x38e6('0x0')]=function(){return function(_0x5221a4){return client['Request'](_0x38e6('0x1'),{'options':{'raw':![],'attributes':['id',_0x38e6('0x2'),_0x38e6('0x3'),'apiKey','remoteUri',_0x38e6('0x4')],'include':[{'model':_0x38e6('0x5'),'as':_0x38e6('0x6'),'attributes':['id','name'],'include':[{'model':_0x38e6('0x7'),'as':_0x38e6('0x8'),'attributes':['id',_0x38e6('0x9'),_0x38e6('0xa'),'variableName'],'include':[{'model':'Variable','as':_0x38e6('0xb'),'attributes':['id',_0x38e6('0x2')]}]},{'model':_0x38e6('0x7'),'as':_0x38e6('0xc'),'attributes':['id',_0x38e6('0x9'),'content','key',_0x38e6('0xd'),'keyContent',_0x38e6('0xe')],'include':[{'model':'Variable','as':_0x38e6('0xb'),'attributes':['id',_0x38e6('0x2')]}]}]}]},'log':_0x38e6('0xf')});};};