d7dd9872d555427a2c834f701881f3745f553f98
[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 _0x4c62=['Tag','tools_tags','lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./tag.attributes','exports'];(function(_0x523547,_0x14ff2d){var _0x3367ed=function(_0x55386e){while(--_0x55386e){_0x523547['push'](_0x523547['shift']());}};_0x3367ed(++_0x14ff2d);}(_0x4c62,0x18e));var _0x24c6=function(_0x286124,_0xc5159e){_0x286124=_0x286124-0x0;var _0x556889=_0x4c62[_0x286124];return _0x556889;};'use strict';var _=require(_0x24c6('0x0'));var util=require(_0x24c6('0x1'));var logger=require(_0x24c6('0x2'))('api');var moment=require(_0x24c6('0x3'));var BPromise=require(_0x24c6('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x24c6('0x5'));var rimraf=require(_0x24c6('0x6'));var config=require(_0x24c6('0x7'));var attributes=require(_0x24c6('0x8'));module[_0x24c6('0x9')]=function(_0xdfbd09,_0x2943c0){return _0xdfbd09['define'](_0x24c6('0xa'),attributes,{'tableName':_0x24c6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};