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 _0xdf55=['Request','GetFreshsalesAccount','username','apiKey','remoteUri','FreshsalesConfiguration','Configurations','name','FreshsalesField','Subjects','type','content','variableName','Variable','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts'];(function(_0x77d76e,_0x106ed2){var _0x5620c8=function(_0x481b37){while(--_0x481b37){_0x77d76e['push'](_0x77d76e['shift']());}};_0x5620c8(++_0x106ed2);}(_0xdf55,0x83));var _0x5df5=function(_0x56018e,_0x309ad5){_0x56018e=_0x56018e-0x0;var _0x5cb725=_0xdf55[_0x56018e];return _0x5cb725;};'use strict';var client=require(_0x5df5('0x0'));exports[_0x5df5('0x1')]=function(){return function(_0x4d02f3){return client[_0x5df5('0x2')](_0x5df5('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x5df5('0x4'),_0x5df5('0x5'),_0x5df5('0x6'),'serverUrl'],'include':[{'model':_0x5df5('0x7'),'as':_0x5df5('0x8'),'attributes':['id',_0x5df5('0x9')],'include':[{'model':_0x5df5('0xa'),'as':_0x5df5('0xb'),'attributes':['id',_0x5df5('0xc'),_0x5df5('0xd'),_0x5df5('0xe')],'include':[{'model':'Variable','as':_0x5df5('0xf'),'attributes':['id',_0x5df5('0x9')]}]},{'model':_0x5df5('0xa'),'as':'Descriptions','attributes':['id','type',_0x5df5('0xd'),'key',_0x5df5('0x10'),_0x5df5('0x11'),'variableName'],'include':[{'model':'Variable','as':_0x5df5('0xf'),'attributes':['id',_0x5df5('0x9')]}]}]}]},'log':_0x5df5('0x12')});};};