44bb21b1d17f8c27834432f44a45c5f74784e522
[motion2.git] / server / api / plugin / plugin.model.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 _0x7beb=['api','moment','bluebird','request-promise','rimraf','../../config/environment','./plugin.attributes','exports','define','plugins','../../config/logger'];(function(_0x49d2ad,_0x33daa4){var _0x279c7b=function(_0x5934ad){while(--_0x5934ad){_0x49d2ad['push'](_0x49d2ad['shift']());}};_0x279c7b(++_0x33daa4);}(_0x7beb,0xc5));var _0xb7be=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x7beb[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xb7be('0x0'))(_0xb7be('0x1'));var moment=require(_0xb7be('0x2'));var BPromise=require(_0xb7be('0x3'));var rp=require(_0xb7be('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb7be('0x5'));var config=require(_0xb7be('0x6'));var attributes=require(_0xb7be('0x7'));module[_0xb7be('0x8')]=function(_0x14bf65,_0x3983ad){return _0x14bf65[_0xb7be('0x9')]('Plugin',attributes,{'tableName':_0xb7be('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};