Built motion from commit e6806ed6.|2.6.0
[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 _0x2871=['variableName','content','idField','nameField','customField','GetZohoAccount','../../client','getZohoAccounts','name','description','host','zone','clientId','clientSecret','serverUrl','ZohoConfiguration','Configurations','moduleSearch','ZohoField','Subjects','type','Variable','key'];(function(_0x4b22ac,_0x3b0a7f){var _0x128604=function(_0x3117ee){while(--_0x3117ee){_0x4b22ac['push'](_0x4b22ac['shift']());}};_0x128604(++_0x3b0a7f);}(_0x2871,0x1a4));var _0x1287=function(_0x3c2718,_0x737f52){_0x3c2718=_0x3c2718-0x0;var _0x1d5b02=_0x2871[_0x3c2718];return _0x1d5b02;};'use strict';var client=require(_0x1287('0x0'));exports[_0x1287('0x1')]=function(){return function(_0x2bbbec){return client['Request']('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x1287('0x2'),_0x1287('0x3'),_0x1287('0x4'),_0x1287('0x5'),_0x1287('0x6'),_0x1287('0x7'),_0x1287('0x8'),'code','refreshToken'],'include':[{'model':_0x1287('0x9'),'as':_0x1287('0xa'),'attributes':['id','name','moduleCreate',_0x1287('0xb'),'description'],'include':[{'model':_0x1287('0xc'),'as':_0x1287('0xd'),'attributes':['id',_0x1287('0xe'),'content','variableName'],'include':[{'model':_0x1287('0xf'),'as':_0x1287('0xf'),'attributes':['id',_0x1287('0x2')]}]},{'model':_0x1287('0xc'),'as':'Descriptions','attributes':['id',_0x1287('0xe'),'content',_0x1287('0x10'),'keyType','keyContent',_0x1287('0x11')],'include':[{'model':_0x1287('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0x1287('0xc'),'as':'Fields','attributes':['id','type',_0x1287('0x12'),_0x1287('0x13'),_0x1287('0x14'),_0x1287('0x15'),_0x1287('0x11')],'include':[{'model':_0x1287('0xf'),'as':_0x1287('0xf'),'attributes':['id','name']}]}]}]},'log':_0x1287('0x16')});};};