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 _0x3750=['variableName','Variable','type','key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','username','apiKey','serverUrl','FreshsalesConfiguration','Configurations','name','FreshsalesField','Subjects','content'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3750,0xbb));var _0x0375=function(_0x1e46a5,_0x5b094e){_0x1e46a5=_0x1e46a5-0x0;var _0x35a2cf=_0x3750[_0x1e46a5];return _0x35a2cf;};'use strict';var client=require(_0x0375('0x0'));exports[_0x0375('0x1')]=function(){return function(_0x27f828){return client[_0x0375('0x2')](_0x0375('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x0375('0x4'),_0x0375('0x5'),'remoteUri',_0x0375('0x6')],'include':[{'model':_0x0375('0x7'),'as':_0x0375('0x8'),'attributes':['id',_0x0375('0x9')],'include':[{'model':_0x0375('0xa'),'as':_0x0375('0xb'),'attributes':['id','type',_0x0375('0xc'),_0x0375('0xd')],'include':[{'model':_0x0375('0xe'),'as':_0x0375('0xe'),'attributes':['id',_0x0375('0x9')]}]},{'model':_0x0375('0xa'),'as':'Descriptions','attributes':['id',_0x0375('0xf'),_0x0375('0xc'),_0x0375('0x10'),_0x0375('0x11'),_0x0375('0x12'),_0x0375('0xd')],'include':[{'model':_0x0375('0xe'),'as':_0x0375('0xe'),'attributes':['id',_0x0375('0x9')]}]}]}]},'log':_0x0375('0x13')});};};