a8d766170f7276d50d5d86399a210107a3b39a83
[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 _0x3ff2=['name','description','host','zone','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleSearch','ZohoField','type','content','variableName','Descriptions','key','Variable','Fields','idField','nameField','customField','GetZohoAccount','../../client','getZohoAccounts'];(function(_0x334fea,_0x1f1e18){var _0x3c5829=function(_0x4fd6ac){while(--_0x4fd6ac){_0x334fea['push'](_0x334fea['shift']());}};_0x3c5829(++_0x1f1e18);}(_0x3ff2,0xc6));var _0x23ff=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x3ff2[_0x397e5f];return _0x5302b8;};'use strict';var client=require(_0x23ff('0x0'));exports[_0x23ff('0x1')]=function(){return function(_0x3e3419){return client['Request']('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x23ff('0x2'),_0x23ff('0x3'),_0x23ff('0x4'),_0x23ff('0x5'),'clientId',_0x23ff('0x6'),_0x23ff('0x7'),_0x23ff('0x8'),_0x23ff('0x9')],'include':[{'model':_0x23ff('0xa'),'as':_0x23ff('0xb'),'attributes':['id',_0x23ff('0x2'),'moduleCreate',_0x23ff('0xc'),'description'],'include':[{'model':_0x23ff('0xd'),'as':'Subjects','attributes':['id',_0x23ff('0xe'),_0x23ff('0xf'),_0x23ff('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x23ff('0x2')]}]},{'model':_0x23ff('0xd'),'as':_0x23ff('0x11'),'attributes':['id',_0x23ff('0xe'),_0x23ff('0xf'),_0x23ff('0x12'),'keyType','keyContent','variableName'],'include':[{'model':'Variable','as':_0x23ff('0x13'),'attributes':['id',_0x23ff('0x2')]}]},{'model':_0x23ff('0xd'),'as':_0x23ff('0x14'),'attributes':['id',_0x23ff('0xe'),_0x23ff('0xf'),_0x23ff('0x15'),_0x23ff('0x16'),_0x23ff('0x17'),_0x23ff('0x10')],'include':[{'model':'Variable','as':_0x23ff('0x13'),'attributes':['id',_0x23ff('0x2')]}]}]}]},'log':_0x23ff('0x18')});};};