Built motion from commit dbf3a7e2.|2.6.30
[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 _0x2198=['keyType','keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','GetZohoAccount','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','Configurations','name','moduleCreate','moduleSearch','ZohoField','Subjects','type','variableName','Variable','Descriptions','content','key'];(function(_0x1e1777,_0x171134){var _0xdd150e=function(_0x27722f){while(--_0x27722f){_0x1e1777['push'](_0x1e1777['shift']());}};_0xdd150e(++_0x171134);}(_0x2198,0x10b));var _0x8219=function(_0x43979,_0x5d527a){_0x43979=_0x43979-0x0;var _0x2fada3=_0x2198[_0x43979];return _0x2fada3;};'use strict';var client=require(_0x8219('0x0'));exports[_0x8219('0x1')]=function(){return function(_0x5899b5){return client['Request'](_0x8219('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x8219('0x3'),_0x8219('0x4'),_0x8219('0x5'),_0x8219('0x6'),_0x8219('0x7'),_0x8219('0x8'),_0x8219('0x9'),_0x8219('0xa')],'include':[{'model':'ZohoConfiguration','as':_0x8219('0xb'),'attributes':['id',_0x8219('0xc'),_0x8219('0xd'),_0x8219('0xe'),'description'],'include':[{'model':_0x8219('0xf'),'as':_0x8219('0x10'),'attributes':['id',_0x8219('0x11'),'content',_0x8219('0x12')],'include':[{'model':_0x8219('0x13'),'as':'Variable','attributes':['id',_0x8219('0xc')]}]},{'model':'ZohoField','as':_0x8219('0x14'),'attributes':['id',_0x8219('0x11'),_0x8219('0x15'),_0x8219('0x16'),_0x8219('0x17'),_0x8219('0x18'),'variableName'],'include':[{'model':'Variable','as':_0x8219('0x13'),'attributes':['id',_0x8219('0xc')]}]},{'model':'ZohoField','as':_0x8219('0x19'),'attributes':['id','type',_0x8219('0x15'),_0x8219('0x1a'),_0x8219('0x1b'),_0x8219('0x1c'),_0x8219('0x12')],'include':[{'model':'Variable','as':_0x8219('0x13'),'attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};