98ab2c2b2a6cedc3349d5cd88ca564951b1073cc
[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 _0x34ec=['Request','name','description','host','clientId','clientSecret','serverUrl','refreshToken','Configurations','moduleCreate','moduleSearch','Subjects','type','variableName','Variable','ZohoField','content','key','keyType','GetZohoAccount','../../client'];(function(_0x561a34,_0x3c02c6){var _0x29bd3f=function(_0x1eb9b2){while(--_0x1eb9b2){_0x561a34['push'](_0x561a34['shift']());}};_0x29bd3f(++_0x3c02c6);}(_0x34ec,0x125));var _0xc34e=function(_0x4bf0f2,_0x3aa38b){_0x4bf0f2=_0x4bf0f2-0x0;var _0x7b0d6e=_0x34ec[_0x4bf0f2];return _0x7b0d6e;};'use strict';var client=require(_0xc34e('0x0'));exports['getZohoAccounts']=function(){return function(_0x26b704){return client[_0xc34e('0x1')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0xc34e('0x2'),_0xc34e('0x3'),_0xc34e('0x4'),'zone',_0xc34e('0x5'),_0xc34e('0x6'),_0xc34e('0x7'),'code',_0xc34e('0x8')],'include':[{'model':'ZohoConfiguration','as':_0xc34e('0x9'),'attributes':['id',_0xc34e('0x2'),_0xc34e('0xa'),_0xc34e('0xb'),_0xc34e('0x3')],'include':[{'model':'ZohoField','as':_0xc34e('0xc'),'attributes':['id',_0xc34e('0xd'),'content',_0xc34e('0xe')],'include':[{'model':'Variable','as':_0xc34e('0xf'),'attributes':['id',_0xc34e('0x2')]}]},{'model':_0xc34e('0x10'),'as':'Descriptions','attributes':['id',_0xc34e('0xd'),_0xc34e('0x11'),_0xc34e('0x12'),_0xc34e('0x13'),'keyContent',_0xc34e('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xc34e('0x2')]}]},{'model':_0xc34e('0x10'),'as':'Fields','attributes':['id',_0xc34e('0xd'),_0xc34e('0x11'),'idField','nameField','customField',_0xc34e('0xe')],'include':[{'model':'Variable','as':_0xc34e('0xf'),'attributes':['id',_0xc34e('0x2')]}]}]}]},'log':_0xc34e('0x14')});};};