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