Built motion from commit da24aabd.|2.6.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 _0xd7a5=['moduleCreate','ZohoField','Subjects','type','content','variableName','Variable','Descriptions','key','keyContent','Fields','idField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientId','refreshToken','Configurations'];(function(_0x1fc512,_0x1996db){var _0xae94b9=function(_0x18f59d){while(--_0x18f59d){_0x1fc512['push'](_0x1fc512['shift']());}};_0xae94b9(++_0x1996db);}(_0xd7a5,0x109));var _0x5d7a=function(_0x59c301,_0x359c50){_0x59c301=_0x59c301-0x0;var _0x3866b9=_0xd7a5[_0x59c301];return _0x3866b9;};'use strict';var client=require(_0x5d7a('0x0'));exports[_0x5d7a('0x1')]=function(){return function(_0x3c8ec1){return client[_0x5d7a('0x2')](_0x5d7a('0x3'),{'options':{'raw':![],'attributes':['id',_0x5d7a('0x4'),_0x5d7a('0x5'),_0x5d7a('0x6'),_0x5d7a('0x7'),_0x5d7a('0x8'),'clientSecret','serverUrl','code',_0x5d7a('0x9')],'include':[{'model':'ZohoConfiguration','as':_0x5d7a('0xa'),'attributes':['id',_0x5d7a('0x4'),_0x5d7a('0xb'),'moduleSearch','description'],'include':[{'model':_0x5d7a('0xc'),'as':_0x5d7a('0xd'),'attributes':['id',_0x5d7a('0xe'),_0x5d7a('0xf'),_0x5d7a('0x10')],'include':[{'model':'Variable','as':_0x5d7a('0x11'),'attributes':['id','name']}]},{'model':_0x5d7a('0xc'),'as':_0x5d7a('0x12'),'attributes':['id','type',_0x5d7a('0xf'),_0x5d7a('0x13'),'keyType',_0x5d7a('0x14'),_0x5d7a('0x10')],'include':[{'model':_0x5d7a('0x11'),'as':_0x5d7a('0x11'),'attributes':['id','name']}]},{'model':_0x5d7a('0xc'),'as':_0x5d7a('0x15'),'attributes':['id',_0x5d7a('0xe'),_0x5d7a('0xf'),_0x5d7a('0x16'),'nameField','customField',_0x5d7a('0x10')],'include':[{'model':_0x5d7a('0x11'),'as':_0x5d7a('0x11'),'attributes':['id',_0x5d7a('0x4')]}]}]}]},'log':_0x5d7a('0x3')});};};