9da1c86afd3e087220b6212a59baabc0fa47e43c
[motion2.git] / server / api / template / template.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 _0x4399=['define','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x2ca60e,_0x16b5d4){var _0x872691=function(_0x4486ee){while(--_0x4486ee){_0x2ca60e['push'](_0x2ca60e['shift']());}};_0x872691(++_0x16b5d4);}(_0x4399,0xfd));var _0x9439=function(_0x2598c4,_0x3e154f){_0x2598c4=_0x2598c4-0x0;var _0x56b358=_0x4399[_0x2598c4];return _0x56b358;};'use strict';var _=require('lodash');var util=require(_0x9439('0x0'));var logger=require(_0x9439('0x1'))(_0x9439('0x2'));var moment=require(_0x9439('0x3'));var BPromise=require(_0x9439('0x4'));var rp=require(_0x9439('0x5'));var fs=require('fs');var path=require(_0x9439('0x6'));var rimraf=require(_0x9439('0x7'));var config=require('../../config/environment');var attributes=require('./template.attributes');module['exports']=function(_0x5eedd0,_0x387669){return _0x5eedd0[_0x9439('0x8')]('Template',attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};