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 _0x5075=['GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','remoteUri','serverUrl','FreshsalesConfiguration','FreshsalesField','Subjects','content','variableName','Variable','Descriptions','type','keyType','keyContent'];(function(_0x187d28,_0x3515d3){var _0x488a9f=function(_0x2946cf){while(--_0x2946cf){_0x187d28['push'](_0x187d28['shift']());}};_0x488a9f(++_0x3515d3);}(_0x5075,0x73));var _0x5507=function(_0x4222b5,_0x37422c){_0x4222b5=_0x4222b5-0x0;var _0x425d4c=_0x5075[_0x4222b5];return _0x425d4c;};'use strict';var client=require(_0x5507('0x0'));exports[_0x5507('0x1')]=function(){return function(_0x701161){return client[_0x5507('0x2')](_0x5507('0x3'),{'options':{'raw':![],'attributes':['id',_0x5507('0x4'),_0x5507('0x5'),'apiKey',_0x5507('0x6'),_0x5507('0x7')],'include':[{'model':_0x5507('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x5507('0x9'),'as':_0x5507('0xa'),'attributes':['id','type',_0x5507('0xb'),_0x5507('0xc')],'include':[{'model':_0x5507('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x5507('0x9'),'as':_0x5507('0xe'),'attributes':['id',_0x5507('0xf'),_0x5507('0xb'),'key',_0x5507('0x10'),_0x5507('0x11'),'variableName'],'include':[{'model':_0x5507('0xd'),'as':_0x5507('0xd'),'attributes':['id','name']}]}]}]},'log':_0x5507('0x12')});};};