44f8a9cec77fc2b14edbcf8afe998745dff0ac67
[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 _0x79c0=['Descriptions','type','content','key','variableName','Fields','idField','nameField','customField','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','description','ZohoField','Subjects','Variable'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0x79c0,0x132));var _0x079c=function(_0x20e44b,_0x22bc1a){_0x20e44b=_0x20e44b-0x0;var _0x17de60=_0x79c0[_0x20e44b];return _0x17de60;};'use strict';var client=require('../../client');exports[_0x079c('0x0')]=function(){return function(_0x3b4e86){return client[_0x079c('0x1')](_0x079c('0x2'),{'options':{'raw':![],'attributes':['id',_0x079c('0x3'),'description',_0x079c('0x4'),_0x079c('0x5'),_0x079c('0x6'),_0x079c('0x7'),_0x079c('0x8'),_0x079c('0x9'),_0x079c('0xa')],'include':[{'model':_0x079c('0xb'),'as':_0x079c('0xc'),'attributes':['id',_0x079c('0x3'),_0x079c('0xd'),'moduleSearch',_0x079c('0xe')],'include':[{'model':_0x079c('0xf'),'as':_0x079c('0x10'),'attributes':['id','type','content','variableName'],'include':[{'model':_0x079c('0x11'),'as':_0x079c('0x11'),'attributes':['id',_0x079c('0x3')]}]},{'model':_0x079c('0xf'),'as':_0x079c('0x12'),'attributes':['id',_0x079c('0x13'),_0x079c('0x14'),_0x079c('0x15'),'keyType','keyContent',_0x079c('0x16')],'include':[{'model':_0x079c('0x11'),'as':_0x079c('0x11'),'attributes':['id','name']}]},{'model':_0x079c('0xf'),'as':_0x079c('0x17'),'attributes':['id',_0x079c('0x13'),_0x079c('0x14'),_0x079c('0x18'),_0x079c('0x19'),_0x079c('0x1a'),_0x079c('0x16')],'include':[{'model':'Variable','as':_0x079c('0x11'),'attributes':['id',_0x079c('0x3')]}]}]}]},'log':_0x079c('0x2')});};};