Built motion from commit 013e4bb4.|2.6.18
[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 _0xef72=['define','Tag','tools_tags','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x228058,_0x8058a3){var _0x1519b9=function(_0x144688){while(--_0x144688){_0x228058['push'](_0x228058['shift']());}};_0x1519b9(++_0x8058a3);}(_0xef72,0x9f));var _0x2ef7=function(_0x425051,_0x3c1854){_0x425051=_0x425051-0x0;var _0x126b92=_0xef72[_0x425051];return _0x126b92;};'use strict';var _=require('lodash');var util=require(_0x2ef7('0x0'));var logger=require(_0x2ef7('0x1'))(_0x2ef7('0x2'));var moment=require(_0x2ef7('0x3'));var BPromise=require(_0x2ef7('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2ef7('0x5'));var rimraf=require(_0x2ef7('0x6'));var config=require(_0x2ef7('0x7'));var attributes=require('./tag.attributes');module[_0x2ef7('0x8')]=function(_0x2c20c7,_0x426f4c){return _0x2c20c7[_0x2ef7('0x9')](_0x2ef7('0xa'),attributes,{'tableName':_0x2ef7('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};