f7826f8268ee6c958e406e3894dee2a00f0cce33
[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 _0xe62e=['moduleSearch','ZohoField','Subjects','type','content','variableName','Descriptions','key','keyType','keyContent','Variable','idField','../../client','getZohoAccounts','Request','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','moduleCreate'];(function(_0x57d740,_0x50be99){var _0x6607ef=function(_0x908bd0){while(--_0x908bd0){_0x57d740['push'](_0x57d740['shift']());}};_0x6607ef(++_0x50be99);}(_0xe62e,0x1ac));var _0xee62=function(_0x33711e,_0x57999f){_0x33711e=_0x33711e-0x0;var _0x5816e3=_0xe62e[_0x33711e];return _0x5816e3;};'use strict';var client=require(_0xee62('0x0'));exports[_0xee62('0x1')]=function(){return function(_0xfb1d37){return client[_0xee62('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0xee62('0x3'),_0xee62('0x4'),_0xee62('0x5'),_0xee62('0x6'),_0xee62('0x7'),_0xee62('0x8'),_0xee62('0x9'),_0xee62('0xa'),_0xee62('0xb')],'include':[{'model':_0xee62('0xc'),'as':'Configurations','attributes':['id',_0xee62('0x3'),_0xee62('0xd'),_0xee62('0xe'),_0xee62('0x4')],'include':[{'model':_0xee62('0xf'),'as':_0xee62('0x10'),'attributes':['id',_0xee62('0x11'),_0xee62('0x12'),_0xee62('0x13')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xee62('0x3')]}]},{'model':_0xee62('0xf'),'as':_0xee62('0x14'),'attributes':['id',_0xee62('0x11'),'content',_0xee62('0x15'),_0xee62('0x16'),_0xee62('0x17'),_0xee62('0x13')],'include':[{'model':_0xee62('0x18'),'as':_0xee62('0x18'),'attributes':['id',_0xee62('0x3')]}]},{'model':_0xee62('0xf'),'as':'Fields','attributes':['id',_0xee62('0x11'),_0xee62('0x12'),_0xee62('0x19'),'nameField','customField','variableName'],'include':[{'model':_0xee62('0x18'),'as':'Variable','attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};