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