Built motion from commit 1fa89557.|2.6.10
[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 _0xbd56=['nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','description','type','content','variableName','Variable','ZohoField','keyContent','Fields','idField'];(function(_0x2004b9,_0x6d6b1f){var _0x36f731=function(_0x450209){while(--_0x450209){_0x2004b9['push'](_0x2004b9['shift']());}};_0x36f731(++_0x6d6b1f);}(_0xbd56,0xa4));var _0x6bd5=function(_0x5c7511,_0x489eac){_0x5c7511=_0x5c7511-0x0;var _0x5f2f66=_0xbd56[_0x5c7511];return _0x5f2f66;};'use strict';var client=require(_0x6bd5('0x0'));exports[_0x6bd5('0x1')]=function(){return function(_0x5ec693){return client[_0x6bd5('0x2')](_0x6bd5('0x3'),{'options':{'raw':![],'attributes':['id',_0x6bd5('0x4'),'description',_0x6bd5('0x5'),_0x6bd5('0x6'),_0x6bd5('0x7'),_0x6bd5('0x8'),_0x6bd5('0x9'),_0x6bd5('0xa'),_0x6bd5('0xb')],'include':[{'model':_0x6bd5('0xc'),'as':_0x6bd5('0xd'),'attributes':['id',_0x6bd5('0x4'),_0x6bd5('0xe'),_0x6bd5('0xf'),_0x6bd5('0x10')],'include':[{'model':'ZohoField','as':'Subjects','attributes':['id',_0x6bd5('0x11'),_0x6bd5('0x12'),_0x6bd5('0x13')],'include':[{'model':'Variable','as':_0x6bd5('0x14'),'attributes':['id',_0x6bd5('0x4')]}]},{'model':_0x6bd5('0x15'),'as':'Descriptions','attributes':['id',_0x6bd5('0x11'),'content','key','keyType',_0x6bd5('0x16'),_0x6bd5('0x13')],'include':[{'model':_0x6bd5('0x14'),'as':_0x6bd5('0x14'),'attributes':['id','name']}]},{'model':_0x6bd5('0x15'),'as':_0x6bd5('0x17'),'attributes':['id','type',_0x6bd5('0x12'),_0x6bd5('0x18'),_0x6bd5('0x19'),_0x6bd5('0x1a'),_0x6bd5('0x13')],'include':[{'model':_0x6bd5('0x14'),'as':'Variable','attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};