5e8e02b71cdcb89c973ff9805af83885becaa41e
[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 _0xa0bd=['exports','define','Tag','tools_tags','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./tag.attributes'];(function(_0x30bf6d,_0x14b2dd){var _0x21b620=function(_0x29224a){while(--_0x29224a){_0x30bf6d['push'](_0x30bf6d['shift']());}};_0x21b620(++_0x14b2dd);}(_0xa0bd,0x17e));var _0xda0b=function(_0x2b96c0,_0x53697c){_0x2b96c0=_0x2b96c0-0x0;var _0x34744=_0xa0bd[_0x2b96c0];return _0x34744;};'use strict';var _=require('lodash');var util=require(_0xda0b('0x0'));var logger=require(_0xda0b('0x1'))(_0xda0b('0x2'));var moment=require(_0xda0b('0x3'));var BPromise=require(_0xda0b('0x4'));var rp=require(_0xda0b('0x5'));var fs=require('fs');var path=require(_0xda0b('0x6'));var rimraf=require(_0xda0b('0x7'));var config=require(_0xda0b('0x8'));var attributes=require(_0xda0b('0x9'));module[_0xda0b('0xa')]=function(_0x103ef8,_0xc7ce90){return _0x103ef8[_0xda0b('0xb')](_0xda0b('0xc'),attributes,{'tableName':_0xda0b('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};