6f733902f68bea1970287ab3b15d2b12bd847136
[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 _0x1a3c=['content','Variable','Descriptions','keyType','keyContent','variableName','Fields','idField','nameField','customField','Request','GetZohoAccount','name','host','zone','clientSecret','serverUrl','code','refreshToken','Configurations','moduleCreate','moduleSearch','description','ZohoField','Subjects','type'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0x1a3c,0xf4));var _0xc1a3=function(_0x18498c,_0x27ea69){_0x18498c=_0x18498c-0x0;var _0x4f3216=_0x1a3c[_0x18498c];return _0x4f3216;};'use strict';var client=require('../../client');exports['getZohoAccounts']=function(){return function(_0x18fd8f){return client[_0xc1a3('0x0')](_0xc1a3('0x1'),{'options':{'raw':![],'attributes':['id',_0xc1a3('0x2'),'description',_0xc1a3('0x3'),_0xc1a3('0x4'),'clientId',_0xc1a3('0x5'),_0xc1a3('0x6'),_0xc1a3('0x7'),_0xc1a3('0x8')],'include':[{'model':'ZohoConfiguration','as':_0xc1a3('0x9'),'attributes':['id',_0xc1a3('0x2'),_0xc1a3('0xa'),_0xc1a3('0xb'),_0xc1a3('0xc')],'include':[{'model':_0xc1a3('0xd'),'as':_0xc1a3('0xe'),'attributes':['id',_0xc1a3('0xf'),_0xc1a3('0x10'),'variableName'],'include':[{'model':_0xc1a3('0x11'),'as':_0xc1a3('0x11'),'attributes':['id',_0xc1a3('0x2')]}]},{'model':_0xc1a3('0xd'),'as':_0xc1a3('0x12'),'attributes':['id',_0xc1a3('0xf'),_0xc1a3('0x10'),'key',_0xc1a3('0x13'),_0xc1a3('0x14'),_0xc1a3('0x15')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xc1a3('0x2')]}]},{'model':_0xc1a3('0xd'),'as':_0xc1a3('0x16'),'attributes':['id',_0xc1a3('0xf'),_0xc1a3('0x10'),_0xc1a3('0x17'),_0xc1a3('0x18'),_0xc1a3('0x19'),_0xc1a3('0x15')],'include':[{'model':_0xc1a3('0x11'),'as':_0xc1a3('0x11'),'attributes':['id',_0xc1a3('0x2')]}]}]}]},'log':_0xc1a3('0x1')});};};