Built motion from commit (unavailable).|2.5.22
[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 _0xffe1=['remoteUri','serverUrl','FreshsalesConfiguration','Configurations','FreshsalesField','Subjects','type','variableName','Variable','content','key','keyType','keyContent','../../client','getFreshsalesAccounts','Request','name','apiKey'];(function(_0x14eac8,_0x3955ed){var _0x27521b=function(_0x10e587){while(--_0x10e587){_0x14eac8['push'](_0x14eac8['shift']());}};_0x27521b(++_0x3955ed);}(_0xffe1,0x187));var _0x1ffe=function(_0x1bed0f,_0x37e4e6){_0x1bed0f=_0x1bed0f-0x0;var _0x51c5e3=_0xffe1[_0x1bed0f];return _0x51c5e3;};'use strict';var client=require(_0x1ffe('0x0'));exports[_0x1ffe('0x1')]=function(){return function(_0x57a768){return client[_0x1ffe('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x1ffe('0x3'),'username',_0x1ffe('0x4'),_0x1ffe('0x5'),_0x1ffe('0x6')],'include':[{'model':_0x1ffe('0x7'),'as':_0x1ffe('0x8'),'attributes':['id',_0x1ffe('0x3')],'include':[{'model':_0x1ffe('0x9'),'as':_0x1ffe('0xa'),'attributes':['id',_0x1ffe('0xb'),'content',_0x1ffe('0xc')],'include':[{'model':'Variable','as':_0x1ffe('0xd'),'attributes':['id','name']}]},{'model':_0x1ffe('0x9'),'as':'Descriptions','attributes':['id',_0x1ffe('0xb'),_0x1ffe('0xe'),_0x1ffe('0xf'),_0x1ffe('0x10'),_0x1ffe('0x11'),_0x1ffe('0xc')],'include':[{'model':_0x1ffe('0xd'),'as':_0x1ffe('0xd'),'attributes':['id',_0x1ffe('0x3')]}]}]}]},'log':'GetFreshsalesccount'});};};