2820950d1022ce452b8bbb178b583307f69adc5f
[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 _0xc653=['GetZohoAccount','host','zone','clientSecret','code','refreshToken','Configurations','moduleSearch','ZohoField','Subjects','variableName','Variable','name','type','content','key','keyContent','nameField','customField','../../client','Request'];(function(_0x59cda9,_0x47d4c4){var _0x26c18f=function(_0x4cff5f){while(--_0x4cff5f){_0x59cda9['push'](_0x59cda9['shift']());}};_0x26c18f(++_0x47d4c4);}(_0xc653,0x1b7));var _0x3c65=function(_0x39b1d2,_0x5285fa){_0x39b1d2=_0x39b1d2-0x0;var _0x2dec73=_0xc653[_0x39b1d2];return _0x2dec73;};'use strict';var client=require(_0x3c65('0x0'));exports['getZohoAccounts']=function(){return function(_0x128747){return client[_0x3c65('0x1')](_0x3c65('0x2'),{'options':{'raw':![],'attributes':['id','name','description',_0x3c65('0x3'),_0x3c65('0x4'),'clientId',_0x3c65('0x5'),'serverUrl',_0x3c65('0x6'),_0x3c65('0x7')],'include':[{'model':'ZohoConfiguration','as':_0x3c65('0x8'),'attributes':['id','name','moduleCreate',_0x3c65('0x9'),'description'],'include':[{'model':_0x3c65('0xa'),'as':_0x3c65('0xb'),'attributes':['id','type','content',_0x3c65('0xc')],'include':[{'model':_0x3c65('0xd'),'as':_0x3c65('0xd'),'attributes':['id',_0x3c65('0xe')]}]},{'model':_0x3c65('0xa'),'as':'Descriptions','attributes':['id',_0x3c65('0xf'),_0x3c65('0x10'),_0x3c65('0x11'),'keyType',_0x3c65('0x12'),'variableName'],'include':[{'model':'Variable','as':_0x3c65('0xd'),'attributes':['id',_0x3c65('0xe')]}]},{'model':_0x3c65('0xa'),'as':'Fields','attributes':['id',_0x3c65('0xf'),_0x3c65('0x10'),'idField',_0x3c65('0x13'),_0x3c65('0x14'),_0x3c65('0xc')],'include':[{'model':_0x3c65('0xd'),'as':_0x3c65('0xd'),'attributes':['id',_0x3c65('0xe')]}]}]}]},'log':'GetZohoAccount'});};};