Built motion from commit (unavailable).|2.5.4
[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 _0xd8f2=['key','keyType','keyContent','Fields','idField','../../client','getZohoAccounts','GetZohoAccount','name','description','host','clientId','clientSecret','code','Configurations','moduleCreate','Subjects','type','content','variableName','Variable','ZohoField'];(function(_0x9d074d,_0x191369){var _0x185ddb=function(_0x350bce){while(--_0x350bce){_0x9d074d['push'](_0x9d074d['shift']());}};_0x185ddb(++_0x191369);}(_0xd8f2,0x14f));var _0x2d8f=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0xd8f2[_0x19e35c];return _0x3e1fe8;};'use strict';var client=require(_0x2d8f('0x0'));exports[_0x2d8f('0x1')]=function(){return function(_0x147b36){return client['Request'](_0x2d8f('0x2'),{'options':{'raw':![],'attributes':['id',_0x2d8f('0x3'),_0x2d8f('0x4'),_0x2d8f('0x5'),'zone',_0x2d8f('0x6'),_0x2d8f('0x7'),'serverUrl',_0x2d8f('0x8'),'refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0x2d8f('0x9'),'attributes':['id',_0x2d8f('0x3'),_0x2d8f('0xa'),'moduleSearch',_0x2d8f('0x4')],'include':[{'model':'ZohoField','as':_0x2d8f('0xb'),'attributes':['id',_0x2d8f('0xc'),_0x2d8f('0xd'),_0x2d8f('0xe')],'include':[{'model':_0x2d8f('0xf'),'as':_0x2d8f('0xf'),'attributes':['id',_0x2d8f('0x3')]}]},{'model':_0x2d8f('0x10'),'as':'Descriptions','attributes':['id',_0x2d8f('0xc'),_0x2d8f('0xd'),_0x2d8f('0x11'),_0x2d8f('0x12'),_0x2d8f('0x13'),_0x2d8f('0xe')],'include':[{'model':_0x2d8f('0xf'),'as':_0x2d8f('0xf'),'attributes':['id',_0x2d8f('0x3')]}]},{'model':_0x2d8f('0x10'),'as':_0x2d8f('0x14'),'attributes':['id','type',_0x2d8f('0xd'),_0x2d8f('0x15'),'nameField','customField','variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x2d8f('0x3')]}]}]}]},'log':_0x2d8f('0x2')});};};