Built motion from commit 3e059bc2.|2.5.32
[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 _0xb969=['name','host','zone','clientId','clientSecret','code','refreshToken','moduleCreate','moduleSearch','description','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','ZohoField','Fields','idField','nameField','../../client','getZohoAccounts','GetZohoAccount'];(function(_0x346324,_0x3776e1){var _0x257744=function(_0x1c6dfb){while(--_0x1c6dfb){_0x346324['push'](_0x346324['shift']());}};_0x257744(++_0x3776e1);}(_0xb969,0x99));var _0x9b96=function(_0x5d7ec2,_0xa32d58){_0x5d7ec2=_0x5d7ec2-0x0;var _0x4f8852=_0xb969[_0x5d7ec2];return _0x4f8852;};'use strict';var client=require(_0x9b96('0x0'));exports[_0x9b96('0x1')]=function(){return function(_0x551e5d){return client['Request'](_0x9b96('0x2'),{'options':{'raw':![],'attributes':['id',_0x9b96('0x3'),'description',_0x9b96('0x4'),_0x9b96('0x5'),_0x9b96('0x6'),_0x9b96('0x7'),'serverUrl',_0x9b96('0x8'),_0x9b96('0x9')],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id',_0x9b96('0x3'),_0x9b96('0xa'),_0x9b96('0xb'),_0x9b96('0xc')],'include':[{'model':'ZohoField','as':_0x9b96('0xd'),'attributes':['id',_0x9b96('0xe'),_0x9b96('0xf'),_0x9b96('0x10')],'include':[{'model':_0x9b96('0x11'),'as':_0x9b96('0x11'),'attributes':['id',_0x9b96('0x3')]}]},{'model':'ZohoField','as':_0x9b96('0x12'),'attributes':['id',_0x9b96('0xe'),_0x9b96('0xf'),_0x9b96('0x13'),_0x9b96('0x14'),_0x9b96('0x15'),_0x9b96('0x10')],'include':[{'model':_0x9b96('0x11'),'as':'Variable','attributes':['id',_0x9b96('0x3')]}]},{'model':_0x9b96('0x16'),'as':_0x9b96('0x17'),'attributes':['id','type',_0x9b96('0xf'),_0x9b96('0x18'),_0x9b96('0x19'),'customField',_0x9b96('0x10')],'include':[{'model':'Variable','as':_0x9b96('0x11'),'attributes':['id',_0x9b96('0x3')]}]}]}]},'log':'GetZohoAccount'});};};