Built motion from commit (unavailable).|2.5.10
[motion2.git] / server / api / license / license.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 _0x49d7=['license','../../config/logger','moment','bluebird','request-promise','path','exports','define','License'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x49d7,0x133));var _0x749d=function(_0x1406ae,_0x292395){_0x1406ae=_0x1406ae-0x0;var _0x23a076=_0x49d7[_0x1406ae];return _0x23a076;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x749d('0x0'))('api');var moment=require(_0x749d('0x1'));var BPromise=require(_0x749d('0x2'));var rp=require(_0x749d('0x3'));var fs=require('fs');var path=require(_0x749d('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./license.attributes');module[_0x749d('0x5')]=function(_0x2c5712,_0x23cd30){return _0x2c5712[_0x749d('0x6')](_0x749d('0x7'),attributes,{'tableName':_0x749d('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};