Built motion from commit (unavailable).|2.5.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 _0xbfb2=['variableName','Variable','key','keyContent','idField','nameField','getZohoAccounts','Request','GetZohoAccount','description','clientId','clientSecret','refreshToken','ZohoConfiguration','name','moduleSearch','ZohoField','type','content'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xbfb2,0x9e));var _0x2bfb=function(_0xf11171,_0x321cad){_0xf11171=_0xf11171-0x0;var _0x5b3d91=_0xbfb2[_0xf11171];return _0x5b3d91;};'use strict';var client=require('../../client');exports[_0x2bfb('0x0')]=function(){return function(_0x53844c){return client[_0x2bfb('0x1')](_0x2bfb('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x2bfb('0x3'),'host','zone',_0x2bfb('0x4'),_0x2bfb('0x5'),'serverUrl','code',_0x2bfb('0x6')],'include':[{'model':_0x2bfb('0x7'),'as':'Configurations','attributes':['id',_0x2bfb('0x8'),'moduleCreate',_0x2bfb('0x9'),'description'],'include':[{'model':_0x2bfb('0xa'),'as':'Subjects','attributes':['id',_0x2bfb('0xb'),_0x2bfb('0xc'),_0x2bfb('0xd')],'include':[{'model':_0x2bfb('0xe'),'as':_0x2bfb('0xe'),'attributes':['id',_0x2bfb('0x8')]}]},{'model':_0x2bfb('0xa'),'as':'Descriptions','attributes':['id',_0x2bfb('0xb'),_0x2bfb('0xc'),_0x2bfb('0xf'),'keyType',_0x2bfb('0x10'),_0x2bfb('0xd')],'include':[{'model':_0x2bfb('0xe'),'as':_0x2bfb('0xe'),'attributes':['id',_0x2bfb('0x8')]}]},{'model':_0x2bfb('0xa'),'as':'Fields','attributes':['id',_0x2bfb('0xb'),'content',_0x2bfb('0x11'),_0x2bfb('0x12'),'customField','variableName'],'include':[{'model':_0x2bfb('0xe'),'as':'Variable','attributes':['id',_0x2bfb('0x8')]}]}]}]},'log':_0x2bfb('0x2')});};};