Built motion from commit (unavailable).|2.4.20
[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 _0x601a=['variableName','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','name','clientSecret','refreshToken','Configurations','moduleSearch','description','Subjects','content','Variable','ZohoField','Descriptions','type','keyType'];(function(_0x53eb73,_0x5e9d80){var _0x125bd7=function(_0x4df46d){while(--_0x4df46d){_0x53eb73['push'](_0x53eb73['shift']());}};_0x125bd7(++_0x5e9d80);}(_0x601a,0x194));var _0xa601=function(_0x1d0d7f,_0x42997c){_0x1d0d7f=_0x1d0d7f-0x0;var _0xa8ce5e=_0x601a[_0x1d0d7f];return _0xa8ce5e;};'use strict';var client=require(_0xa601('0x0'));exports[_0xa601('0x1')]=function(){return function(_0x573cd1){return client[_0xa601('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0xa601('0x3'),'description','host','zone','clientId',_0xa601('0x4'),'serverUrl','code',_0xa601('0x5')],'include':[{'model':'ZohoConfiguration','as':_0xa601('0x6'),'attributes':['id',_0xa601('0x3'),'moduleCreate',_0xa601('0x7'),_0xa601('0x8')],'include':[{'model':'ZohoField','as':_0xa601('0x9'),'attributes':['id','type',_0xa601('0xa'),'variableName'],'include':[{'model':_0xa601('0xb'),'as':'Variable','attributes':['id',_0xa601('0x3')]}]},{'model':_0xa601('0xc'),'as':_0xa601('0xd'),'attributes':['id',_0xa601('0xe'),'content','key',_0xa601('0xf'),'keyContent',_0xa601('0x10')],'include':[{'model':_0xa601('0xb'),'as':_0xa601('0xb'),'attributes':['id','name']}]},{'model':_0xa601('0xc'),'as':_0xa601('0x11'),'attributes':['id',_0xa601('0xe'),'content',_0xa601('0x12'),_0xa601('0x13'),_0xa601('0x14'),'variableName'],'include':[{'model':_0xa601('0xb'),'as':_0xa601('0xb'),'attributes':['id',_0xa601('0x3')]}]}]}]},'log':'GetZohoAccount'});};};