Built motion from commit 0900f080.|2.5.45
[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 _0x7e37=['nameField','customField','../../client','getZohoAccounts','description','zone','clientId','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','name','moduleCreate','moduleSearch','ZohoField','type','content','variableName','Variable','Descriptions','keyContent','idField'];(function(_0x4b0162,_0x5ee404){var _0x20e12d=function(_0x16e28a){while(--_0x16e28a){_0x4b0162['push'](_0x4b0162['shift']());}};_0x20e12d(++_0x5ee404);}(_0x7e37,0x189));var _0x77e3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7e37[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0x77e3('0x0'));exports[_0x77e3('0x1')]=function(){return function(_0x4cc8ae){return client['Request']('GetZohoAccount',{'options':{'raw':![],'attributes':['id','name',_0x77e3('0x2'),'host',_0x77e3('0x3'),_0x77e3('0x4'),'clientSecret',_0x77e3('0x5'),_0x77e3('0x6'),_0x77e3('0x7')],'include':[{'model':_0x77e3('0x8'),'as':_0x77e3('0x9'),'attributes':['id',_0x77e3('0xa'),_0x77e3('0xb'),_0x77e3('0xc'),_0x77e3('0x2')],'include':[{'model':_0x77e3('0xd'),'as':'Subjects','attributes':['id',_0x77e3('0xe'),_0x77e3('0xf'),_0x77e3('0x10')],'include':[{'model':'Variable','as':_0x77e3('0x11'),'attributes':['id',_0x77e3('0xa')]}]},{'model':_0x77e3('0xd'),'as':_0x77e3('0x12'),'attributes':['id',_0x77e3('0xe'),'content','key','keyType',_0x77e3('0x13'),'variableName'],'include':[{'model':_0x77e3('0x11'),'as':'Variable','attributes':['id',_0x77e3('0xa')]}]},{'model':_0x77e3('0xd'),'as':'Fields','attributes':['id',_0x77e3('0xe'),_0x77e3('0xf'),_0x77e3('0x14'),_0x77e3('0x15'),_0x77e3('0x16'),'variableName'],'include':[{'model':_0x77e3('0x11'),'as':_0x77e3('0x11'),'attributes':['id',_0x77e3('0xa')]}]}]}]},'log':'GetZohoAccount'});};};