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