3f57e737c1f30434d913008f1a0cb01e0de12e83
[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 _0xe75a=['api','moment','request-promise','path','rimraf','define','Tag','util','../../config/logger'];(function(_0xd7b3,_0xe260c7){var _0x4c39a5=function(_0x3d10ab){while(--_0x3d10ab){_0xd7b3['push'](_0xd7b3['shift']());}};_0x4c39a5(++_0xe260c7);}(_0xe75a,0x115));var _0xae75=function(_0x20025e,_0x44c8e1){_0x20025e=_0x20025e-0x0;var _0x4a5ac4=_0xe75a[_0x20025e];return _0x4a5ac4;};'use strict';var _=require('lodash');var util=require(_0xae75('0x0'));var logger=require(_0xae75('0x1'))(_0xae75('0x2'));var moment=require(_0xae75('0x3'));var BPromise=require('bluebird');var rp=require(_0xae75('0x4'));var fs=require('fs');var path=require(_0xae75('0x5'));var rimraf=require(_0xae75('0x6'));var config=require('../../config/environment');var attributes=require('./tag.attributes');module['exports']=function(_0x3e7f3d,_0x25bd3f){return _0x3e7f3d[_0xae75('0x7')](_0xae75('0x8'),attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});};