Built motion from commit (unavailable).|2.5.2
[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 _0xa0b1=['Tag','tools_tags','lodash','api','moment','bluebird','request-promise','rimraf','exports','define'];(function(_0x3f64fe,_0x5eb41c){var _0x381a3f=function(_0x2d0a15){while(--_0x2d0a15){_0x3f64fe['push'](_0x3f64fe['shift']());}};_0x381a3f(++_0x5eb41c);}(_0xa0b1,0x156));var _0x1a0b=function(_0x15fc07,_0x41cc0c){_0x15fc07=_0x15fc07-0x0;var _0x3d2c0f=_0xa0b1[_0x15fc07];return _0x3d2c0f;};'use strict';var _=require(_0x1a0b('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x1a0b('0x1'));var moment=require(_0x1a0b('0x2'));var BPromise=require(_0x1a0b('0x3'));var rp=require(_0x1a0b('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x1a0b('0x5'));var config=require('../../config/environment');var attributes=require('./tag.attributes');module[_0x1a0b('0x6')]=function(_0x199939,_0x155299){return _0x199939[_0x1a0b('0x7')](_0x1a0b('0x8'),attributes,{'tableName':_0x1a0b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};