8ac7baac83579c709f27a037b8329c7f56ce8c3b
[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 _0xfefb=['GetZohoAccount','description','zone','clientId','clientSecret','serverUrl','code','refreshToken','Configurations','moduleCreate','ZohoField','content','Variable','name','Descriptions','type','key','keyContent','Fields','idField','variableName','../../client','getZohoAccounts','Request'];(function(_0x120500,_0xff52a5){var _0x46bb88=function(_0x1cd1c){while(--_0x1cd1c){_0x120500['push'](_0x120500['shift']());}};_0x46bb88(++_0xff52a5);}(_0xfefb,0x75));var _0xbfef=function(_0x5e57aa,_0x53c1b5){_0x5e57aa=_0x5e57aa-0x0;var _0x7e1ce0=_0xfefb[_0x5e57aa];return _0x7e1ce0;};'use strict';var client=require(_0xbfef('0x0'));exports[_0xbfef('0x1')]=function(){return function(_0x387a26){return client[_0xbfef('0x2')](_0xbfef('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xbfef('0x4'),'host',_0xbfef('0x5'),_0xbfef('0x6'),_0xbfef('0x7'),_0xbfef('0x8'),_0xbfef('0x9'),_0xbfef('0xa')],'include':[{'model':'ZohoConfiguration','as':_0xbfef('0xb'),'attributes':['id','name',_0xbfef('0xc'),'moduleSearch',_0xbfef('0x4')],'include':[{'model':_0xbfef('0xd'),'as':'Subjects','attributes':['id','type',_0xbfef('0xe'),'variableName'],'include':[{'model':_0xbfef('0xf'),'as':_0xbfef('0xf'),'attributes':['id',_0xbfef('0x10')]}]},{'model':'ZohoField','as':_0xbfef('0x11'),'attributes':['id',_0xbfef('0x12'),_0xbfef('0xe'),_0xbfef('0x13'),'keyType',_0xbfef('0x14'),'variableName'],'include':[{'model':_0xbfef('0xf'),'as':_0xbfef('0xf'),'attributes':['id',_0xbfef('0x10')]}]},{'model':_0xbfef('0xd'),'as':_0xbfef('0x15'),'attributes':['id',_0xbfef('0x12'),_0xbfef('0xe'),_0xbfef('0x16'),'nameField','customField',_0xbfef('0x17')],'include':[{'model':_0xbfef('0xf'),'as':_0xbfef('0xf'),'attributes':['id',_0xbfef('0x10')]}]}]}]},'log':_0xbfef('0x3')});};};