Built motion from commit 14588770.|2.5.38
[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 _0x2b60=['./tag.attributes','exports','Tag','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0xc11eb7,_0x14c399){var _0x442a61=function(_0x2b9d70){while(--_0x2b9d70){_0xc11eb7['push'](_0xc11eb7['shift']());}};_0x442a61(++_0x14c399);}(_0x2b60,0x189));var _0x02b6=function(_0x3cb8e7,_0x323f8a){_0x3cb8e7=_0x3cb8e7-0x0;var _0x1ce364=_0x2b60[_0x3cb8e7];return _0x1ce364;};'use strict';var _=require(_0x02b6('0x0'));var util=require('util');var logger=require(_0x02b6('0x1'))(_0x02b6('0x2'));var moment=require(_0x02b6('0x3'));var BPromise=require(_0x02b6('0x4'));var rp=require(_0x02b6('0x5'));var fs=require('fs');var path=require(_0x02b6('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x02b6('0x7'));module[_0x02b6('0x8')]=function(_0x3dc913,_0x52bd19){return _0x3dc913['define'](_0x02b6('0x9'),attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});};