Built motion from commit 9e1399f3.|2.5.37
[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 _0x53ec=['serverUrl','FreshsalesConfiguration','Subjects','type','variableName','Variable','FreshsalesField','Descriptions','content','key','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','GetFreshsalesAccount','name','apiKey'];(function(_0x1eda6e,_0x7e4741){var _0x12e3a2=function(_0xaa2253){while(--_0xaa2253){_0x1eda6e['push'](_0x1eda6e['shift']());}};_0x12e3a2(++_0x7e4741);}(_0x53ec,0x192));var _0xc53e=function(_0x565dc8,_0x4261e5){_0x565dc8=_0x565dc8-0x0;var _0x46d643=_0x53ec[_0x565dc8];return _0x46d643;};'use strict';var client=require(_0xc53e('0x0'));exports[_0xc53e('0x1')]=function(){return function(_0x2d5f51){return client[_0xc53e('0x2')](_0xc53e('0x3'),{'options':{'raw':![],'attributes':['id',_0xc53e('0x4'),'username',_0xc53e('0x5'),'remoteUri',_0xc53e('0x6')],'include':[{'model':_0xc53e('0x7'),'as':'Configurations','attributes':['id',_0xc53e('0x4')],'include':[{'model':'FreshsalesField','as':_0xc53e('0x8'),'attributes':['id',_0xc53e('0x9'),'content',_0xc53e('0xa')],'include':[{'model':_0xc53e('0xb'),'as':_0xc53e('0xb'),'attributes':['id',_0xc53e('0x4')]}]},{'model':_0xc53e('0xc'),'as':_0xc53e('0xd'),'attributes':['id',_0xc53e('0x9'),_0xc53e('0xe'),_0xc53e('0xf'),'keyType','keyContent',_0xc53e('0xa')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xc53e('0x4')]}]}]}]},'log':_0xc53e('0x10')});};};