8f15565e0ffa50ecba7a462e0a0aa34098d57a3a
[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 _0xcf8d=['ZohoField','type','content','variableName','Variable','Descriptions','keyContent','Fields','idField','nameField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','moduleSearch'];(function(_0x3b78dc,_0x530b60){var _0x11940d=function(_0x4222a5){while(--_0x4222a5){_0x3b78dc['push'](_0x3b78dc['shift']());}};_0x11940d(++_0x530b60);}(_0xcf8d,0x181));var _0xdcf8=function(_0x1b25c1,_0x2c6ce6){_0x1b25c1=_0x1b25c1-0x0;var _0x1e4447=_0xcf8d[_0x1b25c1];return _0x1e4447;};'use strict';var client=require(_0xdcf8('0x0'));exports[_0xdcf8('0x1')]=function(){return function(_0x617345){return client[_0xdcf8('0x2')](_0xdcf8('0x3'),{'options':{'raw':![],'attributes':['id',_0xdcf8('0x4'),_0xdcf8('0x5'),_0xdcf8('0x6'),_0xdcf8('0x7'),_0xdcf8('0x8'),_0xdcf8('0x9'),_0xdcf8('0xa'),_0xdcf8('0xb'),_0xdcf8('0xc')],'include':[{'model':_0xdcf8('0xd'),'as':'Configurations','attributes':['id','name','moduleCreate',_0xdcf8('0xe'),'description'],'include':[{'model':_0xdcf8('0xf'),'as':'Subjects','attributes':['id',_0xdcf8('0x10'),_0xdcf8('0x11'),_0xdcf8('0x12')],'include':[{'model':_0xdcf8('0x13'),'as':_0xdcf8('0x13'),'attributes':['id',_0xdcf8('0x4')]}]},{'model':_0xdcf8('0xf'),'as':_0xdcf8('0x14'),'attributes':['id',_0xdcf8('0x10'),_0xdcf8('0x11'),'key','keyType',_0xdcf8('0x15'),'variableName'],'include':[{'model':_0xdcf8('0x13'),'as':_0xdcf8('0x13'),'attributes':['id',_0xdcf8('0x4')]}]},{'model':_0xdcf8('0xf'),'as':_0xdcf8('0x16'),'attributes':['id',_0xdcf8('0x10'),_0xdcf8('0x11'),_0xdcf8('0x17'),_0xdcf8('0x18'),'customField',_0xdcf8('0x12')],'include':[{'model':_0xdcf8('0x13'),'as':_0xdcf8('0x13'),'attributes':['id',_0xdcf8('0x4')]}]}]}]},'log':'GetZohoAccount'});};};