Built motion from commit d5e4af8c.|2.6.23
[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 _0x476f=['path','../../config/environment','exports','Plugin','plugins','lodash','api','moment','bluebird','request-promise'];(function(_0x1907f6,_0x3ac387){var _0x2a9703=function(_0x48282b){while(--_0x48282b){_0x1907f6['push'](_0x1907f6['shift']());}};_0x2a9703(++_0x3ac387);}(_0x476f,0xf5));var _0xf476=function(_0x2af706,_0x635040){_0x2af706=_0x2af706-0x0;var _0x351914=_0x476f[_0x2af706];return _0x351914;};'use strict';var _=require(_0xf476('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xf476('0x1'));var moment=require(_0xf476('0x2'));var BPromise=require(_0xf476('0x3'));var rp=require(_0xf476('0x4'));var fs=require('fs');var path=require(_0xf476('0x5'));var rimraf=require('rimraf');var config=require(_0xf476('0x6'));var attributes=require('./plugin.attributes');module[_0xf476('0x7')]=function(_0x32ac66,_0x24bb3c){return _0x32ac66['define'](_0xf476('0x8'),attributes,{'tableName':_0xf476('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};