cdb334b06e9c341ba09d4ed234fa88bcf3f6f254
[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 _0xa23f=['Descriptions','content','key','keyContent','Fields','nameField','customField','getZohoAccounts','Request','GetZohoAccount','host','clientSecret','serverUrl','code','ZohoConfiguration','Configurations','name','moduleSearch','ZohoField','type','variableName','Variable'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa23f,0x167));var _0xfa23=function(_0x4740b2,_0xeb25ba){_0x4740b2=_0x4740b2-0x0;var _0x4e7155=_0xa23f[_0x4740b2];return _0x4e7155;};'use strict';var client=require('../../client');exports[_0xfa23('0x0')]=function(){return function(_0xa5f553){return client[_0xfa23('0x1')](_0xfa23('0x2'),{'options':{'raw':![],'attributes':['id','name','description',_0xfa23('0x3'),'zone','clientId',_0xfa23('0x4'),_0xfa23('0x5'),_0xfa23('0x6'),'refreshToken'],'include':[{'model':_0xfa23('0x7'),'as':_0xfa23('0x8'),'attributes':['id',_0xfa23('0x9'),'moduleCreate',_0xfa23('0xa'),'description'],'include':[{'model':_0xfa23('0xb'),'as':'Subjects','attributes':['id',_0xfa23('0xc'),'content',_0xfa23('0xd')],'include':[{'model':_0xfa23('0xe'),'as':_0xfa23('0xe'),'attributes':['id',_0xfa23('0x9')]}]},{'model':_0xfa23('0xb'),'as':_0xfa23('0xf'),'attributes':['id',_0xfa23('0xc'),_0xfa23('0x10'),_0xfa23('0x11'),'keyType',_0xfa23('0x12'),'variableName'],'include':[{'model':_0xfa23('0xe'),'as':_0xfa23('0xe'),'attributes':['id','name']}]},{'model':_0xfa23('0xb'),'as':_0xfa23('0x13'),'attributes':['id',_0xfa23('0xc'),_0xfa23('0x10'),'idField',_0xfa23('0x14'),_0xfa23('0x15'),_0xfa23('0xd')],'include':[{'model':_0xfa23('0xe'),'as':_0xfa23('0xe'),'attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};