Built motion from commit (unavailable).|2.5.30
[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 _0xe74a=['Request','GetZohoAccount','name','description','host','clientId','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName','Variable','key','keyType','Fields','idField','nameField','customField','../../client','getZohoAccounts'];(function(_0x1969a7,_0x5a133a){var _0x3d665f=function(_0x39c64b){while(--_0x39c64b){_0x1969a7['push'](_0x1969a7['shift']());}};_0x3d665f(++_0x5a133a);}(_0xe74a,0x127));var _0xae74=function(_0x2c2d11,_0x4308ac){_0x2c2d11=_0x2c2d11-0x0;var _0x255f24=_0xe74a[_0x2c2d11];return _0x255f24;};'use strict';var client=require(_0xae74('0x0'));exports[_0xae74('0x1')]=function(){return function(_0x5dabc5){return client[_0xae74('0x2')](_0xae74('0x3'),{'options':{'raw':![],'attributes':['id',_0xae74('0x4'),_0xae74('0x5'),_0xae74('0x6'),'zone',_0xae74('0x7'),'clientSecret',_0xae74('0x8'),_0xae74('0x9'),_0xae74('0xa')],'include':[{'model':_0xae74('0xb'),'as':_0xae74('0xc'),'attributes':['id',_0xae74('0x4'),_0xae74('0xd'),_0xae74('0xe'),_0xae74('0x5')],'include':[{'model':_0xae74('0xf'),'as':_0xae74('0x10'),'attributes':['id',_0xae74('0x11'),_0xae74('0x12'),_0xae74('0x13')],'include':[{'model':'Variable','as':_0xae74('0x14'),'attributes':['id',_0xae74('0x4')]}]},{'model':_0xae74('0xf'),'as':'Descriptions','attributes':['id',_0xae74('0x11'),_0xae74('0x12'),_0xae74('0x15'),_0xae74('0x16'),'keyContent',_0xae74('0x13')],'include':[{'model':_0xae74('0x14'),'as':_0xae74('0x14'),'attributes':['id','name']}]},{'model':_0xae74('0xf'),'as':_0xae74('0x17'),'attributes':['id',_0xae74('0x11'),_0xae74('0x12'),_0xae74('0x18'),_0xae74('0x19'),_0xae74('0x1a'),_0xae74('0x13')],'include':[{'model':_0xae74('0x14'),'as':'Variable','attributes':['id',_0xae74('0x4')]}]}]}]},'log':_0xae74('0x3')});};};