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