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(_0x1c3b38,_0x3466cd){var _0x2d30cb=function(_0xf31fd9){while(--_0xf31fd9){_0x1c3b38['push'](_0x1c3b38['shift']());}};_0x2d30cb(++_0x3466cd);}(_0xfb65,0x82));var _0x5fb6=function(_0x29a4d5,_0x1933c8){_0x29a4d5=_0x29a4d5-0x0;var _0x97c1c=_0xfb65[_0x29a4d5];return _0x97c1c;};'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'});};};