Built motion from commit f7863d46.|2.5.41
[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 _0xcfb5=['getZohoAccounts','name','description','clientId','clientSecret','serverUrl','code','refreshToken','moduleCreate','moduleSearch','ZohoField','content','variableName','Variable','Descriptions','type','key','keyType','nameField','customField','GetZohoAccount'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0xcfb5,0x1ce));var _0x5cfb=function(_0xdf10cc,_0x407dd4){_0xdf10cc=_0xdf10cc-0x0;var _0x487392=_0xcfb5[_0xdf10cc];return _0x487392;};'use strict';var client=require('../../client');exports[_0x5cfb('0x0')]=function(){return function(_0x521588){return client['Request']('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x5cfb('0x1'),_0x5cfb('0x2'),'host','zone',_0x5cfb('0x3'),_0x5cfb('0x4'),_0x5cfb('0x5'),_0x5cfb('0x6'),_0x5cfb('0x7')],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id',_0x5cfb('0x1'),_0x5cfb('0x8'),_0x5cfb('0x9'),'description'],'include':[{'model':_0x5cfb('0xa'),'as':'Subjects','attributes':['id','type',_0x5cfb('0xb'),_0x5cfb('0xc')],'include':[{'model':_0x5cfb('0xd'),'as':_0x5cfb('0xd'),'attributes':['id',_0x5cfb('0x1')]}]},{'model':'ZohoField','as':_0x5cfb('0xe'),'attributes':['id',_0x5cfb('0xf'),_0x5cfb('0xb'),_0x5cfb('0x10'),_0x5cfb('0x11'),'keyContent',_0x5cfb('0xc')],'include':[{'model':_0x5cfb('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':'ZohoField','as':'Fields','attributes':['id','type','content','idField',_0x5cfb('0x12'),_0x5cfb('0x13'),_0x5cfb('0xc')],'include':[{'model':_0x5cfb('0xd'),'as':_0x5cfb('0xd'),'attributes':['id',_0x5cfb('0x1')]}]}]}]},'log':_0x5cfb('0x14')});};};