451bc983150c20536fcfd80e0f7abe3f175aedff
[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 _0x76da=['request-promise','rimraf','exports','define','Tag','lodash','../../config/logger','api','bluebird'];(function(_0xf340be,_0x1b0df8){var _0x431f4c=function(_0xb67147){while(--_0xb67147){_0xf340be['push'](_0xf340be['shift']());}};_0x431f4c(++_0x1b0df8);}(_0x76da,0x16d));var _0xa76d=function(_0x5ed4af,_0x42f8bc){_0x5ed4af=_0x5ed4af-0x0;var _0x5dc651=_0x76da[_0x5ed4af];return _0x5dc651;};'use strict';var _=require(_0xa76d('0x0'));var util=require('util');var logger=require(_0xa76d('0x1'))(_0xa76d('0x2'));var moment=require('moment');var BPromise=require(_0xa76d('0x3'));var rp=require(_0xa76d('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa76d('0x5'));var config=require('../../config/environment');var attributes=require('./tag.attributes');module[_0xa76d('0x6')]=function(_0x486e76,_0x209f6d){return _0x486e76[_0xa76d('0x7')](_0xa76d('0x8'),attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});};