Built motion from commit (unavailable).|2.5.2
[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 _0x628a=['description','host','zone','clientSecret','serverUrl','code','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','type','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name'];(function(_0x435dda,_0x59b4d0){var _0x18bea4=function(_0x3209eb){while(--_0x3209eb){_0x435dda['push'](_0x435dda['shift']());}};_0x18bea4(++_0x59b4d0);}(_0x628a,0x1bb));var _0xa628=function(_0x5b98b3,_0x200dc3){_0x5b98b3=_0x5b98b3-0x0;var _0x3789cd=_0x628a[_0x5b98b3];return _0x3789cd;};'use strict';var client=require(_0xa628('0x0'));exports[_0xa628('0x1')]=function(){return function(_0x5ca1eb){return client[_0xa628('0x2')](_0xa628('0x3'),{'options':{'raw':![],'attributes':['id',_0xa628('0x4'),_0xa628('0x5'),_0xa628('0x6'),_0xa628('0x7'),'clientId',_0xa628('0x8'),_0xa628('0x9'),_0xa628('0xa'),'refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0xa628('0xb'),'attributes':['id',_0xa628('0x4'),_0xa628('0xc'),_0xa628('0xd'),_0xa628('0x5')],'include':[{'model':_0xa628('0xe'),'as':_0xa628('0xf'),'attributes':['id','type',_0xa628('0x10'),_0xa628('0x11')],'include':[{'model':_0xa628('0x12'),'as':'Variable','attributes':['id',_0xa628('0x4')]}]},{'model':_0xa628('0xe'),'as':_0xa628('0x13'),'attributes':['id','type','content',_0xa628('0x14'),_0xa628('0x15'),_0xa628('0x16'),'variableName'],'include':[{'model':_0xa628('0x12'),'as':'Variable','attributes':['id',_0xa628('0x4')]}]},{'model':'ZohoField','as':_0xa628('0x17'),'attributes':['id',_0xa628('0x18'),'content',_0xa628('0x19'),_0xa628('0x1a'),_0xa628('0x1b'),_0xa628('0x11')],'include':[{'model':_0xa628('0x12'),'as':_0xa628('0x12'),'attributes':['id',_0xa628('0x4')]}]}]}]},'log':'GetZohoAccount'});};};