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