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