Built motion from commit (unavailable).|2.4.18
[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 _0x2868=['content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','nameField','customField','GetZohoAccount','../../client','Request','name','host','clientId','clientSecret','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','description','ZohoField','Subjects','type'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x2868,0x191));var _0x8286=function(_0x177b15,_0x2feb14){_0x177b15=_0x177b15-0x0;var _0x39d08b=_0x2868[_0x177b15];return _0x39d08b;};'use strict';var client=require(_0x8286('0x0'));exports['getZohoAccounts']=function(){return function(_0x3153a7){return client[_0x8286('0x1')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x8286('0x2'),'description',_0x8286('0x3'),'zone',_0x8286('0x4'),_0x8286('0x5'),'serverUrl',_0x8286('0x6'),_0x8286('0x7')],'include':[{'model':_0x8286('0x8'),'as':_0x8286('0x9'),'attributes':['id','name',_0x8286('0xa'),_0x8286('0xb')],'include':[{'model':_0x8286('0xc'),'as':_0x8286('0xd'),'attributes':['id',_0x8286('0xe'),_0x8286('0xf'),_0x8286('0x10')],'include':[{'model':'Variable','as':_0x8286('0x11'),'attributes':['id',_0x8286('0x2')]}]},{'model':_0x8286('0xc'),'as':_0x8286('0x12'),'attributes':['id',_0x8286('0xe'),_0x8286('0xf'),_0x8286('0x13'),_0x8286('0x14'),_0x8286('0x15'),'variableName'],'include':[{'model':_0x8286('0x11'),'as':_0x8286('0x11'),'attributes':['id',_0x8286('0x2')]}]},{'model':_0x8286('0xc'),'as':_0x8286('0x16'),'attributes':['id',_0x8286('0xe'),'content','idField',_0x8286('0x17'),_0x8286('0x18'),_0x8286('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x8286('0x2')]}]}]}]},'log':_0x8286('0x19')});};};