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 _0xfc17=['Variable','Descriptions','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','FreshsalesField','Subjects','type','content','variableName'];(function(_0x49ed6a,_0x433f36){var _0x3c1c4f=function(_0x305778){while(--_0x305778){_0x49ed6a['push'](_0x49ed6a['shift']());}};_0x3c1c4f(++_0x433f36);}(_0xfc17,0x1b4));var _0x7fc1=function(_0x453d54,_0x6280b0){_0x453d54=_0x453d54-0x0;var _0x5191d9=_0xfc17[_0x453d54];return _0x5191d9;};'use strict';var client=require(_0x7fc1('0x0'));exports[_0x7fc1('0x1')]=function(){return function(_0x29db51){return client[_0x7fc1('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x7fc1('0x3'),_0x7fc1('0x4'),_0x7fc1('0x5'),_0x7fc1('0x6'),_0x7fc1('0x7')],'include':[{'model':_0x7fc1('0x8'),'as':'Configurations','attributes':['id',_0x7fc1('0x3')],'include':[{'model':_0x7fc1('0x9'),'as':_0x7fc1('0xa'),'attributes':['id',_0x7fc1('0xb'),_0x7fc1('0xc'),_0x7fc1('0xd')],'include':[{'model':_0x7fc1('0xe'),'as':'Variable','attributes':['id',_0x7fc1('0x3')]}]},{'model':_0x7fc1('0x9'),'as':_0x7fc1('0xf'),'attributes':['id','type',_0x7fc1('0xc'),'key','keyType',_0x7fc1('0x10'),_0x7fc1('0xd')],'include':[{'model':_0x7fc1('0xe'),'as':_0x7fc1('0xe'),'attributes':['id',_0x7fc1('0x3')]}]}]}]},'log':_0x7fc1('0x11')});};};