b880cba775b0a837c2dcd18f1d1ba6c26b336b1b
[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 _0x626f=['customField','../../client','getZohoAccounts','GetZohoAccount','zone','clientId','clientSecret','code','refreshToken','ZohoConfiguration','name','moduleCreate','Subjects','content','Variable','ZohoField','Descriptions','key','keyType','keyContent','variableName','Fields','idField'];(function(_0x5a6d4a,_0x4bc018){var _0xf8e008=function(_0x341da8){while(--_0x341da8){_0x5a6d4a['push'](_0x5a6d4a['shift']());}};_0xf8e008(++_0x4bc018);}(_0x626f,0x188));var _0xf626=function(_0x3a41e4,_0x7efa11){_0x3a41e4=_0x3a41e4-0x0;var _0x276703=_0x626f[_0x3a41e4];return _0x276703;};'use strict';var client=require(_0xf626('0x0'));exports[_0xf626('0x1')]=function(){return function(_0x25c6d6){return client['Request'](_0xf626('0x2'),{'options':{'raw':![],'attributes':['id','name','description','host',_0xf626('0x3'),_0xf626('0x4'),_0xf626('0x5'),'serverUrl',_0xf626('0x6'),_0xf626('0x7')],'include':[{'model':_0xf626('0x8'),'as':'Configurations','attributes':['id',_0xf626('0x9'),_0xf626('0xa'),'moduleSearch','description'],'include':[{'model':'ZohoField','as':_0xf626('0xb'),'attributes':['id','type',_0xf626('0xc'),'variableName'],'include':[{'model':_0xf626('0xd'),'as':'Variable','attributes':['id',_0xf626('0x9')]}]},{'model':_0xf626('0xe'),'as':_0xf626('0xf'),'attributes':['id','type',_0xf626('0xc'),_0xf626('0x10'),_0xf626('0x11'),_0xf626('0x12'),_0xf626('0x13')],'include':[{'model':_0xf626('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0xf626('0xe'),'as':_0xf626('0x14'),'attributes':['id','type','content',_0xf626('0x15'),'nameField',_0xf626('0x16'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xf626('0x9')]}]}]}]},'log':_0xf626('0x2')});};};