e6bfe104d9123e3e40f2839dc69292515a1c612f
[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 _0xe687=['define','Tag','tools_tags','lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x2e142f,_0x358049){var _0x45f0a6=function(_0x50bca4){while(--_0x50bca4){_0x2e142f['push'](_0x2e142f['shift']());}};_0x45f0a6(++_0x358049);}(_0xe687,0x13b));var _0x7e68=function(_0x5a9c87,_0x42fa64){_0x5a9c87=_0x5a9c87-0x0;var _0x5c98bc=_0xe687[_0x5a9c87];return _0x5c98bc;};'use strict';var _=require(_0x7e68('0x0'));var util=require('util');var logger=require(_0x7e68('0x1'))(_0x7e68('0x2'));var moment=require(_0x7e68('0x3'));var BPromise=require(_0x7e68('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7e68('0x5'));var rimraf=require(_0x7e68('0x6'));var config=require(_0x7e68('0x7'));var attributes=require('./tag.attributes');module[_0x7e68('0x8')]=function(_0x4f8632,_0x1ccfca){return _0x4f8632[_0x7e68('0x9')](_0x7e68('0xa'),attributes,{'tableName':_0x7e68('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};