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 _0xd138=['../../client','getFreshsalesAccounts','username','serverUrl','type','content','variableName','Variable','FreshsalesField','Descriptions','key','keyType','keyContent','name'];(function(_0x207630,_0x355f5e){var _0x2bd94f=function(_0x11c531){while(--_0x11c531){_0x207630['push'](_0x207630['shift']());}};_0x2bd94f(++_0x355f5e);}(_0xd138,0x1dc));var _0x8d13=function(_0x38894d,_0x1883d8){_0x38894d=_0x38894d-0x0;var _0x5614fe=_0xd138[_0x38894d];return _0x5614fe;};'use strict';var client=require(_0x8d13('0x0'));exports[_0x8d13('0x1')]=function(){return function(_0x12ccbb){return client['Request']('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id','name',_0x8d13('0x2'),'apiKey','remoteUri',_0x8d13('0x3')],'include':[{'model':'FreshsalesConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':'FreshsalesField','as':'Subjects','attributes':['id',_0x8d13('0x4'),_0x8d13('0x5'),_0x8d13('0x6')],'include':[{'model':'Variable','as':_0x8d13('0x7'),'attributes':['id','name']}]},{'model':_0x8d13('0x8'),'as':_0x8d13('0x9'),'attributes':['id','type','content',_0x8d13('0xa'),_0x8d13('0xb'),_0x8d13('0xc'),'variableName'],'include':[{'model':_0x8d13('0x7'),'as':_0x8d13('0x7'),'attributes':['id',_0x8d13('0xd')]}]}]}]},'log':'GetFreshsalesccount'});};};