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