b4388e28a5d218013f9c770e93fe3d0b49324ab0
[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 _0x827a=['path','rimraf','../../config/environment','./tag.attributes','exports','Tag','tools_tags','util','api'];(function(_0x51266d,_0x11e599){var _0x1c58ce=function(_0x237930){while(--_0x237930){_0x51266d['push'](_0x51266d['shift']());}};_0x1c58ce(++_0x11e599);}(_0x827a,0x1e4));var _0xa827=function(_0x2633fa,_0x5768da){_0x2633fa=_0x2633fa-0x0;var _0x4e179e=_0x827a[_0x2633fa];return _0x4e179e;};'use strict';var _=require('lodash');var util=require(_0xa827('0x0'));var logger=require('../../config/logger')(_0xa827('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xa827('0x2'));var rimraf=require(_0xa827('0x3'));var config=require(_0xa827('0x4'));var attributes=require(_0xa827('0x5'));module[_0xa827('0x6')]=function(_0x4a7fc7,_0x4b0547){return _0x4a7fc7['define'](_0xa827('0x7'),attributes,{'tableName':_0xa827('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};