Built motion from commit 91ed41ac.|2.5.44
[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 _0x9bee=['keyContent','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','ZohoField','content','variableName','Variable','Descriptions','type','key','keyType'];(function(_0x36d461,_0x4329fe){var _0x448170=function(_0x3166a1){while(--_0x3166a1){_0x36d461['push'](_0x36d461['shift']());}};_0x448170(++_0x4329fe);}(_0x9bee,0xf7));var _0xe9be=function(_0xf8fe2f,_0x494dcd){_0xf8fe2f=_0xf8fe2f-0x0;var _0x478e05=_0x9bee[_0xf8fe2f];return _0x478e05;};'use strict';var client=require(_0xe9be('0x0'));exports[_0xe9be('0x1')]=function(){return function(_0xc67a79){return client[_0xe9be('0x2')](_0xe9be('0x3'),{'options':{'raw':![],'attributes':['id',_0xe9be('0x4'),_0xe9be('0x5'),_0xe9be('0x6'),'zone',_0xe9be('0x7'),_0xe9be('0x8'),_0xe9be('0x9'),_0xe9be('0xa'),_0xe9be('0xb')],'include':[{'model':_0xe9be('0xc'),'as':_0xe9be('0xd'),'attributes':['id',_0xe9be('0x4'),_0xe9be('0xe'),'moduleSearch',_0xe9be('0x5')],'include':[{'model':_0xe9be('0xf'),'as':'Subjects','attributes':['id','type',_0xe9be('0x10'),_0xe9be('0x11')],'include':[{'model':_0xe9be('0x12'),'as':_0xe9be('0x12'),'attributes':['id',_0xe9be('0x4')]}]},{'model':_0xe9be('0xf'),'as':_0xe9be('0x13'),'attributes':['id',_0xe9be('0x14'),_0xe9be('0x10'),_0xe9be('0x15'),_0xe9be('0x16'),_0xe9be('0x17'),_0xe9be('0x11')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xe9be('0x4')]}]},{'model':'ZohoField','as':'Fields','attributes':['id',_0xe9be('0x14'),'content',_0xe9be('0x18'),_0xe9be('0x19'),_0xe9be('0x1a'),_0xe9be('0x11')],'include':[{'model':'Variable','as':_0xe9be('0x12'),'attributes':['id',_0xe9be('0x4')]}]}]}]},'log':_0xe9be('0x3')});};};