adfc4990ef6b209ad8911b0ad9952840a7e9c721
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0xd3d6=['GetVtigerAccount','name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','VtigerField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','../../client','getVtigerAccounts','Request'];(function(_0x563ba1,_0x366b16){var _0xd38bea=function(_0x4642c6){while(--_0x4642c6){_0x563ba1['push'](_0x563ba1['shift']());}};_0xd38bea(++_0x366b16);}(_0xd3d6,0x87));var _0x6d3d=function(_0x4f1429,_0x27e22d){_0x4f1429=_0x4f1429-0x0;var _0x7b4c1b=_0xd3d6[_0x4f1429];return _0x7b4c1b;};'use strict';var client=require(_0x6d3d('0x0'));exports[_0x6d3d('0x1')]=function(){return function(_0x48eb65){return client[_0x6d3d('0x2')](_0x6d3d('0x3'),{'options':{'raw':![],'attributes':['id',_0x6d3d('0x4'),_0x6d3d('0x5'),_0x6d3d('0x6'),_0x6d3d('0x7'),_0x6d3d('0x8'),_0x6d3d('0x9')],'include':[{'model':_0x6d3d('0xa'),'as':'Configurations','attributes':['id',_0x6d3d('0x4')],'include':[{'model':_0x6d3d('0xb'),'as':_0x6d3d('0xc'),'attributes':['id',_0x6d3d('0xd'),_0x6d3d('0xe'),_0x6d3d('0xf')],'include':[{'model':'Variable','as':_0x6d3d('0x10'),'attributes':['id',_0x6d3d('0x4')]}]},{'model':_0x6d3d('0xb'),'as':'Descriptions','attributes':['id',_0x6d3d('0xd'),_0x6d3d('0xe'),_0x6d3d('0x11'),_0x6d3d('0x12'),_0x6d3d('0x13'),_0x6d3d('0xf')],'include':[{'model':_0x6d3d('0x10'),'as':'Variable','attributes':['id',_0x6d3d('0x4')]}]},{'model':_0x6d3d('0xb'),'as':_0x6d3d('0x14'),'attributes':['id',_0x6d3d('0xd'),'content',_0x6d3d('0x15'),_0x6d3d('0x16'),'customField',_0x6d3d('0xf')],'include':[{'model':'Variable','as':_0x6d3d('0x10'),'attributes':['id',_0x6d3d('0x4')]}]}]}]},'log':'GetVtigerAccount'});};};