Built motion from commit c116dc8b.|2.6.30
[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 _0xff28=['lodash','util','../../config/logger','api','bluebird','path','rimraf','exports','define','tools_tags'];(function(_0x2ebca0,_0x258b93){var _0x5793f0=function(_0x126b13){while(--_0x126b13){_0x2ebca0['push'](_0x2ebca0['shift']());}};_0x5793f0(++_0x258b93);}(_0xff28,0xdc));var _0x8ff2=function(_0x281e5e,_0xf320e2){_0x281e5e=_0x281e5e-0x0;var _0x5a22d2=_0xff28[_0x281e5e];return _0x5a22d2;};'use strict';var _=require(_0x8ff2('0x0'));var util=require(_0x8ff2('0x1'));var logger=require(_0x8ff2('0x2'))(_0x8ff2('0x3'));var moment=require('moment');var BPromise=require(_0x8ff2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8ff2('0x5'));var rimraf=require(_0x8ff2('0x6'));var config=require('../../config/environment');var attributes=require('./tag.attributes');module[_0x8ff2('0x7')]=function(_0x3bc7e4,_0x2e8993){return _0x3bc7e4[_0x8ff2('0x8')]('Tag',attributes,{'tableName':_0x8ff2('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};