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 _0x9f5a=['keyType','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','name','username','apiKey','serverUrl','Configurations','Subjects','type','content','variableName','Variable','Descriptions','key'];(function(_0x3c2d04,_0x364734){var _0x5415c2=function(_0x1091d5){while(--_0x1091d5){_0x3c2d04['push'](_0x3c2d04['shift']());}};_0x5415c2(++_0x364734);}(_0x9f5a,0xbd));var _0xa9f5=function(_0x7893c6,_0x1cf1e9){_0x7893c6=_0x7893c6-0x0;var _0x28aade=_0x9f5a[_0x7893c6];return _0x28aade;};'use strict';var client=require(_0xa9f5('0x0'));exports[_0xa9f5('0x1')]=function(){return function(_0x218f89){return client[_0xa9f5('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0xa9f5('0x3'),_0xa9f5('0x4'),_0xa9f5('0x5'),'remoteUri',_0xa9f5('0x6')],'include':[{'model':'FreshsalesConfiguration','as':_0xa9f5('0x7'),'attributes':['id',_0xa9f5('0x3')],'include':[{'model':'FreshsalesField','as':_0xa9f5('0x8'),'attributes':['id',_0xa9f5('0x9'),_0xa9f5('0xa'),_0xa9f5('0xb')],'include':[{'model':_0xa9f5('0xc'),'as':_0xa9f5('0xc'),'attributes':['id',_0xa9f5('0x3')]}]},{'model':'FreshsalesField','as':_0xa9f5('0xd'),'attributes':['id',_0xa9f5('0x9'),'content',_0xa9f5('0xe'),_0xa9f5('0xf'),'keyContent','variableName'],'include':[{'model':_0xa9f5('0xc'),'as':_0xa9f5('0xc'),'attributes':['id',_0xa9f5('0x3')]}]}]}]},'log':_0xa9f5('0x10')});};};