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