Built motion from commit 47436d59.|2.6.7
[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 _0xe981=['plugins','api','bluebird','request-promise','path','rimraf','exports','define','Plugin'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xe981,0xd9));var _0x1e98=function(_0x4c06a3,_0x1e6b6f){_0x4c06a3=_0x4c06a3-0x0;var _0x7ff53c=_0xe981[_0x4c06a3];return _0x7ff53c;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x1e98('0x0'));var moment=require('moment');var BPromise=require(_0x1e98('0x1'));var rp=require(_0x1e98('0x2'));var fs=require('fs');var path=require(_0x1e98('0x3'));var rimraf=require(_0x1e98('0x4'));var config=require('../../config/environment');var attributes=require('./plugin.attributes');module[_0x1e98('0x5')]=function(_0x2f7097,_0x4db893){return _0x2f7097[_0x1e98('0x6')](_0x1e98('0x7'),attributes,{'tableName':_0x1e98('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};