Built motion from commit 936e8062.|2.5.33
[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 _0x415f=['code','refreshToken','name','ZohoField','type','Variable','Descriptions','content','key','keyType','keyContent','variableName','Fields','idField','nameField','getZohoAccounts','GetZohoAccount','description','host','zone','clientSecret','serverUrl'];(function(_0x509273,_0x13fc9f){var _0x38ef40=function(_0xf8d4c9){while(--_0xf8d4c9){_0x509273['push'](_0x509273['shift']());}};_0x38ef40(++_0x13fc9f);}(_0x415f,0x19b));var _0xf415=function(_0x4a3e79,_0x22059a){_0x4a3e79=_0x4a3e79-0x0;var _0x4a9291=_0x415f[_0x4a3e79];return _0x4a9291;};'use strict';var client=require('../../client');exports[_0xf415('0x0')]=function(){return function(_0x3ce1c2){return client['Request'](_0xf415('0x1'),{'options':{'raw':![],'attributes':['id','name',_0xf415('0x2'),_0xf415('0x3'),_0xf415('0x4'),'clientId',_0xf415('0x5'),_0xf415('0x6'),_0xf415('0x7'),_0xf415('0x8')],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id',_0xf415('0x9'),'moduleCreate','moduleSearch','description'],'include':[{'model':_0xf415('0xa'),'as':'Subjects','attributes':['id',_0xf415('0xb'),'content','variableName'],'include':[{'model':_0xf415('0xc'),'as':_0xf415('0xc'),'attributes':['id','name']}]},{'model':_0xf415('0xa'),'as':_0xf415('0xd'),'attributes':['id',_0xf415('0xb'),_0xf415('0xe'),_0xf415('0xf'),_0xf415('0x10'),_0xf415('0x11'),_0xf415('0x12')],'include':[{'model':_0xf415('0xc'),'as':_0xf415('0xc'),'attributes':['id',_0xf415('0x9')]}]},{'model':_0xf415('0xa'),'as':_0xf415('0x13'),'attributes':['id',_0xf415('0xb'),'content',_0xf415('0x14'),_0xf415('0x15'),'customField','variableName'],'include':[{'model':_0xf415('0xc'),'as':_0xf415('0xc'),'attributes':['id','name']}]}]}]},'log':_0xf415('0x1')});};};