Built motion from commit c0cdc9d8.|2.6.28
[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 _0x46f0=['plugins','lodash','util','api','bluebird','request-promise','path','rimraf','../../config/environment','./plugin.attributes','exports'];(function(_0x30ca0b,_0x5cbe5b){var _0x320b45=function(_0x5aaa8e){while(--_0x5aaa8e){_0x30ca0b['push'](_0x30ca0b['shift']());}};_0x320b45(++_0x5cbe5b);}(_0x46f0,0x12a));var _0x046f=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x46f0[_0x122ef9];return _0x42fba0;};'use strict';var _=require(_0x046f('0x0'));var util=require(_0x046f('0x1'));var logger=require('../../config/logger')(_0x046f('0x2'));var moment=require('moment');var BPromise=require(_0x046f('0x3'));var rp=require(_0x046f('0x4'));var fs=require('fs');var path=require(_0x046f('0x5'));var rimraf=require(_0x046f('0x6'));var config=require(_0x046f('0x7'));var attributes=require(_0x046f('0x8'));module[_0x046f('0x9')]=function(_0x3deb2b,_0x587c7c){return _0x3deb2b['define']('Plugin',attributes,{'tableName':_0x046f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};