1503d073e7734c8dcd5529a6815b528cb8462704
[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 _0x7083=['Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','GetZohoAccount','name','description','host','zone','clientSecret','serverUrl','ZohoConfiguration'];(function(_0x59ab86,_0x5a5765){var _0x26ac1d=function(_0x5aa5d9){while(--_0x5aa5d9){_0x59ab86['push'](_0x59ab86['shift']());}};_0x26ac1d(++_0x5a5765);}(_0x7083,0xfa));var _0x3708=function(_0x50e385,_0x577d2f){_0x50e385=_0x50e385-0x0;var _0x3f082a=_0x7083[_0x50e385];return _0x3f082a;};'use strict';var client=require(_0x3708('0x0'));exports[_0x3708('0x1')]=function(){return function(_0x857789){return client['Request'](_0x3708('0x2'),{'options':{'raw':![],'attributes':['id',_0x3708('0x3'),_0x3708('0x4'),_0x3708('0x5'),_0x3708('0x6'),'clientId',_0x3708('0x7'),_0x3708('0x8'),'code','refreshToken'],'include':[{'model':_0x3708('0x9'),'as':_0x3708('0xa'),'attributes':['id',_0x3708('0x3'),_0x3708('0xb'),_0x3708('0xc'),_0x3708('0x4')],'include':[{'model':_0x3708('0xd'),'as':_0x3708('0xe'),'attributes':['id',_0x3708('0xf'),_0x3708('0x10'),_0x3708('0x11')],'include':[{'model':_0x3708('0x12'),'as':_0x3708('0x12'),'attributes':['id',_0x3708('0x3')]}]},{'model':'ZohoField','as':'Descriptions','attributes':['id',_0x3708('0xf'),'content',_0x3708('0x13'),_0x3708('0x14'),_0x3708('0x15'),_0x3708('0x11')],'include':[{'model':'Variable','as':_0x3708('0x12'),'attributes':['id',_0x3708('0x3')]}]},{'model':_0x3708('0xd'),'as':_0x3708('0x16'),'attributes':['id',_0x3708('0xf'),_0x3708('0x10'),_0x3708('0x17'),_0x3708('0x18'),_0x3708('0x19'),_0x3708('0x11')],'include':[{'model':_0x3708('0x12'),'as':'Variable','attributes':['id',_0x3708('0x3')]}]}]}]},'log':'GetZohoAccount'});};};