d11eb1d912d6e79fd265cec48c9460dab3c2d983
[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 _0x058f=['moment','bluebird','request-promise','path','./plugin.attributes','exports','define','plugins','util','../../config/logger'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x058f,0x166));var _0xf058=function(_0x345586,_0x372c7a){_0x345586=_0x345586-0x0;var _0x29bf58=_0x058f[_0x345586];return _0x29bf58;};'use strict';var _=require('lodash');var util=require(_0xf058('0x0'));var logger=require(_0xf058('0x1'))('api');var moment=require(_0xf058('0x2'));var BPromise=require(_0xf058('0x3'));var rp=require(_0xf058('0x4'));var fs=require('fs');var path=require(_0xf058('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xf058('0x6'));module[_0xf058('0x7')]=function(_0x1922d2,_0x5c8516){return _0x1922d2[_0xf058('0x8')]('Plugin',attributes,{'tableName':_0xf058('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};