b65ac8872ce794331ff1d35e64b1a01a38fbedc1
[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 _0xe062=['moment','bluebird','rimraf','../../config/environment','tools_variables','lodash','util','api'];(function(_0x3fb74d,_0x59c3b3){var _0x570bf4=function(_0x4d7040){while(--_0x4d7040){_0x3fb74d['push'](_0x3fb74d['shift']());}};_0x570bf4(++_0x59c3b3);}(_0xe062,0xd5));var _0x2e06=function(_0xbbb392,_0x303aa8){_0xbbb392=_0xbbb392-0x0;var _0x2454fe=_0xe062[_0xbbb392];return _0x2454fe;};'use strict';var _=require(_0x2e06('0x0'));var util=require(_0x2e06('0x1'));var logger=require('../../config/logger')(_0x2e06('0x2'));var moment=require(_0x2e06('0x3'));var BPromise=require(_0x2e06('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2e06('0x5'));var config=require(_0x2e06('0x6'));var attributes=require('./variable.attributes');module['exports']=function(_0x912daf,_0x31d2a3){return _0x912daf['define']('Variable',attributes,{'tableName':_0x2e06('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};