Built motion from commit ff426b3f.|2.6.29
[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 _0xf350=['rimraf','exports','define','Tag','tools_tags','lodash','util','api','moment','bluebird','request-promise'];(function(_0x24fd53,_0x281a15){var _0x5dc7ed=function(_0x4f9e15){while(--_0x4f9e15){_0x24fd53['push'](_0x24fd53['shift']());}};_0x5dc7ed(++_0x281a15);}(_0xf350,0x1e9));var _0x0f35=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xf350[_0x122ef9];return _0x42fba0;};'use strict';var _=require(_0x0f35('0x0'));var util=require(_0x0f35('0x1'));var logger=require('../../config/logger')(_0x0f35('0x2'));var moment=require(_0x0f35('0x3'));var BPromise=require(_0x0f35('0x4'));var rp=require(_0x0f35('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x0f35('0x6'));var config=require('../../config/environment');var attributes=require('./tag.attributes');module[_0x0f35('0x7')]=function(_0x51ed13,_0x3753e7){return _0x51ed13[_0x0f35('0x8')](_0x0f35('0x9'),attributes,{'tableName':_0x0f35('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};