274a6a43867e554f7387723aaa83e4654f465de0
[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 _0x773f=['Configurations','name','moduleCreate','moduleSearch','Subjects','type','content','variableName','Variable','ZohoField','keyType','keyContent','Fields','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','host','zone','clientSecret','serverUrl','code','ZohoConfiguration'];(function(_0x37f87e,_0x261465){var _0x233808=function(_0x57b8c0){while(--_0x57b8c0){_0x37f87e['push'](_0x37f87e['shift']());}};_0x233808(++_0x261465);}(_0x773f,0x8c));var _0xf773=function(_0x138adb,_0x193fee){_0x138adb=_0x138adb-0x0;var _0x1b27f2=_0x773f[_0x138adb];return _0x1b27f2;};'use strict';var client=require(_0xf773('0x0'));exports[_0xf773('0x1')]=function(){return function(_0x58c2d4){return client[_0xf773('0x2')](_0xf773('0x3'),{'options':{'raw':![],'attributes':['id','name','description',_0xf773('0x4'),_0xf773('0x5'),'clientId',_0xf773('0x6'),_0xf773('0x7'),_0xf773('0x8'),'refreshToken'],'include':[{'model':_0xf773('0x9'),'as':_0xf773('0xa'),'attributes':['id',_0xf773('0xb'),_0xf773('0xc'),_0xf773('0xd'),'description'],'include':[{'model':'ZohoField','as':_0xf773('0xe'),'attributes':['id',_0xf773('0xf'),_0xf773('0x10'),_0xf773('0x11')],'include':[{'model':_0xf773('0x12'),'as':_0xf773('0x12'),'attributes':['id','name']}]},{'model':_0xf773('0x13'),'as':'Descriptions','attributes':['id',_0xf773('0xf'),_0xf773('0x10'),'key',_0xf773('0x14'),_0xf773('0x15'),_0xf773('0x11')],'include':[{'model':_0xf773('0x12'),'as':'Variable','attributes':['id','name']}]},{'model':_0xf773('0x13'),'as':_0xf773('0x16'),'attributes':['id',_0xf773('0xf'),'content','idField',_0xf773('0x17'),_0xf773('0x18'),_0xf773('0x11')],'include':[{'model':_0xf773('0x12'),'as':_0xf773('0x12'),'attributes':['id',_0xf773('0xb')]}]}]}]},'log':_0xf773('0x3')});};};