Built motion from commit 753c950e.|2.5.42
[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 _0xaaeb=['idField','nameField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','moduleCreate','moduleSearch','ZohoField','Subjects','content','variableName','type','key','Variable'];(function(_0x28d1ea,_0x426311){var _0x1667b6=function(_0x136219){while(--_0x136219){_0x28d1ea['push'](_0x28d1ea['shift']());}};_0x1667b6(++_0x426311);}(_0xaaeb,0x147));var _0xbaae=function(_0x3c47af,_0x19d3e4){_0x3c47af=_0x3c47af-0x0;var _0x358c97=_0xaaeb[_0x3c47af];return _0x358c97;};'use strict';var client=require(_0xbaae('0x0'));exports[_0xbaae('0x1')]=function(){return function(_0x4f0ffe){return client[_0xbaae('0x2')](_0xbaae('0x3'),{'options':{'raw':![],'attributes':['id',_0xbaae('0x4'),_0xbaae('0x5'),_0xbaae('0x6'),_0xbaae('0x7'),_0xbaae('0x8'),_0xbaae('0x9'),_0xbaae('0xa'),_0xbaae('0xb'),_0xbaae('0xc')],'include':[{'model':_0xbaae('0xd'),'as':'Configurations','attributes':['id',_0xbaae('0x4'),_0xbaae('0xe'),_0xbaae('0xf'),_0xbaae('0x5')],'include':[{'model':_0xbaae('0x10'),'as':_0xbaae('0x11'),'attributes':['id','type',_0xbaae('0x12'),_0xbaae('0x13')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xbaae('0x4')]}]},{'model':_0xbaae('0x10'),'as':'Descriptions','attributes':['id',_0xbaae('0x14'),_0xbaae('0x12'),_0xbaae('0x15'),'keyType','keyContent',_0xbaae('0x13')],'include':[{'model':_0xbaae('0x16'),'as':_0xbaae('0x16'),'attributes':['id','name']}]},{'model':_0xbaae('0x10'),'as':'Fields','attributes':['id',_0xbaae('0x14'),_0xbaae('0x12'),_0xbaae('0x17'),_0xbaae('0x18'),'customField',_0xbaae('0x13')],'include':[{'model':_0xbaae('0x16'),'as':'Variable','attributes':['id',_0xbaae('0x4')]}]}]}]},'log':_0xbaae('0x3')});};};