d233a1aaf3d78450137848bd2e1fbfec838b1efa
[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 _0x3797=['moduleCreate','moduleSearch','ZohoField','Subjects','type','Variable','key','keyType','keyContent','Fields','content','idField','nameField','customField','variableName','../../client','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl','refreshToken','ZohoConfiguration','Configurations'];(function(_0x7c13ed,_0x4d9dd5){var _0x4cad66=function(_0x3db414){while(--_0x3db414){_0x7c13ed['push'](_0x7c13ed['shift']());}};_0x4cad66(++_0x4d9dd5);}(_0x3797,0x1b3));var _0x7379=function(_0x39e177,_0x1f09d9){_0x39e177=_0x39e177-0x0;var _0x441aa0=_0x3797[_0x39e177];return _0x441aa0;};'use strict';var client=require(_0x7379('0x0'));exports[_0x7379('0x1')]=function(){return function(_0x33cb76){return client[_0x7379('0x2')](_0x7379('0x3'),{'options':{'raw':![],'attributes':['id',_0x7379('0x4'),'description',_0x7379('0x5'),_0x7379('0x6'),_0x7379('0x7'),_0x7379('0x8'),_0x7379('0x9'),'code',_0x7379('0xa')],'include':[{'model':_0x7379('0xb'),'as':_0x7379('0xc'),'attributes':['id',_0x7379('0x4'),_0x7379('0xd'),_0x7379('0xe'),'description'],'include':[{'model':_0x7379('0xf'),'as':_0x7379('0x10'),'attributes':['id',_0x7379('0x11'),'content','variableName'],'include':[{'model':'Variable','as':_0x7379('0x12'),'attributes':['id','name']}]},{'model':_0x7379('0xf'),'as':'Descriptions','attributes':['id','type','content',_0x7379('0x13'),_0x7379('0x14'),_0x7379('0x15'),'variableName'],'include':[{'model':_0x7379('0x12'),'as':_0x7379('0x12'),'attributes':['id','name']}]},{'model':_0x7379('0xf'),'as':_0x7379('0x16'),'attributes':['id','type',_0x7379('0x17'),_0x7379('0x18'),_0x7379('0x19'),_0x7379('0x1a'),_0x7379('0x1b')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x7379('0x4')]}]}]}]},'log':_0x7379('0x3')});};};