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 _0x50e5=['keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','content','variableName','Variable','type'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x50e5,0xb7));var _0x550e=function(_0x520217,_0x4a3df9){_0x520217=_0x520217-0x0;var _0x21aba9=_0x50e5[_0x520217];return _0x21aba9;};'use strict';var client=require(_0x550e('0x0'));exports[_0x550e('0x1')]=function(){return function(_0x524e28){return client[_0x550e('0x2')](_0x550e('0x3'),{'options':{'raw':![],'attributes':['id',_0x550e('0x4'),_0x550e('0x5'),_0x550e('0x6'),_0x550e('0x7'),_0x550e('0x8')],'include':[{'model':_0x550e('0x9'),'as':_0x550e('0xa'),'attributes':['id',_0x550e('0x4')],'include':[{'model':_0x550e('0xb'),'as':_0x550e('0xc'),'attributes':['id','type',_0x550e('0xd'),_0x550e('0xe')],'include':[{'model':'Variable','as':_0x550e('0xf'),'attributes':['id',_0x550e('0x4')]}]},{'model':_0x550e('0xb'),'as':'Descriptions','attributes':['id',_0x550e('0x10'),'content','key',_0x550e('0x11'),_0x550e('0x12'),'variableName'],'include':[{'model':_0x550e('0xf'),'as':_0x550e('0xf'),'attributes':['id',_0x550e('0x4')]}]}]}]},'log':_0x550e('0x13')});};};