Built motion from commit e02f907f.|2.6.14
[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 _0x800b=['GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','description','Subjects','type','content','variableName','Variable','Descriptions','key','ZohoField','Fields','idField','nameField','customField','getZohoAccounts','Request'];(function(_0x25f4d1,_0x461cca){var _0xe797c6=function(_0x37b4ca){while(--_0x37b4ca){_0x25f4d1['push'](_0x25f4d1['shift']());}};_0xe797c6(++_0x461cca);}(_0x800b,0x184));var _0xb800=function(_0x7791d5,_0xdab65f){_0x7791d5=_0x7791d5-0x0;var _0x5ce288=_0x800b[_0x7791d5];return _0x5ce288;};'use strict';var client=require('../../client');exports[_0xb800('0x0')]=function(){return function(_0x4128dc){return client[_0xb800('0x1')](_0xb800('0x2'),{'options':{'raw':![],'attributes':['id',_0xb800('0x3'),'description',_0xb800('0x4'),_0xb800('0x5'),_0xb800('0x6'),_0xb800('0x7'),_0xb800('0x8'),_0xb800('0x9'),_0xb800('0xa')],'include':[{'model':_0xb800('0xb'),'as':_0xb800('0xc'),'attributes':['id','name','moduleCreate','moduleSearch',_0xb800('0xd')],'include':[{'model':'ZohoField','as':_0xb800('0xe'),'attributes':['id',_0xb800('0xf'),_0xb800('0x10'),_0xb800('0x11')],'include':[{'model':_0xb800('0x12'),'as':_0xb800('0x12'),'attributes':['id',_0xb800('0x3')]}]},{'model':'ZohoField','as':_0xb800('0x13'),'attributes':['id',_0xb800('0xf'),'content',_0xb800('0x14'),'keyType','keyContent',_0xb800('0x11')],'include':[{'model':'Variable','as':_0xb800('0x12'),'attributes':['id','name']}]},{'model':_0xb800('0x15'),'as':_0xb800('0x16'),'attributes':['id',_0xb800('0xf'),_0xb800('0x10'),_0xb800('0x17'),_0xb800('0x18'),_0xb800('0x19'),_0xb800('0x11')],'include':[{'model':_0xb800('0x12'),'as':_0xb800('0x12'),'attributes':['id','name']}]}]}]},'log':_0xb800('0x2')});};};