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