768bf0fcee040bfa5d8c97c90d91a6f74bf1f7f1
[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 _0xbb94=['variableName','Variable','Descriptions','content','key','keyContent','idField','nameField','customField','../../client','GetZohoAccount','description','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','name','moduleCreate','moduleSearch','ZohoField','Subjects','type'];(function(_0x40d75b,_0x130544){var _0x4f764f=function(_0x5bcea5){while(--_0x5bcea5){_0x40d75b['push'](_0x40d75b['shift']());}};_0x4f764f(++_0x130544);}(_0xbb94,0xa5));var _0x4bb9=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0xbb94[_0x3b380d];return _0x54502b;};'use strict';var client=require(_0x4bb9('0x0'));exports['getZohoAccounts']=function(){return function(_0x4a7411){return client['Request'](_0x4bb9('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x4bb9('0x2'),'host',_0x4bb9('0x3'),_0x4bb9('0x4'),_0x4bb9('0x5'),_0x4bb9('0x6'),_0x4bb9('0x7'),_0x4bb9('0x8')],'include':[{'model':_0x4bb9('0x9'),'as':_0x4bb9('0xa'),'attributes':['id',_0x4bb9('0xb'),_0x4bb9('0xc'),_0x4bb9('0xd'),_0x4bb9('0x2')],'include':[{'model':_0x4bb9('0xe'),'as':_0x4bb9('0xf'),'attributes':['id',_0x4bb9('0x10'),'content',_0x4bb9('0x11')],'include':[{'model':'Variable','as':_0x4bb9('0x12'),'attributes':['id','name']}]},{'model':_0x4bb9('0xe'),'as':_0x4bb9('0x13'),'attributes':['id',_0x4bb9('0x10'),_0x4bb9('0x14'),_0x4bb9('0x15'),'keyType',_0x4bb9('0x16'),_0x4bb9('0x11')],'include':[{'model':_0x4bb9('0x12'),'as':_0x4bb9('0x12'),'attributes':['id',_0x4bb9('0xb')]}]},{'model':'ZohoField','as':'Fields','attributes':['id',_0x4bb9('0x10'),'content',_0x4bb9('0x17'),_0x4bb9('0x18'),_0x4bb9('0x19'),_0x4bb9('0x11')],'include':[{'model':_0x4bb9('0x12'),'as':_0x4bb9('0x12'),'attributes':['id',_0x4bb9('0xb')]}]}]}]},'log':_0x4bb9('0x1')});};};