74d9ba35d13b7092009da77dd9fa424e59d1c8c5
[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 _0x4799=['Fields','nameField','customField','Request','GetZohoAccount','name','description','zone','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','type','variableName','Variable','content','keyType','keyContent'];(function(_0x28d18d,_0x55896b){var _0x470640=function(_0x57e78b){while(--_0x57e78b){_0x28d18d['push'](_0x28d18d['shift']());}};_0x470640(++_0x55896b);}(_0x4799,0x12e));var _0x9479=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0x4799[_0x19950b];return _0x3c6b41;};'use strict';var client=require('../../client');exports['getZohoAccounts']=function(){return function(_0x3a1ce9){return client[_0x9479('0x0')](_0x9479('0x1'),{'options':{'raw':![],'attributes':['id',_0x9479('0x2'),_0x9479('0x3'),'host',_0x9479('0x4'),'clientId',_0x9479('0x5'),_0x9479('0x6'),_0x9479('0x7'),_0x9479('0x8')],'include':[{'model':_0x9479('0x9'),'as':_0x9479('0xa'),'attributes':['id',_0x9479('0x2'),_0x9479('0xb'),_0x9479('0xc'),_0x9479('0x3')],'include':[{'model':_0x9479('0xd'),'as':'Subjects','attributes':['id',_0x9479('0xe'),'content',_0x9479('0xf')],'include':[{'model':_0x9479('0x10'),'as':_0x9479('0x10'),'attributes':['id',_0x9479('0x2')]}]},{'model':_0x9479('0xd'),'as':'Descriptions','attributes':['id',_0x9479('0xe'),_0x9479('0x11'),'key',_0x9479('0x12'),_0x9479('0x13'),'variableName'],'include':[{'model':_0x9479('0x10'),'as':_0x9479('0x10'),'attributes':['id',_0x9479('0x2')]}]},{'model':_0x9479('0xd'),'as':_0x9479('0x14'),'attributes':['id',_0x9479('0xe'),_0x9479('0x11'),'idField',_0x9479('0x15'),_0x9479('0x16'),'variableName'],'include':[{'model':_0x9479('0x10'),'as':'Variable','attributes':['id',_0x9479('0x2')]}]}]}]},'log':_0x9479('0x1')});};};