Built motion from commit b0a9a629.|2.6.33
[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 _0x37b4=['Configurations','moduleCreate','ZohoField','Subjects','type','content','variableName','Variable','Descriptions','key','keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl'];(function(_0x4333be,_0x5276a7){var _0x2489a0=function(_0x1736fb){while(--_0x1736fb){_0x4333be['push'](_0x4333be['shift']());}};_0x2489a0(++_0x5276a7);}(_0x37b4,0x1b8));var _0x437b=function(_0x536bc2,_0x35c4bf){_0x536bc2=_0x536bc2-0x0;var _0x551b56=_0x37b4[_0x536bc2];return _0x551b56;};'use strict';var client=require(_0x437b('0x0'));exports[_0x437b('0x1')]=function(){return function(_0x3bdf49){return client[_0x437b('0x2')](_0x437b('0x3'),{'options':{'raw':![],'attributes':['id',_0x437b('0x4'),'description',_0x437b('0x5'),_0x437b('0x6'),_0x437b('0x7'),_0x437b('0x8'),_0x437b('0x9'),'code','refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0x437b('0xa'),'attributes':['id',_0x437b('0x4'),_0x437b('0xb'),'moduleSearch','description'],'include':[{'model':_0x437b('0xc'),'as':_0x437b('0xd'),'attributes':['id',_0x437b('0xe'),_0x437b('0xf'),_0x437b('0x10')],'include':[{'model':_0x437b('0x11'),'as':_0x437b('0x11'),'attributes':['id',_0x437b('0x4')]}]},{'model':_0x437b('0xc'),'as':_0x437b('0x12'),'attributes':['id',_0x437b('0xe'),_0x437b('0xf'),_0x437b('0x13'),'keyType',_0x437b('0x14'),_0x437b('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x437b('0xc'),'as':_0x437b('0x15'),'attributes':['id',_0x437b('0xe'),_0x437b('0xf'),_0x437b('0x16'),_0x437b('0x17'),_0x437b('0x18'),_0x437b('0x10')],'include':[{'model':'Variable','as':_0x437b('0x11'),'attributes':['id',_0x437b('0x4')]}]}]}]},'log':_0x437b('0x3')});};};