Built motion from commit f94df7f0.|2.5.48
[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 _0x939f=['Variable','key','keyType','keyContent','Fields','idField','../../client','getZohoAccounts','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName'];(function(_0x852bbc,_0xf80e3c){var _0x31f6eb=function(_0x3225e2){while(--_0x3225e2){_0x852bbc['push'](_0x852bbc['shift']());}};_0x31f6eb(++_0xf80e3c);}(_0x939f,0x1b6));var _0xf939=function(_0x189e47,_0x4fa398){_0x189e47=_0x189e47-0x0;var _0x5c375b=_0x939f[_0x189e47];return _0x5c375b;};'use strict';var client=require(_0xf939('0x0'));exports[_0xf939('0x1')]=function(){return function(_0xc65a50){return client['Request'](_0xf939('0x2'),{'options':{'raw':![],'attributes':['id',_0xf939('0x3'),_0xf939('0x4'),_0xf939('0x5'),_0xf939('0x6'),_0xf939('0x7'),_0xf939('0x8'),_0xf939('0x9'),_0xf939('0xa'),_0xf939('0xb')],'include':[{'model':_0xf939('0xc'),'as':_0xf939('0xd'),'attributes':['id',_0xf939('0x3'),_0xf939('0xe'),_0xf939('0xf'),_0xf939('0x4')],'include':[{'model':_0xf939('0x10'),'as':_0xf939('0x11'),'attributes':['id',_0xf939('0x12'),_0xf939('0x13'),_0xf939('0x14')],'include':[{'model':_0xf939('0x15'),'as':_0xf939('0x15'),'attributes':['id',_0xf939('0x3')]}]},{'model':_0xf939('0x10'),'as':'Descriptions','attributes':['id',_0xf939('0x12'),_0xf939('0x13'),_0xf939('0x16'),_0xf939('0x17'),_0xf939('0x18'),_0xf939('0x14')],'include':[{'model':_0xf939('0x15'),'as':_0xf939('0x15'),'attributes':['id',_0xf939('0x3')]}]},{'model':_0xf939('0x10'),'as':_0xf939('0x19'),'attributes':['id',_0xf939('0x12'),_0xf939('0x13'),_0xf939('0x1a'),'nameField','customField',_0xf939('0x14')],'include':[{'model':_0xf939('0x15'),'as':_0xf939('0x15'),'attributes':['id',_0xf939('0x3')]}]}]}]},'log':_0xf939('0x2')});};};