Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / services / ami / rpc / integrations / freshsales.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x98b7=['serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','type','content','variableName','Variable','key','keyType','keyContent','name','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','apiKey','remoteUri'];(function(_0x42bdad,_0x12836c){var _0x122626=function(_0x2eb29c){while(--_0x2eb29c){_0x42bdad['push'](_0x42bdad['shift']());}};_0x122626(++_0x12836c);}(_0x98b7,0xc1));var _0x798b=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x98b7[_0x2c91e9];return _0x13f0ff;};'use strict';var client=require(_0x798b('0x0'));exports[_0x798b('0x1')]=function(){return function(_0x622719){return client[_0x798b('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id','name','username',_0x798b('0x3'),_0x798b('0x4'),_0x798b('0x5')],'include':[{'model':_0x798b('0x6'),'as':_0x798b('0x7'),'attributes':['id','name'],'include':[{'model':_0x798b('0x8'),'as':'Subjects','attributes':['id',_0x798b('0x9'),_0x798b('0xa'),_0x798b('0xb')],'include':[{'model':_0x798b('0xc'),'as':_0x798b('0xc'),'attributes':['id','name']}]},{'model':_0x798b('0x8'),'as':'Descriptions','attributes':['id',_0x798b('0x9'),'content',_0x798b('0xd'),_0x798b('0xe'),_0x798b('0xf'),'variableName'],'include':[{'model':'Variable','as':_0x798b('0xc'),'attributes':['id',_0x798b('0x10')]}]}]}]},'log':_0x798b('0x11')});};};