19de405ddbd982b686711a216d7994b9f964b563
[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 _0xb0bc=['request-promise','rimraf','exports','define','Plugin','plugins','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x458117,_0x4f91d8){var _0x52f041=function(_0x5d68d1){while(--_0x5d68d1){_0x458117['push'](_0x458117['shift']());}};_0x52f041(++_0x4f91d8);}(_0xb0bc,0x156));var _0xcb0b=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0xb0bc[_0x19e35c];return _0x3e1fe8;};'use strict';var _=require(_0xcb0b('0x0'));var util=require(_0xcb0b('0x1'));var logger=require(_0xcb0b('0x2'))(_0xcb0b('0x3'));var moment=require(_0xcb0b('0x4'));var BPromise=require(_0xcb0b('0x5'));var rp=require(_0xcb0b('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcb0b('0x7'));var config=require('../../config/environment');var attributes=require('./plugin.attributes');module[_0xcb0b('0x8')]=function(_0x342a11,_0x47d314){return _0x342a11[_0xcb0b('0x9')](_0xcb0b('0xa'),attributes,{'tableName':_0xcb0b('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};