3a7ffbd540df9b7fa1aa64d3e914a409c746a58e
[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 _0x4c99=['name','description','username','remoteUri','serverUrl','Configurations','Subjects','type','content','variableName','Variable','VtigerField','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','getVtigerAccounts','GetVtigerAccount'];(function(_0xad9d8b,_0x2397ee){var _0x2f170d=function(_0x5d7698){while(--_0x5d7698){_0xad9d8b['push'](_0xad9d8b['shift']());}};_0x2f170d(++_0x2397ee);}(_0x4c99,0x1cc));var _0x94c9=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x4c99[_0xfae23b];return _0x200640;};'use strict';var client=require('../../client');exports[_0x94c9('0x0')]=function(){return function(_0x121f08){return client['Request'](_0x94c9('0x1'),{'options':{'raw':![],'attributes':['id',_0x94c9('0x2'),_0x94c9('0x3'),_0x94c9('0x4'),'accessKey',_0x94c9('0x5'),_0x94c9('0x6')],'include':[{'model':'VtigerConfiguration','as':_0x94c9('0x7'),'attributes':['id','name'],'include':[{'model':'VtigerField','as':_0x94c9('0x8'),'attributes':['id',_0x94c9('0x9'),_0x94c9('0xa'),_0x94c9('0xb')],'include':[{'model':_0x94c9('0xc'),'as':'Variable','attributes':['id',_0x94c9('0x2')]}]},{'model':_0x94c9('0xd'),'as':_0x94c9('0xe'),'attributes':['id',_0x94c9('0x9'),_0x94c9('0xa'),_0x94c9('0xf'),_0x94c9('0x10'),_0x94c9('0x11'),_0x94c9('0xb')],'include':[{'model':_0x94c9('0xc'),'as':'Variable','attributes':['id','name']}]},{'model':_0x94c9('0xd'),'as':_0x94c9('0x12'),'attributes':['id',_0x94c9('0x9'),'content',_0x94c9('0x13'),_0x94c9('0x14'),_0x94c9('0x15'),'variableName'],'include':[{'model':_0x94c9('0xc'),'as':'Variable','attributes':['id',_0x94c9('0x2')]}]}]}]},'log':_0x94c9('0x1')});};};