8ef2e7483dc1d5c4d1ff0b91183db7e19cc37b50
[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 _0xf8cd=['api','moment','path','rimraf','exports','define','tools_tags','lodash','util','../../config/logger'];(function(_0x504df1,_0x289598){var _0x1063b5=function(_0x627abd){while(--_0x627abd){_0x504df1['push'](_0x504df1['shift']());}};_0x1063b5(++_0x289598);}(_0xf8cd,0x16f));var _0xdf8c=function(_0x1ab6a2,_0x5b87e8){_0x1ab6a2=_0x1ab6a2-0x0;var _0x37fbf1=_0xf8cd[_0x1ab6a2];return _0x37fbf1;};'use strict';var _=require(_0xdf8c('0x0'));var util=require(_0xdf8c('0x1'));var logger=require(_0xdf8c('0x2'))(_0xdf8c('0x3'));var moment=require(_0xdf8c('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xdf8c('0x5'));var rimraf=require(_0xdf8c('0x6'));var config=require('../../config/environment');var attributes=require('./tag.attributes');module[_0xdf8c('0x7')]=function(_0x4d8081,_0x451cb1){return _0x4d8081[_0xdf8c('0x8')]('Tag',attributes,{'tableName':_0xdf8c('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};