acd82fdb6d97cea0acef1804dd400bc0a4e2f827
[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 _0x7fde=['keyType','idField','nameField','customField','getZohoAccounts','GetZohoAccount','name','host','zone','clientSecret','serverUrl','code','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','description','ZohoField','Subjects','type','content','variableName','Variable','Descriptions','key'];(function(_0x8267aa,_0x496ef0){var _0x2a437f=function(_0x447f72){while(--_0x447f72){_0x8267aa['push'](_0x8267aa['shift']());}};_0x2a437f(++_0x496ef0);}(_0x7fde,0x81));var _0xe7fd=function(_0x445e68,_0x29652d){_0x445e68=_0x445e68-0x0;var _0x1fe2d2=_0x7fde[_0x445e68];return _0x1fe2d2;};'use strict';var client=require('../../client');exports[_0xe7fd('0x0')]=function(){return function(_0x5ae5a3){return client['Request'](_0xe7fd('0x1'),{'options':{'raw':![],'attributes':['id',_0xe7fd('0x2'),'description',_0xe7fd('0x3'),_0xe7fd('0x4'),'clientId',_0xe7fd('0x5'),_0xe7fd('0x6'),_0xe7fd('0x7'),'refreshToken'],'include':[{'model':_0xe7fd('0x8'),'as':_0xe7fd('0x9'),'attributes':['id',_0xe7fd('0x2'),_0xe7fd('0xa'),_0xe7fd('0xb'),_0xe7fd('0xc')],'include':[{'model':_0xe7fd('0xd'),'as':_0xe7fd('0xe'),'attributes':['id',_0xe7fd('0xf'),_0xe7fd('0x10'),_0xe7fd('0x11')],'include':[{'model':_0xe7fd('0x12'),'as':_0xe7fd('0x12'),'attributes':['id',_0xe7fd('0x2')]}]},{'model':_0xe7fd('0xd'),'as':_0xe7fd('0x13'),'attributes':['id',_0xe7fd('0xf'),_0xe7fd('0x10'),_0xe7fd('0x14'),_0xe7fd('0x15'),'keyContent',_0xe7fd('0x11')],'include':[{'model':'Variable','as':_0xe7fd('0x12'),'attributes':['id','name']}]},{'model':'ZohoField','as':'Fields','attributes':['id',_0xe7fd('0xf'),_0xe7fd('0x10'),_0xe7fd('0x16'),_0xe7fd('0x17'),_0xe7fd('0x18'),_0xe7fd('0x11')],'include':[{'model':_0xe7fd('0x12'),'as':_0xe7fd('0x12'),'attributes':['id','name']}]}]}]},'log':_0xe7fd('0x1')});};};