Built motion from commit 52c8a02d.|2.6.29
[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 _0xdfe5=['moment','bluebird','request-promise','path','rimraf','exports','define','Variable','lodash','util','../../config/logger'];(function(_0x2fa183,_0x4af0e2){var _0x953dcb=function(_0x4edb93){while(--_0x4edb93){_0x2fa183['push'](_0x2fa183['shift']());}};_0x953dcb(++_0x4af0e2);}(_0xdfe5,0x189));var _0x5dfe=function(_0x2962b1,_0x2f92bc){_0x2962b1=_0x2962b1-0x0;var _0x5528ab=_0xdfe5[_0x2962b1];return _0x5528ab;};'use strict';var _=require(_0x5dfe('0x0'));var util=require(_0x5dfe('0x1'));var logger=require(_0x5dfe('0x2'))('api');var moment=require(_0x5dfe('0x3'));var BPromise=require(_0x5dfe('0x4'));var rp=require(_0x5dfe('0x5'));var fs=require('fs');var path=require(_0x5dfe('0x6'));var rimraf=require(_0x5dfe('0x7'));var config=require('../../config/environment');var attributes=require('./variable.attributes');module[_0x5dfe('0x8')]=function(_0x8c8c65,_0x449001){return _0x8c8c65[_0x5dfe('0x9')](_0x5dfe('0xa'),attributes,{'tableName':'tools_variables','paranoid':![],'indexes':[],'timestamps':!![]});};