Built motion from commit e1760111.|2.6.18
[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 _0xa408=['content','key','keyType','keyContent','nameField','customField','GetZohoAccount','getZohoAccounts','name','description','host','zone','clientId','clientSecret','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','type','variableName','Variable'];(function(_0x45d3f0,_0x4be53f){var _0x314b79=function(_0x563d32){while(--_0x563d32){_0x45d3f0['push'](_0x45d3f0['shift']());}};_0x314b79(++_0x4be53f);}(_0xa408,0x18e));var _0x8a40=function(_0x534c8f,_0x500079){_0x534c8f=_0x534c8f-0x0;var _0x5a57f5=_0xa408[_0x534c8f];return _0x5a57f5;};'use strict';var client=require('../../client');exports[_0x8a40('0x0')]=function(){return function(_0x469d17){return client['Request']('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x8a40('0x1'),_0x8a40('0x2'),_0x8a40('0x3'),_0x8a40('0x4'),_0x8a40('0x5'),_0x8a40('0x6'),'serverUrl','code',_0x8a40('0x7')],'include':[{'model':_0x8a40('0x8'),'as':_0x8a40('0x9'),'attributes':['id',_0x8a40('0x1'),_0x8a40('0xa'),_0x8a40('0xb'),_0x8a40('0x2')],'include':[{'model':_0x8a40('0xc'),'as':'Subjects','attributes':['id',_0x8a40('0xd'),'content',_0x8a40('0xe')],'include':[{'model':_0x8a40('0xf'),'as':_0x8a40('0xf'),'attributes':['id','name']}]},{'model':'ZohoField','as':'Descriptions','attributes':['id',_0x8a40('0xd'),_0x8a40('0x10'),_0x8a40('0x11'),_0x8a40('0x12'),_0x8a40('0x13'),_0x8a40('0xe')],'include':[{'model':_0x8a40('0xf'),'as':'Variable','attributes':['id',_0x8a40('0x1')]}]},{'model':_0x8a40('0xc'),'as':'Fields','attributes':['id',_0x8a40('0xd'),'content','idField',_0x8a40('0x14'),_0x8a40('0x15'),_0x8a40('0xe')],'include':[{'model':_0x8a40('0xf'),'as':_0x8a40('0xf'),'attributes':['id','name']}]}]}]},'log':_0x8a40('0x16')});};};