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 _0xaf4c=['getFreshsalesAccounts','GetFreshsalesAccount','name','username','remoteUri','serverUrl','FreshsalesConfiguration','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','GetFreshsalesccount'];(function(_0x23f0e1,_0x11d94b){var _0x257f0d=function(_0xab63c7){while(--_0xab63c7){_0x23f0e1['push'](_0x23f0e1['shift']());}};_0x257f0d(++_0x11d94b);}(_0xaf4c,0x1ed));var _0xcaf4=function(_0x1ee66d,_0x8ff682){_0x1ee66d=_0x1ee66d-0x0;var _0x461e16=_0xaf4c[_0x1ee66d];return _0x461e16;};'use strict';var client=require('../../client');exports[_0xcaf4('0x0')]=function(){return function(_0x3af3b5){return client['Request'](_0xcaf4('0x1'),{'options':{'raw':![],'attributes':['id',_0xcaf4('0x2'),_0xcaf4('0x3'),'apiKey',_0xcaf4('0x4'),_0xcaf4('0x5')],'include':[{'model':_0xcaf4('0x6'),'as':'Configurations','attributes':['id',_0xcaf4('0x2')],'include':[{'model':'FreshsalesField','as':_0xcaf4('0x7'),'attributes':['id',_0xcaf4('0x8'),_0xcaf4('0x9'),_0xcaf4('0xa')],'include':[{'model':_0xcaf4('0xb'),'as':_0xcaf4('0xb'),'attributes':['id','name']}]},{'model':'FreshsalesField','as':_0xcaf4('0xc'),'attributes':['id',_0xcaf4('0x8'),_0xcaf4('0x9'),_0xcaf4('0xd'),_0xcaf4('0xe'),_0xcaf4('0xf'),_0xcaf4('0xa')],'include':[{'model':_0xcaf4('0xb'),'as':_0xcaf4('0xb'),'attributes':['id','name']}]}]}]},'log':_0xcaf4('0x10')});};};