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 _0xacf4=['Configurations','FreshsalesField','Subjects','type','content','variableName','Descriptions','keyType','keyContent','Variable','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','FreshsalesConfiguration'];(function(_0x19078c,_0x257e7d){var _0xd1b319=function(_0x3bdced){while(--_0x3bdced){_0x19078c['push'](_0x19078c['shift']());}};_0xd1b319(++_0x257e7d);}(_0xacf4,0xe7));var _0x4acf=function(_0x348efb,_0x3fdb02){_0x348efb=_0x348efb-0x0;var _0x3f7332=_0xacf4[_0x348efb];return _0x3f7332;};'use strict';var client=require('../../client');exports['getFreshsalesAccounts']=function(){return function(_0x867c40){return client[_0x4acf('0x0')](_0x4acf('0x1'),{'options':{'raw':![],'attributes':['id',_0x4acf('0x2'),_0x4acf('0x3'),_0x4acf('0x4'),_0x4acf('0x5'),'serverUrl'],'include':[{'model':_0x4acf('0x6'),'as':_0x4acf('0x7'),'attributes':['id','name'],'include':[{'model':_0x4acf('0x8'),'as':_0x4acf('0x9'),'attributes':['id',_0x4acf('0xa'),_0x4acf('0xb'),_0x4acf('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x4acf('0x2')]}]},{'model':'FreshsalesField','as':_0x4acf('0xd'),'attributes':['id',_0x4acf('0xa'),_0x4acf('0xb'),'key',_0x4acf('0xe'),_0x4acf('0xf'),'variableName'],'include':[{'model':'Variable','as':_0x4acf('0x10'),'attributes':['id','name']}]}]}]},'log':'GetFreshsalesccount'});};};