Built motion from commit 7ab0e143.|2.5.49
[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 _0xeefe=['rimraf','../../config/environment','exports','define','License','license','../../config/logger','api','moment','bluebird','path'];(function(_0x3b37db,_0x3490c2){var _0x3cf10c=function(_0x4b6c29){while(--_0x4b6c29){_0x3b37db['push'](_0x3b37db['shift']());}};_0x3cf10c(++_0x3490c2);}(_0xeefe,0xab));var _0xeeef=function(_0x342e10,_0x19d254){_0x342e10=_0x342e10-0x0;var _0x476de1=_0xeefe[_0x342e10];return _0x476de1;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xeeef('0x0'))(_0xeeef('0x1'));var moment=require(_0xeeef('0x2'));var BPromise=require(_0xeeef('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xeeef('0x4'));var rimraf=require(_0xeeef('0x5'));var config=require(_0xeeef('0x6'));var attributes=require('./license.attributes');module[_0xeeef('0x7')]=function(_0x359b3d,_0x4527eb){return _0x359b3d[_0xeeef('0x8')](_0xeeef('0x9'),attributes,{'tableName':_0xeeef('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};