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 _0x8ce3=['Variable','key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','FreshsalesField','type','content','variableName'];(function(_0x1b51ea,_0x394fd9){var _0x18bbdc=function(_0x45b83f){while(--_0x45b83f){_0x1b51ea['push'](_0x1b51ea['shift']());}};_0x18bbdc(++_0x394fd9);}(_0x8ce3,0xc3));var _0x38ce=function(_0x3425f9,_0x2358ca){_0x3425f9=_0x3425f9-0x0;var _0x814f39=_0x8ce3[_0x3425f9];return _0x814f39;};'use strict';var client=require(_0x38ce('0x0'));exports[_0x38ce('0x1')]=function(){return function(_0x48fa0e){return client[_0x38ce('0x2')](_0x38ce('0x3'),{'options':{'raw':![],'attributes':['id',_0x38ce('0x4'),_0x38ce('0x5'),_0x38ce('0x6'),_0x38ce('0x7'),_0x38ce('0x8')],'include':[{'model':_0x38ce('0x9'),'as':'Configurations','attributes':['id',_0x38ce('0x4')],'include':[{'model':_0x38ce('0xa'),'as':'Subjects','attributes':['id',_0x38ce('0xb'),_0x38ce('0xc'),_0x38ce('0xd')],'include':[{'model':'Variable','as':_0x38ce('0xe'),'attributes':['id','name']}]},{'model':_0x38ce('0xa'),'as':'Descriptions','attributes':['id',_0x38ce('0xb'),_0x38ce('0xc'),_0x38ce('0xf'),_0x38ce('0x10'),_0x38ce('0x11'),_0x38ce('0xd')],'include':[{'model':_0x38ce('0xe'),'as':_0x38ce('0xe'),'attributes':['id',_0x38ce('0x4')]}]}]}]},'log':_0x38ce('0x12')});};};