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 _0x8164=['FreshsalesField','Descriptions','key','keyContent','../../client','getFreshsalesAccounts','GetFreshsalesAccount','name','apiKey','serverUrl','type','content','variableName','Variable'];(function(_0x1ef928,_0x195a96){var _0x417224=function(_0x4abe8){while(--_0x4abe8){_0x1ef928['push'](_0x1ef928['shift']());}};_0x417224(++_0x195a96);}(_0x8164,0x170));var _0x4816=function(_0x366647,_0xd7065c){_0x366647=_0x366647-0x0;var _0x54aed1=_0x8164[_0x366647];return _0x54aed1;};'use strict';var client=require(_0x4816('0x0'));exports[_0x4816('0x1')]=function(){return function(_0x10afb7){return client['Request'](_0x4816('0x2'),{'options':{'raw':![],'attributes':['id',_0x4816('0x3'),'username',_0x4816('0x4'),'remoteUri',_0x4816('0x5')],'include':[{'model':'FreshsalesConfiguration','as':'Configurations','attributes':['id',_0x4816('0x3')],'include':[{'model':'FreshsalesField','as':'Subjects','attributes':['id',_0x4816('0x6'),_0x4816('0x7'),_0x4816('0x8')],'include':[{'model':_0x4816('0x9'),'as':_0x4816('0x9'),'attributes':['id',_0x4816('0x3')]}]},{'model':_0x4816('0xa'),'as':_0x4816('0xb'),'attributes':['id',_0x4816('0x6'),'content',_0x4816('0xc'),'keyType',_0x4816('0xd'),_0x4816('0x8')],'include':[{'model':'Variable','as':_0x4816('0x9'),'attributes':['id','name']}]}]}]},'log':'GetFreshsalesccount'});};};