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 _0x8958=['keyType','keyContent','GetFreshsalesccount','getFreshsalesAccounts','username','remoteUri','serverUrl','FreshsalesConfiguration','name','FreshsalesField','Subjects','type','content','Variable','Descriptions','key'];(function(_0x126558,_0x143c9a){var _0x1f6d14=function(_0x2b0eea){while(--_0x2b0eea){_0x126558['push'](_0x126558['shift']());}};_0x1f6d14(++_0x143c9a);}(_0x8958,0x93));var _0x8895=function(_0x3a2bc6,_0xb3d543){_0x3a2bc6=_0x3a2bc6-0x0;var _0x2781d8=_0x8958[_0x3a2bc6];return _0x2781d8;};'use strict';var client=require('../../client');exports[_0x8895('0x0')]=function(){return function(_0x4cb7d0){return client['Request']('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id','name',_0x8895('0x1'),'apiKey',_0x8895('0x2'),_0x8895('0x3')],'include':[{'model':_0x8895('0x4'),'as':'Configurations','attributes':['id',_0x8895('0x5')],'include':[{'model':_0x8895('0x6'),'as':_0x8895('0x7'),'attributes':['id',_0x8895('0x8'),_0x8895('0x9'),'variableName'],'include':[{'model':_0x8895('0xa'),'as':_0x8895('0xa'),'attributes':['id',_0x8895('0x5')]}]},{'model':_0x8895('0x6'),'as':_0x8895('0xb'),'attributes':['id',_0x8895('0x8'),_0x8895('0x9'),_0x8895('0xc'),_0x8895('0xd'),_0x8895('0xe'),'variableName'],'include':[{'model':_0x8895('0xa'),'as':_0x8895('0xa'),'attributes':['id',_0x8895('0x5')]}]}]}]},'log':_0x8895('0xf')});};};