2a90f6384f019d998b7cae918efda56415a661e4
[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 _0x820b=['exports','define','Tag','tools_tags','lodash','../../config/logger','moment','bluebird','path','rimraf','./tag.attributes'];(function(_0x1b7b90,_0x6a0e6b){var _0x34a9fd=function(_0x556dc4){while(--_0x556dc4){_0x1b7b90['push'](_0x1b7b90['shift']());}};_0x34a9fd(++_0x6a0e6b);}(_0x820b,0x190));var _0xb820=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x820b[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0xb820('0x0'));var util=require('util');var logger=require(_0xb820('0x1'))('api');var moment=require(_0xb820('0x2'));var BPromise=require(_0xb820('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb820('0x4'));var rimraf=require(_0xb820('0x5'));var config=require('../../config/environment');var attributes=require(_0xb820('0x6'));module[_0xb820('0x7')]=function(_0x179f8c,_0x22e0cb){return _0x179f8c[_0xb820('0x8')](_0xb820('0x9'),attributes,{'tableName':_0xb820('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};