053250743d363d28d36f72837a2eea26cab46f64
[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 _0xb3b7=['keyContent','Fields','idField','nameField','customField','../../client','Request','GetZohoAccount','name','description','host','zone','clientSecret','serverUrl','code','ZohoConfiguration','moduleCreate','moduleSearch','Subjects','type','content','variableName','Variable','ZohoField','Descriptions','key'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xb3b7,0x157));var _0x7b3b=function(_0x22cb2e,_0x51d8d0){_0x22cb2e=_0x22cb2e-0x0;var _0x435046=_0xb3b7[_0x22cb2e];return _0x435046;};'use strict';var client=require(_0x7b3b('0x0'));exports['getZohoAccounts']=function(){return function(_0x1b1721){return client[_0x7b3b('0x1')](_0x7b3b('0x2'),{'options':{'raw':![],'attributes':['id',_0x7b3b('0x3'),_0x7b3b('0x4'),_0x7b3b('0x5'),_0x7b3b('0x6'),'clientId',_0x7b3b('0x7'),_0x7b3b('0x8'),_0x7b3b('0x9'),'refreshToken'],'include':[{'model':_0x7b3b('0xa'),'as':'Configurations','attributes':['id',_0x7b3b('0x3'),_0x7b3b('0xb'),_0x7b3b('0xc'),_0x7b3b('0x4')],'include':[{'model':'ZohoField','as':_0x7b3b('0xd'),'attributes':['id',_0x7b3b('0xe'),_0x7b3b('0xf'),_0x7b3b('0x10')],'include':[{'model':_0x7b3b('0x11'),'as':_0x7b3b('0x11'),'attributes':['id',_0x7b3b('0x3')]}]},{'model':_0x7b3b('0x12'),'as':_0x7b3b('0x13'),'attributes':['id',_0x7b3b('0xe'),'content',_0x7b3b('0x14'),'keyType',_0x7b3b('0x15'),_0x7b3b('0x10')],'include':[{'model':_0x7b3b('0x11'),'as':_0x7b3b('0x11'),'attributes':['id',_0x7b3b('0x3')]}]},{'model':'ZohoField','as':_0x7b3b('0x16'),'attributes':['id',_0x7b3b('0xe'),_0x7b3b('0xf'),_0x7b3b('0x17'),_0x7b3b('0x18'),_0x7b3b('0x19'),'variableName'],'include':[{'model':_0x7b3b('0x11'),'as':_0x7b3b('0x11'),'attributes':['id',_0x7b3b('0x3')]}]}]}]},'log':_0x7b3b('0x2')});};};