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 _0x236d=['variableName','Variable','type','content','key','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','name','username','apiKey','remoteUri','Configurations','FreshsalesField','Subjects'];(function(_0x51c4f3,_0x1ce048){var _0x2d46be=function(_0x2f2163){while(--_0x2f2163){_0x51c4f3['push'](_0x51c4f3['shift']());}};_0x2d46be(++_0x1ce048);}(_0x236d,0x7e));var _0xd236=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x236d[_0x321bb2];return _0x9c12ed;};'use strict';var client=require(_0xd236('0x0'));exports[_0xd236('0x1')]=function(){return function(_0x5b2229){return client[_0xd236('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0xd236('0x3'),_0xd236('0x4'),_0xd236('0x5'),_0xd236('0x6'),'serverUrl'],'include':[{'model':'FreshsalesConfiguration','as':_0xd236('0x7'),'attributes':['id',_0xd236('0x3')],'include':[{'model':_0xd236('0x8'),'as':_0xd236('0x9'),'attributes':['id','type','content',_0xd236('0xa')],'include':[{'model':_0xd236('0xb'),'as':'Variable','attributes':['id',_0xd236('0x3')]}]},{'model':_0xd236('0x8'),'as':'Descriptions','attributes':['id',_0xd236('0xc'),_0xd236('0xd'),_0xd236('0xe'),'keyType',_0xd236('0xf'),_0xd236('0xa')],'include':[{'model':_0xd236('0xb'),'as':'Variable','attributes':['id',_0xd236('0x3')]}]}]}]},'log':_0xd236('0x10')});};};