6e9eb590d92d844d6bd487be795dbb6dd810a81a
[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 _0x0a9e=['variableName','Variable','key','keyContent','Fields','nameField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientId','code','moduleSearch','ZohoField','Subjects','type','content'];(function(_0x177387,_0x55add0){var _0xf3b2cc=function(_0x24e352){while(--_0x24e352){_0x177387['push'](_0x177387['shift']());}};_0xf3b2cc(++_0x55add0);}(_0x0a9e,0xed));var _0xe0a9=function(_0x4148ec,_0x166226){_0x4148ec=_0x4148ec-0x0;var _0x233c87=_0x0a9e[_0x4148ec];return _0x233c87;};'use strict';var client=require(_0xe0a9('0x0'));exports[_0xe0a9('0x1')]=function(){return function(_0x593f00){return client[_0xe0a9('0x2')](_0xe0a9('0x3'),{'options':{'raw':![],'attributes':['id',_0xe0a9('0x4'),_0xe0a9('0x5'),_0xe0a9('0x6'),_0xe0a9('0x7'),_0xe0a9('0x8'),'clientSecret','serverUrl',_0xe0a9('0x9'),'refreshToken'],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id',_0xe0a9('0x4'),'moduleCreate',_0xe0a9('0xa'),_0xe0a9('0x5')],'include':[{'model':_0xe0a9('0xb'),'as':_0xe0a9('0xc'),'attributes':['id',_0xe0a9('0xd'),_0xe0a9('0xe'),_0xe0a9('0xf')],'include':[{'model':_0xe0a9('0x10'),'as':'Variable','attributes':['id',_0xe0a9('0x4')]}]},{'model':_0xe0a9('0xb'),'as':'Descriptions','attributes':['id',_0xe0a9('0xd'),_0xe0a9('0xe'),_0xe0a9('0x11'),'keyType',_0xe0a9('0x12'),_0xe0a9('0xf')],'include':[{'model':_0xe0a9('0x10'),'as':_0xe0a9('0x10'),'attributes':['id','name']}]},{'model':_0xe0a9('0xb'),'as':_0xe0a9('0x13'),'attributes':['id',_0xe0a9('0xd'),_0xe0a9('0xe'),'idField',_0xe0a9('0x14'),'customField',_0xe0a9('0xf')],'include':[{'model':_0xe0a9('0x10'),'as':_0xe0a9('0x10'),'attributes':['id',_0xe0a9('0x4')]}]}]}]},'log':_0xe0a9('0x3')});};};