Built motion from commit da617fac.|2.6.6
[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 _0xcc5c=['refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','Variable','Descriptions','key','keyContent','variableName','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientId','serverUrl'];(function(_0xe567ee,_0x5e3134){var _0x9500be=function(_0x5e1741){while(--_0x5e1741){_0xe567ee['push'](_0xe567ee['shift']());}};_0x9500be(++_0x5e3134);}(_0xcc5c,0x82));var _0xccc5=function(_0x1b2995,_0x4fbd99){_0x1b2995=_0x1b2995-0x0;var _0x1ec230=_0xcc5c[_0x1b2995];return _0x1ec230;};'use strict';var client=require(_0xccc5('0x0'));exports[_0xccc5('0x1')]=function(){return function(_0x23cdea){return client[_0xccc5('0x2')](_0xccc5('0x3'),{'options':{'raw':![],'attributes':['id',_0xccc5('0x4'),_0xccc5('0x5'),_0xccc5('0x6'),_0xccc5('0x7'),_0xccc5('0x8'),'clientSecret',_0xccc5('0x9'),'code',_0xccc5('0xa')],'include':[{'model':_0xccc5('0xb'),'as':_0xccc5('0xc'),'attributes':['id',_0xccc5('0x4'),_0xccc5('0xd'),_0xccc5('0xe'),'description'],'include':[{'model':_0xccc5('0xf'),'as':_0xccc5('0x10'),'attributes':['id',_0xccc5('0x11'),_0xccc5('0x12'),'variableName'],'include':[{'model':_0xccc5('0x13'),'as':'Variable','attributes':['id',_0xccc5('0x4')]}]},{'model':'ZohoField','as':_0xccc5('0x14'),'attributes':['id','type',_0xccc5('0x12'),_0xccc5('0x15'),'keyType',_0xccc5('0x16'),_0xccc5('0x17')],'include':[{'model':_0xccc5('0x13'),'as':_0xccc5('0x13'),'attributes':['id',_0xccc5('0x4')]}]},{'model':_0xccc5('0xf'),'as':_0xccc5('0x18'),'attributes':['id',_0xccc5('0x11'),_0xccc5('0x12'),_0xccc5('0x19'),_0xccc5('0x1a'),_0xccc5('0x1b'),_0xccc5('0x17')],'include':[{'model':_0xccc5('0x13'),'as':'Variable','attributes':['id',_0xccc5('0x4')]}]}]}]},'log':_0xccc5('0x3')});};};