2bbe3f70b9409ac8df40616fb5d7154554eca3a7
[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 _0xca02=['content','variableName','Variable','Descriptions','keyContent','type','nameField','customField','name','../../client','getZohoAccounts','Request','GetZohoAccount','description','host','zone','clientId','clientSecret','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects'];(function(_0x4acf6f,_0x5072e5){var _0x3c6d3a=function(_0x4c72a6){while(--_0x4c72a6){_0x4acf6f['push'](_0x4acf6f['shift']());}};_0x3c6d3a(++_0x5072e5);}(_0xca02,0x1a9));var _0x2ca0=function(_0x106399,_0x368828){_0x106399=_0x106399-0x0;var _0x4d048e=_0xca02[_0x106399];return _0x4d048e;};'use strict';var client=require(_0x2ca0('0x0'));exports[_0x2ca0('0x1')]=function(){return function(_0x6f5a69){return client[_0x2ca0('0x2')](_0x2ca0('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x2ca0('0x4'),_0x2ca0('0x5'),_0x2ca0('0x6'),_0x2ca0('0x7'),_0x2ca0('0x8'),'serverUrl',_0x2ca0('0x9'),_0x2ca0('0xa')],'include':[{'model':_0x2ca0('0xb'),'as':_0x2ca0('0xc'),'attributes':['id','name',_0x2ca0('0xd'),_0x2ca0('0xe'),_0x2ca0('0x4')],'include':[{'model':_0x2ca0('0xf'),'as':_0x2ca0('0x10'),'attributes':['id','type',_0x2ca0('0x11'),_0x2ca0('0x12')],'include':[{'model':_0x2ca0('0x13'),'as':_0x2ca0('0x13'),'attributes':['id','name']}]},{'model':_0x2ca0('0xf'),'as':_0x2ca0('0x14'),'attributes':['id','type','content','key','keyType',_0x2ca0('0x15'),_0x2ca0('0x12')],'include':[{'model':'Variable','as':_0x2ca0('0x13'),'attributes':['id','name']}]},{'model':_0x2ca0('0xf'),'as':'Fields','attributes':['id',_0x2ca0('0x16'),_0x2ca0('0x11'),'idField',_0x2ca0('0x17'),_0x2ca0('0x18'),_0x2ca0('0x12')],'include':[{'model':_0x2ca0('0x13'),'as':_0x2ca0('0x13'),'attributes':['id',_0x2ca0('0x19')]}]}]}]},'log':_0x2ca0('0x3')});};};