a41973aabab40770fdb8586204ec00b33d194877
[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 _0x19f4=['bluebird','request-promise','path','./plugin.attributes','exports','lodash','util','api','moment'];(function(_0x29e018,_0x2ccff0){var _0x2b5035=function(_0xf898dc){while(--_0xf898dc){_0x29e018['push'](_0x29e018['shift']());}};_0x2b5035(++_0x2ccff0);}(_0x19f4,0xc2));var _0x419f=function(_0x1b1b53,_0xbdbaff){_0x1b1b53=_0x1b1b53-0x0;var _0x322005=_0x19f4[_0x1b1b53];return _0x322005;};'use strict';var _=require(_0x419f('0x0'));var util=require(_0x419f('0x1'));var logger=require('../../config/logger')(_0x419f('0x2'));var moment=require(_0x419f('0x3'));var BPromise=require(_0x419f('0x4'));var rp=require(_0x419f('0x5'));var fs=require('fs');var path=require(_0x419f('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x419f('0x7'));module[_0x419f('0x8')]=function(_0x401fb2,_0x13541e){return _0x401fb2['define']('Plugin',attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});};