06fd339eb9ea95d3d45a6081985d67f6b2784fb2
[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 _0xf1ae=['clientSecret','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','ZohoField','Subjects','type','variableName','content','key','keyContent','Variable','Fields','idField','nameField','customField','../../client','Request','GetZohoAccount','name','description','zone','clientId'];(function(_0x47ac5f,_0x155f6d){var _0x2dd60f=function(_0x7b79e1){while(--_0x7b79e1){_0x47ac5f['push'](_0x47ac5f['shift']());}};_0x2dd60f(++_0x155f6d);}(_0xf1ae,0xa8));var _0xef1a=function(_0x49c4ef,_0xcdd412){_0x49c4ef=_0x49c4ef-0x0;var _0x533573=_0xf1ae[_0x49c4ef];return _0x533573;};'use strict';var client=require(_0xef1a('0x0'));exports['getZohoAccounts']=function(){return function(_0x1d675e){return client[_0xef1a('0x1')](_0xef1a('0x2'),{'options':{'raw':![],'attributes':['id',_0xef1a('0x3'),_0xef1a('0x4'),'host',_0xef1a('0x5'),_0xef1a('0x6'),_0xef1a('0x7'),'serverUrl',_0xef1a('0x8'),_0xef1a('0x9')],'include':[{'model':_0xef1a('0xa'),'as':_0xef1a('0xb'),'attributes':['id',_0xef1a('0x3'),_0xef1a('0xc'),'moduleSearch',_0xef1a('0x4')],'include':[{'model':_0xef1a('0xd'),'as':_0xef1a('0xe'),'attributes':['id',_0xef1a('0xf'),'content',_0xef1a('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xef1a('0x3')]}]},{'model':_0xef1a('0xd'),'as':'Descriptions','attributes':['id',_0xef1a('0xf'),_0xef1a('0x11'),_0xef1a('0x12'),'keyType',_0xef1a('0x13'),'variableName'],'include':[{'model':_0xef1a('0x14'),'as':'Variable','attributes':['id',_0xef1a('0x3')]}]},{'model':_0xef1a('0xd'),'as':_0xef1a('0x15'),'attributes':['id',_0xef1a('0xf'),'content',_0xef1a('0x16'),_0xef1a('0x17'),_0xef1a('0x18'),'variableName'],'include':[{'model':'Variable','as':_0xef1a('0x14'),'attributes':['id',_0xef1a('0x3')]}]}]}]},'log':_0xef1a('0x2')});};};