52cdaa892ea75fcafa4fc4cb7ebf38289215e58b
[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 _0x8705=['name','description','host','zone','clientSecret','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','Fields','idField','../../client','getZohoAccounts','Request','GetZohoAccount'];(function(_0x3cedd8,_0x4c0483){var _0xfd0dec=function(_0x49d071){while(--_0x49d071){_0x3cedd8['push'](_0x3cedd8['shift']());}};_0xfd0dec(++_0x4c0483);}(_0x8705,0x127));var _0x5870=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x8705[_0x42cae2];return _0x5f256f;};'use strict';var client=require(_0x5870('0x0'));exports[_0x5870('0x1')]=function(){return function(_0x26b35f){return client[_0x5870('0x2')](_0x5870('0x3'),{'options':{'raw':![],'attributes':['id',_0x5870('0x4'),_0x5870('0x5'),_0x5870('0x6'),_0x5870('0x7'),'clientId',_0x5870('0x8'),'serverUrl','code','refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0x5870('0x9'),'attributes':['id',_0x5870('0x4'),_0x5870('0xa'),_0x5870('0xb'),_0x5870('0x5')],'include':[{'model':_0x5870('0xc'),'as':_0x5870('0xd'),'attributes':['id',_0x5870('0xe'),_0x5870('0xf'),_0x5870('0x10')],'include':[{'model':'Variable','as':_0x5870('0x11'),'attributes':['id',_0x5870('0x4')]}]},{'model':_0x5870('0xc'),'as':_0x5870('0x12'),'attributes':['id','type',_0x5870('0xf'),_0x5870('0x13'),_0x5870('0x14'),'keyContent',_0x5870('0x10')],'include':[{'model':'Variable','as':_0x5870('0x11'),'attributes':['id',_0x5870('0x4')]}]},{'model':_0x5870('0xc'),'as':_0x5870('0x15'),'attributes':['id',_0x5870('0xe'),_0x5870('0xf'),_0x5870('0x16'),'nameField','customField',_0x5870('0x10')],'include':[{'model':'Variable','as':_0x5870('0x11'),'attributes':['id',_0x5870('0x4')]}]}]}]},'log':'GetZohoAccount'});};};