Built motion from commit (unavailable).|2.5.8
[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 _0xdb11=['nameField','customField','variableName','Request','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','Variable','Descriptions','keyType','keyContent','Fields','idField'];(function(_0x8d4bff,_0x46fb43){var _0x550b57=function(_0x3d82a8){while(--_0x3d82a8){_0x8d4bff['push'](_0x8d4bff['shift']());}};_0x550b57(++_0x46fb43);}(_0xdb11,0x137));var _0x1db1=function(_0x31e29a,_0x349c9b){_0x31e29a=_0x31e29a-0x0;var _0x32d892=_0xdb11[_0x31e29a];return _0x32d892;};'use strict';var client=require('../../client');exports['getZohoAccounts']=function(){return function(_0x6a5465){return client[_0x1db1('0x0')](_0x1db1('0x1'),{'options':{'raw':![],'attributes':['id',_0x1db1('0x2'),_0x1db1('0x3'),_0x1db1('0x4'),_0x1db1('0x5'),_0x1db1('0x6'),_0x1db1('0x7'),_0x1db1('0x8'),_0x1db1('0x9'),_0x1db1('0xa')],'include':[{'model':_0x1db1('0xb'),'as':_0x1db1('0xc'),'attributes':['id',_0x1db1('0x2'),_0x1db1('0xd'),_0x1db1('0xe'),_0x1db1('0x3')],'include':[{'model':_0x1db1('0xf'),'as':_0x1db1('0x10'),'attributes':['id',_0x1db1('0x11'),_0x1db1('0x12'),'variableName'],'include':[{'model':'Variable','as':_0x1db1('0x13'),'attributes':['id',_0x1db1('0x2')]}]},{'model':_0x1db1('0xf'),'as':_0x1db1('0x14'),'attributes':['id',_0x1db1('0x11'),_0x1db1('0x12'),'key',_0x1db1('0x15'),_0x1db1('0x16'),'variableName'],'include':[{'model':_0x1db1('0x13'),'as':_0x1db1('0x13'),'attributes':['id',_0x1db1('0x2')]}]},{'model':_0x1db1('0xf'),'as':_0x1db1('0x17'),'attributes':['id','type',_0x1db1('0x12'),_0x1db1('0x18'),_0x1db1('0x19'),_0x1db1('0x1a'),_0x1db1('0x1b')],'include':[{'model':'Variable','as':_0x1db1('0x13'),'attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};