Built motion from commit (unavailable).|2.4.4
[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 _0x7ea9=['rimraf','../../config/environment','exports','define','plugins','util','../../config/logger','api','moment','bluebird','path'];(function(_0x59bcb1,_0x5a4b6c){var _0x4a737f=function(_0x546a49){while(--_0x546a49){_0x59bcb1['push'](_0x59bcb1['shift']());}};_0x4a737f(++_0x5a4b6c);}(_0x7ea9,0xec));var _0x97ea=function(_0x4f51c0,_0x44f37e){_0x4f51c0=_0x4f51c0-0x0;var _0x1e30d7=_0x7ea9[_0x4f51c0];return _0x1e30d7;};'use strict';var _=require('lodash');var util=require(_0x97ea('0x0'));var logger=require(_0x97ea('0x1'))(_0x97ea('0x2'));var moment=require(_0x97ea('0x3'));var BPromise=require(_0x97ea('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x97ea('0x5'));var rimraf=require(_0x97ea('0x6'));var config=require(_0x97ea('0x7'));var attributes=require('./plugin.attributes');module[_0x97ea('0x8')]=function(_0x112297,_0x74638c){return _0x112297[_0x97ea('0x9')]('Plugin',attributes,{'tableName':_0x97ea('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};