Built motion from commit 47436d59.|2.6.7
[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 _0x71ab=['ZohoField','type','Variable','Descriptions','key','variableName','Fields','content','idField','nameField','customField','../../client','Request','GetZohoAccount','name','description','zone','serverUrl','code','refreshToken','Configurations','moduleSearch'];(function(_0x545554,_0x49de47){var _0x408e0c=function(_0x2680b2){while(--_0x2680b2){_0x545554['push'](_0x545554['shift']());}};_0x408e0c(++_0x49de47);}(_0x71ab,0x13f));var _0xb71a=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x71ab[_0x19e35c];return _0x3e1fe8;};'use strict';var client=require(_0xb71a('0x0'));exports['getZohoAccounts']=function(){return function(_0x5297af){return client[_0xb71a('0x1')](_0xb71a('0x2'),{'options':{'raw':![],'attributes':['id',_0xb71a('0x3'),_0xb71a('0x4'),'host',_0xb71a('0x5'),'clientId','clientSecret',_0xb71a('0x6'),_0xb71a('0x7'),_0xb71a('0x8')],'include':[{'model':'ZohoConfiguration','as':_0xb71a('0x9'),'attributes':['id',_0xb71a('0x3'),'moduleCreate',_0xb71a('0xa'),_0xb71a('0x4')],'include':[{'model':_0xb71a('0xb'),'as':'Subjects','attributes':['id',_0xb71a('0xc'),'content','variableName'],'include':[{'model':_0xb71a('0xd'),'as':_0xb71a('0xd'),'attributes':['id',_0xb71a('0x3')]}]},{'model':'ZohoField','as':_0xb71a('0xe'),'attributes':['id','type','content',_0xb71a('0xf'),'keyType','keyContent',_0xb71a('0x10')],'include':[{'model':_0xb71a('0xd'),'as':'Variable','attributes':['id',_0xb71a('0x3')]}]},{'model':_0xb71a('0xb'),'as':_0xb71a('0x11'),'attributes':['id','type',_0xb71a('0x12'),_0xb71a('0x13'),_0xb71a('0x14'),_0xb71a('0x15'),_0xb71a('0x10')],'include':[{'model':'Variable','as':_0xb71a('0xd'),'attributes':['id',_0xb71a('0x3')]}]}]}]},'log':_0xb71a('0x2')});};};