Built motion from commit (unavailable).|2.5.22
[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 _0x4157=['Request','GetZohoAccount','description','zone','serverUrl','code','ZohoConfiguration','Configurations','name','moduleCreate','moduleSearch','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','ZohoField','Fields','customField','../../client','getZohoAccounts'];(function(_0x126558,_0x143c9a){var _0x1f6d14=function(_0x2b0eea){while(--_0x2b0eea){_0x126558['push'](_0x126558['shift']());}};_0x1f6d14(++_0x143c9a);}(_0x4157,0x18e));var _0x7415=function(_0x1dec38,_0x53b302){_0x1dec38=_0x1dec38-0x0;var _0xa286b0=_0x4157[_0x1dec38];return _0xa286b0;};'use strict';var client=require(_0x7415('0x0'));exports[_0x7415('0x1')]=function(){return function(_0x2a2cf2){return client[_0x7415('0x2')](_0x7415('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x7415('0x4'),'host',_0x7415('0x5'),'clientId','clientSecret',_0x7415('0x6'),_0x7415('0x7'),'refreshToken'],'include':[{'model':_0x7415('0x8'),'as':_0x7415('0x9'),'attributes':['id',_0x7415('0xa'),_0x7415('0xb'),_0x7415('0xc'),_0x7415('0x4')],'include':[{'model':'ZohoField','as':_0x7415('0xd'),'attributes':['id',_0x7415('0xe'),_0x7415('0xf'),_0x7415('0x10')],'include':[{'model':_0x7415('0x11'),'as':_0x7415('0x11'),'attributes':['id','name']}]},{'model':'ZohoField','as':_0x7415('0x12'),'attributes':['id',_0x7415('0xe'),'content',_0x7415('0x13'),_0x7415('0x14'),_0x7415('0x15'),_0x7415('0x10')],'include':[{'model':_0x7415('0x11'),'as':_0x7415('0x11'),'attributes':['id',_0x7415('0xa')]}]},{'model':_0x7415('0x16'),'as':_0x7415('0x17'),'attributes':['id','type',_0x7415('0xf'),'idField','nameField',_0x7415('0x18'),_0x7415('0x10')],'include':[{'model':'Variable','as':_0x7415('0x11'),'attributes':['id',_0x7415('0xa')]}]}]}]},'log':_0x7415('0x3')});};};