Built motion from commit 449495f6.|2.6.27
[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 _0x7bba=['ZohoField','Subjects','type','variableName','Variable','content','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','description','zone','clientId','clientSecret','serverUrl','code','name','moduleSearch'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x7bba,0x139));var _0xa7bb=function(_0x14474a,_0x5be492){_0x14474a=_0x14474a-0x0;var _0x1f8b71=_0x7bba[_0x14474a];return _0x1f8b71;};'use strict';var client=require(_0xa7bb('0x0'));exports[_0xa7bb('0x1')]=function(){return function(_0x34c3cd){return client[_0xa7bb('0x2')](_0xa7bb('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xa7bb('0x4'),'host',_0xa7bb('0x5'),_0xa7bb('0x6'),_0xa7bb('0x7'),_0xa7bb('0x8'),_0xa7bb('0x9'),'refreshToken'],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id',_0xa7bb('0xa'),'moduleCreate',_0xa7bb('0xb'),_0xa7bb('0x4')],'include':[{'model':_0xa7bb('0xc'),'as':_0xa7bb('0xd'),'attributes':['id',_0xa7bb('0xe'),'content',_0xa7bb('0xf')],'include':[{'model':'Variable','as':_0xa7bb('0x10'),'attributes':['id','name']}]},{'model':_0xa7bb('0xc'),'as':'Descriptions','attributes':['id',_0xa7bb('0xe'),_0xa7bb('0x11'),_0xa7bb('0x12'),_0xa7bb('0x13'),_0xa7bb('0x14'),_0xa7bb('0xf')],'include':[{'model':_0xa7bb('0x10'),'as':_0xa7bb('0x10'),'attributes':['id',_0xa7bb('0xa')]}]},{'model':_0xa7bb('0xc'),'as':_0xa7bb('0x15'),'attributes':['id',_0xa7bb('0xe'),_0xa7bb('0x11'),_0xa7bb('0x16'),_0xa7bb('0x17'),_0xa7bb('0x18'),_0xa7bb('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0xa7bb('0x3')});};};