99dfa1add0d99db06e6e4cf6708d635ab9fb7e09
[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 _0xbdee=['name','description','host','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','content','variableName','Variable','Descriptions','type','keyContent','ZohoField','Fields','idField','customField','../../client','getZohoAccounts','Request'];(function(_0x34e198,_0x50a639){var _0xa381e9=function(_0x3b3817){while(--_0x3b3817){_0x34e198['push'](_0x34e198['shift']());}};_0xa381e9(++_0x50a639);}(_0xbdee,0x174));var _0xebde=function(_0x4360c4,_0x2f8209){_0x4360c4=_0x4360c4-0x0;var _0x3168c8=_0xbdee[_0x4360c4];return _0x3168c8;};'use strict';var client=require(_0xebde('0x0'));exports[_0xebde('0x1')]=function(){return function(_0x3ad643){return client[_0xebde('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0xebde('0x3'),_0xebde('0x4'),_0xebde('0x5'),'zone',_0xebde('0x6'),_0xebde('0x7'),_0xebde('0x8'),_0xebde('0x9'),_0xebde('0xa')],'include':[{'model':_0xebde('0xb'),'as':_0xebde('0xc'),'attributes':['id',_0xebde('0x3'),_0xebde('0xd'),_0xebde('0xe'),'description'],'include':[{'model':'ZohoField','as':'Subjects','attributes':['id','type',_0xebde('0xf'),_0xebde('0x10')],'include':[{'model':_0xebde('0x11'),'as':'Variable','attributes':['id',_0xebde('0x3')]}]},{'model':'ZohoField','as':_0xebde('0x12'),'attributes':['id',_0xebde('0x13'),'content','key','keyType',_0xebde('0x14'),_0xebde('0x10')],'include':[{'model':_0xebde('0x11'),'as':'Variable','attributes':['id',_0xebde('0x3')]}]},{'model':_0xebde('0x15'),'as':_0xebde('0x16'),'attributes':['id',_0xebde('0x13'),_0xebde('0xf'),_0xebde('0x17'),'nameField',_0xebde('0x18'),_0xebde('0x10')],'include':[{'model':_0xebde('0x11'),'as':'Variable','attributes':['id',_0xebde('0x3')]}]}]}]},'log':'GetZohoAccount'});};};