Built motion from commit 9d0783e6.|2.6.13
[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 _0xc634=['Descriptions','content','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','clientId','clientSecret','code','refreshToken','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','variableName','Variable'];(function(_0x28990f,_0x1cb2d5){var _0x11effa=function(_0x5c0d83){while(--_0x5c0d83){_0x28990f['push'](_0x28990f['shift']());}};_0x11effa(++_0x1cb2d5);}(_0xc634,0x168));var _0x4c63=function(_0x1ef48d,_0x19781c){_0x1ef48d=_0x1ef48d-0x0;var _0x25776c=_0xc634[_0x1ef48d];return _0x25776c;};'use strict';var client=require(_0x4c63('0x0'));exports[_0x4c63('0x1')]=function(){return function(_0x2fd7e6){return client[_0x4c63('0x2')](_0x4c63('0x3'),{'options':{'raw':![],'attributes':['id',_0x4c63('0x4'),_0x4c63('0x5'),'host','zone',_0x4c63('0x6'),_0x4c63('0x7'),'serverUrl',_0x4c63('0x8'),_0x4c63('0x9')],'include':[{'model':'ZohoConfiguration','as':_0x4c63('0xa'),'attributes':['id',_0x4c63('0x4'),_0x4c63('0xb'),_0x4c63('0xc'),_0x4c63('0x5')],'include':[{'model':_0x4c63('0xd'),'as':_0x4c63('0xe'),'attributes':['id',_0x4c63('0xf'),'content',_0x4c63('0x10')],'include':[{'model':_0x4c63('0x11'),'as':'Variable','attributes':['id',_0x4c63('0x4')]}]},{'model':_0x4c63('0xd'),'as':_0x4c63('0x12'),'attributes':['id','type',_0x4c63('0x13'),_0x4c63('0x14'),_0x4c63('0x15'),_0x4c63('0x16'),'variableName'],'include':[{'model':_0x4c63('0x11'),'as':_0x4c63('0x11'),'attributes':['id',_0x4c63('0x4')]}]},{'model':_0x4c63('0xd'),'as':_0x4c63('0x17'),'attributes':['id',_0x4c63('0xf'),'content',_0x4c63('0x18'),_0x4c63('0x19'),_0x4c63('0x1a'),'variableName'],'include':[{'model':_0x4c63('0x11'),'as':_0x4c63('0x11'),'attributes':['id',_0x4c63('0x4')]}]}]}]},'log':_0x4c63('0x3')});};};