Built motion from commit 3c2ce842.|2.6.31
[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 _0x3135=['GetZohoAccount','description','host','zone','clientId','clientSecret','serverUrl','code','Configurations','name','moduleCreate','Subjects','content','variableName','Variable','ZohoField','Descriptions','key','keyType','Fields','idField','nameField','getZohoAccounts'];(function(_0x22b8d9,_0x35b9f6){var _0x210964=function(_0x5d1e3c){while(--_0x5d1e3c){_0x22b8d9['push'](_0x22b8d9['shift']());}};_0x210964(++_0x35b9f6);}(_0x3135,0xb7));var _0x5313=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3135[_0x3dd15e];return _0x231fd0;};'use strict';var client=require('../../client');exports[_0x5313('0x0')]=function(){return function(_0x965370){return client['Request'](_0x5313('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x5313('0x2'),_0x5313('0x3'),_0x5313('0x4'),_0x5313('0x5'),_0x5313('0x6'),_0x5313('0x7'),_0x5313('0x8'),'refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0x5313('0x9'),'attributes':['id',_0x5313('0xa'),_0x5313('0xb'),'moduleSearch',_0x5313('0x2')],'include':[{'model':'ZohoField','as':_0x5313('0xc'),'attributes':['id','type',_0x5313('0xd'),_0x5313('0xe')],'include':[{'model':_0x5313('0xf'),'as':_0x5313('0xf'),'attributes':['id','name']}]},{'model':_0x5313('0x10'),'as':_0x5313('0x11'),'attributes':['id','type',_0x5313('0xd'),_0x5313('0x12'),_0x5313('0x13'),'keyContent','variableName'],'include':[{'model':_0x5313('0xf'),'as':_0x5313('0xf'),'attributes':['id',_0x5313('0xa')]}]},{'model':_0x5313('0x10'),'as':_0x5313('0x14'),'attributes':['id','type',_0x5313('0xd'),_0x5313('0x15'),_0x5313('0x16'),'customField',_0x5313('0xe')],'include':[{'model':_0x5313('0xf'),'as':_0x5313('0xf'),'attributes':['id',_0x5313('0xa')]}]}]}]},'log':_0x5313('0x1')});};};