Built motion from commit 616d3211.|2.6.4
[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 _0xd4ae=['keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','zone','clientId','clientSecret','serverUrl','refreshToken','ZohoConfiguration','Configurations','moduleSearch','type','variableName','Variable','ZohoField','content','key'];(function(_0xe2ae2b,_0x48d240){var _0xa5cac5=function(_0x384b82){while(--_0x384b82){_0xe2ae2b['push'](_0xe2ae2b['shift']());}};_0xa5cac5(++_0x48d240);}(_0xd4ae,0x1e5));var _0xed4a=function(_0x2f227c,_0x360c3a){_0x2f227c=_0x2f227c-0x0;var _0x5032bc=_0xd4ae[_0x2f227c];return _0x5032bc;};'use strict';var client=require(_0xed4a('0x0'));exports[_0xed4a('0x1')]=function(){return function(_0x1a87cf){return client[_0xed4a('0x2')](_0xed4a('0x3'),{'options':{'raw':![],'attributes':['id',_0xed4a('0x4'),'description','host',_0xed4a('0x5'),_0xed4a('0x6'),_0xed4a('0x7'),_0xed4a('0x8'),'code',_0xed4a('0x9')],'include':[{'model':_0xed4a('0xa'),'as':_0xed4a('0xb'),'attributes':['id','name','moduleCreate',_0xed4a('0xc'),'description'],'include':[{'model':'ZohoField','as':'Subjects','attributes':['id',_0xed4a('0xd'),'content',_0xed4a('0xe')],'include':[{'model':_0xed4a('0xf'),'as':_0xed4a('0xf'),'attributes':['id',_0xed4a('0x4')]}]},{'model':_0xed4a('0x10'),'as':'Descriptions','attributes':['id',_0xed4a('0xd'),_0xed4a('0x11'),_0xed4a('0x12'),'keyType',_0xed4a('0x13'),'variableName'],'include':[{'model':_0xed4a('0xf'),'as':_0xed4a('0xf'),'attributes':['id',_0xed4a('0x4')]}]},{'model':_0xed4a('0x10'),'as':_0xed4a('0x14'),'attributes':['id',_0xed4a('0xd'),'content',_0xed4a('0x15'),_0xed4a('0x16'),_0xed4a('0x17'),_0xed4a('0xe')],'include':[{'model':'Variable','as':_0xed4a('0xf'),'attributes':['id',_0xed4a('0x4')]}]}]}]},'log':_0xed4a('0x3')});};};