Built motion from commit fe909640.|2.6.8
[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 _0x8024=['idField','customField','Request','GetZohoAccount','name','description','zone','serverUrl','refreshToken','moduleCreate','ZohoField','Subjects','content','variableName','Variable','Descriptions','type','key','Fields'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8024,0x191));var _0x4802=function(_0x1f86ee,_0x407388){_0x1f86ee=_0x1f86ee-0x0;var _0x733f0=_0x8024[_0x1f86ee];return _0x733f0;};'use strict';var client=require('../../client');exports['getZohoAccounts']=function(){return function(_0x43f73e){return client[_0x4802('0x0')](_0x4802('0x1'),{'options':{'raw':![],'attributes':['id',_0x4802('0x2'),_0x4802('0x3'),'host',_0x4802('0x4'),'clientId','clientSecret',_0x4802('0x5'),'code',_0x4802('0x6')],'include':[{'model':'ZohoConfiguration','as':'Configurations','attributes':['id',_0x4802('0x2'),_0x4802('0x7'),'moduleSearch',_0x4802('0x3')],'include':[{'model':_0x4802('0x8'),'as':_0x4802('0x9'),'attributes':['id','type',_0x4802('0xa'),_0x4802('0xb')],'include':[{'model':_0x4802('0xc'),'as':_0x4802('0xc'),'attributes':['id',_0x4802('0x2')]}]},{'model':_0x4802('0x8'),'as':_0x4802('0xd'),'attributes':['id',_0x4802('0xe'),_0x4802('0xa'),_0x4802('0xf'),'keyType','keyContent','variableName'],'include':[{'model':_0x4802('0xc'),'as':_0x4802('0xc'),'attributes':['id',_0x4802('0x2')]}]},{'model':_0x4802('0x8'),'as':_0x4802('0x10'),'attributes':['id',_0x4802('0xe'),_0x4802('0xa'),_0x4802('0x11'),'nameField',_0x4802('0x12'),_0x4802('0xb')],'include':[{'model':_0x4802('0xc'),'as':_0x4802('0xc'),'attributes':['id',_0x4802('0x2')]}]}]}]},'log':_0x4802('0x1')});};};