4864b3877e0a40cb871db516b1476b8176fc7be9
[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 _0x4997=['ZohoConfiguration','moduleCreate','moduleSearch','description','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','ZohoField','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','name','host','zone','clientId','serverUrl','code','refreshToken'];(function(_0x3f3f40,_0x4c71f4){var _0x403b7a=function(_0x509014){while(--_0x509014){_0x3f3f40['push'](_0x3f3f40['shift']());}};_0x403b7a(++_0x4c71f4);}(_0x4997,0x104));var _0x7499=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x4997[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0x7499('0x0'));exports[_0x7499('0x1')]=function(){return function(_0x2e13cf){return client[_0x7499('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x7499('0x3'),'description',_0x7499('0x4'),_0x7499('0x5'),_0x7499('0x6'),'clientSecret',_0x7499('0x7'),_0x7499('0x8'),_0x7499('0x9')],'include':[{'model':_0x7499('0xa'),'as':'Configurations','attributes':['id','name',_0x7499('0xb'),_0x7499('0xc'),_0x7499('0xd')],'include':[{'model':'ZohoField','as':'Subjects','attributes':['id',_0x7499('0xe'),_0x7499('0xf'),_0x7499('0x10')],'include':[{'model':_0x7499('0x11'),'as':'Variable','attributes':['id',_0x7499('0x3')]}]},{'model':'ZohoField','as':_0x7499('0x12'),'attributes':['id',_0x7499('0xe'),_0x7499('0xf'),_0x7499('0x13'),_0x7499('0x14'),_0x7499('0x15'),_0x7499('0x10')],'include':[{'model':_0x7499('0x11'),'as':_0x7499('0x11'),'attributes':['id',_0x7499('0x3')]}]},{'model':_0x7499('0x16'),'as':_0x7499('0x17'),'attributes':['id',_0x7499('0xe'),'content',_0x7499('0x18'),_0x7499('0x19'),_0x7499('0x1a'),_0x7499('0x10')],'include':[{'model':_0x7499('0x11'),'as':'Variable','attributes':['id',_0x7499('0x3')]}]}]}]},'log':'GetZohoAccount'});};};