Built motion from commit (unavailable).|2.2.2
[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 _0x1a8a=['Configurations','ZohoField','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField','GetZohoAccount','../../client','getZohoAccounts','Request','name','authToken','host','serverUrl','ZohoConfiguration'];(function(_0x488bd3,_0x38deaf){var _0x1cc749=function(_0x490417){while(--_0x490417){_0x488bd3['push'](_0x488bd3['shift']());}};_0x1cc749(++_0x38deaf);}(_0x1a8a,0xe8));var _0xa1a8=function(_0x567fff,_0xd8acd8){_0x567fff=_0x567fff-0x0;var _0x465a37=_0x1a8a[_0x567fff];return _0x465a37;};'use strict';var client=require(_0xa1a8('0x0'));exports[_0xa1a8('0x1')]=function(){return function(_0x182500){return client[_0xa1a8('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0xa1a8('0x3'),'description',_0xa1a8('0x4'),_0xa1a8('0x5'),_0xa1a8('0x6')],'include':[{'model':_0xa1a8('0x7'),'as':_0xa1a8('0x8'),'attributes':['id',_0xa1a8('0x3')],'include':[{'model':_0xa1a8('0x9'),'as':'Subjects','attributes':['id',_0xa1a8('0xa'),_0xa1a8('0xb'),_0xa1a8('0xc')],'include':[{'model':_0xa1a8('0xd'),'as':_0xa1a8('0xd'),'attributes':['id',_0xa1a8('0x3')]}]},{'model':'ZohoField','as':'Descriptions','attributes':['id',_0xa1a8('0xa'),'content',_0xa1a8('0xe'),_0xa1a8('0xf'),_0xa1a8('0x10'),_0xa1a8('0xc')],'include':[{'model':_0xa1a8('0xd'),'as':_0xa1a8('0xd'),'attributes':['id',_0xa1a8('0x3')]}]},{'model':_0xa1a8('0x9'),'as':_0xa1a8('0x11'),'attributes':['id','type',_0xa1a8('0xb'),_0xa1a8('0x12'),'nameField','customField',_0xa1a8('0xc')],'include':[{'model':_0xa1a8('0xd'),'as':_0xa1a8('0xd'),'attributes':['id',_0xa1a8('0x3')]}]}]}]},'log':_0xa1a8('0x13')});};};