92185fe74158844ea32fcf754f55b3e2e9a074de
[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 _0xcfe3=['keyContent','type','idField','nameField','customField','../../client','getZohoAccounts','GetZohoAccount','name','description','host','zone','clientSecret','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','ZohoField','Subjects','content','variableName','Variable','key'];(function(_0xdf9fd9,_0x257664){var _0xe38fdd=function(_0x1db6b1){while(--_0x1db6b1){_0xdf9fd9['push'](_0xdf9fd9['shift']());}};_0xe38fdd(++_0x257664);}(_0xcfe3,0x19d));var _0x3cfe=function(_0x20fcbb,_0x19d0f1){_0x20fcbb=_0x20fcbb-0x0;var _0x26f51d=_0xcfe3[_0x20fcbb];return _0x26f51d;};'use strict';var client=require(_0x3cfe('0x0'));exports[_0x3cfe('0x1')]=function(){return function(_0x5a80ea){return client['Request'](_0x3cfe('0x2'),{'options':{'raw':![],'attributes':['id',_0x3cfe('0x3'),_0x3cfe('0x4'),_0x3cfe('0x5'),_0x3cfe('0x6'),'clientId',_0x3cfe('0x7'),'serverUrl',_0x3cfe('0x8'),_0x3cfe('0x9')],'include':[{'model':_0x3cfe('0xa'),'as':_0x3cfe('0xb'),'attributes':['id','name',_0x3cfe('0xc'),'moduleSearch',_0x3cfe('0x4')],'include':[{'model':_0x3cfe('0xd'),'as':_0x3cfe('0xe'),'attributes':['id','type',_0x3cfe('0xf'),_0x3cfe('0x10')],'include':[{'model':_0x3cfe('0x11'),'as':_0x3cfe('0x11'),'attributes':['id',_0x3cfe('0x3')]}]},{'model':_0x3cfe('0xd'),'as':'Descriptions','attributes':['id','type',_0x3cfe('0xf'),_0x3cfe('0x12'),'keyType',_0x3cfe('0x13'),_0x3cfe('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x3cfe('0x3')]}]},{'model':_0x3cfe('0xd'),'as':'Fields','attributes':['id',_0x3cfe('0x14'),_0x3cfe('0xf'),_0x3cfe('0x15'),_0x3cfe('0x16'),_0x3cfe('0x17'),'variableName'],'include':[{'model':_0x3cfe('0x11'),'as':_0x3cfe('0x11'),'attributes':['id',_0x3cfe('0x3')]}]}]}]},'log':_0x3cfe('0x2')});};};