Built motion from commit 994c64e1.|2.6.1
[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 _0x9cd4=['moduleSearch','ZohoField','type','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','nameField','customField','GetZohoAccount','getZohoAccounts','Request','name','description','host','zone','clientId','clientSecret','serverUrl','Configurations','moduleCreate'];(function(_0x1ce59e,_0x5af36e){var _0x3370b8=function(_0x226540){while(--_0x226540){_0x1ce59e['push'](_0x1ce59e['shift']());}};_0x3370b8(++_0x5af36e);}(_0x9cd4,0x72));var _0x49cd=function(_0x1fb7d1,_0x108781){_0x1fb7d1=_0x1fb7d1-0x0;var _0x2480d8=_0x9cd4[_0x1fb7d1];return _0x2480d8;};'use strict';var client=require('../../client');exports[_0x49cd('0x0')]=function(){return function(_0x560c26){return client[_0x49cd('0x1')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x49cd('0x2'),_0x49cd('0x3'),_0x49cd('0x4'),_0x49cd('0x5'),_0x49cd('0x6'),_0x49cd('0x7'),_0x49cd('0x8'),'code','refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0x49cd('0x9'),'attributes':['id','name',_0x49cd('0xa'),_0x49cd('0xb'),_0x49cd('0x3')],'include':[{'model':_0x49cd('0xc'),'as':'Subjects','attributes':['id',_0x49cd('0xd'),_0x49cd('0xe'),_0x49cd('0xf')],'include':[{'model':_0x49cd('0x10'),'as':_0x49cd('0x10'),'attributes':['id','name']}]},{'model':_0x49cd('0xc'),'as':_0x49cd('0x11'),'attributes':['id',_0x49cd('0xd'),_0x49cd('0xe'),'key',_0x49cd('0x12'),_0x49cd('0x13'),_0x49cd('0xf')],'include':[{'model':_0x49cd('0x10'),'as':_0x49cd('0x10'),'attributes':['id',_0x49cd('0x2')]}]},{'model':_0x49cd('0xc'),'as':_0x49cd('0x14'),'attributes':['id',_0x49cd('0xd'),_0x49cd('0xe'),_0x49cd('0x15'),_0x49cd('0x16'),_0x49cd('0x17'),_0x49cd('0xf')],'include':[{'model':_0x49cd('0x10'),'as':_0x49cd('0x10'),'attributes':['id',_0x49cd('0x2')]}]}]}]},'log':_0x49cd('0x18')});};};