Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / api / variable / variable.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 _0x6d82=['request-promise','rimraf','./variable.attributes','exports','Variable','tools_variables','lodash','util','bluebird'];(function(_0x1ed874,_0x463015){var _0x36e9a8=function(_0x15ad3a){while(--_0x15ad3a){_0x1ed874['push'](_0x1ed874['shift']());}};_0x36e9a8(++_0x463015);}(_0x6d82,0x16e));var _0x26d8=function(_0x58323f,_0x5930eb){_0x58323f=_0x58323f-0x0;var _0x39ba3b=_0x6d82[_0x58323f];return _0x39ba3b;};'use strict';var _=require(_0x26d8('0x0'));var util=require(_0x26d8('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x26d8('0x2'));var rp=require(_0x26d8('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x26d8('0x4'));var config=require('../../config/environment');var attributes=require(_0x26d8('0x5'));module[_0x26d8('0x6')]=function(_0x2a9b85,_0x2bee7d){return _0x2a9b85['define'](_0x26d8('0x7'),attributes,{'tableName':_0x26d8('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};