88e3ba4a68cf9f060292ba097fa7c32729ea8d15
[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 _0xcd5c=['nameField','getZohoAccounts','Request','GetZohoAccount','name','description','host','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleSearch','ZohoField','type','content','variableName','Variable','Descriptions','keyContent','Fields','idField'];(function(_0x491b40,_0x2f3a98){var _0x2fed8f=function(_0xbf735c){while(--_0xbf735c){_0x491b40['push'](_0x491b40['shift']());}};_0x2fed8f(++_0x2f3a98);}(_0xcd5c,0xa9));var _0xccd5=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xcd5c[_0x321bb2];return _0x9c12ed;};'use strict';var client=require('../../client');exports[_0xccd5('0x0')]=function(){return function(_0x238f4b){return client[_0xccd5('0x1')](_0xccd5('0x2'),{'options':{'raw':![],'attributes':['id',_0xccd5('0x3'),_0xccd5('0x4'),_0xccd5('0x5'),'zone',_0xccd5('0x6'),_0xccd5('0x7'),_0xccd5('0x8'),_0xccd5('0x9'),_0xccd5('0xa')],'include':[{'model':_0xccd5('0xb'),'as':_0xccd5('0xc'),'attributes':['id',_0xccd5('0x3'),'moduleCreate',_0xccd5('0xd'),_0xccd5('0x4')],'include':[{'model':_0xccd5('0xe'),'as':'Subjects','attributes':['id',_0xccd5('0xf'),_0xccd5('0x10'),_0xccd5('0x11')],'include':[{'model':'Variable','as':_0xccd5('0x12'),'attributes':['id','name']}]},{'model':_0xccd5('0xe'),'as':_0xccd5('0x13'),'attributes':['id',_0xccd5('0xf'),_0xccd5('0x10'),'key','keyType',_0xccd5('0x14'),_0xccd5('0x11')],'include':[{'model':_0xccd5('0x12'),'as':_0xccd5('0x12'),'attributes':['id','name']}]},{'model':_0xccd5('0xe'),'as':_0xccd5('0x15'),'attributes':['id',_0xccd5('0xf'),_0xccd5('0x10'),_0xccd5('0x16'),_0xccd5('0x17'),'customField',_0xccd5('0x11')],'include':[{'model':_0xccd5('0x12'),'as':_0xccd5('0x12'),'attributes':['id',_0xccd5('0x3')]}]}]}]},'log':'GetZohoAccount'});};};