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 _0x1b65=['getFreshsalesAccounts','Request','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type','content','Variable','key','keyType','keyContent','variableName','../../client'];(function(_0x4acd35,_0x5b4971){var _0x5e666c=function(_0x45554a){while(--_0x45554a){_0x4acd35['push'](_0x4acd35['shift']());}};_0x5e666c(++_0x5b4971);}(_0x1b65,0x1b4));var _0x51b6=function(_0x172ed7,_0x3d08fd){_0x172ed7=_0x172ed7-0x0;var _0xfa8f61=_0x1b65[_0x172ed7];return _0xfa8f61;};'use strict';var client=require(_0x51b6('0x0'));exports[_0x51b6('0x1')]=function(){return function(_0x3e4953){return client[_0x51b6('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x51b6('0x3'),_0x51b6('0x4'),_0x51b6('0x5'),_0x51b6('0x6'),_0x51b6('0x7')],'include':[{'model':_0x51b6('0x8'),'as':_0x51b6('0x9'),'attributes':['id','name'],'include':[{'model':_0x51b6('0xa'),'as':_0x51b6('0xb'),'attributes':['id',_0x51b6('0xc'),_0x51b6('0xd'),'variableName'],'include':[{'model':_0x51b6('0xe'),'as':_0x51b6('0xe'),'attributes':['id','name']}]},{'model':_0x51b6('0xa'),'as':'Descriptions','attributes':['id','type',_0x51b6('0xd'),_0x51b6('0xf'),_0x51b6('0x10'),_0x51b6('0x11'),_0x51b6('0x12')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x51b6('0x3')]}]}]}]},'log':'GetFreshsalesccount'});};};