Built motion from commit a61a4a20.|2.5.46
[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 _0xa1fb=['rimraf','../../config/environment','exports','lodash','api','moment','request-promise'];(function(_0xa826c1,_0x386999){var _0x2b193c=function(_0x18c167){while(--_0x18c167){_0xa826c1['push'](_0xa826c1['shift']());}};_0x2b193c(++_0x386999);}(_0xa1fb,0x199));var _0xba1f=function(_0x59c301,_0x359c50){_0x59c301=_0x59c301-0x0;var _0x3866b9=_0xa1fb[_0x59c301];return _0x3866b9;};'use strict';var _=require(_0xba1f('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xba1f('0x1'));var moment=require(_0xba1f('0x2'));var BPromise=require('bluebird');var rp=require(_0xba1f('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xba1f('0x4'));var config=require(_0xba1f('0x5'));var attributes=require('./tag.attributes');module[_0xba1f('0x6')]=function(_0x4b70f3,_0x7da947){return _0x4b70f3['define']('Tag',attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});};