3ea084e6076f7ea88ac7563d5e36eddb4b508a06
[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 _0x9175=['moment','request-promise','path','rimraf','./plugin.attributes','exports','plugins','util'];(function(_0x36aec9,_0x2749de){var _0x444f7f=function(_0x562129){while(--_0x562129){_0x36aec9['push'](_0x36aec9['shift']());}};_0x444f7f(++_0x2749de);}(_0x9175,0x14f));var _0x5917=function(_0x328b11,_0x384637){_0x328b11=_0x328b11-0x0;var _0x4dde80=_0x9175[_0x328b11];return _0x4dde80;};'use strict';var _=require('lodash');var util=require(_0x5917('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x5917('0x1'));var BPromise=require('bluebird');var rp=require(_0x5917('0x2'));var fs=require('fs');var path=require(_0x5917('0x3'));var rimraf=require(_0x5917('0x4'));var config=require('../../config/environment');var attributes=require(_0x5917('0x5'));module[_0x5917('0x6')]=function(_0x2ee53c,_0x76a2b8){return _0x2ee53c['define']('Plugin',attributes,{'tableName':_0x5917('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};