25b97e8780083418331cdb39779cf2684b53df8c
[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 _0x0a05=['exports','define','Plugin','plugins','lodash','util','../../config/logger','moment','bluebird','request-promise','../../config/environment','./plugin.attributes'];(function(_0x16780f,_0x355eff){var _0x1e8480=function(_0x213328){while(--_0x213328){_0x16780f['push'](_0x16780f['shift']());}};_0x1e8480(++_0x355eff);}(_0x0a05,0x1e4));var _0x50a0=function(_0x48c615,_0x4cc757){_0x48c615=_0x48c615-0x0;var _0x3d9e22=_0x0a05[_0x48c615];return _0x3d9e22;};'use strict';var _=require(_0x50a0('0x0'));var util=require(_0x50a0('0x1'));var logger=require(_0x50a0('0x2'))('api');var moment=require(_0x50a0('0x3'));var BPromise=require(_0x50a0('0x4'));var rp=require(_0x50a0('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x50a0('0x6'));var attributes=require(_0x50a0('0x7'));module[_0x50a0('0x8')]=function(_0x120258,_0x5255aa){return _0x120258[_0x50a0('0x9')](_0x50a0('0xa'),attributes,{'tableName':_0x50a0('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};