d881c10053e8683a42b020b41777adaa6eb4ea76
[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 _0x6e05=['Subjects','type','content','variableName','Variable','Descriptions','keyType','Fields','idField','nameField','customField','GetZohoAccount','../../client','Request','name','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','description','ZohoField'];(function(_0x36128a,_0x14c302){var _0x5d5102=function(_0x12c9ea){while(--_0x12c9ea){_0x36128a['push'](_0x36128a['shift']());}};_0x5d5102(++_0x14c302);}(_0x6e05,0x108));var _0x56e0=function(_0x3d34da,_0x3abcc1){_0x3d34da=_0x3d34da-0x0;var _0xcf6af8=_0x6e05[_0x3d34da];return _0xcf6af8;};'use strict';var client=require(_0x56e0('0x0'));exports['getZohoAccounts']=function(){return function(_0x26278e){return client[_0x56e0('0x1')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x56e0('0x2'),'description',_0x56e0('0x3'),_0x56e0('0x4'),_0x56e0('0x5'),_0x56e0('0x6'),_0x56e0('0x7'),_0x56e0('0x8'),_0x56e0('0x9')],'include':[{'model':_0x56e0('0xa'),'as':_0x56e0('0xb'),'attributes':['id',_0x56e0('0x2'),_0x56e0('0xc'),_0x56e0('0xd'),_0x56e0('0xe')],'include':[{'model':_0x56e0('0xf'),'as':_0x56e0('0x10'),'attributes':['id',_0x56e0('0x11'),_0x56e0('0x12'),_0x56e0('0x13')],'include':[{'model':'Variable','as':_0x56e0('0x14'),'attributes':['id',_0x56e0('0x2')]}]},{'model':_0x56e0('0xf'),'as':_0x56e0('0x15'),'attributes':['id',_0x56e0('0x11'),'content','key',_0x56e0('0x16'),'keyContent',_0x56e0('0x13')],'include':[{'model':_0x56e0('0x14'),'as':'Variable','attributes':['id',_0x56e0('0x2')]}]},{'model':'ZohoField','as':_0x56e0('0x17'),'attributes':['id',_0x56e0('0x11'),_0x56e0('0x12'),_0x56e0('0x18'),_0x56e0('0x19'),_0x56e0('0x1a'),'variableName'],'include':[{'model':_0x56e0('0x14'),'as':_0x56e0('0x14'),'attributes':['id',_0x56e0('0x2')]}]}]}]},'log':_0x56e0('0x1b')});};};