1a58686dab176df7e98979f0615b5d9435e3a212
[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 _0x341c=['define','Plugin','util','api','request-promise','path','rimraf','../../config/environment','./plugin.attributes'];(function(_0x253539,_0x1eb354){var _0x3956b0=function(_0x3b2b22){while(--_0x3b2b22){_0x253539['push'](_0x253539['shift']());}};_0x3956b0(++_0x1eb354);}(_0x341c,0xb6));var _0xc341=function(_0x49d7c8,_0x52d9a3){_0x49d7c8=_0x49d7c8-0x0;var _0x450089=_0x341c[_0x49d7c8];return _0x450089;};'use strict';var _=require('lodash');var util=require(_0xc341('0x0'));var logger=require('../../config/logger')(_0xc341('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xc341('0x2'));var fs=require('fs');var path=require(_0xc341('0x3'));var rimraf=require(_0xc341('0x4'));var config=require(_0xc341('0x5'));var attributes=require(_0xc341('0x6'));module['exports']=function(_0x26dca7,_0x368f3a){return _0x26dca7[_0xc341('0x7')](_0xc341('0x8'),attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});};