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 _0x85b5=['variableName','Variable','FreshsalesField','Descriptions','type','key','keyType','keyContent','../../client','getFreshsalesAccounts','Request','name','remoteUri','FreshsalesConfiguration','Configurations','Subjects','content'];(function(_0x1a6a25,_0x4962c8){var _0x245a74=function(_0x5a2b18){while(--_0x5a2b18){_0x1a6a25['push'](_0x1a6a25['shift']());}};_0x245a74(++_0x4962c8);}(_0x85b5,0x7f));var _0x585b=function(_0x4c3094,_0x2b92ff){_0x4c3094=_0x4c3094-0x0;var _0x22e0ab=_0x85b5[_0x4c3094];return _0x22e0ab;};'use strict';var client=require(_0x585b('0x0'));exports[_0x585b('0x1')]=function(){return function(_0x4df8b9){return client[_0x585b('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x585b('0x3'),'username','apiKey',_0x585b('0x4'),'serverUrl'],'include':[{'model':_0x585b('0x5'),'as':_0x585b('0x6'),'attributes':['id',_0x585b('0x3')],'include':[{'model':'FreshsalesField','as':_0x585b('0x7'),'attributes':['id','type',_0x585b('0x8'),_0x585b('0x9')],'include':[{'model':_0x585b('0xa'),'as':_0x585b('0xa'),'attributes':['id','name']}]},{'model':_0x585b('0xb'),'as':_0x585b('0xc'),'attributes':['id',_0x585b('0xd'),_0x585b('0x8'),_0x585b('0xe'),_0x585b('0xf'),_0x585b('0x10'),'variableName'],'include':[{'model':_0x585b('0xa'),'as':'Variable','attributes':['id',_0x585b('0x3')]}]}]}]},'log':'GetFreshsalesccount'});};};