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 _0x4198=['../../client','Request','GetFreshsalesAccount','name','username','apiKey','remoteUri','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','GetFreshsalesccount'];(function(_0x18a79d,_0x57bd2c){var _0x4f8848=function(_0x28af80){while(--_0x28af80){_0x18a79d['push'](_0x18a79d['shift']());}};_0x4f8848(++_0x57bd2c);}(_0x4198,0x69));var _0x8419=function(_0x1eb47f,_0x54cb71){_0x1eb47f=_0x1eb47f-0x0;var _0x57856f=_0x4198[_0x1eb47f];return _0x57856f;};'use strict';var client=require(_0x8419('0x0'));exports['getFreshsalesAccounts']=function(){return function(_0x33e1b1){return client[_0x8419('0x1')](_0x8419('0x2'),{'options':{'raw':![],'attributes':['id',_0x8419('0x3'),_0x8419('0x4'),_0x8419('0x5'),_0x8419('0x6'),_0x8419('0x7')],'include':[{'model':_0x8419('0x8'),'as':_0x8419('0x9'),'attributes':['id','name'],'include':[{'model':_0x8419('0xa'),'as':_0x8419('0xb'),'attributes':['id',_0x8419('0xc'),_0x8419('0xd'),_0x8419('0xe')],'include':[{'model':_0x8419('0xf'),'as':_0x8419('0xf'),'attributes':['id',_0x8419('0x3')]}]},{'model':_0x8419('0xa'),'as':_0x8419('0x10'),'attributes':['id',_0x8419('0xc'),_0x8419('0xd'),_0x8419('0x11'),_0x8419('0x12'),_0x8419('0x13'),'variableName'],'include':[{'model':_0x8419('0xf'),'as':'Variable','attributes':['id',_0x8419('0x3')]}]}]}]},'log':_0x8419('0x14')});};};