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 _0x2c6a=['name','Descriptions','key','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','username','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','Subjects','type','content','variableName','Variable'];(function(_0x48603a,_0x5c07ce){var _0x19f559=function(_0x10eb1b){while(--_0x10eb1b){_0x48603a['push'](_0x48603a['shift']());}};_0x19f559(++_0x5c07ce);}(_0x2c6a,0xa7));var _0xa2c6=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2c6a[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0xa2c6('0x0'));exports[_0xa2c6('0x1')]=function(){return function(_0x1c6627){return client[_0xa2c6('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id','name',_0xa2c6('0x3'),'apiKey',_0xa2c6('0x4'),_0xa2c6('0x5')],'include':[{'model':_0xa2c6('0x6'),'as':_0xa2c6('0x7'),'attributes':['id','name'],'include':[{'model':'FreshsalesField','as':_0xa2c6('0x8'),'attributes':['id',_0xa2c6('0x9'),_0xa2c6('0xa'),_0xa2c6('0xb')],'include':[{'model':_0xa2c6('0xc'),'as':_0xa2c6('0xc'),'attributes':['id',_0xa2c6('0xd')]}]},{'model':'FreshsalesField','as':_0xa2c6('0xe'),'attributes':['id',_0xa2c6('0x9'),_0xa2c6('0xa'),_0xa2c6('0xf'),'keyType',_0xa2c6('0x10'),'variableName'],'include':[{'model':_0xa2c6('0xc'),'as':_0xa2c6('0xc'),'attributes':['id',_0xa2c6('0xd')]}]}]}]},'log':_0xa2c6('0x11')});};};