b6a730d13e5bfcb13bdf63e22474ea4594e45269
[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 _0xc281=['exports','Plugin','lodash','moment','bluebird','../../config/environment'];(function(_0x27fc68,_0x28973f){var _0x18fbfa=function(_0x45b6fb){while(--_0x45b6fb){_0x27fc68['push'](_0x27fc68['shift']());}};_0x18fbfa(++_0x28973f);}(_0xc281,0x98));var _0x1c28=function(_0x5b0afc,_0x34f9b5){_0x5b0afc=_0x5b0afc-0x0;var _0x2a09c5=_0xc281[_0x5b0afc];return _0x2a09c5;};'use strict';var _=require(_0x1c28('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x1c28('0x1'));var BPromise=require(_0x1c28('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x1c28('0x3'));var attributes=require('./plugin.attributes');module[_0x1c28('0x4')]=function(_0x2cb09a,_0x5ee5ba){return _0x2cb09a['define'](_0x1c28('0x5'),attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});};