Built motion from commit bab6f49e.|2.6.17
[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 _0xb7be=['Variable','name','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','moduleCreate','moduleSearch','ZohoField','Subjects','type','content'];(function(_0x2b0253,_0x3fa479){var _0x1c6bb5=function(_0x41f326){while(--_0x41f326){_0x2b0253['push'](_0x2b0253['shift']());}};_0x1c6bb5(++_0x3fa479);}(_0xb7be,0x75));var _0xeb7b=function(_0x35615a,_0x316487){_0x35615a=_0x35615a-0x0;var _0x3d6e88=_0xb7be[_0x35615a];return _0x3d6e88;};'use strict';var client=require(_0xeb7b('0x0'));exports[_0xeb7b('0x1')]=function(){return function(_0x2a60fc){return client[_0xeb7b('0x2')](_0xeb7b('0x3'),{'options':{'raw':![],'attributes':['id','name','description',_0xeb7b('0x4'),_0xeb7b('0x5'),_0xeb7b('0x6'),_0xeb7b('0x7'),_0xeb7b('0x8'),_0xeb7b('0x9'),_0xeb7b('0xa')],'include':[{'model':_0xeb7b('0xb'),'as':'Configurations','attributes':['id','name',_0xeb7b('0xc'),_0xeb7b('0xd'),'description'],'include':[{'model':_0xeb7b('0xe'),'as':_0xeb7b('0xf'),'attributes':['id',_0xeb7b('0x10'),_0xeb7b('0x11'),'variableName'],'include':[{'model':_0xeb7b('0x12'),'as':_0xeb7b('0x12'),'attributes':['id',_0xeb7b('0x13')]}]},{'model':'ZohoField','as':'Descriptions','attributes':['id',_0xeb7b('0x10'),'content',_0xeb7b('0x14'),_0xeb7b('0x15'),_0xeb7b('0x16'),'variableName'],'include':[{'model':_0xeb7b('0x12'),'as':_0xeb7b('0x12'),'attributes':['id',_0xeb7b('0x13')]}]},{'model':_0xeb7b('0xe'),'as':_0xeb7b('0x17'),'attributes':['id','type',_0xeb7b('0x11'),_0xeb7b('0x18'),_0xeb7b('0x19'),_0xeb7b('0x1a'),'variableName'],'include':[{'model':'Variable','as':_0xeb7b('0x12'),'attributes':['id','name']}]}]}]},'log':_0xeb7b('0x3')});};};