7fd9f3549df6b900f045b5274ba1168910edf19e
[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 _0x852a=['request-promise','path','rimraf','../../config/environment','exports','define','tools_tags','util','../../config/logger','api','bluebird'];(function(_0x4e6ae6,_0x49dba6){var _0x23c108=function(_0x1bc103){while(--_0x1bc103){_0x4e6ae6['push'](_0x4e6ae6['shift']());}};_0x23c108(++_0x49dba6);}(_0x852a,0x1d5));var _0xa852=function(_0x23e7c1,_0x35110c){_0x23e7c1=_0x23e7c1-0x0;var _0x1add43=_0x852a[_0x23e7c1];return _0x1add43;};'use strict';var _=require('lodash');var util=require(_0xa852('0x0'));var logger=require(_0xa852('0x1'))(_0xa852('0x2'));var moment=require('moment');var BPromise=require(_0xa852('0x3'));var rp=require(_0xa852('0x4'));var fs=require('fs');var path=require(_0xa852('0x5'));var rimraf=require(_0xa852('0x6'));var config=require(_0xa852('0x7'));var attributes=require('./tag.attributes');module[_0xa852('0x8')]=function(_0x1858e7,_0x42d457){return _0x1858e7[_0xa852('0x9')]('Tag',attributes,{'tableName':_0xa852('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};