208f156c6f1215bbb02f6a71a356f79442d98c36
[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 _0xb90a=['./tag.attributes','exports','define','Tag','tools_tags','lodash','util','api','path','rimraf','../../config/environment'];(function(_0x122096,_0x60c295){var _0x3d1966=function(_0x3d569e){while(--_0x3d569e){_0x122096['push'](_0x122096['shift']());}};_0x3d1966(++_0x60c295);}(_0xb90a,0xec));var _0xab90=function(_0x4f1755,_0xaee50a){_0x4f1755=_0x4f1755-0x0;var _0x246b40=_0xb90a[_0x4f1755];return _0x246b40;};'use strict';var _=require(_0xab90('0x0'));var util=require(_0xab90('0x1'));var logger=require('../../config/logger')(_0xab90('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xab90('0x3'));var rimraf=require(_0xab90('0x4'));var config=require(_0xab90('0x5'));var attributes=require(_0xab90('0x6'));module[_0xab90('0x7')]=function(_0x53cd40,_0x4d5717){return _0x53cd40[_0xab90('0x8')](_0xab90('0x9'),attributes,{'tableName':_0xab90('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};