1bb0fcf15b46f4ac6f475b764046c7301f1e6dd5
[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 _0x9acd=['moment','path','rimraf','./plugin.attributes','exports','define','Plugin','plugins','lodash','util'];(function(_0x5757b4,_0x5b2476){var _0x5e3075=function(_0x50d480){while(--_0x50d480){_0x5757b4['push'](_0x5757b4['shift']());}};_0x5e3075(++_0x5b2476);}(_0x9acd,0x76));var _0xd9ac=function(_0x5f09c5,_0x2bfca0){_0x5f09c5=_0x5f09c5-0x0;var _0x426ad9=_0x9acd[_0x5f09c5];return _0x426ad9;};'use strict';var _=require(_0xd9ac('0x0'));var util=require(_0xd9ac('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xd9ac('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xd9ac('0x3'));var rimraf=require(_0xd9ac('0x4'));var config=require('../../config/environment');var attributes=require(_0xd9ac('0x5'));module[_0xd9ac('0x6')]=function(_0x340104,_0x3fec24){return _0x340104[_0xd9ac('0x7')](_0xd9ac('0x8'),attributes,{'tableName':_0xd9ac('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};