1ee1e3cdd8f6612f2a010230b9b60f26e4e5a0db
[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 _0x0898=['idField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','moduleCreate','moduleSearch','ZohoField','type','Variable','content','key','keyType','keyContent','variableName'];(function(_0x1a31d0,_0x43457d){var _0x546cdd=function(_0x19857c){while(--_0x19857c){_0x1a31d0['push'](_0x1a31d0['shift']());}};_0x546cdd(++_0x43457d);}(_0x0898,0x109));var _0x8089=function(_0x447fec,_0x59028d){_0x447fec=_0x447fec-0x0;var _0x1bdc15=_0x0898[_0x447fec];return _0x1bdc15;};'use strict';var client=require(_0x8089('0x0'));exports[_0x8089('0x1')]=function(){return function(_0x4eba9b){return client[_0x8089('0x2')](_0x8089('0x3'),{'options':{'raw':![],'attributes':['id',_0x8089('0x4'),_0x8089('0x5'),'host',_0x8089('0x6'),_0x8089('0x7'),_0x8089('0x8'),_0x8089('0x9'),_0x8089('0xa'),_0x8089('0xb')],'include':[{'model':_0x8089('0xc'),'as':'Configurations','attributes':['id','name',_0x8089('0xd'),_0x8089('0xe'),_0x8089('0x5')],'include':[{'model':_0x8089('0xf'),'as':'Subjects','attributes':['id',_0x8089('0x10'),'content','variableName'],'include':[{'model':_0x8089('0x11'),'as':_0x8089('0x11'),'attributes':['id','name']}]},{'model':_0x8089('0xf'),'as':'Descriptions','attributes':['id',_0x8089('0x10'),_0x8089('0x12'),_0x8089('0x13'),_0x8089('0x14'),_0x8089('0x15'),_0x8089('0x16')],'include':[{'model':_0x8089('0x11'),'as':'Variable','attributes':['id',_0x8089('0x4')]}]},{'model':'ZohoField','as':'Fields','attributes':['id',_0x8089('0x10'),_0x8089('0x12'),_0x8089('0x17'),'nameField','customField',_0x8089('0x16')],'include':[{'model':_0x8089('0x11'),'as':_0x8089('0x11'),'attributes':['id',_0x8089('0x4')]}]}]}]},'log':_0x8089('0x3')});};};