Built motion from commit da617fac.|2.6.6
[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 _0x2537=['clientId','clientSecret','serverUrl','refreshToken','Configurations','moduleCreate','Subjects','content','variableName','Variable','ZohoField','Descriptions','key','keyType','keyContent','Fields','type','idField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone'];(function(_0x352991,_0x5a8aed){var _0x2c960c=function(_0x131256){while(--_0x131256){_0x352991['push'](_0x352991['shift']());}};_0x2c960c(++_0x5a8aed);}(_0x2537,0x1de));var _0x7253=function(_0x32fccd,_0x4dbfcb){_0x32fccd=_0x32fccd-0x0;var _0x4d0f67=_0x2537[_0x32fccd];return _0x4d0f67;};'use strict';var client=require(_0x7253('0x0'));exports[_0x7253('0x1')]=function(){return function(_0x1b2129){return client[_0x7253('0x2')](_0x7253('0x3'),{'options':{'raw':![],'attributes':['id',_0x7253('0x4'),_0x7253('0x5'),_0x7253('0x6'),_0x7253('0x7'),_0x7253('0x8'),_0x7253('0x9'),_0x7253('0xa'),'code',_0x7253('0xb')],'include':[{'model':'ZohoConfiguration','as':_0x7253('0xc'),'attributes':['id','name',_0x7253('0xd'),'moduleSearch',_0x7253('0x5')],'include':[{'model':'ZohoField','as':_0x7253('0xe'),'attributes':['id','type',_0x7253('0xf'),_0x7253('0x10')],'include':[{'model':_0x7253('0x11'),'as':_0x7253('0x11'),'attributes':['id',_0x7253('0x4')]}]},{'model':_0x7253('0x12'),'as':_0x7253('0x13'),'attributes':['id','type',_0x7253('0xf'),_0x7253('0x14'),_0x7253('0x15'),_0x7253('0x16'),'variableName'],'include':[{'model':'Variable','as':_0x7253('0x11'),'attributes':['id',_0x7253('0x4')]}]},{'model':'ZohoField','as':_0x7253('0x17'),'attributes':['id',_0x7253('0x18'),_0x7253('0xf'),_0x7253('0x19'),'nameField',_0x7253('0x1a'),_0x7253('0x10')],'include':[{'model':'Variable','as':_0x7253('0x11'),'attributes':['id','name']}]}]}]},'log':_0x7253('0x3')});};};