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 _0xa498=['keyContent','GetFreshsalesccount','getFreshsalesAccounts','name','username','apiKey','remoteUri','serverUrl','Configurations','FreshsalesField','Subjects','type','variableName','Variable','Descriptions','content','key','keyType'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xa498,0x1d6));var _0x8a49=function(_0x33e4a7,_0x2e80a2){_0x33e4a7=_0x33e4a7-0x0;var _0x598620=_0xa498[_0x33e4a7];return _0x598620;};'use strict';var client=require('../../client');exports[_0x8a49('0x0')]=function(){return function(_0xafd977){return client['Request']('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x8a49('0x1'),_0x8a49('0x2'),_0x8a49('0x3'),_0x8a49('0x4'),_0x8a49('0x5')],'include':[{'model':'FreshsalesConfiguration','as':_0x8a49('0x6'),'attributes':['id','name'],'include':[{'model':_0x8a49('0x7'),'as':_0x8a49('0x8'),'attributes':['id',_0x8a49('0x9'),'content',_0x8a49('0xa')],'include':[{'model':_0x8a49('0xb'),'as':_0x8a49('0xb'),'attributes':['id',_0x8a49('0x1')]}]},{'model':_0x8a49('0x7'),'as':_0x8a49('0xc'),'attributes':['id','type',_0x8a49('0xd'),_0x8a49('0xe'),_0x8a49('0xf'),_0x8a49('0x10'),_0x8a49('0xa')],'include':[{'model':_0x8a49('0xb'),'as':_0x8a49('0xb'),'attributes':['id',_0x8a49('0x1')]}]}]}]},'log':_0x8a49('0x11')});};};