04ba81a9b6ef3dfb5c127dbe4d3c99e2670077d8
[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 _0x9512=['clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','ZohoField','Subjects','type','variableName','Variable','Descriptions','content','key','keyContent','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','clientId'];(function(_0x571b35,_0x1deae7){var _0x2bc127=function(_0x280dbc){while(--_0x280dbc){_0x571b35['push'](_0x571b35['shift']());}};_0x2bc127(++_0x1deae7);}(_0x9512,0x1b2));var _0x2951=function(_0x2b2ac8,_0x22f79a){_0x2b2ac8=_0x2b2ac8-0x0;var _0x5cd081=_0x9512[_0x2b2ac8];return _0x5cd081;};'use strict';var client=require(_0x2951('0x0'));exports[_0x2951('0x1')]=function(){return function(_0x1a9869){return client[_0x2951('0x2')](_0x2951('0x3'),{'options':{'raw':![],'attributes':['id',_0x2951('0x4'),_0x2951('0x5'),_0x2951('0x6'),'zone',_0x2951('0x7'),_0x2951('0x8'),_0x2951('0x9'),_0x2951('0xa'),_0x2951('0xb')],'include':[{'model':_0x2951('0xc'),'as':_0x2951('0xd'),'attributes':['id',_0x2951('0x4'),_0x2951('0xe'),'moduleSearch',_0x2951('0x5')],'include':[{'model':_0x2951('0xf'),'as':_0x2951('0x10'),'attributes':['id',_0x2951('0x11'),'content',_0x2951('0x12')],'include':[{'model':'Variable','as':_0x2951('0x13'),'attributes':['id','name']}]},{'model':_0x2951('0xf'),'as':_0x2951('0x14'),'attributes':['id',_0x2951('0x11'),_0x2951('0x15'),_0x2951('0x16'),'keyType',_0x2951('0x17'),_0x2951('0x12')],'include':[{'model':'Variable','as':_0x2951('0x13'),'attributes':['id',_0x2951('0x4')]}]},{'model':_0x2951('0xf'),'as':'Fields','attributes':['id',_0x2951('0x11'),_0x2951('0x15'),'idField',_0x2951('0x18'),_0x2951('0x19'),_0x2951('0x12')],'include':[{'model':_0x2951('0x13'),'as':'Variable','attributes':['id',_0x2951('0x4')]}]}]}]},'log':_0x2951('0x3')});};};