Built motion from commit 85328c08.|2.5.50
[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 _0x5810=['Descriptions','content','key','keyType','keyContent','variableName','idField','../../client','getZohoAccounts','Request','name','description','host','zone','clientSecret','serverUrl','code','refreshToken','Configurations','moduleSearch','ZohoField','Subjects','type','Variable'];(function(_0x4ecf20,_0x2eb10b){var _0x590250=function(_0x32da90){while(--_0x32da90){_0x4ecf20['push'](_0x4ecf20['shift']());}};_0x590250(++_0x2eb10b);}(_0x5810,0x1cf));var _0x0581=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x5810[_0x42cae2];return _0x5f256f;};'use strict';var client=require(_0x0581('0x0'));exports[_0x0581('0x1')]=function(){return function(_0x42c881){return client[_0x0581('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x0581('0x3'),_0x0581('0x4'),_0x0581('0x5'),_0x0581('0x6'),'clientId',_0x0581('0x7'),_0x0581('0x8'),_0x0581('0x9'),_0x0581('0xa')],'include':[{'model':'ZohoConfiguration','as':_0x0581('0xb'),'attributes':['id',_0x0581('0x3'),'moduleCreate',_0x0581('0xc'),_0x0581('0x4')],'include':[{'model':_0x0581('0xd'),'as':_0x0581('0xe'),'attributes':['id',_0x0581('0xf'),'content','variableName'],'include':[{'model':_0x0581('0x10'),'as':'Variable','attributes':['id',_0x0581('0x3')]}]},{'model':'ZohoField','as':_0x0581('0x11'),'attributes':['id',_0x0581('0xf'),_0x0581('0x12'),_0x0581('0x13'),_0x0581('0x14'),_0x0581('0x15'),_0x0581('0x16')],'include':[{'model':_0x0581('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':_0x0581('0xd'),'as':'Fields','attributes':['id',_0x0581('0xf'),_0x0581('0x12'),_0x0581('0x17'),'nameField','customField','variableName'],'include':[{'model':_0x0581('0x10'),'as':'Variable','attributes':['id',_0x0581('0x3')]}]}]}]},'log':'GetZohoAccount'});};};