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 _0x1224=['type','content','variableName','Variable','Descriptions','key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','apiKey','remoteUri','serverUrl','Configurations','FreshsalesField','Subjects'];(function(_0x179b53,_0x31f6fe){var _0x38a146=function(_0x33f0c2){while(--_0x33f0c2){_0x179b53['push'](_0x179b53['shift']());}};_0x38a146(++_0x31f6fe);}(_0x1224,0x10d));var _0x4122=function(_0x6522af,_0x200962){_0x6522af=_0x6522af-0x0;var _0x39f7de=_0x1224[_0x6522af];return _0x39f7de;};'use strict';var client=require(_0x4122('0x0'));exports[_0x4122('0x1')]=function(){return function(_0x23c391){return client[_0x4122('0x2')](_0x4122('0x3'),{'options':{'raw':![],'attributes':['id',_0x4122('0x4'),'username',_0x4122('0x5'),_0x4122('0x6'),_0x4122('0x7')],'include':[{'model':'FreshsalesConfiguration','as':_0x4122('0x8'),'attributes':['id',_0x4122('0x4')],'include':[{'model':_0x4122('0x9'),'as':_0x4122('0xa'),'attributes':['id',_0x4122('0xb'),_0x4122('0xc'),_0x4122('0xd')],'include':[{'model':_0x4122('0xe'),'as':_0x4122('0xe'),'attributes':['id',_0x4122('0x4')]}]},{'model':_0x4122('0x9'),'as':_0x4122('0xf'),'attributes':['id',_0x4122('0xb'),_0x4122('0xc'),_0x4122('0x10'),_0x4122('0x11'),_0x4122('0x12'),_0x4122('0xd')],'include':[{'model':_0x4122('0xe'),'as':_0x4122('0xe'),'attributes':['id',_0x4122('0x4')]}]}]}]},'log':_0x4122('0x13')});};};