1565afe30ff82f4ec22e6e612d6a5c0b391a8b1a
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0x0a52=['getZohoAccounts','name','description','host','zone','clientSecret','serverUrl','code','Configurations','moduleCreate','Subjects','type','content','variableName','Variable','keyContent','ZohoField','Fields','nameField','customField','GetZohoAccount','../../client'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x0a52,0x107));var _0x20a5=function(_0x4ae9fe,_0x4ec672){_0x4ae9fe=_0x4ae9fe-0x0;var _0xc458c7=_0x0a52[_0x4ae9fe];return _0xc458c7;};'use strict';var client=require(_0x20a5('0x0'));exports[_0x20a5('0x1')]=function(){return function(_0x1a768a){return client['Request']('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x20a5('0x2'),_0x20a5('0x3'),_0x20a5('0x4'),_0x20a5('0x5'),'clientId',_0x20a5('0x6'),_0x20a5('0x7'),_0x20a5('0x8'),'refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0x20a5('0x9'),'attributes':['id',_0x20a5('0x2'),_0x20a5('0xa'),'moduleSearch','description'],'include':[{'model':'ZohoField','as':_0x20a5('0xb'),'attributes':['id',_0x20a5('0xc'),_0x20a5('0xd'),_0x20a5('0xe')],'include':[{'model':_0x20a5('0xf'),'as':_0x20a5('0xf'),'attributes':['id','name']}]},{'model':'ZohoField','as':'Descriptions','attributes':['id',_0x20a5('0xc'),_0x20a5('0xd'),'key','keyType',_0x20a5('0x10'),_0x20a5('0xe')],'include':[{'model':_0x20a5('0xf'),'as':_0x20a5('0xf'),'attributes':['id','name']}]},{'model':_0x20a5('0x11'),'as':_0x20a5('0x12'),'attributes':['id',_0x20a5('0xc'),_0x20a5('0xd'),'idField',_0x20a5('0x13'),_0x20a5('0x14'),_0x20a5('0xe')],'include':[{'model':_0x20a5('0xf'),'as':_0x20a5('0xf'),'attributes':['id',_0x20a5('0x2')]}]}]}]},'log':_0x20a5('0x15')});};};