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 _0xfb65=['FreshsalesField','Descriptions','key','keyContent','getFreshsalesAccounts','GetFreshsalesAccount','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','Subjects','type','content','variableName','Variable','name'];(function(_0x2402e8,_0x54b182){var _0x4a7523=function(_0x28ac74){while(--_0x28ac74){_0x2402e8['push'](_0x2402e8['shift']());}};_0x4a7523(++_0x54b182);}(_0xfb65,0x82));var _0x5fb6=function(_0xcb0eb2,_0x3906bf){_0xcb0eb2=_0xcb0eb2-0x0;var _0xbab9b8=_0xfb65[_0xcb0eb2];return _0xbab9b8;};'use strict';var client=require('../../client');exports[_0x5fb6('0x0')]=function(){return function(_0x50bb32){return client['Request'](_0x5fb6('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x5fb6('0x2'),_0x5fb6('0x3'),_0x5fb6('0x4'),_0x5fb6('0x5')],'include':[{'model':_0x5fb6('0x6'),'as':_0x5fb6('0x7'),'attributes':['id','name'],'include':[{'model':'FreshsalesField','as':_0x5fb6('0x8'),'attributes':['id',_0x5fb6('0x9'),_0x5fb6('0xa'),_0x5fb6('0xb')],'include':[{'model':'Variable','as':_0x5fb6('0xc'),'attributes':['id',_0x5fb6('0xd')]}]},{'model':_0x5fb6('0xe'),'as':_0x5fb6('0xf'),'attributes':['id','type',_0x5fb6('0xa'),_0x5fb6('0x10'),'keyType',_0x5fb6('0x11'),_0x5fb6('0xb')],'include':[{'model':_0x5fb6('0xc'),'as':_0x5fb6('0xc'),'attributes':['id',_0x5fb6('0xd')]}]}]}]},'log':'GetFreshsalesccount'});};};