bfb65da3593700b00c01444d71a81e99f206f5c8
[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 _0xa016=['key','keyContent','Fields','idField','customField','getZohoAccounts','GetZohoAccount','name','description','zone','clientId','clientSecret','code','ZohoConfiguration','Configurations','moduleSearch','type','content','variableName','Variable','ZohoField','Descriptions'];(function(_0x5db055,_0x35f14e){var _0x42dc5e=function(_0x158ae9){while(--_0x158ae9){_0x5db055['push'](_0x5db055['shift']());}};_0x42dc5e(++_0x35f14e);}(_0xa016,0x191));var _0x6a01=function(_0x19dd03,_0x47c0f9){_0x19dd03=_0x19dd03-0x0;var _0x287856=_0xa016[_0x19dd03];return _0x287856;};'use strict';var client=require('../../client');exports[_0x6a01('0x0')]=function(){return function(_0xa744d1){return client['Request'](_0x6a01('0x1'),{'options':{'raw':![],'attributes':['id',_0x6a01('0x2'),_0x6a01('0x3'),'host',_0x6a01('0x4'),_0x6a01('0x5'),_0x6a01('0x6'),'serverUrl',_0x6a01('0x7'),'refreshToken'],'include':[{'model':_0x6a01('0x8'),'as':_0x6a01('0x9'),'attributes':['id',_0x6a01('0x2'),'moduleCreate',_0x6a01('0xa'),_0x6a01('0x3')],'include':[{'model':'ZohoField','as':'Subjects','attributes':['id',_0x6a01('0xb'),_0x6a01('0xc'),_0x6a01('0xd')],'include':[{'model':_0x6a01('0xe'),'as':'Variable','attributes':['id',_0x6a01('0x2')]}]},{'model':_0x6a01('0xf'),'as':_0x6a01('0x10'),'attributes':['id',_0x6a01('0xb'),_0x6a01('0xc'),_0x6a01('0x11'),'keyType',_0x6a01('0x12'),_0x6a01('0xd')],'include':[{'model':_0x6a01('0xe'),'as':_0x6a01('0xe'),'attributes':['id',_0x6a01('0x2')]}]},{'model':_0x6a01('0xf'),'as':_0x6a01('0x13'),'attributes':['id',_0x6a01('0xb'),_0x6a01('0xc'),_0x6a01('0x14'),'nameField',_0x6a01('0x15'),_0x6a01('0xd')],'include':[{'model':_0x6a01('0xe'),'as':_0x6a01('0xe'),'attributes':['id','name']}]}]}]},'log':_0x6a01('0x1')});};};