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