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 _0x9bde=['Descriptions','key','keyType','keyContent','GetFreshsalesccount','getFreshsalesAccounts','Request','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type','content','variableName','Variable'];(function(_0x1f3f3c,_0x18c39d){var _0x39a50d=function(_0x4f4f8c){while(--_0x4f4f8c){_0x1f3f3c['push'](_0x1f3f3c['shift']());}};_0x39a50d(++_0x18c39d);}(_0x9bde,0xe1));var _0xe9bd=function(_0x31f93d,_0x28c46b){_0x31f93d=_0x31f93d-0x0;var _0x459087=_0x9bde[_0x31f93d];return _0x459087;};'use strict';var client=require('../../client');exports[_0xe9bd('0x0')]=function(){return function(_0x4defda){return client[_0xe9bd('0x1')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0xe9bd('0x2'),_0xe9bd('0x3'),_0xe9bd('0x4'),_0xe9bd('0x5'),_0xe9bd('0x6')],'include':[{'model':_0xe9bd('0x7'),'as':_0xe9bd('0x8'),'attributes':['id','name'],'include':[{'model':_0xe9bd('0x9'),'as':_0xe9bd('0xa'),'attributes':['id',_0xe9bd('0xb'),_0xe9bd('0xc'),_0xe9bd('0xd')],'include':[{'model':_0xe9bd('0xe'),'as':_0xe9bd('0xe'),'attributes':['id',_0xe9bd('0x2')]}]},{'model':_0xe9bd('0x9'),'as':_0xe9bd('0xf'),'attributes':['id','type','content',_0xe9bd('0x10'),_0xe9bd('0x11'),_0xe9bd('0x12'),'variableName'],'include':[{'model':_0xe9bd('0xe'),'as':_0xe9bd('0xe'),'attributes':['id',_0xe9bd('0x2')]}]}]}]},'log':_0xe9bd('0x13')});};};