Built motion from commit (unavailable).|2.4.21
[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 _0x97e1=['ZohoConfiguration','moduleSearch','Subjects','type','content','variableName','Variable','ZohoField','Descriptions','key','keyType','keyContent','Fields','idField','Request','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code'];(function(_0x6e3355,_0x418cd8){var _0x5ef861=function(_0x13d7b1){while(--_0x13d7b1){_0x6e3355['push'](_0x6e3355['shift']());}};_0x5ef861(++_0x418cd8);}(_0x97e1,0x176));var _0x197e=function(_0x155bbf,_0x1bca34){_0x155bbf=_0x155bbf-0x0;var _0x1cb0ac=_0x97e1[_0x155bbf];return _0x1cb0ac;};'use strict';var client=require('../../client');exports['getZohoAccounts']=function(){return function(_0x522245){return client[_0x197e('0x0')](_0x197e('0x1'),{'options':{'raw':![],'attributes':['id',_0x197e('0x2'),_0x197e('0x3'),_0x197e('0x4'),_0x197e('0x5'),_0x197e('0x6'),_0x197e('0x7'),_0x197e('0x8'),_0x197e('0x9'),'refreshToken'],'include':[{'model':_0x197e('0xa'),'as':'Configurations','attributes':['id',_0x197e('0x2'),'moduleCreate',_0x197e('0xb'),_0x197e('0x3')],'include':[{'model':'ZohoField','as':_0x197e('0xc'),'attributes':['id',_0x197e('0xd'),_0x197e('0xe'),_0x197e('0xf')],'include':[{'model':'Variable','as':_0x197e('0x10'),'attributes':['id',_0x197e('0x2')]}]},{'model':_0x197e('0x11'),'as':_0x197e('0x12'),'attributes':['id',_0x197e('0xd'),'content',_0x197e('0x13'),_0x197e('0x14'),_0x197e('0x15'),_0x197e('0xf')],'include':[{'model':_0x197e('0x10'),'as':'Variable','attributes':['id',_0x197e('0x2')]}]},{'model':_0x197e('0x11'),'as':_0x197e('0x16'),'attributes':['id','type',_0x197e('0xe'),_0x197e('0x17'),'nameField','customField','variableName'],'include':[{'model':_0x197e('0x10'),'as':_0x197e('0x10'),'attributes':['id',_0x197e('0x2')]}]}]}]},'log':_0x197e('0x1')});};};