Built motion from commit 10af8726.|2.6.34
[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 _0xe2e5=['keyContent','Fields','nameField','customField','../../client','getZohoAccounts','GetZohoAccount','name','description','host','clientSecret','serverUrl','ZohoConfiguration','Configurations','moduleSearch','Subjects','type','content','variableName','Variable','ZohoField','Descriptions','keyType'];(function(_0x1def21,_0x207558){var _0x4178aa=function(_0x47167b){while(--_0x47167b){_0x1def21['push'](_0x1def21['shift']());}};_0x4178aa(++_0x207558);}(_0xe2e5,0x18b));var _0x5e2e=function(_0x102400,_0x6d09fd){_0x102400=_0x102400-0x0;var _0x35b68c=_0xe2e5[_0x102400];return _0x35b68c;};'use strict';var client=require(_0x5e2e('0x0'));exports[_0x5e2e('0x1')]=function(){return function(_0x3e6492){return client['Request'](_0x5e2e('0x2'),{'options':{'raw':![],'attributes':['id',_0x5e2e('0x3'),_0x5e2e('0x4'),_0x5e2e('0x5'),'zone','clientId',_0x5e2e('0x6'),_0x5e2e('0x7'),'code','refreshToken'],'include':[{'model':_0x5e2e('0x8'),'as':_0x5e2e('0x9'),'attributes':['id','name','moduleCreate',_0x5e2e('0xa'),_0x5e2e('0x4')],'include':[{'model':'ZohoField','as':_0x5e2e('0xb'),'attributes':['id',_0x5e2e('0xc'),_0x5e2e('0xd'),_0x5e2e('0xe')],'include':[{'model':_0x5e2e('0xf'),'as':'Variable','attributes':['id',_0x5e2e('0x3')]}]},{'model':_0x5e2e('0x10'),'as':_0x5e2e('0x11'),'attributes':['id',_0x5e2e('0xc'),'content','key',_0x5e2e('0x12'),_0x5e2e('0x13'),_0x5e2e('0xe')],'include':[{'model':_0x5e2e('0xf'),'as':_0x5e2e('0xf'),'attributes':['id',_0x5e2e('0x3')]}]},{'model':_0x5e2e('0x10'),'as':_0x5e2e('0x14'),'attributes':['id',_0x5e2e('0xc'),_0x5e2e('0xd'),'idField',_0x5e2e('0x15'),_0x5e2e('0x16'),'variableName'],'include':[{'model':_0x5e2e('0xf'),'as':_0x5e2e('0xf'),'attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};