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