Built motion from commit 9d1906d1.|2.5.40
[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 _0xbfcc=['host','zone','clientId','clientSecret','serverUrl','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','description','ZohoField','content','variableName','Variable','name','Descriptions','type','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount'];(function(_0x252cd1,_0x4712d1){var _0x2e3cc1=function(_0x50262e){while(--_0x50262e){_0x252cd1['push'](_0x252cd1['shift']());}};_0x2e3cc1(++_0x4712d1);}(_0xbfcc,0x6c));var _0xcbfc=function(_0x4eec9b,_0x4aea09){_0x4eec9b=_0x4eec9b-0x0;var _0x2e3849=_0xbfcc[_0x4eec9b];return _0x2e3849;};'use strict';var client=require(_0xcbfc('0x0'));exports[_0xcbfc('0x1')]=function(){return function(_0x17bc60){return client[_0xcbfc('0x2')](_0xcbfc('0x3'),{'options':{'raw':![],'attributes':['id','name','description',_0xcbfc('0x4'),_0xcbfc('0x5'),_0xcbfc('0x6'),_0xcbfc('0x7'),_0xcbfc('0x8'),'code','refreshToken'],'include':[{'model':_0xcbfc('0x9'),'as':_0xcbfc('0xa'),'attributes':['id','name',_0xcbfc('0xb'),_0xcbfc('0xc'),_0xcbfc('0xd')],'include':[{'model':_0xcbfc('0xe'),'as':'Subjects','attributes':['id','type',_0xcbfc('0xf'),_0xcbfc('0x10')],'include':[{'model':_0xcbfc('0x11'),'as':_0xcbfc('0x11'),'attributes':['id',_0xcbfc('0x12')]}]},{'model':'ZohoField','as':_0xcbfc('0x13'),'attributes':['id',_0xcbfc('0x14'),'content',_0xcbfc('0x15'),_0xcbfc('0x16'),_0xcbfc('0x17'),_0xcbfc('0x10')],'include':[{'model':_0xcbfc('0x11'),'as':'Variable','attributes':['id',_0xcbfc('0x12')]}]},{'model':_0xcbfc('0xe'),'as':_0xcbfc('0x18'),'attributes':['id',_0xcbfc('0x14'),'content',_0xcbfc('0x19'),_0xcbfc('0x1a'),_0xcbfc('0x1b'),_0xcbfc('0x10')],'include':[{'model':_0xcbfc('0x11'),'as':'Variable','attributes':['id',_0xcbfc('0x12')]}]}]}]},'log':_0xcbfc('0x3')});};};