Built motion from commit efa66e19.|2.6.22
[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 _0x7993=['ZohoConfiguration','Configurations','name','moduleCreate','moduleSearch','ZohoField','Subjects','content','variableName','Variable','type','key','keyType','keyContent','Fields','idField','nameField','../../client','Request','GetZohoAccount','description','host','zone','clientSecret','serverUrl','code'];(function(_0x33c73c,_0x1ff24b){var _0x11791b=function(_0x5fea11){while(--_0x5fea11){_0x33c73c['push'](_0x33c73c['shift']());}};_0x11791b(++_0x1ff24b);}(_0x7993,0x163));var _0x3799=function(_0x439aaf,_0x2ec9ad){_0x439aaf=_0x439aaf-0x0;var _0xc3144f=_0x7993[_0x439aaf];return _0xc3144f;};'use strict';var client=require(_0x3799('0x0'));exports['getZohoAccounts']=function(){return function(_0x1ba48c){return client[_0x3799('0x1')](_0x3799('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x3799('0x3'),_0x3799('0x4'),_0x3799('0x5'),'clientId',_0x3799('0x6'),_0x3799('0x7'),_0x3799('0x8'),'refreshToken'],'include':[{'model':_0x3799('0x9'),'as':_0x3799('0xa'),'attributes':['id',_0x3799('0xb'),_0x3799('0xc'),_0x3799('0xd'),_0x3799('0x3')],'include':[{'model':_0x3799('0xe'),'as':_0x3799('0xf'),'attributes':['id','type',_0x3799('0x10'),_0x3799('0x11')],'include':[{'model':'Variable','as':_0x3799('0x12'),'attributes':['id',_0x3799('0xb')]}]},{'model':_0x3799('0xe'),'as':'Descriptions','attributes':['id',_0x3799('0x13'),_0x3799('0x10'),_0x3799('0x14'),_0x3799('0x15'),_0x3799('0x16'),'variableName'],'include':[{'model':'Variable','as':_0x3799('0x12'),'attributes':['id',_0x3799('0xb')]}]},{'model':'ZohoField','as':_0x3799('0x17'),'attributes':['id',_0x3799('0x13'),'content',_0x3799('0x18'),_0x3799('0x19'),'customField','variableName'],'include':[{'model':_0x3799('0x12'),'as':_0x3799('0x12'),'attributes':['id',_0x3799('0xb')]}]}]}]},'log':_0x3799('0x2')});};};