74b46b69c70694a71e9ec9ea36e2981b9c33ae49
[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 _0x2d81=['../../config/logger','bluebird','request-promise','path','rimraf','./plugin.attributes','exports','util'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0x2d81,0xcf));var _0x12d8=function(_0x4971db,_0x1fb35c){_0x4971db=_0x4971db-0x0;var _0x28c91b=_0x2d81[_0x4971db];return _0x28c91b;};'use strict';var _=require('lodash');var util=require(_0x12d8('0x0'));var logger=require(_0x12d8('0x1'))('api');var moment=require('moment');var BPromise=require(_0x12d8('0x2'));var rp=require(_0x12d8('0x3'));var fs=require('fs');var path=require(_0x12d8('0x4'));var rimraf=require(_0x12d8('0x5'));var config=require('../../config/environment');var attributes=require(_0x12d8('0x6'));module[_0x12d8('0x7')]=function(_0x1c769c,_0x12819a){return _0x1c769c['define']('Plugin',attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});};