d2acff766f32057100e09df78870c9defb52c7fa
[motion2.git] / server / api / tag / tag.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 _0x9ebb=['path','rimraf','../../config/environment','exports','Tag','tools_tags','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x18cd5b,_0x10240b){var _0x5eaa52=function(_0x2bccad){while(--_0x2bccad){_0x18cd5b['push'](_0x18cd5b['shift']());}};_0x5eaa52(++_0x10240b);}(_0x9ebb,0x11a));var _0xb9eb=function(_0x3c5f36,_0x4e22a0){_0x3c5f36=_0x3c5f36-0x0;var _0x407a54=_0x9ebb[_0x3c5f36];return _0x407a54;};'use strict';var _=require(_0xb9eb('0x0'));var util=require('util');var logger=require(_0xb9eb('0x1'))(_0xb9eb('0x2'));var moment=require(_0xb9eb('0x3'));var BPromise=require(_0xb9eb('0x4'));var rp=require(_0xb9eb('0x5'));var fs=require('fs');var path=require(_0xb9eb('0x6'));var rimraf=require(_0xb9eb('0x7'));var config=require(_0xb9eb('0x8'));var attributes=require('./tag.attributes');module[_0xb9eb('0x9')]=function(_0x2685e4,_0x154812){return _0x2685e4['define'](_0xb9eb('0xa'),attributes,{'tableName':_0xb9eb('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};