199b0c5bb68e13195be91eaf2750c65ebbb0e7e5
[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 _0x122c=['idField','nameField','customField','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','serverUrl','code','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','description','ZohoField','Subjects','content','variableName','Variable','Descriptions','key','Fields'];(function(_0x5222f5,_0x321068){var _0xce025c=function(_0x52250f){while(--_0x52250f){_0x5222f5['push'](_0x5222f5['shift']());}};_0xce025c(++_0x321068);}(_0x122c,0x148));var _0xc122=function(_0x40f9a8,_0x398dbe){_0x40f9a8=_0x40f9a8-0x0;var _0x163122=_0x122c[_0x40f9a8];return _0x163122;};'use strict';var client=require('../../client');exports[_0xc122('0x0')]=function(){return function(_0x3b5998){return client[_0xc122('0x1')](_0xc122('0x2'),{'options':{'raw':![],'attributes':['id',_0xc122('0x3'),'description',_0xc122('0x4'),_0xc122('0x5'),_0xc122('0x6'),'clientSecret',_0xc122('0x7'),_0xc122('0x8'),'refreshToken'],'include':[{'model':_0xc122('0x9'),'as':_0xc122('0xa'),'attributes':['id','name',_0xc122('0xb'),_0xc122('0xc'),_0xc122('0xd')],'include':[{'model':_0xc122('0xe'),'as':_0xc122('0xf'),'attributes':['id','type',_0xc122('0x10'),_0xc122('0x11')],'include':[{'model':_0xc122('0x12'),'as':_0xc122('0x12'),'attributes':['id',_0xc122('0x3')]}]},{'model':_0xc122('0xe'),'as':_0xc122('0x13'),'attributes':['id','type',_0xc122('0x10'),_0xc122('0x14'),'keyType','keyContent',_0xc122('0x11')],'include':[{'model':_0xc122('0x12'),'as':_0xc122('0x12'),'attributes':['id',_0xc122('0x3')]}]},{'model':_0xc122('0xe'),'as':_0xc122('0x15'),'attributes':['id','type','content',_0xc122('0x16'),_0xc122('0x17'),_0xc122('0x18'),'variableName'],'include':[{'model':_0xc122('0x12'),'as':_0xc122('0x12'),'attributes':['id',_0xc122('0x3')]}]}]}]},'log':_0xc122('0x2')});};};