997d885b2d5282fea6e450d2b9fc0f04b1177929
[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 _0xaf6c=['bluebird','request-promise','rimraf','Plugin','plugins','util','../../config/logger','moment'];(function(_0x50cc54,_0x54c15f){var _0x28ecca=function(_0x4eff92){while(--_0x4eff92){_0x50cc54['push'](_0x50cc54['shift']());}};_0x28ecca(++_0x54c15f);}(_0xaf6c,0x13d));var _0xcaf6=function(_0x3903b7,_0x1cac1d){_0x3903b7=_0x3903b7-0x0;var _0x20304c=_0xaf6c[_0x3903b7];return _0x20304c;};'use strict';var _=require('lodash');var util=require(_0xcaf6('0x0'));var logger=require(_0xcaf6('0x1'))('api');var moment=require(_0xcaf6('0x2'));var BPromise=require(_0xcaf6('0x3'));var rp=require(_0xcaf6('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcaf6('0x5'));var config=require('../../config/environment');var attributes=require('./plugin.attributes');module['exports']=function(_0xc1bbf8,_0x168cd1){return _0xc1bbf8['define'](_0xcaf6('0x6'),attributes,{'tableName':_0xcaf6('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};