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