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(_0x5d7227,_0x12aebe){var _0x15ac55=function(_0x58d13e){while(--_0x58d13e){_0x5d7227['push'](_0x5d7227['shift']());}};_0x15ac55(++_0x12aebe);}(_0x8e63,0x7c));var _0x38e6=function(_0x3cdc77,_0x32752a){_0x3cdc77=_0x3cdc77-0x0;var _0x5012d2=_0x8e63[_0x3cdc77];return _0x5012d2;};'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')});};};