1a71d2218212c41cb5953b03c531da841b6130e8
[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 _0xbb36=['exports','define','Plugin','util','../../config/logger','api','moment','bluebird','request-promise','path','./plugin.attributes'];(function(_0x2e16d8,_0x1110ff){var _0xbb0a07=function(_0x447b90){while(--_0x447b90){_0x2e16d8['push'](_0x2e16d8['shift']());}};_0xbb0a07(++_0x1110ff);}(_0xbb36,0x92));var _0x6bb3=function(_0x2e042d,_0x987d9f){_0x2e042d=_0x2e042d-0x0;var _0x353ef6=_0xbb36[_0x2e042d];return _0x353ef6;};'use strict';var _=require('lodash');var util=require(_0x6bb3('0x0'));var logger=require(_0x6bb3('0x1'))(_0x6bb3('0x2'));var moment=require(_0x6bb3('0x3'));var BPromise=require(_0x6bb3('0x4'));var rp=require(_0x6bb3('0x5'));var fs=require('fs');var path=require(_0x6bb3('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6bb3('0x7'));module[_0x6bb3('0x8')]=function(_0x47fab4,_0x2615d2){return _0x47fab4[_0x6bb3('0x9')](_0x6bb3('0xa'),attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});};