Built motion from commit a61a4a20.|2.5.46
[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 _0x68b3=['Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','Variable','key','idField','nameField','variableName','GetZohoAccount','getZohoAccounts','Request','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration'];(function(_0x508a72,_0x3fdd80){var _0x2fe3d7=function(_0x4c3711){while(--_0x4c3711){_0x508a72['push'](_0x508a72['shift']());}};_0x2fe3d7(++_0x3fdd80);}(_0x68b3,0x8a));var _0x368b=function(_0x3e06b1,_0x2752a4){_0x3e06b1=_0x3e06b1-0x0;var _0x478c73=_0x68b3[_0x3e06b1];return _0x478c73;};'use strict';var client=require('../../client');exports[_0x368b('0x0')]=function(){return function(_0x2d4dd4){return client[_0x368b('0x1')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x368b('0x2'),_0x368b('0x3'),_0x368b('0x4'),_0x368b('0x5'),_0x368b('0x6'),_0x368b('0x7'),_0x368b('0x8'),_0x368b('0x9'),_0x368b('0xa')],'include':[{'model':_0x368b('0xb'),'as':_0x368b('0xc'),'attributes':['id',_0x368b('0x2'),_0x368b('0xd'),_0x368b('0xe'),_0x368b('0x3')],'include':[{'model':_0x368b('0xf'),'as':_0x368b('0x10'),'attributes':['id',_0x368b('0x11'),_0x368b('0x12'),'variableName'],'include':[{'model':_0x368b('0x13'),'as':'Variable','attributes':['id',_0x368b('0x2')]}]},{'model':'ZohoField','as':'Descriptions','attributes':['id',_0x368b('0x11'),_0x368b('0x12'),_0x368b('0x14'),'keyType','keyContent','variableName'],'include':[{'model':_0x368b('0x13'),'as':_0x368b('0x13'),'attributes':['id','name']}]},{'model':_0x368b('0xf'),'as':'Fields','attributes':['id','type','content',_0x368b('0x15'),_0x368b('0x16'),'customField',_0x368b('0x17')],'include':[{'model':_0x368b('0x13'),'as':_0x368b('0x13'),'attributes':['id',_0x368b('0x2')]}]}]}]},'log':_0x368b('0x18')});};};