Built motion from commit 97153652.|2.6.26
[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 _0x46c1=['customField','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','description','ZohoField','Subjects','type','content','variableName','Variable','Descriptions','key','keyContent','Fields','idField','nameField'];(function(_0x562379,_0x11bcc4){var _0x3ae5e6=function(_0x249cd6){while(--_0x249cd6){_0x562379['push'](_0x562379['shift']());}};_0x3ae5e6(++_0x11bcc4);}(_0x46c1,0xa9));var _0x146c=function(_0x4d879d,_0x4f9bb0){_0x4d879d=_0x4d879d-0x0;var _0x167091=_0x46c1[_0x4d879d];return _0x167091;};'use strict';var client=require('../../client');exports[_0x146c('0x0')]=function(){return function(_0x5ec517){return client[_0x146c('0x1')](_0x146c('0x2'),{'options':{'raw':![],'attributes':['id',_0x146c('0x3'),'description',_0x146c('0x4'),_0x146c('0x5'),_0x146c('0x6'),_0x146c('0x7'),_0x146c('0x8'),'code',_0x146c('0x9')],'include':[{'model':_0x146c('0xa'),'as':_0x146c('0xb'),'attributes':['id',_0x146c('0x3'),_0x146c('0xc'),_0x146c('0xd'),_0x146c('0xe')],'include':[{'model':_0x146c('0xf'),'as':_0x146c('0x10'),'attributes':['id',_0x146c('0x11'),_0x146c('0x12'),_0x146c('0x13')],'include':[{'model':_0x146c('0x14'),'as':_0x146c('0x14'),'attributes':['id',_0x146c('0x3')]}]},{'model':'ZohoField','as':_0x146c('0x15'),'attributes':['id',_0x146c('0x11'),'content',_0x146c('0x16'),'keyType',_0x146c('0x17'),'variableName'],'include':[{'model':_0x146c('0x14'),'as':'Variable','attributes':['id','name']}]},{'model':'ZohoField','as':_0x146c('0x18'),'attributes':['id',_0x146c('0x11'),'content',_0x146c('0x19'),_0x146c('0x1a'),_0x146c('0x1b'),'variableName'],'include':[{'model':'Variable','as':_0x146c('0x14'),'attributes':['id','name']}]}]}]},'log':_0x146c('0x2')});};};