17eef2cfcf57035b604869fa20f7d7253c3fce44
[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 _0xcd45=['rimraf','./template.attributes','define','Template','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x146c08,_0x4f4660){var _0x247594=function(_0x204f20){while(--_0x204f20){_0x146c08['push'](_0x146c08['shift']());}};_0x247594(++_0x4f4660);}(_0xcd45,0x1c6));var _0x5cd4=function(_0x403324,_0x2a2962){_0x403324=_0x403324-0x0;var _0x367d71=_0xcd45[_0x403324];return _0x367d71;};'use strict';var _=require(_0x5cd4('0x0'));var util=require(_0x5cd4('0x1'));var logger=require(_0x5cd4('0x2'))(_0x5cd4('0x3'));var moment=require(_0x5cd4('0x4'));var BPromise=require(_0x5cd4('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x5cd4('0x6'));var config=require('../../config/environment');var attributes=require(_0x5cd4('0x7'));module['exports']=function(_0x15cf68,_0x2bbbc9){return _0x15cf68[_0x5cd4('0x8')](_0x5cd4('0x9'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};