Built motion from commit 5b761a7b.|2.5.36
[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 _0xc1a2=['keyContent','Fields','idField','nameField','customField','../../client','Request','GetZohoAccount','name','description','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','Subjects','content','variableName','Variable','ZohoField','type','key','keyType'];(function(_0x3d779a,_0x4a3d3f){var _0x5e83ff=function(_0x8bc7df){while(--_0x8bc7df){_0x3d779a['push'](_0x3d779a['shift']());}};_0x5e83ff(++_0x4a3d3f);}(_0xc1a2,0x1eb));var _0x2c1a=function(_0x376224,_0x1669b7){_0x376224=_0x376224-0x0;var _0x228adb=_0xc1a2[_0x376224];return _0x228adb;};'use strict';var client=require(_0x2c1a('0x0'));exports['getZohoAccounts']=function(){return function(_0x5b9eb1){return client[_0x2c1a('0x1')](_0x2c1a('0x2'),{'options':{'raw':![],'attributes':['id',_0x2c1a('0x3'),_0x2c1a('0x4'),'host',_0x2c1a('0x5'),_0x2c1a('0x6'),_0x2c1a('0x7'),_0x2c1a('0x8'),_0x2c1a('0x9'),_0x2c1a('0xa')],'include':[{'model':_0x2c1a('0xb'),'as':_0x2c1a('0xc'),'attributes':['id',_0x2c1a('0x3'),_0x2c1a('0xd'),'moduleSearch',_0x2c1a('0x4')],'include':[{'model':'ZohoField','as':_0x2c1a('0xe'),'attributes':['id','type',_0x2c1a('0xf'),_0x2c1a('0x10')],'include':[{'model':_0x2c1a('0x11'),'as':'Variable','attributes':['id',_0x2c1a('0x3')]}]},{'model':_0x2c1a('0x12'),'as':'Descriptions','attributes':['id',_0x2c1a('0x13'),_0x2c1a('0xf'),_0x2c1a('0x14'),_0x2c1a('0x15'),_0x2c1a('0x16'),_0x2c1a('0x10')],'include':[{'model':_0x2c1a('0x11'),'as':'Variable','attributes':['id',_0x2c1a('0x3')]}]},{'model':'ZohoField','as':_0x2c1a('0x17'),'attributes':['id',_0x2c1a('0x13'),_0x2c1a('0xf'),_0x2c1a('0x18'),_0x2c1a('0x19'),_0x2c1a('0x1a'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};