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