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 _0x5f6f=['getFreshsalesAccounts','Request','GetFreshsalesAccount','username','apiKey','remoteUri','FreshsalesConfiguration','Configurations','name','FreshsalesField','content','variableName','Variable','key','keyContent','../../client'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5f6f,0x1ef));var _0xf5f6=function(_0x8cbd17,_0x3913d4){_0x8cbd17=_0x8cbd17-0x0;var _0x35840a=_0x5f6f[_0x8cbd17];return _0x35840a;};'use strict';var client=require(_0xf5f6('0x0'));exports[_0xf5f6('0x1')]=function(){return function(_0x32a985){return client[_0xf5f6('0x2')](_0xf5f6('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xf5f6('0x4'),_0xf5f6('0x5'),_0xf5f6('0x6'),'serverUrl'],'include':[{'model':_0xf5f6('0x7'),'as':_0xf5f6('0x8'),'attributes':['id',_0xf5f6('0x9')],'include':[{'model':_0xf5f6('0xa'),'as':'Subjects','attributes':['id','type',_0xf5f6('0xb'),_0xf5f6('0xc')],'include':[{'model':_0xf5f6('0xd'),'as':_0xf5f6('0xd'),'attributes':['id',_0xf5f6('0x9')]}]},{'model':_0xf5f6('0xa'),'as':'Descriptions','attributes':['id','type',_0xf5f6('0xb'),_0xf5f6('0xe'),'keyType',_0xf5f6('0xf'),_0xf5f6('0xc')],'include':[{'model':_0xf5f6('0xd'),'as':_0xf5f6('0xd'),'attributes':['id',_0xf5f6('0x9')]}]}]}]},'log':'GetFreshsalesccount'});};};