f0c2a705f4d8fc78aef24e07f836145ea913cd4e
[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 _0xf2b5=['tools_tags','util','../../config/logger','bluebird','path','rimraf','../../config/environment','./tag.attributes','exports','Tag'];(function(_0x573c9e,_0xd4ab71){var _0x5d0714=function(_0x127a2a){while(--_0x127a2a){_0x573c9e['push'](_0x573c9e['shift']());}};_0x5d0714(++_0xd4ab71);}(_0xf2b5,0xa1));var _0x5f2b=function(_0x1a0600,_0x41feef){_0x1a0600=_0x1a0600-0x0;var _0x734670=_0xf2b5[_0x1a0600];return _0x734670;};'use strict';var _=require('lodash');var util=require(_0x5f2b('0x0'));var logger=require(_0x5f2b('0x1'))('api');var moment=require('moment');var BPromise=require(_0x5f2b('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5f2b('0x3'));var rimraf=require(_0x5f2b('0x4'));var config=require(_0x5f2b('0x5'));var attributes=require(_0x5f2b('0x6'));module[_0x5f2b('0x7')]=function(_0x3a07e0,_0x513d4a){return _0x3a07e0['define'](_0x5f2b('0x8'),attributes,{'tableName':_0x5f2b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};