Built motion from commit e6806ed6.|2.6.0
[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 _0xa751=['remoteUri','serverUrl','Configurations','FreshsalesField','Subjects','type','content','variableName','Descriptions','key','keyType','keyContent','GetFreshsalesccount','../../client','getFreshsalesAccounts','Request','name','apiKey'];(function(_0x69c268,_0x1ea473){var _0x18aeac=function(_0x334516){while(--_0x334516){_0x69c268['push'](_0x69c268['shift']());}};_0x18aeac(++_0x1ea473);}(_0xa751,0x175));var _0x1a75=function(_0x3aab73,_0x2805b2){_0x3aab73=_0x3aab73-0x0;var _0x418ac7=_0xa751[_0x3aab73];return _0x418ac7;};'use strict';var client=require(_0x1a75('0x0'));exports[_0x1a75('0x1')]=function(){return function(_0x31af97){return client[_0x1a75('0x2')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id',_0x1a75('0x3'),'username',_0x1a75('0x4'),_0x1a75('0x5'),_0x1a75('0x6')],'include':[{'model':'FreshsalesConfiguration','as':_0x1a75('0x7'),'attributes':['id',_0x1a75('0x3')],'include':[{'model':_0x1a75('0x8'),'as':_0x1a75('0x9'),'attributes':['id',_0x1a75('0xa'),_0x1a75('0xb'),_0x1a75('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x1a75('0x8'),'as':_0x1a75('0xd'),'attributes':['id',_0x1a75('0xa'),_0x1a75('0xb'),_0x1a75('0xe'),_0x1a75('0xf'),_0x1a75('0x10'),_0x1a75('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0x1a75('0x11')});};};