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