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