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 _0x6b20=['variableName','Variable','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','name','username','apiKey','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type'];(function(_0x1f46ae,_0x581934){var _0x55d438=function(_0x7e22f8){while(--_0x7e22f8){_0x1f46ae['push'](_0x1f46ae['shift']());}};_0x55d438(++_0x581934);}(_0x6b20,0xd1));var _0x06b2=function(_0x14dae2,_0x10b4e7){_0x14dae2=_0x14dae2-0x0;var _0x295faa=_0x6b20[_0x14dae2];return _0x295faa;};'use strict';var client=require(_0x06b2('0x0'));exports[_0x06b2('0x1')]=function(){return function(_0x52753b){return client[_0x06b2('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x06b2('0x3'),_0x06b2('0x4'),_0x06b2('0x5'),'remoteUri',_0x06b2('0x6')],'include':[{'model':_0x06b2('0x7'),'as':_0x06b2('0x8'),'attributes':['id',_0x06b2('0x3')],'include':[{'model':_0x06b2('0x9'),'as':_0x06b2('0xa'),'attributes':['id',_0x06b2('0xb'),'content',_0x06b2('0xc')],'include':[{'model':_0x06b2('0xd'),'as':_0x06b2('0xd'),'attributes':['id','name']}]},{'model':_0x06b2('0x9'),'as':'Descriptions','attributes':['id',_0x06b2('0xb'),'content','key',_0x06b2('0xe'),_0x06b2('0xf'),'variableName'],'include':[{'model':_0x06b2('0xd'),'as':_0x06b2('0xd'),'attributes':['id',_0x06b2('0x3')]}]}]}]},'log':_0x06b2('0x10')});};};