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 _0x21a3=['../../client','Request','GetFreshsalesAccount','name','username','apiKey','FreshsalesConfiguration','Configurations','FreshsalesField','type','content','variableName','Variable','Descriptions','key','keyType','GetFreshsalesccount'];(function(_0x207140,_0x4c6556){var _0x39e8cf=function(_0x16b730){while(--_0x16b730){_0x207140['push'](_0x207140['shift']());}};_0x39e8cf(++_0x4c6556);}(_0x21a3,0x66));var _0x321a=function(_0x1b3a09,_0x20c774){_0x1b3a09=_0x1b3a09-0x0;var _0x357bb8=_0x21a3[_0x1b3a09];return _0x357bb8;};'use strict';var client=require(_0x321a('0x0'));exports['getFreshsalesAccounts']=function(){return function(_0x2b85b5){return client[_0x321a('0x1')](_0x321a('0x2'),{'options':{'raw':![],'attributes':['id',_0x321a('0x3'),_0x321a('0x4'),_0x321a('0x5'),'remoteUri','serverUrl'],'include':[{'model':_0x321a('0x6'),'as':_0x321a('0x7'),'attributes':['id',_0x321a('0x3')],'include':[{'model':_0x321a('0x8'),'as':'Subjects','attributes':['id',_0x321a('0x9'),_0x321a('0xa'),_0x321a('0xb')],'include':[{'model':_0x321a('0xc'),'as':_0x321a('0xc'),'attributes':['id',_0x321a('0x3')]}]},{'model':_0x321a('0x8'),'as':_0x321a('0xd'),'attributes':['id',_0x321a('0x9'),_0x321a('0xa'),_0x321a('0xe'),_0x321a('0xf'),'keyContent',_0x321a('0xb')],'include':[{'model':_0x321a('0xc'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x321a('0x10')});};};