Built motion from commit b5413ace.|2.6.9
[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 _0xbcb2=['keyType','keyContent','ZohoField','Fields','idField','nameField','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','Subjects','variableName','Variable','type','content','key'];(function(_0x212fcc,_0x1a8867){var _0x4d8190=function(_0x347f7b){while(--_0x347f7b){_0x212fcc['push'](_0x212fcc['shift']());}};_0x4d8190(++_0x1a8867);}(_0xbcb2,0xf0));var _0x2bcb=function(_0x38c8d1,_0x4443f7){_0x38c8d1=_0x38c8d1-0x0;var _0x5684d7=_0xbcb2[_0x38c8d1];return _0x5684d7;};'use strict';var client=require('../../client');exports[_0x2bcb('0x0')]=function(){return function(_0x5571f2){return client[_0x2bcb('0x1')](_0x2bcb('0x2'),{'options':{'raw':![],'attributes':['id',_0x2bcb('0x3'),_0x2bcb('0x4'),_0x2bcb('0x5'),_0x2bcb('0x6'),'clientId',_0x2bcb('0x7'),_0x2bcb('0x8'),_0x2bcb('0x9'),_0x2bcb('0xa')],'include':[{'model':_0x2bcb('0xb'),'as':_0x2bcb('0xc'),'attributes':['id',_0x2bcb('0x3'),_0x2bcb('0xd'),'moduleSearch',_0x2bcb('0x4')],'include':[{'model':'ZohoField','as':_0x2bcb('0xe'),'attributes':['id','type','content',_0x2bcb('0xf')],'include':[{'model':_0x2bcb('0x10'),'as':_0x2bcb('0x10'),'attributes':['id',_0x2bcb('0x3')]}]},{'model':'ZohoField','as':'Descriptions','attributes':['id',_0x2bcb('0x11'),_0x2bcb('0x12'),_0x2bcb('0x13'),_0x2bcb('0x14'),_0x2bcb('0x15'),_0x2bcb('0xf')],'include':[{'model':_0x2bcb('0x10'),'as':'Variable','attributes':['id',_0x2bcb('0x3')]}]},{'model':_0x2bcb('0x16'),'as':_0x2bcb('0x17'),'attributes':['id',_0x2bcb('0x11'),_0x2bcb('0x12'),_0x2bcb('0x18'),_0x2bcb('0x19'),'customField',_0x2bcb('0xf')],'include':[{'model':'Variable','as':_0x2bcb('0x10'),'attributes':['id','name']}]}]}]},'log':_0x2bcb('0x2')});};};