Built motion from commit (unavailable).|2.4.18
[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 _0x93e6=['variableName','Variable','content','key','keyType','keyContent','Fields','nameField','customField','GetZohoAccount','../../client','Request','name','host','zone','clientId','serverUrl','code','refreshToken','moduleCreate','ZohoField','Subjects','type'];(function(_0x398c74,_0x4c5257){var _0x4d295a=function(_0x57e844){while(--_0x57e844){_0x398c74['push'](_0x398c74['shift']());}};_0x4d295a(++_0x4c5257);}(_0x93e6,0x11e));var _0x693e=function(_0x5f162a,_0x224503){_0x5f162a=_0x5f162a-0x0;var _0x35a073=_0x93e6[_0x5f162a];return _0x35a073;};'use strict';var client=require(_0x693e('0x0'));exports['getZohoAccounts']=function(){return function(_0x5f4d40){return client[_0x693e('0x1')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x693e('0x2'),'description',_0x693e('0x3'),_0x693e('0x4'),_0x693e('0x5'),'clientSecret',_0x693e('0x6'),_0x693e('0x7'),_0x693e('0x8')],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id','name',_0x693e('0x9'),'description'],'include':[{'model':_0x693e('0xa'),'as':_0x693e('0xb'),'attributes':['id',_0x693e('0xc'),'content',_0x693e('0xd')],'include':[{'model':'Variable','as':_0x693e('0xe'),'attributes':['id','name']}]},{'model':_0x693e('0xa'),'as':'Descriptions','attributes':['id','type',_0x693e('0xf'),_0x693e('0x10'),_0x693e('0x11'),_0x693e('0x12'),'variableName'],'include':[{'model':_0x693e('0xe'),'as':_0x693e('0xe'),'attributes':['id',_0x693e('0x2')]}]},{'model':_0x693e('0xa'),'as':_0x693e('0x13'),'attributes':['id',_0x693e('0xc'),_0x693e('0xf'),'idField',_0x693e('0x14'),_0x693e('0x15'),_0x693e('0xd')],'include':[{'model':'Variable','as':_0x693e('0xe'),'attributes':['id',_0x693e('0x2')]}]}]}]},'log':_0x693e('0x16')});};};