Built motion from commit (unavailable).|2.4.9
[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 _0xd2e3=['refreshToken','description','ZohoField','Subjects','type','content','Variable','key','keyType','keyContent','variableName','customField','GetZohoAccount','../../client','getZohoAccounts','Request','name','host','zone','clientId','clientSecret','serverUrl','code'];(function(_0x3fbd51,_0x29c0b7){var _0x15ee4f=function(_0xd060b3){while(--_0xd060b3){_0x3fbd51['push'](_0x3fbd51['shift']());}};_0x15ee4f(++_0x29c0b7);}(_0xd2e3,0x10a));var _0x3d2e=function(_0x136684,_0xa83505){_0x136684=_0x136684-0x0;var _0x259852=_0xd2e3[_0x136684];return _0x259852;};'use strict';var client=require(_0x3d2e('0x0'));exports[_0x3d2e('0x1')]=function(){return function(_0x34dddc){return client[_0x3d2e('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x3d2e('0x3'),'description',_0x3d2e('0x4'),_0x3d2e('0x5'),_0x3d2e('0x6'),_0x3d2e('0x7'),_0x3d2e('0x8'),_0x3d2e('0x9'),_0x3d2e('0xa')],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id',_0x3d2e('0x3'),'moduleCreate',_0x3d2e('0xb')],'include':[{'model':_0x3d2e('0xc'),'as':_0x3d2e('0xd'),'attributes':['id',_0x3d2e('0xe'),_0x3d2e('0xf'),'variableName'],'include':[{'model':_0x3d2e('0x10'),'as':_0x3d2e('0x10'),'attributes':['id',_0x3d2e('0x3')]}]},{'model':_0x3d2e('0xc'),'as':'Descriptions','attributes':['id',_0x3d2e('0xe'),'content',_0x3d2e('0x11'),_0x3d2e('0x12'),_0x3d2e('0x13'),_0x3d2e('0x14')],'include':[{'model':_0x3d2e('0x10'),'as':_0x3d2e('0x10'),'attributes':['id','name']}]},{'model':_0x3d2e('0xc'),'as':'Fields','attributes':['id',_0x3d2e('0xe'),_0x3d2e('0xf'),'idField','nameField',_0x3d2e('0x15'),_0x3d2e('0x14')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x3d2e('0x3')]}]}]}]},'log':_0x3d2e('0x16')});};};