Built motion from commit 013e4bb4.|2.6.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 _0x47f9=['clientId','serverUrl','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','idField','nameField','../../client','GetZohoAccount','name','description','host','zone'];(function(_0x4d8ed9,_0x2ae284){var _0x1e2140=function(_0x9cca89){while(--_0x9cca89){_0x4d8ed9['push'](_0x4d8ed9['shift']());}};_0x1e2140(++_0x2ae284);}(_0x47f9,0x162));var _0x947f=function(_0x1e2939,_0x1f1ddc){_0x1e2939=_0x1e2939-0x0;var _0x1a1028=_0x47f9[_0x1e2939];return _0x1a1028;};'use strict';var client=require(_0x947f('0x0'));exports['getZohoAccounts']=function(){return function(_0x1222d6){return client['Request'](_0x947f('0x1'),{'options':{'raw':![],'attributes':['id',_0x947f('0x2'),_0x947f('0x3'),_0x947f('0x4'),_0x947f('0x5'),_0x947f('0x6'),'clientSecret',_0x947f('0x7'),'code',_0x947f('0x8')],'include':[{'model':_0x947f('0x9'),'as':_0x947f('0xa'),'attributes':['id',_0x947f('0x2'),_0x947f('0xb'),_0x947f('0xc'),_0x947f('0x3')],'include':[{'model':_0x947f('0xd'),'as':_0x947f('0xe'),'attributes':['id',_0x947f('0xf'),_0x947f('0x10'),_0x947f('0x11')],'include':[{'model':_0x947f('0x12'),'as':_0x947f('0x12'),'attributes':['id',_0x947f('0x2')]}]},{'model':_0x947f('0xd'),'as':'Descriptions','attributes':['id',_0x947f('0xf'),_0x947f('0x10'),_0x947f('0x13'),_0x947f('0x14'),_0x947f('0x15'),'variableName'],'include':[{'model':_0x947f('0x12'),'as':_0x947f('0x12'),'attributes':['id',_0x947f('0x2')]}]},{'model':_0x947f('0xd'),'as':'Fields','attributes':['id','type',_0x947f('0x10'),_0x947f('0x16'),_0x947f('0x17'),'customField',_0x947f('0x11')],'include':[{'model':'Variable','as':_0x947f('0x12'),'attributes':['id','name']}]}]}]},'log':_0x947f('0x1')});};};