Built motion from commit 953226e6.|2.6.32
[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 _0xbf73=['api','moment','request-promise','path','../../config/environment','Variable','tools_variables','lodash','../../config/logger'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xbf73,0xa9));var _0x3bf7=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xbf73[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x3bf7('0x0'));var util=require('util');var logger=require(_0x3bf7('0x1'))(_0x3bf7('0x2'));var moment=require(_0x3bf7('0x3'));var BPromise=require('bluebird');var rp=require(_0x3bf7('0x4'));var fs=require('fs');var path=require(_0x3bf7('0x5'));var rimraf=require('rimraf');var config=require(_0x3bf7('0x6'));var attributes=require('./variable.attributes');module['exports']=function(_0x4e1895,_0x17dc72){return _0x4e1895['define'](_0x3bf7('0x7'),attributes,{'tableName':_0x3bf7('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};